pub struct Asset {
pub bytes: &'static [u8],
pub content_type: &'static str,
/* private fields */
}Expand description
Served under its content hash, so a browser may cache it until the file changes.
Fields§
§bytes: &'static [u8]§content_type: &'static strImplementations§
Source§impl Asset
impl Asset
pub const fn with_precompressed(self, precompressed: Precompressed) -> Self
pub const fn precompressed(&self) -> Option<Precompressed>
Trait Implementations§
Auto Trait Implementations§
impl Forget for Asset
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