Struct s3_server::headers::AuthorizationV4
source · [−]pub struct AuthorizationV4<'a> {
pub algorithm: &'a str,
pub credential: CredentialV4<'a>,
pub signed_headers: Vec<&'a str>,
pub signature: &'a str,
}Expand description
Authorization
Fields
algorithm: &'a strThe algorithm that was used to calculate the signature.
credential: CredentialV4<'a>Access key ID and the scope information, which includes the date, Region, and service that were used to calculate the signature.
signed_headers: Vec<&'a str>A semicolon-separated list of request headers that you used to compute Signature.
signature: &'a strThe 256-bit signature expressed as 64 lowercase hexadecimal characters.
Implementations
sourceimpl<'a> AuthorizationV4<'a>
impl<'a> AuthorizationV4<'a>
sourcepub fn from_header_str(auth: &'a str) -> Result<Self, ParseAuthorizationError>
pub fn from_header_str(auth: &'a str) -> Result<Self, ParseAuthorizationError>
Trait Implementations
sourceimpl<'a> Debug for AuthorizationV4<'a>
impl<'a> Debug for AuthorizationV4<'a>
sourceimpl<'de: 'a, 'a> Deserialize<'de> for AuthorizationV4<'a>
impl<'de: 'a, 'a> Deserialize<'de> for AuthorizationV4<'a>
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<'a> Serialize for AuthorizationV4<'a>
impl<'a> Serialize for AuthorizationV4<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for AuthorizationV4<'a>
impl<'a> Send for AuthorizationV4<'a>
impl<'a> Sync for AuthorizationV4<'a>
impl<'a> Unpin for AuthorizationV4<'a>
impl<'a> UnwindSafe for AuthorizationV4<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more