pub enum TreeEntryTarget {
Blob {
hash: ContentHash,
executable: bool,
},
Tree {
hash: ContentHash,
},
Symlink {
hash: ContentHash,
},
Gitlink {
target: ObjectId,
},
Spoollink {
spool_id: ChangeId,
state_id: ChangeId,
},
}Variants§
Blob
Tree
Fields
§
hash: ContentHashSymlink
Fields
§
hash: ContentHashGitlink
Spoollink
Native pointer to a child spool: a spool-id plus an anchored state-id.
Unlike Self::Gitlink, this is NOT a git object OID and cannot
round-trip to a git submodule; git-boundary code must handle it
explicitly (skip on export). The Spool children facet consumes this in
a later phase.
Implementations§
Source§impl TreeEntryTarget
impl TreeEntryTarget
pub fn entry_type(&self) -> EntryType
pub fn mode(&self) -> FileMode
pub fn content_hash(&self) -> Option<ContentHash>
pub fn gitlink_target(&self) -> Option<GitObjectId>
Sourcepub fn spoollink_target(&self) -> Option<(ChangeId, ChangeId)>
pub fn spoollink_target(&self) -> Option<(ChangeId, ChangeId)>
The child-spool pointer (spool_id, state_id) for a spoollink entry,
or None for any other kind.
Trait Implementations§
Source§impl Clone for TreeEntryTarget
impl Clone for TreeEntryTarget
Source§fn clone(&self) -> TreeEntryTarget
fn clone(&self) -> TreeEntryTarget
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 TreeEntryTarget
impl Debug for TreeEntryTarget
impl Eq for TreeEntryTarget
Source§impl PartialEq for TreeEntryTarget
impl PartialEq for TreeEntryTarget
Source§fn eq(&self, other: &TreeEntryTarget) -> bool
fn eq(&self, other: &TreeEntryTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TreeEntryTarget
Auto Trait Implementations§
impl Freeze for TreeEntryTarget
impl RefUnwindSafe for TreeEntryTarget
impl Send for TreeEntryTarget
impl Sync for TreeEntryTarget
impl Unpin for TreeEntryTarget
impl UnsafeUnpin for TreeEntryTarget
impl UnwindSafe for TreeEntryTarget
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