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 moresourceimpl<'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>
sourcefn cmp(&self, other: &SignatureRef<'a>) -> Ordering
fn cmp(&self, other: &SignatureRef<'a>) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
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
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>
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 moresourceimpl<'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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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