Struct gix_object::commit::message::body::TrailerRef
source · pub struct TrailerRef<'a> {
pub token: &'a BStr,
pub value: &'a BStr,
}
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§
source§impl<'a> Clone for TrailerRef<'a>
impl<'a> Clone for TrailerRef<'a>
source§fn clone(&self) -> TrailerRef<'a>
fn clone(&self) -> TrailerRef<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for TrailerRef<'a>
impl<'a> Debug for TrailerRef<'a>
source§impl<'de: 'a, 'a> Deserialize<'de> for TrailerRef<'a>
impl<'de: 'a, 'a> Deserialize<'de> for TrailerRef<'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> Hash for TrailerRef<'a>
impl<'a> Hash for TrailerRef<'a>
source§impl<'a> Ord for TrailerRef<'a>
impl<'a> Ord for TrailerRef<'a>
source§fn cmp(&self, other: &TrailerRef<'a>) -> Ordering
fn cmp(&self, other: &TrailerRef<'a>) -> Ordering
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> PartialEq for TrailerRef<'a>
impl<'a> PartialEq for TrailerRef<'a>
source§fn 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 ==
.source§impl<'a> PartialOrd for TrailerRef<'a>
impl<'a> PartialOrd for TrailerRef<'a>
source§fn partial_cmp(&self, other: &TrailerRef<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &TrailerRef<'a>) -> Option<Ordering>
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 moresource§impl<'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> StructuralPartialEq for TrailerRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for TrailerRef<'a>
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§
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
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)