pub struct Asset {
pub route: &'static str,
pub path: &'static str,
pub etag: &'static str,
pub content_type: &'static str,
pub bytes: Option<&'static [u8]>,
pub is_compressed: bool,
}
Expand description
Represents a static asset that can be served
Fields§
§route: &'static str
§path: &'static str
§etag: &'static str
§content_type: &'static str
§bytes: Option<&'static [u8]>
§is_compressed: bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Asset
impl RefUnwindSafe for Asset
impl Send for Asset
impl Sync for Asset
impl Unpin 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