#[repr(i32)]pub enum TreeEntryKind {
Unspecified = 0,
Tree = 1,
Blob = 2,
Symlink = 3,
Gitlink = 4,
Spoollink = 5,
}Expand description
Closed set matching git’s tree object model, plus the native SPOOLLINK edge (unlike deliberately-open string kinds elsewhere, e.g. Bookmark.resource_kind).
Variants§
Unspecified = 0
Tree = 1
Blob = 2
Symlink = 3
Symlink target path is stored as blob content; the link is not followed.
Gitlink = 4
Submodule pointer (git submodule commit OID).
Spoollink = 5
Native child-spool edge. The entry’s pointer is a spool-id + anchored state-id (both 16-byte ChangeIds), NOT a git commit OID: the link is not a git submodule and cannot round-trip to a 160000 tree entry on git-export. Only native spool operations produce this kind (Spool epic, weft#358).
Implementations§
Source§impl TreeEntryKind
impl TreeEntryKind
Source§impl TreeEntryKind
impl TreeEntryKind
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for TreeEntryKind
impl Clone for TreeEntryKind
Source§fn clone(&self) -> TreeEntryKind
fn clone(&self) -> TreeEntryKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more