Enum prima_bridge::PossiblyParsedData [−][src]
pub enum PossiblyParsedData<T> { ParsedData(T, Vec<Error>), UnparsedData(Value, Vec<Error>), EmptyData(Vec<Error>), }
Expand description
an error type to represent all possible outcome for a graphql response deserialization
Variants
a tuple type with the converted T
type and a vector of Error. This could happens thanks to the fact that graphql can return null for a nullable type, even if there was an error while resolving the data.
a tuple with the serde_json::Value of the Response, and a vector of 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,