Struct kvproto::metapb::Store[][src]

pub struct Store {
    pub id: u64,
    pub address: String,
    pub state: StoreState,
    pub labels: RepeatedField<StoreLabel>,
    pub version: String,
    pub peer_address: String,
    pub status_address: String,
    pub git_hash: String,
    pub start_timestamp: i64,
    pub deploy_path: String,
    pub last_heartbeat: i64,
    pub physically_destroyed: bool,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

id: u64address: Stringstate: StoreStatelabels: RepeatedField<StoreLabel>version: Stringpeer_address: Stringstatus_address: Stringgit_hash: Stringstart_timestamp: i64deploy_path: Stringlast_heartbeat: i64physically_destroyed: boolunknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl Store[src]

pub fn new() -> Store[src]

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

pub fn clear_id(&mut self)[src]

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

pub fn get_address(&self) -> &str[src]

pub fn clear_address(&mut self)[src]

pub fn set_address(&mut self, v: String)[src]

pub fn mut_address(&mut self) -> &mut String[src]

pub fn take_address(&mut self) -> String[src]

pub fn get_state(&self) -> StoreState[src]

pub fn clear_state(&mut self)[src]

pub fn set_state(&mut self, v: StoreState)[src]

pub fn get_labels(&self) -> &[StoreLabel][src]

pub fn clear_labels(&mut self)[src]

pub fn set_labels(&mut self, v: RepeatedField<StoreLabel>)[src]

pub fn mut_labels(&mut self) -> &mut RepeatedField<StoreLabel>[src]

pub fn take_labels(&mut self) -> RepeatedField<StoreLabel>[src]

pub fn get_version(&self) -> &str[src]

pub fn clear_version(&mut self)[src]

pub fn set_version(&mut self, v: String)[src]

pub fn mut_version(&mut self) -> &mut String[src]

pub fn take_version(&mut self) -> String[src]

pub fn get_peer_address(&self) -> &str[src]

pub fn clear_peer_address(&mut self)[src]

pub fn set_peer_address(&mut self, v: String)[src]

pub fn mut_peer_address(&mut self) -> &mut String[src]

pub fn take_peer_address(&mut self) -> String[src]

pub fn get_status_address(&self) -> &str[src]

pub fn clear_status_address(&mut self)[src]

pub fn set_status_address(&mut self, v: String)[src]

pub fn mut_status_address(&mut self) -> &mut String[src]

pub fn take_status_address(&mut self) -> String[src]

pub fn get_git_hash(&self) -> &str[src]

pub fn clear_git_hash(&mut self)[src]

pub fn set_git_hash(&mut self, v: String)[src]

pub fn mut_git_hash(&mut self) -> &mut String[src]

pub fn take_git_hash(&mut self) -> String[src]

pub fn get_start_timestamp(&self) -> i64[src]

pub fn clear_start_timestamp(&mut self)[src]

pub fn set_start_timestamp(&mut self, v: i64)[src]

pub fn get_deploy_path(&self) -> &str[src]

pub fn clear_deploy_path(&mut self)[src]

pub fn set_deploy_path(&mut self, v: String)[src]

pub fn mut_deploy_path(&mut self) -> &mut String[src]

pub fn take_deploy_path(&mut self) -> String[src]

pub fn get_last_heartbeat(&self) -> i64[src]

pub fn clear_last_heartbeat(&mut self)[src]

pub fn set_last_heartbeat(&mut self, v: i64)[src]

pub fn get_physically_destroyed(&self) -> bool[src]

pub fn clear_physically_destroyed(&mut self)[src]

pub fn set_physically_destroyed(&mut self, v: bool)[src]

Trait Implementations

impl Clear for Store[src]

impl Clone for Store[src]

impl Debug for Store[src]

impl Default for Store[src]

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

impl Message for Store[src]

impl PartialEq<Store> for Store[src]

impl PbPrint for Store[src]

impl ProtobufValue for Store[src]

impl StructuralPartialEq for Store[src]

Auto Trait Implementations

impl RefUnwindSafe for Store

impl Send for Store

impl Sync for Store

impl Unpin for Store

impl UnwindSafe for Store

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.