pub struct SignedExchangeSignatureBuilder { /* private fields */ }Expand description
Builder for SignedExchangeSignature.
Implementations§
Source§impl SignedExchangeSignatureBuilder
impl SignedExchangeSignatureBuilder
Sourcepub fn label<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn label<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Signed exchange signature label.
Sourcepub fn signature<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn signature<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The hex string of signed exchange signature.
Sourcepub fn integrity<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn integrity<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Signed exchange signature integrity.
Sourcepub fn cert_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn cert_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Signed exchange signature cert Url.
Sourcepub fn cert_sha_256<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn cert_sha_256<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The hex string of signed exchange signature cert sha256.
Sourcepub fn validity_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn validity_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Signed exchange signature validity Url.
Sourcepub fn date<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn date<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Signed exchange signature date.
Sourcepub fn expires<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn expires<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Signed exchange signature expires.
Sourcepub fn certificates<VALUE: Into<Vec<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn certificates<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
The encoded certificates.
Sourcepub fn build(
&self,
) -> Result<SignedExchangeSignature, SignedExchangeSignatureBuilderError>
pub fn build( &self, ) -> Result<SignedExchangeSignature, SignedExchangeSignatureBuilderError>
Trait Implementations§
Source§impl Clone for SignedExchangeSignatureBuilder
impl Clone for SignedExchangeSignatureBuilder
Source§fn clone(&self) -> SignedExchangeSignatureBuilder
fn clone(&self) -> SignedExchangeSignatureBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SignedExchangeSignatureBuilder
impl RefUnwindSafe for SignedExchangeSignatureBuilder
impl Send for SignedExchangeSignatureBuilder
impl Sync for SignedExchangeSignatureBuilder
impl Unpin for SignedExchangeSignatureBuilder
impl UnsafeUnpin for SignedExchangeSignatureBuilder
impl UnwindSafe for SignedExchangeSignatureBuilder
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