pub struct LineRef<'a> {
pub previous_oid: &'a BStr,
pub new_oid: &'a BStr,
pub signature: SignatureRef<'a>,
pub message: &'a BStr,
}
Expand description
A parsed ref log line.
Fields§
§previous_oid: &'a BStr
The previous object id in hexadecimal. Use LineRef::previous_oid()
to get a more usable form.
new_oid: &'a BStr
The new object id in hexadecimal. Use LineRef::new_oid()
to get a more usable form.
signature: SignatureRef<'a>
The signature of the currently configured committer.
message: &'a BStr
The message providing details about the operation performed in this log line.
Implementations§
Source§impl<'a> LineRef<'a>
impl<'a> LineRef<'a>
Sourcepub fn from_bytes(input: &'a [u8]) -> Result<LineRef<'a>, Error>
pub fn from_bytes(input: &'a [u8]) -> Result<LineRef<'a>, Error>
Decode a line from the given bytes which are expected to start at a hex sha.
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for LineRef<'a>
impl<'de: 'a, 'a> Deserialize<'de> for LineRef<'a>
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
Source§impl<'a> Ord for LineRef<'a>
impl<'a> Ord for LineRef<'a>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialOrd for LineRef<'a>
impl<'a> PartialOrd for LineRef<'a>
impl<'a> Copy for LineRef<'a>
impl<'a> Eq for LineRef<'a>
impl<'a> StructuralPartialEq for LineRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for LineRef<'a>
impl<'a> RefUnwindSafe for LineRef<'a>
impl<'a> Send for LineRef<'a>
impl<'a> Sync for LineRef<'a>
impl<'a> Unpin for LineRef<'a>
impl<'a> UnwindSafe for LineRef<'a>
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