pub struct AssetEntry {
pub path: &'static str,
pub bytes: &'static [u8],
pub content_type: &'static str,
}Expand description
A single entry in the viewer asset inventory.
Fields§
§path: &'static strRelative path inside the export bundle (e.g. "vendor/d3.v7.min.js").
bytes: &'static [u8]Raw bytes of the asset.
content_type: &'static strMIME type for HTTP serving.
Trait Implementations§
Source§impl Clone for AssetEntry
impl Clone for AssetEntry
Source§fn clone(&self) -> AssetEntry
fn clone(&self) -> AssetEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssetEntry
impl Debug for AssetEntry
impl Copy for AssetEntry
Auto Trait Implementations§
impl Freeze for AssetEntry
impl RefUnwindSafe for AssetEntry
impl Send for AssetEntry
impl Sync for AssetEntry
impl Unpin for AssetEntry
impl UnsafeUnpin for AssetEntry
impl UnwindSafe for AssetEntry
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