pub struct Signature {
pub name: BString,
pub email: BString,
pub time: Time,
}Expand description
A mutable signature that is created by an actor at a certain time.
Note that this is not a cryptographical signature.
Fields§
§name: BStringThe actors name, potentially with whitespace as parsed.
Use SignatureRef::trim() or trim manually to be able to clean it up.
email: BStringThe actor’s email, potentially with whitespace and garbage as parsed.
Use SignatureRef::trim() or trim manually to be able to clean it up.
time: TimeThe time stamp at which the signature is performed.
Implementations§
Source§impl Signature
impl Signature
Sourcepub fn to_ref<'a>(&'a self, time_buf: &'a mut TimeBuf) -> SignatureRef<'a>
pub fn to_ref<'a>(&'a self, time_buf: &'a mut TimeBuf) -> SignatureRef<'a>
Borrow this instance as immutable, serializing the time field into buf.
Commonly used as signature.to_ref(&mut TimeBuf::default()).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Signature
impl<'de> Deserialize<'de> for Signature
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 From<SignatureRef<'_>> for Signature
Note that this conversion is lossy due to the lenient parsing of the time field.
impl From<SignatureRef<'_>> for Signature
Note that this conversion is lossy due to the lenient parsing of the time field.
Source§fn from(other: SignatureRef<'_>) -> Signature
fn from(other: SignatureRef<'_>) -> Signature
Converts to this type from the input type.
Source§impl Ord for Signature
impl Ord for Signature
Source§impl PartialOrd for Signature
impl PartialOrd for Signature
impl Eq for Signature
impl StructuralPartialEq for Signature
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnwindSafe for Signature
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