pub struct Builder<'a, S> { /* private fields */ }
Expand description
Builder that can create new SigningParams
Implementations§
source§impl<'a, S> Builder<'a, S>
impl<'a, S> Builder<'a, S>
sourcepub fn set_identity(&mut self, identity: Option<&'a Identity>) -> &mut Self
pub fn set_identity(&mut self, identity: Option<&'a Identity>) -> &mut Self
Sets the identity (required)
sourcepub fn set_region(&mut self, region: Option<&'a str>) -> &mut Self
pub fn set_region(&mut self, region: Option<&'a str>) -> &mut Self
Sets the region (required)
sourcepub fn set_time(&mut self, time: Option<SystemTime>) -> &mut Self
pub fn set_time(&mut self, time: Option<SystemTime>) -> &mut Self
Sets the time to be used in the signature (required)
sourcepub fn time(self, time: SystemTime) -> Self
pub fn time(self, time: SystemTime) -> Self
Sets the time to be used in the signature (required)
sourcepub fn set_settings(&mut self, settings: Option<S>) -> &mut Self
pub fn set_settings(&mut self, settings: Option<S>) -> &mut Self
Sets additional signing settings (required)
sourcepub fn build(self) -> Result<SigningParams<'a, S>, BuildError>
pub fn build(self) -> Result<SigningParams<'a, S>, BuildError>
Builds an instance of SigningParams
. Will yield a BuildError
if
a required argument was not given.
Trait Implementations§
Auto Trait Implementations§
impl<'a, S> Freeze for Builder<'a, S>where
S: Freeze,
impl<'a, S> !RefUnwindSafe for Builder<'a, S>
impl<'a, S> Send for Builder<'a, S>where
S: Send,
impl<'a, S> Sync for Builder<'a, S>where
S: Sync,
impl<'a, S> Unpin for Builder<'a, S>where
S: Unpin,
impl<'a, S> !UnwindSafe for Builder<'a, S>
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.