Skip to main content

PushPackRequest

Struct PushPackRequest 

Source
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 FileObjectDatabase

Local object database supplying objects to pack.

§format: ObjectFormat

Object 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 ReceivePackFeatures

Negotiated receive-pack features (honours ReceivePackFeatures::no_thin).

§options: ReceivePackPushRequestOptions

Receive-pack request options (capabilities, push-options, etc.).

§thin: bool

When 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.