Struct wildland_dfs::NodeStat
source · pub struct NodeStat {
pub node_type: NodeType,
pub size: usize,
pub modification_time: Option<UnixTimestamp>,
pub change_time: Option<UnixTimestamp>,
pub creation_time: Option<UnixTimestamp>,
pub permissions: WlPermissions,
pub wildland_object_id: String,
}
Expand description
Represents metadata of a filesystem node
Fields§
§node_type: NodeType
§size: usize
size in bytes
modification_time: Option<UnixTimestamp>
Some nodes, like virtual ones, may have modification_time set to None
change_time: Option<UnixTimestamp>
Some nodes, like virtual ones, may have change_time set to None
creation_time: Option<UnixTimestamp>
§permissions: WlPermissions
§wildland_object_id: String
Unique identifier of a path. For instance, given a container
with two synchronized storages containing file in /some/path
,
the file has the same ID in both storages. This implies that
every path within a container has exactly one unique ID assigned.
Implementations§
source§impl NodeStat
impl NodeStat
Getter exposed through ffi
pub fn node_type(&self) -> NodeType
pub fn size(&self) -> usize
pub fn modification_time(&self) -> Option<UnixTimestamp>
pub fn change_time(&self) -> Option<UnixTimestamp>
pub fn creation_time(&self) -> Option<UnixTimestamp>
pub fn wildland_object_id(&self) -> String
Trait Implementations§
source§impl PartialEq<NodeStat> for NodeStat
impl PartialEq<NodeStat> for NodeStat
impl Eq for NodeStat
impl StructuralEq for NodeStat
impl StructuralPartialEq for NodeStat
Auto Trait Implementations§
impl RefUnwindSafe for NodeStat
impl Send for NodeStat
impl Sync for NodeStat
impl Unpin for NodeStat
impl UnwindSafe for NodeStat
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.