Struct kvproto::backup::Schema[][src]

pub struct Schema {
    pub db: Vec<u8>,
    pub table: Vec<u8>,
    pub crc64xor: u64,
    pub total_kvs: u64,
    pub total_bytes: u64,
    pub tiflash_replicas: u32,
    pub stats: Vec<u8>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

db: Vec<u8>table: Vec<u8>crc64xor: u64total_kvs: u64total_bytes: u64tiflash_replicas: u32stats: Vec<u8>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl Schema[src]

pub fn new() -> Schema[src]

pub fn get_db(&self) -> &[u8][src]

pub fn clear_db(&mut self)[src]

pub fn set_db(&mut self, v: Vec<u8>)[src]

pub fn mut_db(&mut self) -> &mut Vec<u8>[src]

pub fn take_db(&mut self) -> Vec<u8>[src]

pub fn get_table(&self) -> &[u8][src]

pub fn clear_table(&mut self)[src]

pub fn set_table(&mut self, v: Vec<u8>)[src]

pub fn mut_table(&mut self) -> &mut Vec<u8>[src]

pub fn take_table(&mut self) -> Vec<u8>[src]

pub fn get_crc64xor(&self) -> u64[src]

pub fn clear_crc64xor(&mut self)[src]

pub fn set_crc64xor(&mut self, v: u64)[src]

pub fn get_total_kvs(&self) -> u64[src]

pub fn clear_total_kvs(&mut self)[src]

pub fn set_total_kvs(&mut self, v: u64)[src]

pub fn get_total_bytes(&self) -> u64[src]

pub fn clear_total_bytes(&mut self)[src]

pub fn set_total_bytes(&mut self, v: u64)[src]

pub fn get_tiflash_replicas(&self) -> u32[src]

pub fn clear_tiflash_replicas(&mut self)[src]

pub fn set_tiflash_replicas(&mut self, v: u32)[src]

pub fn get_stats(&self) -> &[u8][src]

pub fn clear_stats(&mut self)[src]

pub fn set_stats(&mut self, v: Vec<u8>)[src]

pub fn mut_stats(&mut self) -> &mut Vec<u8>[src]

pub fn take_stats(&mut self) -> Vec<u8>[src]

Trait Implementations

impl Clear for Schema[src]

impl Clone for Schema[src]

impl Debug for Schema[src]

impl Default for Schema[src]

impl<'a> Default for &'a Schema[src]

impl Message for Schema[src]

impl PartialEq<Schema> for Schema[src]

impl PbPrint for Schema[src]

impl ProtobufValue for Schema[src]

impl StructuralPartialEq for Schema[src]

Auto Trait Implementations

impl RefUnwindSafe for Schema

impl Send for Schema

impl Sync for Schema

impl Unpin for Schema

impl UnwindSafe for Schema

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.