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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.