pub struct Credential<const N: usize> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<const N: usize> Clone for Credential<N>
impl<const N: usize> Clone for Credential<N>
Source§fn clone(&self) -> Credential<N>
fn clone(&self) -> Credential<N>
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<const N: usize> Debug for Credential<N>
impl<const N: usize> Debug for Credential<N>
Source§impl<const N: usize> Default for Credential<N>
impl<const N: usize> Default for Credential<N>
Source§impl<'de, const N: usize> Deserialize<'de> for Credential<N>
impl<'de, const N: usize> Deserialize<'de> for Credential<N>
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<const N: usize> Display for Credential<N>
impl<const N: usize> Display for Credential<N>
Source§impl<const N: usize> Distribution<Credential<N>> for Standard
impl<const N: usize> Distribution<Credential<N>> for Standard
Source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Credential<N>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Credential<N>
Generate a random value of
T, using rng as the source of randomness.Source§fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
Create an iterator that generates random values of
T, using rng as
the source of randomness. Read moreSource§impl<const N: usize> From<Credential<N>> for [u8; N]
impl<const N: usize> From<Credential<N>> for [u8; N]
Source§fn from(val: Credential<N>) -> Self
fn from(val: Credential<N>) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<Credential<N>> for String
impl<const N: usize> From<Credential<N>> for String
Source§fn from(val: Credential<N>) -> Self
fn from(val: Credential<N>) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> FromStr for Credential<N>
impl<const N: usize> FromStr for Credential<N>
Source§impl<const N: usize> Hash for Credential<N>
impl<const N: usize> Hash for Credential<N>
Source§impl<const N: usize> Ord for Credential<N>
impl<const N: usize> Ord for Credential<N>
Source§fn cmp(&self, other: &Credential<N>) -> Ordering
fn cmp(&self, other: &Credential<N>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<const N: usize> PartialEq for Credential<N>
impl<const N: usize> PartialEq for Credential<N>
Source§impl<const N: usize> PartialOrd for Credential<N>
impl<const N: usize> PartialOrd for Credential<N>
Source§impl<const N: usize> Serialize for Credential<N>
impl<const N: usize> Serialize for Credential<N>
impl<const N: usize> Eq for Credential<N>
impl<const N: usize> StructuralPartialEq for Credential<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for Credential<N>
impl<const N: usize> RefUnwindSafe for Credential<N>
impl<const N: usize> Send for Credential<N>
impl<const N: usize> Sync for Credential<N>
impl<const N: usize> Unpin for Credential<N>
impl<const N: usize> UnwindSafe for Credential<N>
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)