Struct kvproto::kvrpcpb::RawCasRequest[][src]

pub struct RawCasRequest {
    pub context: SingularPtrField<Context>,
    pub key: Vec<u8>,
    pub value: Vec<u8>,
    pub previous_not_exist: bool,
    pub previous_value: Vec<u8>,
    pub cf: String,
    pub ttl: u64,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

context: SingularPtrField<Context>key: Vec<u8>value: Vec<u8>previous_not_exist: boolprevious_value: Vec<u8>cf: Stringttl: u64unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl RawCasRequest[src]

pub fn new() -> RawCasRequest[src]

pub fn get_context(&self) -> &Context[src]

pub fn clear_context(&mut self)[src]

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

pub fn set_context(&mut self, v: Context)[src]

pub fn mut_context(&mut self) -> &mut Context[src]

pub fn take_context(&mut self) -> Context[src]

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

pub fn clear_key(&mut self)[src]

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

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

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

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

pub fn clear_value(&mut self)[src]

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

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

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

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

pub fn clear_previous_not_exist(&mut self)[src]

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

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

pub fn clear_previous_value(&mut self)[src]

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

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

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

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

pub fn clear_cf(&mut self)[src]

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

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

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

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

pub fn clear_ttl(&mut self)[src]

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

Trait Implementations

impl Clear for RawCasRequest[src]

impl Clone for RawCasRequest[src]

impl Debug for RawCasRequest[src]

impl Default for RawCasRequest[src]

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

impl Message for RawCasRequest[src]

impl PartialEq<RawCasRequest> for RawCasRequest[src]

impl PbPrint for RawCasRequest[src]

impl ProtobufValue for RawCasRequest[src]

impl StructuralPartialEq for RawCasRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for RawCasRequest

impl Send for RawCasRequest

impl Sync for RawCasRequest

impl Unpin for RawCasRequest

impl UnwindSafe for RawCasRequest

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.