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§impl<'a> PartialOrd for TrailerRef<'a>
impl<'a> PartialOrd for TrailerRef<'a>
Source§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