Struct diem_vault_client::KeyBackup
source · pub struct KeyBackup { /* private fields */ }
Expand description
Key backup / restore format Example: { “policy”:{ “name”:“local_owner_key__consensus”, “keys”:{ “1”:{ “key”:“C3R5O8uAfrgv7sJmCMSLEp1R2HmkZtwdfGT/xVvZVvgCGo6TkWga/ojplJFMM+i2805X3CV7IRyNBCSJcr4AqQ==”, “hmac_key”:null, “time”:“2020-05-29T06:27:38.1233515Z”, “ec_x”:null, “ec_y”:null, “ec_d”:null, “rsa_key”:null, “public_key”:“AhqOk5FoGv6I6ZSRTDPotvNOV9wleyEcjSwkiXK+AKk=”, “convergent_version”:0, “creation_time”:1590733658 } }, “derived”:false, “kdf”:0, “convergent_encryption”:false, “exportable”:true, “min_decryption_version”:1, “min_encryption_version”:0, “latest_version”:1, “archive_version”:1, “archive_min_version”:0, “min_available_version”:0, “deletion_allowed”:false, “convergent_version”:0, “type”:2, “backup_info”:{ “time”:“2020-05-29T06:28:48.2937047Z”, “version”:1 }, “restore_info”:null, “allow_plaintext_backup”:true, “version_template”:“”, “storage_prefix”:“” } }
This is intended to be a very simple application of it only for the purpose of introducing a single key with no versioning history into Vault. This is /only/ for test purposes and not intended for production use cases.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for KeyBackup
impl<'de> Deserialize<'de> for KeyBackup
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl PartialEq<KeyBackup> for KeyBackup
impl PartialEq<KeyBackup> for KeyBackup
impl Eq for KeyBackup
impl StructuralEq for KeyBackup
impl StructuralPartialEq for KeyBackup
Auto Trait Implementations§
impl RefUnwindSafe for KeyBackup
impl Send for KeyBackup
impl Sync for KeyBackup
impl Unpin for KeyBackup
impl UnwindSafe for KeyBackup
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.