Struct abscissa::secrets::Secret[][src]

pub struct Secret<T>(_)
where
    T: Clear + Clone + DebugSecret + DeserializeOwned + Sized
;

Marker newtype for serde-serializable values that contain secrets (e.g. passwords, cryptographic keys, access tokens or other credentials)

Trait Implementations

impl<T: Clone> Clone for Secret<T> where
    T: Clear + Clone + DebugSecret + DeserializeOwned + Sized
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> BorrowSecret<T> for Secret<T> where
    T: Clear + Clone + DebugSecret + DeserializeOwned + Sized
[src]

Important traits for &'a mut R

Obtain a borrowed reference to a secret

impl<T> Debug for Secret<T> where
    T: Clear + Clone + DebugSecret + DeserializeOwned + Sized
[src]

Formats the value using the given formatter. Read more

impl<'de, T> Deserialize<'de> for Secret<T> where
    T: Clear + Clone + DebugSecret + DeserializeOwned + Sized
[src]

Deserialize this value from the given Serde deserializer. Read more

impl<T> Drop for Secret<T> where
    T: Clear + Clone + DebugSecret + DeserializeOwned + Sized
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<T> Send for Secret<T> where
    T: Send

impl<T> Sync for Secret<T> where
    T: Sync