pub struct Line {
pub previous_oid: ObjectId,
pub new_oid: ObjectId,
pub signature: Signature,
pub message: BString,
}
Expand description
A parsed ref log line that can be changed
Fields§
§previous_oid: ObjectId
The previous object id. Can be a null-sha to indicate this is a line for a new ref.
new_oid: ObjectId
The new object id. Can be a null-sha to indicate this ref is being deleted.
signature: Signature
The signature of the currently configured committer.
message: BString
The message providing details about the operation performed in this log line.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Line
impl<'de> Deserialize<'de> for Line
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 Ord for Line
impl Ord for Line
source§impl PartialEq for Line
impl PartialEq for Line
source§impl PartialOrd for Line
impl PartialOrd for Line
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Line
impl StructuralPartialEq for Line
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnwindSafe for Line
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)