pub struct SignedExchangeSignature<'a> { /* private fields */ }Expand description
Information about a signed exchange signature. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1
Implementations§
Source§impl<'a> SignedExchangeSignature<'a>
impl<'a> SignedExchangeSignature<'a>
Sourcepub fn builder(
label: impl Into<Cow<'a, str>>,
signature: impl Into<Cow<'a, str>>,
integrity: impl Into<Cow<'a, str>>,
validity_url: impl Into<Cow<'a, str>>,
date: i64,
expires: i64,
) -> SignedExchangeSignatureBuilder<'a>
pub fn builder( label: impl Into<Cow<'a, str>>, signature: impl Into<Cow<'a, str>>, integrity: impl Into<Cow<'a, str>>, validity_url: impl Into<Cow<'a, str>>, date: i64, expires: i64, ) -> SignedExchangeSignatureBuilder<'a>
Creates a builder for this type with the required parameters:
label: Signed exchange signature label.signature: The hex string of signed exchange signature.integrity: Signed exchange signature integrity.validity_url: Signed exchange signature validity Url.date: Signed exchange signature date.expires: Signed exchange signature expires.
Sourcepub fn cert_sha256(&self) -> Option<&str>
pub fn cert_sha256(&self) -> Option<&str>
The hex string of signed exchange signature cert sha256.
Sourcepub fn validity_url(&self) -> &str
pub fn validity_url(&self) -> &str
Signed exchange signature validity Url.
Sourcepub fn certificates(&self) -> Option<&[Cow<'a, str>]>
pub fn certificates(&self) -> Option<&[Cow<'a, str>]>
The encoded certificates.
Trait Implementations§
Source§impl<'a> Clone for SignedExchangeSignature<'a>
impl<'a> Clone for SignedExchangeSignature<'a>
Source§fn clone(&self) -> SignedExchangeSignature<'a>
fn clone(&self) -> SignedExchangeSignature<'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 SignedExchangeSignature<'a>
impl<'a> Debug for SignedExchangeSignature<'a>
Source§impl<'a> Default for SignedExchangeSignature<'a>
impl<'a> Default for SignedExchangeSignature<'a>
Source§fn default() -> SignedExchangeSignature<'a>
fn default() -> SignedExchangeSignature<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for SignedExchangeSignature<'a>
impl<'de, 'a> Deserialize<'de> for SignedExchangeSignature<'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 SignedExchangeSignature<'a>
impl<'a> RefUnwindSafe for SignedExchangeSignature<'a>
impl<'a> Send for SignedExchangeSignature<'a>
impl<'a> Sync for SignedExchangeSignature<'a>
impl<'a> Unpin for SignedExchangeSignature<'a>
impl<'a> UnsafeUnpin for SignedExchangeSignature<'a>
impl<'a> UnwindSafe for SignedExchangeSignature<'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