pub struct Advertisement {
pub refs: Vec<RemoteRef>,
pub capabilities: Capabilities,
pub hash_kind: Kind,
}Expand description
Everything git-receive-pack says before the client speaks.
Fields§
§refs: Vec<RemoteRef>The remote’s refs. Empty for an empty repository, which the wire
signals with NO_REFS_PSEUDO_REF rather than with no lines at all,
and which is therefore not the same as “the advertisement was empty”.
capabilities: CapabilitiesWhat the remote can do.
hash_kind: KindThe remote’s object format, from object-format= when advertised and
otherwise inferred from the width of the advertised oids.
Implementations§
Trait Implementations§
Source§impl Clone for Advertisement
impl Clone for Advertisement
Source§fn clone(&self) -> Advertisement
fn clone(&self) -> Advertisement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Advertisement
impl Debug for Advertisement
impl Eq for Advertisement
Source§impl PartialEq for Advertisement
impl PartialEq for Advertisement
impl StructuralPartialEq for Advertisement
Auto Trait Implementations§
impl Freeze for Advertisement
impl RefUnwindSafe for Advertisement
impl Send for Advertisement
impl Sync for Advertisement
impl Unpin for Advertisement
impl UnsafeUnpin for Advertisement
impl UnwindSafe for Advertisement
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