[][src]Struct splinter::biome::key_management::Key

pub struct Key {
    pub public_key: String,
    pub encrypted_private_key: String,
    pub user_id: String,
    pub display_name: String,
}

Fields

public_key: Stringencrypted_private_key: Stringuser_id: Stringdisplay_name: String

Methods

impl Key[src]

pub fn new(
    public_key: &str,
    encrypted_private_key: &str,
    user_id: &str,
    display_name: &str
) -> Self
[src]

Creates a new Key

Arguments

  • public_key: The public key of the key pair.
  • encrypted_private_key: The private key of the key pair. This key should be encrypted by the client before being sent to the key management module
  • user_id: The identity of the Biome user who owns the key.
  • display_name: A human readable name for the key.

Trait Implementations

impl Clone for Key[src]

impl KeyStore<Key> for PostgresKeyStore[src]

Auto Trait Implementations

impl RefUnwindSafe for Key

impl Send for Key

impl Sync for Key

impl Unpin for Key

impl UnwindSafe for Key

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<'a, T> DefaultFeatures<'a> for T where
    T: 'a + Clone + Send + Sync

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

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

impl<T> IntoSql for T

impl<'a, T> NonSyncFeatures<'a> for T where
    T: 'a + Clone

impl<T> SafeBorrow<T> for T where
    T: ?Sized

impl<T> Same<T> for T

type Output = T

Should always be Self

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>,