pub struct SignedCertificateTimestamp<'a> { /* private fields */ }Expand description
Details of a signed certificate timestamp (SCT).
Implementations§
Source§impl<'a> SignedCertificateTimestamp<'a>
impl<'a> SignedCertificateTimestamp<'a>
Sourcepub fn builder(
status: impl Into<Cow<'a, str>>,
origin: impl Into<Cow<'a, str>>,
log_description: impl Into<Cow<'a, str>>,
log_id: impl Into<Cow<'a, str>>,
timestamp: f64,
hash_algorithm: impl Into<Cow<'a, str>>,
signature_algorithm: impl Into<Cow<'a, str>>,
signature_data: impl Into<Cow<'a, str>>,
) -> SignedCertificateTimestampBuilder<'a>
pub fn builder( status: impl Into<Cow<'a, str>>, origin: impl Into<Cow<'a, str>>, log_description: impl Into<Cow<'a, str>>, log_id: impl Into<Cow<'a, str>>, timestamp: f64, hash_algorithm: impl Into<Cow<'a, str>>, signature_algorithm: impl Into<Cow<'a, str>>, signature_data: impl Into<Cow<'a, str>>, ) -> SignedCertificateTimestampBuilder<'a>
Creates a builder for this type with the required parameters:
status: Validation status.origin: Origin.log_description: Log name / description.log_id: Log ID.timestamp: Issuance date. Unlike TimeSinceEpoch, this contains the number of milliseconds since January 1, 1970, UTC, not the number of seconds.hash_algorithm: Hash algorithm.signature_algorithm: Signature algorithm.signature_data: Signature data.
Sourcepub fn log_description(&self) -> &str
pub fn log_description(&self) -> &str
Log name / description.
Sourcepub fn timestamp(&self) -> f64
pub fn timestamp(&self) -> f64
Issuance date. Unlike TimeSinceEpoch, this contains the number of milliseconds since January 1, 1970, UTC, not the number of seconds.
Sourcepub fn hash_algorithm(&self) -> &str
pub fn hash_algorithm(&self) -> &str
Hash algorithm.
Sourcepub fn signature_algorithm(&self) -> &str
pub fn signature_algorithm(&self) -> &str
Signature algorithm.
Sourcepub fn signature_data(&self) -> &str
pub fn signature_data(&self) -> &str
Signature data.
Trait Implementations§
Source§impl<'a> Clone for SignedCertificateTimestamp<'a>
impl<'a> Clone for SignedCertificateTimestamp<'a>
Source§fn clone(&self) -> SignedCertificateTimestamp<'a>
fn clone(&self) -> SignedCertificateTimestamp<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for SignedCertificateTimestamp<'a>
impl<'a> Debug for SignedCertificateTimestamp<'a>
Source§impl<'a> Default for SignedCertificateTimestamp<'a>
impl<'a> Default for SignedCertificateTimestamp<'a>
Source§fn default() -> SignedCertificateTimestamp<'a>
fn default() -> SignedCertificateTimestamp<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for SignedCertificateTimestamp<'a>
impl<'de, 'a> Deserialize<'de> for SignedCertificateTimestamp<'a>
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<'a> Freeze for SignedCertificateTimestamp<'a>
impl<'a> RefUnwindSafe for SignedCertificateTimestamp<'a>
impl<'a> Send for SignedCertificateTimestamp<'a>
impl<'a> Sync for SignedCertificateTimestamp<'a>
impl<'a> Unpin for SignedCertificateTimestamp<'a>
impl<'a> UnsafeUnpin for SignedCertificateTimestamp<'a>
impl<'a> UnwindSafe for SignedCertificateTimestamp<'a>
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