pub struct Asset {
pub body: &'static [u8],
pub content_type: &'static str,
}Expand description
A static asset resolved for an HTTP path: its bytes and MIME content type.
Fields§
§body: &'static [u8]The response body.
content_type: &'static strThe Content-Type header value.
Auto Trait Implementations§
impl Freeze for Asset
impl RefUnwindSafe for Asset
impl Send for Asset
impl Sync for Asset
impl Unpin for Asset
impl UnsafeUnpin for Asset
impl UnwindSafe for Asset
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