[][src]Struct json_digest::Nonce

pub struct Nonce(pub String);

Multibase-encoded random content, e.g. 'urvU8F6HmEol5zOmHh_nnS1RiX5r3T2t9U_d_kQY7ZC-I"

Implementations

impl Nonce[src]

pub fn generate() -> Self[src]

Generates a new Nonce. Uses the getrandom crate to find the best source of entropy on the platform. In JavaScript tests you might need to refer to https://github.com/jsdom/jsdom/issues/1612 for how to fix phantom browsers to comply with HTML5 specs.

Trait Implementations

impl Clone for Nonce[src]

impl Debug for Nonce[src]

impl<'de> Deserialize<'de> for Nonce[src]

impl Eq for Nonce[src]

impl PartialEq<Nonce> for Nonce[src]

impl Serialize for Nonce[src]

impl StructuralEq for Nonce[src]

impl StructuralPartialEq for Nonce[src]

Auto Trait Implementations

impl RefUnwindSafe for Nonce

impl Send for Nonce

impl Sync for Nonce

impl Unpin for Nonce

impl UnwindSafe for Nonce

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,