pub struct AccessKeyId(/* private fields */);
Expand description
Access key ID.
Implementations§
Source§impl AccessKeyId
impl AccessKeyId
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new instance.
It is generated by random alphanumeric characters.
Sourcepub fn with_length(length: u8) -> Self
pub fn with_length(length: u8) -> Self
Creates a new instance with the specific length.
It is generated by random alphanumeric characters.
Sourcepub fn encode_sqids(numbers: &[u64]) -> Result<Self, Error>
Available on crate feature sqids
only.
pub fn encode_sqids(numbers: &[u64]) -> Result<Self, Error>
sqids
only.Attempts to construct an instance by generating a sqid from a slice of numbers.
Sourcepub fn decode_sqids(&self) -> Vec<u64>
Available on crate feature sqids
only.
pub fn decode_sqids(&self) -> Vec<u64>
sqids
only.Decodes self
as a sqid into a vector of numbers.
Sourcepub fn encode_uuid(id: &Uuid) -> Result<Self, Error>
Available on crate feature sqids
only.
pub fn encode_uuid(id: &Uuid) -> Result<Self, Error>
sqids
only.Attempts to construct an instance by generating Sqids from a UUID.
Sourcepub fn decode_uuid(&self) -> Option<Uuid>
Available on crate feature sqids
only.
pub fn decode_uuid(&self) -> Option<Uuid>
sqids
only.Decodes self
as Sqids into a UUID.
Trait Implementations§
Source§impl AsRef<[u8]> for AccessKeyId
impl AsRef<[u8]> for AccessKeyId
Source§impl Clone for AccessKeyId
impl Clone for AccessKeyId
Source§fn clone(&self) -> AccessKeyId
fn clone(&self) -> AccessKeyId
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 AccessKeyId
impl Debug for AccessKeyId
Source§impl Default for AccessKeyId
impl Default for AccessKeyId
Source§fn default() -> AccessKeyId
fn default() -> AccessKeyId
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AccessKeyId
impl<'de> Deserialize<'de> for AccessKeyId
Source§fn 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
Source§impl Display for AccessKeyId
impl Display for AccessKeyId
Source§impl From<&str> for AccessKeyId
impl From<&str> for AccessKeyId
Source§impl From<AccessKeyId> for String
impl From<AccessKeyId> for String
Source§fn from(id: AccessKeyId) -> String
fn from(id: AccessKeyId) -> String
Converts to this type from the input type.
Source§impl From<String> for AccessKeyId
impl From<String> for AccessKeyId
Source§impl PartialEq for AccessKeyId
impl PartialEq for AccessKeyId
Source§impl Serialize for AccessKeyId
impl Serialize for AccessKeyId
impl Eq for AccessKeyId
impl StructuralPartialEq for AccessKeyId
Auto Trait Implementations§
impl Freeze for AccessKeyId
impl RefUnwindSafe for AccessKeyId
impl Send for AccessKeyId
impl Sync for AccessKeyId
impl Unpin for AccessKeyId
impl UnwindSafe for AccessKeyId
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§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
)