Enum prima_bridge::PossiblyParsedData
source · pub enum PossiblyParsedData<T> {
ParsedData(T, Vec<Error>),
UnparsedData(Value, Vec<Error>),
EmptyData(Vec<Error>),
}
Expand description
An error type to represent all possible outcomes of a GraphQL response deserialization.
Variants§
ParsedData(T, Vec<Error>)
a tuple type with the converted T
type and a vector of Error. This could happen due to the fact that GraphQL can return null for a nullable type, even if there was an error while resolving the data.
UnparsedData(Value, Vec<Error>)
a tuple with the serde_json::Value of the Response, and a vector of Error
EmptyData(Vec<Error>)
a vector of Error. This means that the response contained just the “error” part, without the data.
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for PossiblyParsedData<T>where
T: RefUnwindSafe,
impl<T> Send for PossiblyParsedData<T>where
T: Send,
impl<T> Sync for PossiblyParsedData<T>where
T: Sync,
impl<T> Unpin for PossiblyParsedData<T>where
T: Unpin,
impl<T> UnwindSafe for PossiblyParsedData<T>where
T: UnwindSafe,
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