pub struct RefInfo {
pub name: String,
pub sha: String,
}Expand description
A named ref pinned to the commit it resolved to at build time.
Fields§
§name: StringWhat the user asked for: branch, tag, or SHA — kept verbatim so pages and exports show the name the reviewer thinks in.
sha: StringThe full commit SHA the name resolved to; pins the document to an exact state even if the ref later moves.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RefInfo
impl<'de> Deserialize<'de> for RefInfo
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 RefInfo
impl StructuralPartialEq for RefInfo
Auto Trait Implementations§
impl Freeze for RefInfo
impl RefUnwindSafe for RefInfo
impl Send for RefInfo
impl Sync for RefInfo
impl Unpin for RefInfo
impl UnsafeUnpin for RefInfo
impl UnwindSafe for RefInfo
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