[−][src]Struct splinter::biome::key_management::Key
Fields
public_key: String
encrypted_private_key: String
user_id: String
display_name: String
Methods
impl Key
[src]
pub fn new(
public_key: &str,
encrypted_private_key: &str,
user_id: &str,
display_name: &str
) -> Self
[src]
public_key: &str,
encrypted_private_key: &str,
user_id: &str,
display_name: &str
) -> Self
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 moduleuser_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]
fn add_key(&self, key: Key) -> Result<(), KeyStoreError>
[src]
fn update_key(
&self,
public_key: &str,
user_id: &str,
new_display_name: &str
) -> Result<(), KeyStoreError>
[src]
&self,
public_key: &str,
user_id: &str,
new_display_name: &str
) -> Result<(), KeyStoreError>
fn remove_key(
&self,
public_key: &str,
user_id: &str
) -> Result<Key, KeyStoreError>
[src]
&self,
public_key: &str,
user_id: &str
) -> Result<Key, KeyStoreError>
fn fetch_key(
&self,
public_key: &str,
user_id: &str
) -> Result<Key, KeyStoreError>
[src]
&self,
public_key: &str,
user_id: &str
) -> Result<Key, KeyStoreError>
fn list_keys(&self, user_id: Option<&str>) -> Result<Vec<Key>, KeyStoreError>
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, T> DefaultFeatures<'a> for T where
T: 'a + Clone + Send + Sync,
T: 'a + Clone + Send + Sync,
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a>
fn self_address_mut(&mut self) -> *mut ()
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
&'a Self: AsExpression<T>,
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
T: 'a + Clone,
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a>
fn self_address_mut(&mut self) -> *mut ()
impl<T> SafeBorrow<T> for T where
T: ?Sized,
T: ?Sized,
fn borrow_replacement(ptr: &T) -> &T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,