pub enum PushResponseBody {
Ok {
mutations: Vec<MutationResponse>,
},
Error(PushError),
}Expand description
The body of a pushResponse message (pushResponseBodySchema). valita
tries the OK variant first, and it has no discriminator: a body with a
valid mutations array is OK even if it also has an error key.
Variants§
Trait Implementations§
Source§impl Clone for PushResponseBody
impl Clone for PushResponseBody
Source§impl Debug for PushResponseBody
impl Debug for PushResponseBody
Source§impl JsonCodable for PushResponseBody
impl JsonCodable for PushResponseBody
Source§impl PartialEq for PushResponseBody
impl PartialEq for PushResponseBody
impl StructuralPartialEq for PushResponseBody
Auto Trait Implementations§
impl Forget for PushResponseBody
impl Freeze for PushResponseBody
impl Move for PushResponseBody
impl RefUnwindSafe for PushResponseBody
impl Send for PushResponseBody
impl Sync for PushResponseBody
impl Unpin for PushResponseBody
impl UnsafeUnpin for PushResponseBody
impl UnwindSafe for PushResponseBody
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