pub struct PushPackRequest<'a> {
pub local_db: &'a FileObjectDatabase,
pub format: ObjectFormat,
pub commands: &'a [ReceivePackCommand],
pub pack_objects: &'a [ObjectId],
pub remote_advertisements: &'a [RefAdvertisement],
pub features: &'a ReceivePackFeatures,
pub options: ReceivePackPushRequestOptions,
pub thin: bool,
}Expand description
Inputs for building a push packfile or full receive-pack request body.
Fields§
§local_db: &'a FileObjectDatabaseLocal object database supplying objects to pack.
format: ObjectFormatObject format of PushPackRequest::local_db.
commands: &'a [ReceivePackCommand]Planned receive-pack ref updates (only non-null new_id roots are packed).
pack_objects: &'a [ObjectId]Optional explicit pack roots supplied by an embedder-authored push plan.
When empty, non-null command new_ids are used.
remote_advertisements: &'a [RefAdvertisement]Remote ref advertisements used to exclude objects the remote already has.
features: &'a ReceivePackFeaturesNegotiated receive-pack features (honours ReceivePackFeatures::no_thin).
options: ReceivePackPushRequestOptionsReceive-pack request options (capabilities, push-options, etc.).
thin: boolWhen true, omit delta bases the remote is assumed to already have.
Auto Trait Implementations§
impl<'a> Freeze for PushPackRequest<'a>
impl<'a> RefUnwindSafe for PushPackRequest<'a>
impl<'a> Send for PushPackRequest<'a>
impl<'a> Sync for PushPackRequest<'a>
impl<'a> Unpin for PushPackRequest<'a>
impl<'a> UnsafeUnpin for PushPackRequest<'a>
impl<'a> UnwindSafe for PushPackRequest<'a>
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