pub struct SignatureHeader {
pub timestamp: Option<DateTime<Utc>>,
pub signature_algorithm: Option<SignatureAlgorithm>,
}
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.
signature_algorithm: Option<SignatureAlgorithm>
Represents how this signature was created and how it needs to be verified.
Defaults to SignatureAlgorithm::Regular
because that was used before the introduction
of this field.
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