pub struct MetadataEntry {
pub path: String,
pub content: Option<Vec<u8>>,
pub oid: Oid,
pub is_tree: bool,
}Expand description
A single entry in a metadata tree: a path and optional blob content.
Fields§
§path: StringPath relative to the metadata tree root (e.g. labels/bug).
content: Option<Vec<u8>>Blob content, if the entry is a blob. None for tree-only entries.
oid: OidThe OID of the entry (blob or tree).
is_tree: boolWhether this entry is a tree (directory) rather than a blob.
Trait Implementations§
Source§impl Clone for MetadataEntry
impl Clone for MetadataEntry
Source§fn clone(&self) -> MetadataEntry
fn clone(&self) -> MetadataEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 MetadataEntry
impl Debug for MetadataEntry
Source§impl PartialEq for MetadataEntry
impl PartialEq for MetadataEntry
impl Eq for MetadataEntry
impl StructuralPartialEq for MetadataEntry
Auto Trait Implementations§
impl Freeze for MetadataEntry
impl RefUnwindSafe for MetadataEntry
impl Send for MetadataEntry
impl Sync for MetadataEntry
impl Unpin for MetadataEntry
impl UnsafeUnpin for MetadataEntry
impl UnwindSafe for MetadataEntry
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