pub struct Metadata { /* private fields */ }
Expand description
Metadata about an embedded file
Implementations§
Source§impl 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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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