Add a constructor for SecretStorageDefaultKeyEventContent
This commit is contained in:
parent
50d28aefbd
commit
51d104c56c
@ -15,3 +15,13 @@ pub struct SecretStorageDefaultKeyEventContent {
|
|||||||
#[serde(rename = "key")]
|
#[serde(rename = "key")]
|
||||||
pub key_id: String,
|
pub key_id: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl SecretStorageDefaultKeyEventContent {
|
||||||
|
/// Create a new [`SecretStorageDefaultKeyEventContent`] with the given key ID.
|
||||||
|
///
|
||||||
|
/// Uploading this to the account data will mark the secret storage key with the given key ID as
|
||||||
|
/// the default key.
|
||||||
|
pub fn new(key_id: String) -> Self {
|
||||||
|
Self { key_id }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user