pub struct Body<T>(pub T);Expand description
This is the crate users will import. It re-exports the internal pieces use nestforge::{NestForgeFactory, ModuleDefinition, Container};
Tuple Fields§
§0: TImplementations§
Source§impl<T> Body<T>
impl<T> Body<T>
pub fn into_inner(self) -> T
Trait Implementations§
Source§impl<S, T> FromRequest<S> for Body<T>
impl<S, T> FromRequest<S> for Body<T>
Source§type Rejection = HttpException
type Rejection = HttpException
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
Auto Trait Implementations§
impl<T> Freeze for Body<T>where
T: Freeze,
impl<T> RefUnwindSafe for Body<T>where
T: RefUnwindSafe,
impl<T> Send for Body<T>where
T: Send,
impl<T> Sync for Body<T>where
T: Sync,
impl<T> Unpin for Body<T>where
T: Unpin,
impl<T> UnsafeUnpin for Body<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Body<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