pub struct PushCapabilities {
pub report_status: bool,
pub report_status_v2: bool,
pub delete_refs: bool,
pub side_band_64k: bool,
pub atomic: bool,
pub ofs_delta: bool,
pub push_options: bool,
pub quiet: bool,
pub agent: Option<String>,
}Expand description
The client’s capability selection (ADR-013 §2, the parse side of the served set): every bool is the corresponding cap having been selected on the request’s first command line (NUL-attached caps).
quiet— accepted, honored by omission (we never send progress; upstream clients select it habitually, push-captures.md §quiet semantics). Not advertised.agent— recorded, uninterpreted.push_options— the client selectedpush-options(only possible when the gate advertised it; v1: off, so selecting it fails closed).- The object-format check is validated at parse time against the pinned advertisement list (ADR-013 pins the push-side check to the fetch rule) and is not recorded here.
Fields§
§report_status: boolreport-status — the per-ref status report is wanted.
report_status_v2: boolreport-status-v2 — the v2 report shape (identical for plain
pushes: option lines exist only when the server emits them,
ADR-013 §2).
delete_refs: booldelete-refs — deletes are in scope (v1 allows deletes
unconditionally, ADR-013 §7).
side_band_64k: boolside-band-64k — the report rides band-1 sideband chunks
(ADR-013 §8).
atomic: boolatomic — the one-transaction CAS home makes atomic push
correct (ADR-013 §10).
ofs_delta: boolofs-delta — accepted, honored by omission (the server never
sends a report leg that depends on it).
push_options: boolpush-options — the client selected the negotiated cap
(v1: the gate is off, fail closed).
quiet: boolquiet — accepted, honored by omission.
agent: Option<String>agent=<value> — recorded, uninterpreted.
Trait Implementations§
Source§impl Clone for PushCapabilities
impl Clone for PushCapabilities
Source§impl Debug for PushCapabilities
impl Debug for PushCapabilities
Source§impl Default for PushCapabilities
impl Default for PushCapabilities
impl Eq for PushCapabilities
Source§impl PartialEq for PushCapabilities
impl PartialEq for PushCapabilities
impl StructuralPartialEq for PushCapabilities
Auto Trait Implementations§
impl Freeze for PushCapabilities
impl RefUnwindSafe for PushCapabilities
impl Send for PushCapabilities
impl Sync for PushCapabilities
impl Unpin for PushCapabilities
impl UnsafeUnpin for PushCapabilities
impl UnwindSafe for PushCapabilities
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.