pub struct Response<M>(pub M);Expand description
Constructs an HTTP response from a Redfish model instance.
This creates a request with the following:
- The Link header is set with the URL to the json-schema of the model contained in the request body.
- The Cache-Control header is set to “no-cache”.
- The response body is serialized to JSON.
Tuple Fields§
§0: MTrait Implementations§
Source§impl<M> IntoResponse for Response<M>
impl<M> IntoResponse for Response<M>
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl<M> Freeze for Response<M>where
M: Freeze,
impl<M> RefUnwindSafe for Response<M>where
M: RefUnwindSafe,
impl<M> Send for Response<M>where
M: Send,
impl<M> Sync for Response<M>where
M: Sync,
impl<M> Unpin for Response<M>where
M: Unpin,
impl<M> UnwindSafe for Response<M>where
M: 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