Struct sled_web::request::Cas [−][src]
Compare and swap. Capable of unique creation, conditional modification, or deletion.
If old is None, this will only set the value if it doesn't exist yet. If new is None, will delete the value if old is correct. If both old and new are Some, will modify the value if old is correct.
If Tree is read-only, will do nothing.
Fields
key: Vec<u8>
old: Option<Vec<u8>>
new: Option<Vec<u8>>
Trait Implementations
impl Clone for Cas[src]
impl Clone for Casfn clone(&self) -> Cas[src]
fn clone(&self) -> CasReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for Cas[src]
impl Debug for Casfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for Cas[src]
impl Eq for Casimpl Hash for Cas[src]
impl Hash for Casfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl PartialEq for Cas[src]
impl PartialEq for Casfn eq(&self, other: &Cas) -> bool[src]
fn eq(&self, other: &Cas) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Cas) -> bool[src]
fn ne(&self, other: &Cas) -> boolThis method tests for !=.
impl PartialOrd for Cas[src]
impl PartialOrd for Casfn partial_cmp(&self, other: &Cas) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Cas) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Cas) -> bool[src]
fn lt(&self, other: &Cas) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Cas) -> bool[src]
fn le(&self, other: &Cas) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Cas) -> bool[src]
fn gt(&self, other: &Cas) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Cas) -> bool[src]
fn ge(&self, other: &Cas) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for Cas[src]
impl Ord for Casfn cmp(&self, other: &Cas) -> Ordering[src]
fn cmp(&self, other: &Cas) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl RequestType for Cas[src]
impl RequestType for Casconst METHOD: Method
METHOD: Method = <Method>::PUT
The HTTP method included with the header.
const PATH_AND_QUERY: &'static str
PATH_AND_QUERY: &'static str = "/tree/entries/cas"
The component of the URI following the domain.
impl IntoBody for Cas[src]
impl IntoBody for Castype Body = Self
The body of the request, capable of being serialized to JSON.
fn into_body(self) -> Self::Body[src]
fn into_body(self) -> Self::BodyConvert self into the serializable Body type.
impl IntoResponse for Cas[src]
impl IntoResponse for Cas