pub struct SharedKeySigner { /* private fields */ }Implementations§
pub fn new(account: impl Into<String>, key_b64: &str) -> Result<Self, String>
Sourcepub fn sign_lite(
&self,
_method: &str,
date_header: &str,
canonicalized_resource: &str,
) -> String
pub fn sign_lite( &self, _method: &str, date_header: &str, canonicalized_resource: &str, ) -> String
Produce the Authorization header value for the given request.
canonicalized_resource must start with /{account} and include
the resource path (e.g. /devstoreaccount1/Tables). For SharedKeyLite
against the Table service, StringToSign is exactly
Date + "\n" + CanonicalizedResource — the verb, Content-MD5 and
Content-Type are NOT included (that’s the plain SharedKey scheme).
method is accepted for API symmetry but unused in the signature.
pub fn account(&self) -> &str
Auto Trait Implementations§
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