pub enum MutationOutcome {
Success {
data: Option<Value>,
},
AppError {
message: String,
details: Option<Value>,
},
ZeroError {
message: String,
},
}Expand description
How a mutation ended, on the client or on the server
(MutatorResultDetails in packages/zero-client/src/client/custom.ts).
Variants§
Success
The mutation ran.
AppError
The mutator or the API server raised an ApplicationError.
ZeroError
Zero couldn’t run the mutation or learn its result, such as while offline or when the connection closed. On the server side this doesn’t mean the mutation wasn’t applied: the client sends pending mutations again when it reconnects.
Implementations§
Trait Implementations§
Source§impl Clone for MutationOutcome
impl Clone for MutationOutcome
Source§impl Debug for MutationOutcome
impl Debug for MutationOutcome
Source§impl PartialEq for MutationOutcome
impl PartialEq for MutationOutcome
impl StructuralPartialEq for MutationOutcome
Auto Trait Implementations§
impl Forget for MutationOutcome
impl Freeze for MutationOutcome
impl Move for MutationOutcome
impl RefUnwindSafe for MutationOutcome
impl Send for MutationOutcome
impl Sync for MutationOutcome
impl Unpin for MutationOutcome
impl UnsafeUnpin for MutationOutcome
impl UnwindSafe for MutationOutcome
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