pub struct OneTimeSecret(/* private fields */);Expand description
A random per-request secret, rendered as 32 lowercase hex characters.
Implementations§
Trait Implementations§
Source§impl AsRef<[u8]> for OneTimeSecret
impl AsRef<[u8]> for OneTimeSecret
Source§impl ByteArray<16> for OneTimeSecret
impl ByteArray<16> for OneTimeSecret
fn from_array(array: [u8; 16]) -> Self
fn to_array(&self) -> [u8; 16]
fn as_array(&self) -> &[u8; 16]
fn as_slice(&self) -> &[u8] ⓘ
fn to_vec(&self) -> Vec<u8> ⓘ
fn try_from_slice(slice: &[u8]) -> Result<Self, TryFromSliceError>
fn try_from_vec(vec: Vec<u8>) -> Result<Self, TryFromSliceError>
fn from_hex(s: &str) -> Result<Self, DecodeError>
fn to_hex(&self) -> String
fn as_hex_display(&self) -> HexDisplay<'_>
fn fmt_as_hex(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Source§impl Clone for OneTimeSecret
impl Clone for OneTimeSecret
impl Copy for OneTimeSecret
Source§impl Debug for OneTimeSecret
impl Debug for OneTimeSecret
Source§impl<'de> Deserialize<'de> for OneTimeSecret
impl<'de> Deserialize<'de> for OneTimeSecret
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 OneTimeSecret
impl Display for OneTimeSecret
impl Eq for OneTimeSecret
Source§impl FromHex for OneTimeSecret
impl FromHex for OneTimeSecret
Source§impl FromStr for OneTimeSecret
impl FromStr for OneTimeSecret
Source§impl Hash for OneTimeSecret
impl Hash for OneTimeSecret
Source§impl PartialEq for OneTimeSecret
impl PartialEq for OneTimeSecret
Source§impl Serialize for OneTimeSecret
impl Serialize for OneTimeSecret
impl StructuralPartialEq for OneTimeSecret
Auto Trait Implementations§
impl Freeze for OneTimeSecret
impl RefUnwindSafe for OneTimeSecret
impl Send for OneTimeSecret
impl Sync for OneTimeSecret
impl Unpin for OneTimeSecret
impl UnsafeUnpin for OneTimeSecret
impl UnwindSafe for OneTimeSecret
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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§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<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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.