pub struct AdminDatastoreCreatePruneRequest {
pub backup_id: String,
pub backup_type: PbsBackupTypeEnum,
pub dry_run: Option<bool>,
pub keep_daily: Option<i64>,
pub keep_hourly: Option<i64>,
pub keep_last: Option<i64>,
pub keep_monthly: Option<i64>,
pub keep_weekly: Option<i64>,
pub keep_yearly: Option<i64>,
pub ns: Option<String>,
pub use_task: Option<bool>,
}Fields§
§backup_id: StringBackup ID.
backup_type: PbsBackupTypeEnumBackup types.
dry_run: Option<bool>Just show what prune would do, but do not delete anything.
keep_daily: Option<i64>Number of daily backups to keep.
keep_hourly: Option<i64>Number of hourly backups to keep.
keep_last: Option<i64>Number of backups to keep.
keep_monthly: Option<i64>Number of monthly backups to keep.
keep_weekly: Option<i64>Number of weekly backups to keep.
keep_yearly: Option<i64>Number of yearly backups to keep.
ns: Option<String>Namespace.
use_task: Option<bool>Spins up an asynchronous task that does the work.
Implementations§
Source§impl AdminDatastoreCreatePruneRequest
impl AdminDatastoreCreatePruneRequest
pub fn new( backup_id: String, backup_type: PbsBackupTypeEnum, ) -> AdminDatastoreCreatePruneRequest
Trait Implementations§
Source§impl Clone for AdminDatastoreCreatePruneRequest
impl Clone for AdminDatastoreCreatePruneRequest
Source§fn clone(&self) -> AdminDatastoreCreatePruneRequest
fn clone(&self) -> AdminDatastoreCreatePruneRequest
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 moreSource§impl Default for AdminDatastoreCreatePruneRequest
impl Default for AdminDatastoreCreatePruneRequest
Source§fn default() -> AdminDatastoreCreatePruneRequest
fn default() -> AdminDatastoreCreatePruneRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AdminDatastoreCreatePruneRequest
impl<'de> Deserialize<'de> for AdminDatastoreCreatePruneRequest
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 PartialEq for AdminDatastoreCreatePruneRequest
impl PartialEq for AdminDatastoreCreatePruneRequest
Source§fn eq(&self, other: &AdminDatastoreCreatePruneRequest) -> bool
fn eq(&self, other: &AdminDatastoreCreatePruneRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AdminDatastoreCreatePruneRequest
Auto Trait Implementations§
impl Freeze for AdminDatastoreCreatePruneRequest
impl RefUnwindSafe for AdminDatastoreCreatePruneRequest
impl Send for AdminDatastoreCreatePruneRequest
impl Sync for AdminDatastoreCreatePruneRequest
impl Unpin for AdminDatastoreCreatePruneRequest
impl UnsafeUnpin for AdminDatastoreCreatePruneRequest
impl UnwindSafe for AdminDatastoreCreatePruneRequest
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