Struct reqsign::TencentCosSigner
source · pub struct TencentCosSigner { /* private fields */ }
Expand description
Singer for Tencent COS.
Implementations§
source§impl Signer
impl Signer
sourcepub fn new() -> Self
pub fn new() -> Self
Load credential via credential load chain specified while building.
Note
This function should never be exported to avoid credential leaking by mistake.
sourcepub fn sign(
&self,
req: &mut impl SignableRequest,
cred: &Credential
) -> Result<()>
pub fn sign( &self, req: &mut impl SignableRequest, cred: &Credential ) -> Result<()>
Signing request with header.
sourcepub fn sign_query(
&self,
req: &mut impl SignableRequest,
expire: Duration,
cred: &Credential
) -> Result<()>
pub fn sign_query( &self, req: &mut impl SignableRequest, expire: Duration, cred: &Credential ) -> Result<()>
Signing request with query.