pub struct AssetFile {
pub uri: &'static str,
pub source: Option<&'static str>,
pub kind: AssetKind,
}Expand description
A file a crate ships, as assets!() lists them.
Fields§
§uri: &'static strasset:/@<package>/<path>.
source: Option<&'static str>The file where the crate was built: what nsh serves and copies, and
what a development build may read. Some in development builds and
in builds with the declarations feature. None in other release
builds, as a packaged app is, whose binary then carries no path of
the machine that built it (__asset_source!).
kind: AssetKindWhat it is.
Implementations§
Trait Implementations§
impl Copy for AssetFile
impl Eq for AssetFile
impl StructuralPartialEq for AssetFile
Auto Trait Implementations§
impl Forget for AssetFile
impl Freeze for AssetFile
impl Move for AssetFile
impl RefUnwindSafe for AssetFile
impl Send for AssetFile
impl Sync for AssetFile
impl Unpin for AssetFile
impl UnsafeUnpin for AssetFilewhere
&'static str: UnsafeUnpin,
impl UnwindSafe for AssetFilewhere
&'static str: UnwindSafe,
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