Struct scratchstack_aws_signature::KSecretKey
source · pub struct KSecretKey { /* private fields */ }
Expand description
A raw AWS secret key (kSecret
).
Implementations§
source§impl 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§
source§impl AsRef<[u8]> for KSecretKey
impl AsRef<[u8]> for KSecretKey
source§impl Clone for KSecretKey
impl Clone for KSecretKey
source§fn clone(&self) -> KSecretKey
fn clone(&self) -> KSecretKey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for KSecretKey
impl Debug for KSecretKey
source§impl Display for KSecretKey
impl Display for KSecretKey
source§impl PartialEq<KSecretKey> for KSecretKey
impl PartialEq<KSecretKey> for KSecretKey
source§fn eq(&self, other: &KSecretKey) -> bool
fn eq(&self, other: &KSecretKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
source§impl<T> ToHex for Twhere
T: AsRef<[u8]>,
impl<T> ToHex for Twhere
T: AsRef<[u8]>,
source§fn 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
)source§fn 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
)