pub struct ResponseContent<T> {
pub status: StatusCode,
pub content: String,
pub entity: Option<T>,
}Fields§
§status: StatusCode§content: String§entity: Option<T>Trait Implementations§
Source§impl<T: Clone> Clone for ResponseContent<T>
impl<T: Clone> Clone for ResponseContent<T>
Auto Trait Implementations§
impl<T> Freeze for ResponseContent<T>
impl<T> RefUnwindSafe for ResponseContent<T>where
Option<T>: RefUnwindSafe,
impl<T> Send for ResponseContent<T>
impl<T> Sync for ResponseContent<T>
impl<T> Unpin for ResponseContent<T>
impl<T> UnsafeUnpin for ResponseContent<T>where
Option<T>: UnsafeUnpin,
impl<T> UnwindSafe for ResponseContent<T>where
Option<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