pub struct ResponseCommon {
pub success: bool,
pub errors: Vec<Error>,
}
Expand description
Determines the common fields for all responses.
Note that this does not include the kind
-field, as that’s part of the parent Request
.
Fields§
§success: bool
Whether the response was received and parsed successfully. Basically, represents whether the request was “syntactically valid” according to the specification.
errors: Vec<Error>
An optional list of errors that occurred when success
is false.
Trait Implementations§
Source§impl Clone for ResponseCommon
impl Clone for ResponseCommon
Source§fn clone(&self) -> ResponseCommon
fn clone(&self) -> ResponseCommon
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ResponseCommon
impl Debug for ResponseCommon
Source§impl<'de> Deserialize<'de> for ResponseCommon
impl<'de> Deserialize<'de> for ResponseCommon
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ResponseCommon
impl RefUnwindSafe for ResponseCommon
impl Send for ResponseCommon
impl Sync for ResponseCommon
impl Unpin for ResponseCommon
impl UnwindSafe for ResponseCommon
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