pub struct EnableSnapshotPlanRequest {
pub day_of_month: Option<Option<i32>>,
pub day_of_week: Option<Option<i32>>,
pub hour: i32,
pub max_snapshots: i32,
pub minute: i32,
}Expand description
EnableSnapshotPlanRequest : Request for POST https://api.hetzner.com/v1/storage_boxes/{id}/actions/enable_snapshot_plan
Fields§
§day_of_month: Option<Option<i32>>Day of the month when the Snapshot Plan is executed. Null means every day.
day_of_week: Option<Option<i32>>Day of the week when the Snapshot Plan is executed. Starts at 1 for Monday til 7 for Sunday. Null means every day.
hour: i32Hour when the Snapshot Plan is executed (UTC).
max_snapshots: i32Maximum amount of Snapshots that will be created by this Snapshot Plan. Older Snapshots will be deleted.
minute: i32Minute when the Snapshot Plan is executed (UTC).
Implementations§
Trait Implementations§
Source§impl Clone for EnableSnapshotPlanRequest
impl Clone for EnableSnapshotPlanRequest
Source§fn clone(&self) -> EnableSnapshotPlanRequest
fn clone(&self) -> EnableSnapshotPlanRequest
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 Debug for EnableSnapshotPlanRequest
impl Debug for EnableSnapshotPlanRequest
Source§impl Default for EnableSnapshotPlanRequest
impl Default for EnableSnapshotPlanRequest
Source§fn default() -> EnableSnapshotPlanRequest
fn default() -> EnableSnapshotPlanRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EnableSnapshotPlanRequest
impl<'de> Deserialize<'de> for EnableSnapshotPlanRequest
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 EnableSnapshotPlanRequest
impl PartialEq for EnableSnapshotPlanRequest
Source§fn eq(&self, other: &EnableSnapshotPlanRequest) -> bool
fn eq(&self, other: &EnableSnapshotPlanRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EnableSnapshotPlanRequest
Auto Trait Implementations§
impl Freeze for EnableSnapshotPlanRequest
impl RefUnwindSafe for EnableSnapshotPlanRequest
impl Send for EnableSnapshotPlanRequest
impl Sync for EnableSnapshotPlanRequest
impl Unpin for EnableSnapshotPlanRequest
impl UnsafeUnpin for EnableSnapshotPlanRequest
impl UnwindSafe for EnableSnapshotPlanRequest
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