pub struct AdvertisedRef {
pub name: String,
pub target: Option<ObjectId>,
pub peeled: Option<ObjectId>,
pub symref_target: Option<String>,
}Expand description
One reference as it goes out in an advertisement.
Fields§
§name: StringFull reference name.
String, not the FullName newtype that died with RefStore: the
contract speaks RefRow::name: String and minting a second validated
name type in gunnar is the duplication the demolition removes. What the
newtype carried by construction is now a rule about the producer —
see receive_pack::parse_command, which is where a client-supplied name
is validated before it can reach a store.
target: Option<ObjectId>What it resolves to, or None for an unborn HEAD.
peeled: Option<ObjectId>The commit an annotated tag points at, when peeling was asked for.
symref_target: Option<String>The reference a symbolic reference points at.
Trait Implementations§
Source§impl Clone for AdvertisedRef
impl Clone for AdvertisedRef
Source§impl Debug for AdvertisedRef
impl Debug for AdvertisedRef
impl Eq for AdvertisedRef
Source§impl PartialEq for AdvertisedRef
impl PartialEq for AdvertisedRef
impl StructuralPartialEq for AdvertisedRef
Auto Trait Implementations§
impl Freeze for AdvertisedRef
impl RefUnwindSafe for AdvertisedRef
impl Send for AdvertisedRef
impl Sync for AdvertisedRef
impl Unpin for AdvertisedRef
impl UnsafeUnpin for AdvertisedRef
impl UnwindSafe for AdvertisedRef
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