pub struct KSecretKey<const M: usize = KSECRETKEY_LENGTH> { /* private fields */ }
Expand description
A raw AWS secret key (kSecret
).
Implementations§
Source§impl KSecretKey
impl KSecretKey
Sourcepub fn to_kdate(&self, date: NaiveDate) -> KDateKey
pub fn to_kdate(&self, date: NaiveDate) -> KDateKey
Create a new KDateKey
from this KSecretKey
and a date.
Sourcepub fn to_kregion(&self, date: NaiveDate, region: &str) -> KRegionKey
pub fn to_kregion(&self, date: NaiveDate, region: &str) -> KRegionKey
Creeate a new KRegionKey
from this KSecretKey
, a date, and a region.
Sourcepub fn to_kservice(
&self,
date: NaiveDate,
region: &str,
service: &str,
) -> KServiceKey
pub fn to_kservice( &self, date: NaiveDate, 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: NaiveDate,
region: &str,
service: &str,
) -> KSigningKey
pub fn to_ksigning( &self, date: NaiveDate, 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<const M: usize> Clone for KSecretKey<M>
impl<const M: usize> Clone for KSecretKey<M>
Source§fn clone(&self) -> KSecretKey<M>
fn clone(&self) -> KSecretKey<M>
Returns a duplicate 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<const M: usize> FromStr for KSecretKey<M>
impl<const M: usize> FromStr for KSecretKey<M>
Source§fn from_str(raw: &str) -> Result<Self, KeyLengthError>
fn from_str(raw: &str) -> Result<Self, KeyLengthError>
Create a new KSecretKey
from a raw AWS secret key.
Source§type Err = KeyLengthError
type Err = KeyLengthError
The associated error which can be returned from parsing.
Source§impl<const M: usize> PartialEq for KSecretKey<M>
impl<const M: usize> PartialEq for KSecretKey<M>
impl<const M: usize> Copy for KSecretKey<M>
impl<const M: usize> Eq for KSecretKey<M>
impl<const M: usize> StructuralPartialEq for KSecretKey<M>
Auto Trait Implementations§
impl<const M: usize> Freeze for KSecretKey<M>
impl<const M: usize> RefUnwindSafe for KSecretKey<M>
impl<const M: usize> Send for KSecretKey<M>
impl<const M: usize> Sync for KSecretKey<M>
impl<const M: usize> Unpin for KSecretKey<M>
impl<const M: usize> UnwindSafe for KSecretKey<M>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToHex for T
impl<T> ToHex for T
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
)