pub enum BackupPurpose {
Backup,
Restore,
}Expand description
Why a backup credential was issued, or what a reported run was for.
Determines the access the credential grants: a backup credential can
write new data but not delete existing data, while a restore
credential is read-only.
JSON schema
{
"description": "Why a backup credential was issued, or what a reported run was for.\nDetermines the access the credential grants: a `backup` credential can\nwrite new data but not delete existing data, while a `restore`\ncredential is read-only.",
"type": "string",
"enum": [
"backup",
"restore"
]
}Variants§
Trait Implementations§
Source§impl Clone for BackupPurpose
impl Clone for BackupPurpose
Source§fn clone(&self) -> BackupPurpose
fn clone(&self) -> BackupPurpose
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BackupPurpose
Source§impl Debug for BackupPurpose
impl Debug for BackupPurpose
Source§impl<'de> Deserialize<'de> for BackupPurpose
impl<'de> Deserialize<'de> for BackupPurpose
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for BackupPurpose
impl Display for BackupPurpose
impl Eq for BackupPurpose
Source§impl FromStr for BackupPurpose
impl FromStr for BackupPurpose
Source§impl Hash for BackupPurpose
impl Hash for BackupPurpose
Source§impl Ord for BackupPurpose
impl Ord for BackupPurpose
Source§fn cmp(&self, other: &BackupPurpose) -> Ordering
fn cmp(&self, other: &BackupPurpose) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for BackupPurpose
impl PartialEq for BackupPurpose
Source§impl PartialOrd for BackupPurpose
impl PartialOrd for BackupPurpose
Source§impl Serialize for BackupPurpose
impl Serialize for BackupPurpose
impl StructuralPartialEq for BackupPurpose
Source§impl TryFrom<&String> for BackupPurpose
impl TryFrom<&String> for BackupPurpose
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for BackupPurpose
impl TryFrom<&str> for BackupPurpose
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for BackupPurpose
impl TryFrom<String> for BackupPurpose
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for BackupPurpose
impl RefUnwindSafe for BackupPurpose
impl Send for BackupPurpose
impl Sync for BackupPurpose
impl Unpin for BackupPurpose
impl UnsafeUnpin for BackupPurpose
impl UnwindSafe for BackupPurpose
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