pub struct Props { /* private fields */ }Implementations§
Source§impl Props
impl Props
pub fn new(data: impl Serialize + 'static) -> Self
pub fn new_with_status( data: impl Serialize + 'static, http_code: StatusCode, ) -> Self
Auto Trait Implementations§
impl Freeze for Props
impl !RefUnwindSafe for Props
impl !Send for Props
impl !Sync for Props
impl Unpin for Props
impl !UnwindSafe for Props
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