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§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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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
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