pub struct AdditionalEntry {
pub id: ObjectId,
pub mode: EntryMode,
pub relative_path: BString,
pub source: Source,
}
Expand description
An entry that is added to the stream by the user, verbatim, without additional worktree conversions.
It may overwrite previously written paths, which may or may not work for the consumer of the stream.
Fields§
§id: ObjectId
The hash of the object, uniquely identifying it.
Note that it can be null()
as the hash is typically ignored by consumers of the stream.
mode: EntryMode
The kind of entry to create.
relative_path: BString
The path relative to the repository at which content should be located.
source: Source
Where to get the content of the entry from.
Auto Trait Implementations§
impl Freeze for AdditionalEntry
impl RefUnwindSafe for AdditionalEntry
impl Send for AdditionalEntry
impl Sync for AdditionalEntry
impl Unpin for AdditionalEntry
impl UnwindSafe for AdditionalEntry
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