pub struct UnpackOptions {
pub dry_run: bool,
pub quiet: bool,
pub strict: bool,
pub max_input_bytes: Option<u64>,
}Expand description
Options controlling unpack-objects behaviour.
Fields§
§dry_run: boolValidate and decompress objects but do not write them to the ODB.
quiet: boolSuppress informational output.
strict: boolReject packs whose commits/trees/tags reference missing objects.
max_input_bytes: Option<u64>Maximum number of raw pack bytes that may be consumed (including the 20-byte trailer).
Matches Git’s unpack-objects --max-input-size / receive.maxInputSize: counts every
byte read from the pack stream after crossing the limit. None means no limit.
Trait Implementations§
Source§impl Debug for UnpackOptions
impl Debug for UnpackOptions
Source§impl Default for UnpackOptions
impl Default for UnpackOptions
Source§fn default() -> UnpackOptions
fn default() -> UnpackOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UnpackOptions
impl RefUnwindSafe for UnpackOptions
impl Send for UnpackOptions
impl Sync for UnpackOptions
impl Unpin for UnpackOptions
impl UnsafeUnpin for UnpackOptions
impl UnwindSafe for UnpackOptions
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