pub enum FieldWrite {
Value(ParseValue),
Op(Op),
}Expand description
One field of a write body: either a literal value or an operation.
Deliberately an enum rather than “a ParseValue that might happen to be an op object”. 0.1.0
decoded ops correctly and then never called the decoder from the write path, so
{"__op":"Increment","amount":1} was stored as a literal object. A sum type at the field
boundary makes that omission a missing match arm rather than silence.
Variants§
Value(ParseValue)
Op(Op)
Trait Implementations§
Source§impl Clone for FieldWrite
impl Clone for FieldWrite
Source§fn clone(&self) -> FieldWrite
fn clone(&self) -> FieldWrite
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FieldWrite
impl RefUnwindSafe for FieldWrite
impl Send for FieldWrite
impl Sync for FieldWrite
impl Unpin for FieldWrite
impl UnsafeUnpin for FieldWrite
impl UnwindSafe for FieldWrite
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