pub struct Link<M>(pub &'static str, pub M);Expand description
Constructs an HTTP response with the Link header set to the path of the json-schema document describing the Redfish model contained in the response body.
Tuple Fields§
§0: &'static strThe base URL of the json-schema document. This can be used to refer the json-schema client to a relative path on the current service, or (the default behavior with the use of crate::Response) relative to the public Redfish schema index.
1: MThe model instance forming the response body.
Trait Implementations§
Source§impl<M> IntoResponse for Link<M>
impl<M> IntoResponse for Link<M>
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl<M> Freeze for Link<M>where
M: Freeze,
impl<M> RefUnwindSafe for Link<M>where
M: RefUnwindSafe,
impl<M> Send for Link<M>where
M: Send,
impl<M> Sync for Link<M>where
M: Sync,
impl<M> Unpin for Link<M>where
M: Unpin,
impl<M> UnwindSafe for Link<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