pub struct CommitId(/* private fields */);Expand description
A validated git commit object ID.
Accepts full SHA-1 (40 hex characters) or SHA-256 (64 hex characters) strings. Both lowercase and uppercase hex digits are allowed and the input case is preserved.
Abbreviated SHAs are deliberately rejected: this type is intended for pinned-commit use cases where the caller has the full object ID.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CommitId
impl<'de> Deserialize<'de> for CommitId
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 CommitId
impl StructuralPartialEq for CommitId
Auto Trait Implementations§
impl Freeze for CommitId
impl RefUnwindSafe for CommitId
impl Send for CommitId
impl Sync for CommitId
impl Unpin for CommitId
impl UnsafeUnpin for CommitId
impl UnwindSafe for CommitId
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