Struct relay_auth::SignatureHeader
source · pub struct SignatureHeader {
pub timestamp: Option<DateTime<Utc>>,
}
Expand description
A wrapper around packed data that adds a timestamp.
This is internally automatically used when data is signed.
Fields§
§timestamp: Option<DateTime<Utc>>
The timestamp of when the data was packed and signed.
Implementations§
Trait Implementations§
source§impl Debug for SignatureHeader
impl Debug for SignatureHeader
source§impl Default for SignatureHeader
impl Default for SignatureHeader
source§fn default() -> SignatureHeader
fn default() -> SignatureHeader
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SignatureHeader
impl<'de> Deserialize<'de> for SignatureHeader
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
Auto Trait Implementations§
impl Freeze for SignatureHeader
impl RefUnwindSafe for SignatureHeader
impl Send for SignatureHeader
impl Sync for SignatureHeader
impl Unpin for SignatureHeader
impl UnwindSafe for SignatureHeader
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