[][src]Struct etcdv3client::pb::Compare

pub struct Compare {
    pub result: i32,
    pub target: i32,
    pub key: Vec<u8>,
    pub range_end: Vec<u8>,
    pub target_union: Option<TargetUnion>,
}

Fields

result: i32

result is logical comparison operation for this comparison.

target: i32

target is the key-value field to inspect for the comparison.

key: Vec<u8>

key is the subject key for the comparison operation.

range_end: Vec<u8>

range_end compares the given target to all keys in the range [key, range_end). See RangeRequest for more details on key ranges.

TODO: fill out with most of the rest of RangeRequest fields when needed.

target_union: Option<TargetUnion>

Methods

impl Compare[src]

pub fn result(&self) -> CompareResult[src]

pub fn set_result(&mut self, value: CompareResult)[src]

pub fn target(&self) -> CompareTarget[src]

pub fn set_target(&mut self, value: CompareTarget)[src]

Trait Implementations

impl Clone for Compare[src]

impl Default for Compare[src]

impl PartialEq<Compare> for Compare[src]

impl Debug for Compare[src]

impl StructuralPartialEq for Compare[src]

impl Message for Compare[src]

Auto Trait Implementations

impl Send for Compare

impl Sync for Compare

impl Unpin for Compare

impl UnwindSafe for Compare

impl RefUnwindSafe for Compare

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

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