#[non_exhaustive]pub struct ConditionalSetArgs {
pub if_unchanged_by: IfUnchangedBy,
pub atomic: bool,
}Expand description
The two §3 Foo/set arguments, for a client to merge into a Foo/set
call. Defaults (empty ifUnchangedBy, atomic false) are not
written.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.if_unchanged_by: IfUnchangedByifUnchangedBy: preconditions by object id.
atomic: boolatomic: commit every change or none (§4).
Implementations§
Source§impl ConditionalSetArgs
impl ConditionalSetArgs
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
True when both arguments are at their defaults: there is nothing to send, and the request needs no conditional capability.
Trait Implementations§
Source§impl Clone for ConditionalSetArgs
impl Clone for ConditionalSetArgs
Source§impl Debug for ConditionalSetArgs
impl Debug for ConditionalSetArgs
Source§impl Default for ConditionalSetArgs
impl Default for ConditionalSetArgs
Source§impl<'de> Deserialize<'de> for ConditionalSetArgs
impl<'de> Deserialize<'de> for ConditionalSetArgs
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConditionalSetArgs
impl PartialEq for ConditionalSetArgs
Source§impl Serialize for ConditionalSetArgs
impl Serialize for ConditionalSetArgs
impl StructuralPartialEq for ConditionalSetArgs
Auto Trait Implementations§
impl Forget for ConditionalSetArgs
impl Freeze for ConditionalSetArgs
impl Move for ConditionalSetArgs
impl RefUnwindSafe for ConditionalSetArgs
impl Send for ConditionalSetArgs
impl Sync for ConditionalSetArgs
impl Unpin for ConditionalSetArgs
impl UnsafeUnpin for ConditionalSetArgs
impl UnwindSafe for ConditionalSetArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more