pub struct ContextResult<T> {
pub result: Result<T>,
pub context: Context,
}Fields§
§result: Result<T>§context: ContextTrait Implementations§
Source§impl<T> From<ContextResult<T>> for Responsewhere
T: Serialize,
impl<T> From<ContextResult<T>> for Responsewhere
T: Serialize,
Source§fn from(_: ContextResult<T>) -> Self
fn from(_: ContextResult<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for ContextResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for ContextResult<T>where
T: RefUnwindSafe,
impl<T> Send for ContextResult<T>where
T: Send,
impl<T> Sync for ContextResult<T>where
T: Sync,
impl<T> Unpin for ContextResult<T>where
T: Unpin,
impl<T> UnwindSafe for ContextResult<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