pub enum MutationResult {
Ok {
data: Option<Value>,
},
Error(MutationError),
}Expand description
The result of running a mutation on the API server
(mutationResultSchema), read as the JS client reads it: in
passthrough mode, telling errors apart with 'error' in result. The
union’s OK branch, {data?}, accepts every object, so a result with
data is OK even if it has an error, and any other result with an
error, whatever its value, is an error.
Variants§
Trait Implementations§
Source§impl Clone for MutationResult
impl Clone for MutationResult
Source§impl Debug for MutationResult
impl Debug for MutationResult
Source§impl JsonCodable for MutationResult
impl JsonCodable for MutationResult
Source§impl PartialEq for MutationResult
impl PartialEq for MutationResult
impl StructuralPartialEq for MutationResult
Auto Trait Implementations§
impl Forget for MutationResult
impl Freeze for MutationResult
impl Move for MutationResult
impl RefUnwindSafe for MutationResult
impl Send for MutationResult
impl Sync for MutationResult
impl Unpin for MutationResult
impl UnsafeUnpin for MutationResult
impl UnwindSafe for MutationResult
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