Struct rust_embed::Metadata
source · [−]pub struct Metadata { /* private fields */ }
Expand description
Metadata about an embedded file
Implementations
sourceimpl Metadata
impl Metadata
sourcepub fn sha256_hash(&self) -> [u8; 32]
pub fn sha256_hash(&self) -> [u8; 32]
The SHA256 hash of the file
sourcepub fn last_modified(&self) -> Option<u64>
pub fn last_modified(&self) -> Option<u64>
The last modified date in seconds since the UNIX epoch. If the underlying platform/file-system does not support this, None is returned.
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more