pub struct ImportRefIdentity {
pub raw_name: Vec<u8>,
pub raw_target: GitRefTarget,
pub peeled_commit: Option<GitObjectId>,
}Expand description
A Git ref with its direct target. peeled_commit is present only when
this ref resolves to a commit.
Fields§
§raw_name: Vec<u8>§raw_target: GitRefTarget§peeled_commit: Option<GitObjectId>Implementations§
Source§impl ImportRefIdentity
impl ImportRefIdentity
pub fn direct_oid(&self) -> Option<&GitObjectId>
Trait Implementations§
Source§impl Clone for ImportRefIdentity
impl Clone for ImportRefIdentity
Source§fn clone(&self) -> ImportRefIdentity
fn clone(&self) -> ImportRefIdentity
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 ImportRefIdentity
impl Debug for ImportRefIdentity
Source§impl<'de> Deserialize<'de> for ImportRefIdentity
impl<'de> Deserialize<'de> for ImportRefIdentity
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ImportRefIdentity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ImportRefIdentity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ImportRefIdentity
Source§impl PartialEq for ImportRefIdentity
impl PartialEq for ImportRefIdentity
Source§impl Serialize for ImportRefIdentity
impl Serialize for ImportRefIdentity
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ImportRefIdentity
Auto Trait Implementations§
impl Freeze for ImportRefIdentity
impl RefUnwindSafe for ImportRefIdentity
impl Send for ImportRefIdentity
impl Sync for ImportRefIdentity
impl Unpin for ImportRefIdentity
impl UnsafeUnpin for ImportRefIdentity
impl UnwindSafe for ImportRefIdentity
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