pub struct MetadataSummary {
pub len: u64,
pub readonly: bool,
pub modified: Option<SystemTime>,
}Expand description
Summary of filesystem metadata without exposing full std::fs::Metadata.
Fields§
§len: u64File size in bytes (for files).
readonly: boolWhether the entry is read-only according to permissions.
modified: Option<SystemTime>Modification time when available.
Trait Implementations§
Source§impl Clone for MetadataSummary
impl Clone for MetadataSummary
Source§fn clone(&self) -> MetadataSummary
fn clone(&self) -> MetadataSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MetadataSummary
impl Debug for MetadataSummary
impl Eq for MetadataSummary
Source§impl PartialEq for MetadataSummary
impl PartialEq for MetadataSummary
impl StructuralPartialEq for MetadataSummary
Auto Trait Implementations§
impl Freeze for MetadataSummary
impl RefUnwindSafe for MetadataSummary
impl Send for MetadataSummary
impl Sync for MetadataSummary
impl Unpin for MetadataSummary
impl UnsafeUnpin for MetadataSummary
impl UnwindSafe for MetadataSummary
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