Trait conserve::entry::EntryTrait
source · pub trait EntryTrait: Debug {
// Required methods
fn apath(&self) -> &Apath;
fn kind(&self) -> Kind;
fn mtime(&self) -> OffsetDateTime;
fn size(&self) -> Option<u64>;
fn symlink_target(&self) -> Option<&str>;
fn unix_mode(&self) -> UnixMode;
fn owner(&self) -> &Owner;
}
Expand description
A description of an file, directory, or symlink in a tree, independent of whether it’s recorded in a archive (an IndexEntry), or in a source tree.
Required Methods§
fn apath(&self) -> &Apath
fn kind(&self) -> Kind
fn mtime(&self) -> OffsetDateTime
fn size(&self) -> Option<u64>
fn symlink_target(&self) -> Option<&str>
fn unix_mode(&self) -> UnixMode
fn owner(&self) -> &Owner
Trait Implementations§
source§impl From<&dyn EntryTrait> for EntryMetadata
impl From<&dyn EntryTrait> for EntryMetadata
source§fn from(entry: &dyn EntryTrait) -> Self
fn from(entry: &dyn EntryTrait) -> Self
Converts to this type from the input type.
source§impl From<&dyn EntryTrait> for KindMetadata
impl From<&dyn EntryTrait> for KindMetadata
source§fn from(entry: &dyn EntryTrait) -> Self
fn from(entry: &dyn EntryTrait) -> Self
Converts to this type from the input type.