pub enum ResolverResult {
Value(Value),
Null,
Error(ResolverError),
Deferred(String),
}Expand description
Resolver result
Variants§
Value(Value)
Resolved value
Null
Null value
Error(ResolverError)
Error occurred
Deferred(String)
Deferred to DataLoader
Implementations§
Source§impl ResolverResult
impl ResolverResult
Sourcepub fn error(err: impl Into<ResolverError>) -> Self
pub fn error(err: impl Into<ResolverError>) -> Self
Create an error result
Trait Implementations§
Source§impl Clone for ResolverResult
impl Clone for ResolverResult
Source§fn clone(&self) -> ResolverResult
fn clone(&self) -> ResolverResult
Returns a duplicate 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 ResolverResult
impl Debug for ResolverResult
Auto Trait Implementations§
impl Freeze for ResolverResult
impl RefUnwindSafe for ResolverResult
impl Send for ResolverResult
impl Sync for ResolverResult
impl Unpin for ResolverResult
impl UnsafeUnpin for ResolverResult
impl UnwindSafe for ResolverResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more