Struct git_actor::SignatureRef
source · [−]Expand description
A immutable signature is created by an actor at a certain time.
Note that this is not a cryptographical signature.
Fields
name: &'a BStr
The actor’s name.
email: &'a BStr
The actor’s email.
time: Time
The time stamp at which the signature was performed.
Implementations
sourceimpl<'a> SignatureRef<'a>
impl<'a> SignatureRef<'a>
sourcepub fn from_bytes<E>(data: &'a [u8]) -> Result<SignatureRef<'a>, Err<E>> where
E: ParseError<&'a [u8]> + ContextError<&'a [u8]>,
pub fn from_bytes<E>(data: &'a [u8]) -> Result<SignatureRef<'a>, Err<E>> where
E: ParseError<&'a [u8]> + ContextError<&'a [u8]>,
Deserialize a signature from the given data
.
sourcepub fn trim(&self) -> SignatureRef<'a>
pub fn trim(&self) -> SignatureRef<'a>
Trim whitespace surrounding the name and email and return a new signature.
Trait Implementations
sourceimpl<'a> Clone for SignatureRef<'a>
impl<'a> Clone for SignatureRef<'a>
sourcefn clone(&self) -> SignatureRef<'a>
fn clone(&self) -> SignatureRef<'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 SignatureRef<'a>
impl<'a> Debug for SignatureRef<'a>
sourceimpl<'a> Default for SignatureRef<'a>
impl<'a> Default for SignatureRef<'a>
sourcefn default() -> SignatureRef<'a>
fn default() -> SignatureRef<'a>
Returns the “default value” for a type. Read more
sourceimpl<'de: 'a, 'a> Deserialize<'de> for SignatureRef<'a>
impl<'de: 'a, 'a> Deserialize<'de> for SignatureRef<'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 From<SignatureRef<'_>> for Signature
impl From<SignatureRef<'_>> for Signature
sourcefn from(other: SignatureRef<'_>) -> Signature
fn from(other: SignatureRef<'_>) -> Signature
Converts to this type from the input type.
sourceimpl<'a> Hash for SignatureRef<'a>
impl<'a> Hash for SignatureRef<'a>
sourceimpl<'a> Ord for SignatureRef<'a>
impl<'a> Ord for SignatureRef<'a>
sourceimpl<'a> PartialEq<SignatureRef<'a>> for SignatureRef<'a>
impl<'a> PartialEq<SignatureRef<'a>> for SignatureRef<'a>
sourcefn eq(&self, other: &SignatureRef<'a>) -> bool
fn eq(&self, other: &SignatureRef<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SignatureRef<'a>) -> bool
fn ne(&self, other: &SignatureRef<'a>) -> bool
This method tests for !=
.
sourceimpl<'a> PartialOrd<SignatureRef<'a>> for SignatureRef<'a>
impl<'a> PartialOrd<SignatureRef<'a>> for SignatureRef<'a>
sourcefn partial_cmp(&self, other: &SignatureRef<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &SignatureRef<'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 SignatureRef<'a>
impl<'a> Serialize for SignatureRef<'a>
impl<'a> Copy for SignatureRef<'a>
impl<'a> Eq for SignatureRef<'a>
impl<'a> StructuralEq for SignatureRef<'a>
impl<'a> StructuralPartialEq for SignatureRef<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for SignatureRef<'a>
impl<'a> Send for SignatureRef<'a>
impl<'a> Sync for SignatureRef<'a>
impl<'a> Unpin for SignatureRef<'a>
impl<'a> UnwindSafe for SignatureRef<'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