pub struct StaticAssetEntry {
pub key: &'static str,
pub revision: AssetRevision,
pub media_type: Option<&'static str>,
pub bytes: &'static [u8],
}Fields§
§key: &'static str§revision: AssetRevision§media_type: Option<&'static str>§bytes: &'static [u8]Implementations§
Source§impl StaticAssetEntry
impl StaticAssetEntry
pub const fn new( key: &'static str, revision: AssetRevision, bytes: &'static [u8], ) -> Self
pub const fn with_media_type(self, media_type: &'static str) -> Self
Trait Implementations§
Source§impl Clone for StaticAssetEntry
impl Clone for StaticAssetEntry
Source§fn clone(&self) -> StaticAssetEntry
fn clone(&self) -> StaticAssetEntry
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 StaticAssetEntry
impl Debug for StaticAssetEntry
Source§impl PartialEq for StaticAssetEntry
impl PartialEq for StaticAssetEntry
impl Copy for StaticAssetEntry
impl Eq for StaticAssetEntry
impl StructuralPartialEq for StaticAssetEntry
Auto Trait Implementations§
impl Freeze for StaticAssetEntry
impl RefUnwindSafe for StaticAssetEntry
impl Send for StaticAssetEntry
impl Sync for StaticAssetEntry
impl Unpin for StaticAssetEntry
impl UnsafeUnpin for StaticAssetEntry
impl UnwindSafe for StaticAssetEntry
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