pub enum Token<'a> {
Target {
id: ObjectId,
},
TargetKind(Kind),
Name(&'a BStr),
Tagger(Option<SignatureRef<'a>>),
Body {
message: &'a BStr,
pgp_signature: Option<&'a BStr>,
},
}
Expand description
A token returned by the tag iterator.
Variants
Target
Fields
id: ObjectId
TargetKind(Kind)
Name(&'a BStr)
Tagger(Option<SignatureRef<'a>>)
Body
Implementations
Trait Implementations
sourceimpl<'a> Ord for Token<'a>
impl<'a> Ord for Token<'a>
sourceimpl<'a> PartialOrd<Token<'a>> for Token<'a>
impl<'a> PartialOrd<Token<'a>> for Token<'a>
sourcefn partial_cmp(&self, other: &Token<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &Token<'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
impl<'a> Eq for Token<'a>
impl<'a> StructuralEq for Token<'a>
impl<'a> StructuralPartialEq for Token<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Token<'a>
impl<'a> Send for Token<'a>
impl<'a> Sync for Token<'a>
impl<'a> Unpin for Token<'a>
impl<'a> UnwindSafe for Token<'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