pub enum Mutation {
Crud {
id: f64,
client_id: String,
ops: Vec<CrudOp>,
timestamp: f64,
},
Custom {
id: f64,
client_id: String,
name: String,
args: Vec<Value>,
timestamp: f64,
},
}Expand description
A mutation as pushed to zero-cache (mutationSchema).
Variants§
Crud
The legacy CRUD mutators (crudMutationSchema). Its name is always
CRUD_MUTATION_NAME and its args are [{ops}].
Custom
A custom mutator (customMutationSchema).
Trait Implementations§
Source§impl JsonCodable for Mutation
impl JsonCodable for Mutation
impl StructuralPartialEq for Mutation
Auto Trait Implementations§
impl Forget for Mutation
impl Freeze for Mutation
impl Move for Mutation
impl RefUnwindSafe for Mutation
impl Send for Mutation
impl Sync for Mutation
impl Unpin for Mutation
impl UnsafeUnpin for Mutation
impl UnwindSafe for Mutation
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