Struct git_object::commit::message::body::TrailerRef
source · [−]Expand description
A trailer as parsed from the commit message body.
Fields
token: &'a BStr
The name of the trailer, like “Signed-off-by”, up to the separator “: “
value: &'a BStr
The value right after the separator “: “, with leading and trailing whitespace trimmed. Note that multi-line values aren’t currently supported.
Trait Implementations
sourceimpl<'a> Clone for TrailerRef<'a>
impl<'a> Clone for TrailerRef<'a>
sourcefn clone(&self) -> TrailerRef<'a>
fn clone(&self) -> TrailerRef<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for TrailerRef<'a>
impl<'a> Debug for TrailerRef<'a>
sourceimpl<'de: 'a, 'a> Deserialize<'de> for TrailerRef<'a>
impl<'de: 'a, 'a> Deserialize<'de> for TrailerRef<'a>
sourcefn 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
sourceimpl<'a> Hash for TrailerRef<'a>
impl<'a> Hash for TrailerRef<'a>
sourceimpl<'a> Ord for TrailerRef<'a>
impl<'a> Ord for TrailerRef<'a>
sourcefn cmp(&self, other: &TrailerRef<'a>) -> Ordering
fn cmp(&self, other: &TrailerRef<'a>) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<'a> PartialEq<TrailerRef<'a>> for TrailerRef<'a>
impl<'a> PartialEq<TrailerRef<'a>> for TrailerRef<'a>
sourcefn eq(&self, other: &TrailerRef<'a>) -> bool
fn eq(&self, other: &TrailerRef<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TrailerRef<'a>) -> bool
fn ne(&self, other: &TrailerRef<'a>) -> bool
This method tests for !=
.
sourceimpl<'a> PartialOrd<TrailerRef<'a>> for TrailerRef<'a>
impl<'a> PartialOrd<TrailerRef<'a>> for TrailerRef<'a>
sourcefn partial_cmp(&self, other: &TrailerRef<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &TrailerRef<'a>) -> 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
sourceimpl<'a> Serialize for TrailerRef<'a>
impl<'a> Serialize for TrailerRef<'a>
impl<'a> Copy for TrailerRef<'a>
impl<'a> Eq for TrailerRef<'a>
impl<'a> StructuralEq for TrailerRef<'a>
impl<'a> StructuralPartialEq for TrailerRef<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for TrailerRef<'a>
impl<'a> Send for TrailerRef<'a>
impl<'a> Sync for TrailerRef<'a>
impl<'a> Unpin for TrailerRef<'a>
impl<'a> UnwindSafe for TrailerRef<'a>
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