pub enum PathEntryKind {
Directory {},
File {
revision_no: RevisionNo,
size_bytes: u64,
content_ref: ContentRef,
revision_committed_by: ActorId,
revision_committed_at_ms: u64,
},
}Expand description
Kind-specific metadata for a path entry.
Variants§
Directory
A directory without a revision payload.
File
A file and its current revision summary.
Fields
§
revision_no: RevisionNoCurrent file revision number.
§
content_ref: ContentRefCurrent content reference.
Implementations§
Source§impl PathEntryKind
impl PathEntryKind
Sourcepub const fn inode_kind(&self) -> InodeKind
pub const fn inode_kind(&self) -> InodeKind
Returns the stable inode classification represented by this payload.
Sourcepub const fn revision_committed_by(&self) -> Option<&ActorId>
pub const fn revision_committed_by(&self) -> Option<&ActorId>
Returns the actor responsible for the current file revision.
Directories return None.
Trait Implementations§
Source§impl Clone for PathEntryKind
impl Clone for PathEntryKind
Source§impl Debug for PathEntryKind
impl Debug for PathEntryKind
Source§impl<'de> Deserialize<'de> for PathEntryKind
impl<'de> Deserialize<'de> for PathEntryKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PathEntryKind
Source§impl PartialEq for PathEntryKind
impl PartialEq for PathEntryKind
Source§impl Serialize for PathEntryKind
impl Serialize for PathEntryKind
impl StructuralPartialEq for PathEntryKind
Auto Trait Implementations§
impl Freeze for PathEntryKind
impl RefUnwindSafe for PathEntryKind
impl Send for PathEntryKind
impl Sync for PathEntryKind
impl Unpin for PathEntryKind
impl UnsafeUnpin for PathEntryKind
impl UnwindSafe for PathEntryKind
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