pub struct Signer<K: SigningCredential> { /* private fields */ }Expand description
Signer is the main struct used to sign the request.
Implementations§
Source§impl<K: SigningCredential> Signer<K>
impl<K: SigningCredential> Signer<K>
Sourcepub fn new(
ctx: Context,
loader: impl ProvideCredential<Credential = K>,
builder: impl SignRequest<Credential = K>,
) -> Self
pub fn new( ctx: Context, loader: impl ProvideCredential<Credential = K>, builder: impl SignRequest<Credential = K>, ) -> Self
Create a new signer.
Sourcepub fn with_context(self, ctx: Context) -> Self
pub fn with_context(self, ctx: Context) -> Self
Replace the context while keeping credential provider and request signer.
Sourcepub fn with_credential_provider(
self,
provider: impl ProvideCredential<Credential = K>,
) -> Self
pub fn with_credential_provider( self, provider: impl ProvideCredential<Credential = K>, ) -> Self
Replace the credential provider while keeping context and request signer.
Sourcepub fn with_request_signer(
self,
signer: impl SignRequest<Credential = K>,
) -> Self
pub fn with_request_signer( self, signer: impl SignRequest<Credential = K>, ) -> Self
Replace the request signer while keeping context and credential provider.
Trait Implementations§
Auto Trait Implementations§
impl<K> Freeze for Signer<K>
impl<K> !RefUnwindSafe for Signer<K>
impl<K> Send for Signer<K>
impl<K> Sync for Signer<K>
impl<K> Unpin for Signer<K>
impl<K> !UnwindSafe for Signer<K>
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