pub struct DomainJson<T, Dto = ()> {
pub domain: T,
/* private fields */
}Fields§
§domain: TImplementations§
Source§impl<T, Dto> DomainJson<T, Dto>
impl<T, Dto> DomainJson<T, Dto>
Trait Implementations§
Source§impl<T, Dto, S> FromRequest<S> for DomainJson<T, Dto>
impl<T, Dto, S> FromRequest<S> for DomainJson<T, Dto>
Source§type Rejection = ErrorResponse
type Rejection = ErrorResponse
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, Dto> Freeze for DomainJson<T, Dto>where
T: Freeze,
impl<T, Dto> RefUnwindSafe for DomainJson<T, Dto>where
T: RefUnwindSafe,
Dto: RefUnwindSafe,
impl<T, Dto> Send for DomainJson<T, Dto>
impl<T, Dto> Sync for DomainJson<T, Dto>
impl<T, Dto> Unpin for DomainJson<T, Dto>
impl<T, Dto> UnwindSafe for DomainJson<T, Dto>where
T: UnwindSafe,
Dto: 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