pub enum Command {
TenantCreate {
name: String,
retention: Option<String>,
},
TenantList,
TenantSetRetention {
id: String,
retention: String,
},
TenantRemove {
id: String,
force: bool,
override_holds: bool,
},
KeyCreate {
owner: Owner,
label: String,
},
KeyList {
tenant: Option<String>,
},
KeyRevoke {
id: String,
},
AuditExport {
log: Log,
since: Option<i64>,
},
RekeyTenant {
id: String,
},
RekeyMaster {
new_master: PathBuf,
},
Check,
Backup {
to: PathBuf,
},
}Expand description
A command, as written on the command line.
Variants§
TenantCreate
TenantList
TenantSetRetention
retention is a period, or default for the server’s.
TenantRemove
KeyCreate
KeyList
KeyRevoke
AuditExport
RekeyTenant
Rotates a tenant’s key.
RekeyMaster
Rotates the master key to the one in new_master.
Check
Examines every tenant and reports what needs attention.
Backup
Writes a consistent copy of the data directory to to, which must
not exist, beside a running server.
Implementations§
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.