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
sourceimpl Ord for Line
impl Ord for Line
sourceimpl PartialOrd<Line> for Line
impl PartialOrd<Line> for Line
sourcefn partial_cmp(&self, other: &Line) -> Option<Ordering>
fn partial_cmp(&self, other: &Line) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl Eq for Line
impl StructuralEq for Line
impl StructuralPartialEq for Line
Auto Trait Implementations
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnwindSafe for Line
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more