pub enum TreeEntry {
File {
executable: bool,
kind: Kind,
revision: Option<RevisionId>,
size: u64,
},
Directory {
revision: Option<RevisionId>,
},
Symlink {
revision: Option<RevisionId>,
symlink_target: String,
},
TreeReference {
revision: Option<RevisionId>,
reference_revision: RevisionId,
},
}Expand description
A tree entry, representing different types of objects in a tree.
Variants§
File
A regular file entry.
Fields
§
revision: Option<RevisionId>The revision ID that introduced this file, if known.
Directory
A directory entry.
Fields
§
revision: Option<RevisionId>The revision ID that introduced this directory, if known.
Symlink
A symbolic link entry.
Fields
§
revision: Option<RevisionId>The revision ID that introduced this symlink, if known.
TreeReference
A reference to another tree.
Fields
§
revision: Option<RevisionId>The revision ID that introduced this reference, if known.
§
reference_revision: RevisionIdThe revision ID this reference points to.
Trait Implementations§
Source§impl<'a, 'py> FromPyObject<'a, 'py> for TreeEntry
impl<'a, 'py> FromPyObject<'a, 'py> for TreeEntry
Auto Trait Implementations§
impl Freeze for TreeEntry
impl RefUnwindSafe for TreeEntry
impl Send for TreeEntry
impl Sync for TreeEntry
impl Unpin for TreeEntry
impl UnwindSafe for TreeEntry
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
Source§impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
Source§fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
Converts
self into an owned Python object, dropping type information.