pub struct Entry {
    pub mode: EntryMode,
    pub filepath: BString,
    pub oid: ObjectId,
}
Expand description

An owned entry as observed by a call to visit_(tree|nontree)(…), enhanced with the full path to it. Otherwise similar to git_object::tree::EntryRef.

Fields

mode: EntryMode

The kind of entry, similar to entries in a unix directory tree.

filepath: BString

The full path to the entry. A root entry would be d, and a file a within the directory would be d/a.

This is independent of the platform and the path separators actually used there.

oid: ObjectId

The id of the entry which can be used to locate it in an object database.

Trait Implementations

source

impl Clone for Entry

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

source

impl Debug for Entry

Formats the value using the given formatter. Read more

source

impl PartialEq<Entry> for Entry

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

source

impl Eq for Entry

source

impl StructuralEq for Entry

source

impl StructuralPartialEq for Entry

Auto Trait Implementations

impl RefUnwindSafe for Entry

impl Send for Entry

impl Sync for Entry

impl Unpin for Entry

impl UnwindSafe for Entry

Blanket Implementations

source

impl<T> Any for T where
    T: 'static + ?Sized

Gets the TypeId of self. Read more

source

impl<T> Borrow<T> for T where
    T: ?Sized

Immutably borrows from an owned value. Read more

source

impl<T> BorrowMut<T> for T where
    T: ?Sized

Mutably borrows from an owned value. Read more

source

impl<T> From<T> for T

Returns the argument unchanged.

source

impl<T, U> Into<U> for T where
    U: From<T>, 

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source

impl<T> ToOwned for T where
    T: Clone

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

source

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

The type returned in the event of a conversion error.

Performs the conversion.

source

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

The type returned in the event of a conversion error.

Performs the conversion.