pub struct FieldOutput(/* private fields */);Expand description
Output responses from the field resolver.
Implementations§
Source§impl FieldOutput
impl FieldOutput
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Constructs a new, empty output with at least the specified capacity.
The output will be able to hold at least capacity elements without
reallocating.
Sourcepub fn push_value<T>(&mut self, output: T)where
T: Serialize,
pub fn push_value<T>(&mut self, output: T)where
T: Serialize,
Push a new output data to the response.
Sourcepub fn push_error(&mut self, error: Error)
pub fn push_error(&mut self, error: Error)
Push a new error to the response.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FieldOutput
impl RefUnwindSafe for FieldOutput
impl Send for FieldOutput
impl Sync for FieldOutput
impl Unpin for FieldOutput
impl UnwindSafe for FieldOutput
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