pub struct SetRequest {
pub values: BTreeMap<String, Value>,
pub confirm_s: Option<u64>,
pub token: Option<String>,
pub expected_revision: Option<u64>,
pub idempotency_key: Option<String>,
pub dry_run: bool,
}Expand description
The body of @op/set/{group} (§2.5). Its values stay JSON until the
validator reads them against the schema, so a value of the wrong kind is
row 11’s refusal, naming its parameter.
Fields§
§values: BTreeMap<String, Value>Values for some parameters of the group.
confirm_s: Option<u64>The window, in seconds, at least 1.
token: Option<String>The pending change’s token, to join it.
expected_revision: Option<u64>The revision the caller read.
idempotency_key: Option<String>A key that makes a retry return the first answer (§2.14).
dry_run: boolCheck, and answer the would-be view, touching nothing.
Trait Implementations§
Source§impl Clone for SetRequest
impl Clone for SetRequest
Source§impl Debug for SetRequest
impl Debug for SetRequest
Source§impl Default for SetRequest
impl Default for SetRequest
Source§impl<'de> Deserialize<'de> for SetRequest
impl<'de> Deserialize<'de> for SetRequest
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 SetRequest
impl PartialEq for SetRequest
Source§impl Serialize for SetRequest
impl Serialize for SetRequest
impl StructuralPartialEq for SetRequest
Auto Trait Implementations§
impl Forget for SetRequest
impl Freeze for SetRequest
impl Move for SetRequest
impl RefUnwindSafe for SetRequest
impl Send for SetRequest
impl Sync for SetRequest
impl Unpin for SetRequest
impl UnsafeUnpin for SetRequestwhere
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for SetRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more