Struct scratchstack_aws_signature::KSecretKey
source · [−]pub struct KSecretKey { /* private fields */ }
Expand description
A raw AWS secret key (kSecret
).
Implementations
sourceimpl KSecretKey
impl KSecretKey
sourcepub fn to_kdate(&self, date: Date<Utc>) -> KDateKey
pub fn to_kdate(&self, date: Date<Utc>) -> KDateKey
Create a new KDateKey
from this KSecretKey
and a date.
sourcepub fn to_kregion(&self, date: Date<Utc>, region: &str) -> KRegionKey
pub fn to_kregion(&self, date: Date<Utc>, region: &str) -> KRegionKey
Creeate a new KRegionKey
from this KSecretKey
, a date, and a region.
sourcepub fn to_kservice(
&self,
date: Date<Utc>,
region: &str,
service: &str
) -> KServiceKey
pub fn to_kservice(
&self,
date: Date<Utc>,
region: &str,
service: &str
) -> KServiceKey
Creeate a new KServiceKey
from this KSecretKey
, a date, a region, and a service.
sourcepub fn to_ksigning(
&self,
date: Date<Utc>,
region: &str,
service: &str
) -> KSigningKey
pub fn to_ksigning(
&self,
date: Date<Utc>,
region: &str,
service: &str
) -> KSigningKey
Creeate a new KSigningKey
from this KSecretKey
, a date, a region, and a service.
Trait Implementations
sourceimpl AsRef<[u8]> for KSecretKey
impl AsRef<[u8]> for KSecretKey
sourceimpl Clone for KSecretKey
impl Clone for KSecretKey
sourcefn clone(&self) -> KSecretKey
fn clone(&self) -> KSecretKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for KSecretKey
impl Debug for KSecretKey
sourceimpl Display for KSecretKey
impl Display for KSecretKey
sourceimpl PartialEq<KSecretKey> for KSecretKey
impl PartialEq<KSecretKey> for KSecretKey
sourcefn eq(&self, other: &KSecretKey) -> bool
fn eq(&self, other: &KSecretKey) -> bool
impl Eq for KSecretKey
impl StructuralEq for KSecretKey
impl StructuralPartialEq for KSecretKey
Auto Trait Implementations
impl RefUnwindSafe for KSecretKey
impl Send for KSecretKey
impl Sync for KSecretKey
impl Unpin for KSecretKey
impl UnwindSafe for KSecretKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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> ToHex for Twhere
T: AsRef<[u8]>,
impl<T> ToHex for Twhere
T: AsRef<[u8]>,
sourcefn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
) Read moresourcefn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
) Read more