pub struct Content(pub &'static str, pub Vec<u8>);Expand description
Wrapper for returning content with an explicit MIME type.
The first field is the MIME type string, the second is the raw data.
Tuple Fields§
§0: &'static str§1: Vec<u8>Trait Implementations§
Source§impl IntoResponse for Content
impl IntoResponse for Content
fn into_stream_events(self, _default_language: &str) -> Vec<RawStreamEvent>
Auto Trait Implementations§
impl Freeze for Content
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnsafeUnpin for Content
impl UnwindSafe for Content
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