pub enum AuthoritativePathEntryKind {
Directory {},
File {
revision_no: RevisionNo,
size_bytes: u64,
content_ref: ContentRef,
revision_actor: ActorRef,
committed_at_ms: u64,
},
}Expand description
Kind-specific metadata for an authoritative path entry.
Variants§
Directory
A directory, which has no revision payload in v0.
The entry tag reuses InodeKind’s wire vocabulary.
File
A file and its current revision summary.
Fields
§
revision_no: RevisionNoCurrent file revision number.
§
size_bytes: u64Current file size in bytes.
This remains explicit even though content_ref also carries the
length because callers sort directory listings by this field.
§
content_ref: ContentRefCurrent content reference.
Implementations§
Source§impl AuthoritativePathEntryKind
impl AuthoritativePathEntryKind
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_actor(&self) -> Option<&ActorRef>
pub const fn revision_actor(&self) -> Option<&ActorRef>
Returns the actor responsible for the current file revision.
Directories return None.
Trait Implementations§
Source§impl Clone for AuthoritativePathEntryKind
impl Clone for AuthoritativePathEntryKind
Source§fn clone(&self) -> AuthoritativePathEntryKind
fn clone(&self) -> AuthoritativePathEntryKind
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 AuthoritativePathEntryKind
impl Debug for AuthoritativePathEntryKind
Source§impl<'de> Deserialize<'de> for AuthoritativePathEntryKind
impl<'de> Deserialize<'de> for AuthoritativePathEntryKind
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 AuthoritativePathEntryKind
impl StructuralPartialEq for AuthoritativePathEntryKind
Auto Trait Implementations§
impl Freeze for AuthoritativePathEntryKind
impl RefUnwindSafe for AuthoritativePathEntryKind
impl Send for AuthoritativePathEntryKind
impl Sync for AuthoritativePathEntryKind
impl Unpin for AuthoritativePathEntryKind
impl UnsafeUnpin for AuthoritativePathEntryKind
impl UnwindSafe for AuthoritativePathEntryKind
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