pub struct Options {
pub format: Format,
pub tree_prefix: Option<BString>,
pub modification_time: SecondsSinceUnixEpoch,
}
Expand description
Options for configuring write_stream()
.
Fields§
§format: Format
The archive’s format.
tree_prefix: Option<BString>
Given a path
, originating in the git tree, to place into the archive, put <prefix>/path
in front of it.
Note that that /
should be used as separator, and that a prefix directory has to end with /
.
modification_time: SecondsSinceUnixEpoch
The modification time for all entries in the archive as seen since UNIX epoch.
Defaults to the current time. The caller may set this to the commit time if available.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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