pub struct RefJson {
pub name: Option<String>,
pub sha: Option<String>,
}Fields§
§name: Option<String>Name is the short ref name ("main", "v1.2.0"), not the full refs/… path.
sha: Option<String>SHA is the full commit hash the ref resolves to.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RefJson
impl<'de> Deserialize<'de> for RefJson
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 StructuralPartialEq for RefJson
Auto Trait Implementations§
impl Freeze for RefJson
impl RefUnwindSafe for RefJson
impl Send for RefJson
impl Sync for RefJson
impl Unpin for RefJson
impl UnsafeUnpin for RefJson
impl UnwindSafe for RefJson
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