pub struct RequestSigner { /* private fields */ }Expand description
RequestSigner for Google service requests.
Implementations§
Source§impl RequestSigner
impl RequestSigner
Sourcepub fn new(service: impl Into<String>) -> Self
pub fn new(service: impl Into<String>) -> Self
Create a new builder with the specified service.
Sourcepub fn with_scope(self, scope: impl Into<String>) -> Self
pub fn with_scope(self, scope: impl Into<String>) -> Self
Set the OAuth2 scope.
Sourcepub fn with_signer_email(self, signer_email: impl Into<String>) -> Self
pub fn with_signer_email(self, signer_email: impl Into<String>) -> Self
Set the signer service account email used for query signing via IAMCredentials signBlob.
This is required when generating signed URLs without an embedded service account private key (e.g. ADC / WIF / impersonation tokens).
Sourcepub fn with_region(self, region: impl Into<String>) -> Self
pub fn with_region(self, region: impl Into<String>) -> Self
Set the region for the builder.
Trait Implementations§
Source§impl Debug for RequestSigner
impl Debug for RequestSigner
Source§impl Default for RequestSigner
impl Default for RequestSigner
Source§impl SignRequest for RequestSigner
impl SignRequest for RequestSigner
Source§type Credential = Credential
type Credential = Credential
Credential used by this builder. Read more
Auto Trait Implementations§
impl Freeze for RequestSigner
impl RefUnwindSafe for RequestSigner
impl Send for RequestSigner
impl Sync for RequestSigner
impl Unpin for RequestSigner
impl UnsafeUnpin for RequestSigner
impl UnwindSafe for RequestSigner
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> SignRequestDyn for Twhere
T: SignRequest + ?Sized,
impl<T> SignRequestDyn for Twhere
T: SignRequest + ?Sized,
Source§type Credential = <T as SignRequest>::Credential
type Credential = <T as SignRequest>::Credential
Credential used by this builder.
Source§fn sign_request_dyn<'a>(
&'a self,
ctx: &'a Context,
req: &'a mut Parts,
credential: Option<&'a <T as SignRequestDyn>::Credential>,
expires_in: Option<Duration>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn sign_request_dyn<'a>( &'a self, ctx: &'a Context, req: &'a mut Parts, credential: Option<&'a <T as SignRequestDyn>::Credential>, expires_in: Option<Duration>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
Dyn version of
SignRequest::sign_request.