Enum apollo_compiler::execution::ResponseData
source · pub enum ResponseData {
Object(JsonMap),
Null,
Absent,
}
Expand description
The data
entry of a Response
Variants§
Object(JsonMap)
Execution returned an object.
Response::data
is serialized as a JSON object.
Null
Execution encountered a field error on a non-null field,
and null was propagated all the way to the root of the response.
Response::data
is serialized as JSON null.
Absent
A request error was encountered. Execution did not start.
Response::data
is skipped from serialization.
Trait Implementations§
source§impl Clone for ResponseData
impl Clone for ResponseData
source§fn clone(&self) -> ResponseData
fn clone(&self) -> ResponseData
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 ResponseData
impl Debug for ResponseData
source§impl<'de> Deserialize<'de> for ResponseData
impl<'de> Deserialize<'de> for ResponseData
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
source§impl From<Option<Map<ByteString, Value>>> for ResponseData
impl From<Option<Map<ByteString, Value>>> for ResponseData
source§impl From<Result<Map<ByteString, Value>, PropagateNull>> for ResponseData
impl From<Result<Map<ByteString, Value>, PropagateNull>> for ResponseData
Auto Trait Implementations§
impl Freeze for ResponseData
impl RefUnwindSafe for ResponseData
impl Send for ResponseData
impl Sync for ResponseData
impl Unpin for ResponseData
impl UnwindSafe for ResponseData
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