#[non_exhaustive]pub struct ResourcePolicySnapshotSchedulePolicySchedule {
pub daily_schedule: Option<ResourcePolicyDailyCycle>,
pub hourly_schedule: Option<ResourcePolicyHourlyCycle>,
pub weekly_schedule: Option<ResourcePolicyWeeklyCycle>,
/* private fields */
}Available on crate feature
resource-policies only.Expand description
A schedule for disks where the schedueled operations are performed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.daily_schedule: Option<ResourcePolicyDailyCycle>§hourly_schedule: Option<ResourcePolicyHourlyCycle>§weekly_schedule: Option<ResourcePolicyWeeklyCycle>Implementations§
Source§impl ResourcePolicySnapshotSchedulePolicySchedule
impl ResourcePolicySnapshotSchedulePolicySchedule
pub fn new() -> Self
Sourcepub fn set_daily_schedule<T>(self, v: T) -> Selfwhere
T: Into<ResourcePolicyDailyCycle>,
pub fn set_daily_schedule<T>(self, v: T) -> Selfwhere
T: Into<ResourcePolicyDailyCycle>,
Sets the value of daily_schedule.
§Example
ⓘ
use google_cloud_compute_v1::model::ResourcePolicyDailyCycle;
let x = ResourcePolicySnapshotSchedulePolicySchedule::new().set_daily_schedule(ResourcePolicyDailyCycle::default()/* use setters */);Sourcepub fn set_or_clear_daily_schedule<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourcePolicyDailyCycle>,
pub fn set_or_clear_daily_schedule<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourcePolicyDailyCycle>,
Sets or clears the value of daily_schedule.
§Example
ⓘ
use google_cloud_compute_v1::model::ResourcePolicyDailyCycle;
let x = ResourcePolicySnapshotSchedulePolicySchedule::new().set_or_clear_daily_schedule(Some(ResourcePolicyDailyCycle::default()/* use setters */));
let x = ResourcePolicySnapshotSchedulePolicySchedule::new().set_or_clear_daily_schedule(None::<ResourcePolicyDailyCycle>);Sourcepub fn set_hourly_schedule<T>(self, v: T) -> Selfwhere
T: Into<ResourcePolicyHourlyCycle>,
pub fn set_hourly_schedule<T>(self, v: T) -> Selfwhere
T: Into<ResourcePolicyHourlyCycle>,
Sets the value of hourly_schedule.
§Example
ⓘ
use google_cloud_compute_v1::model::ResourcePolicyHourlyCycle;
let x = ResourcePolicySnapshotSchedulePolicySchedule::new().set_hourly_schedule(ResourcePolicyHourlyCycle::default()/* use setters */);Sourcepub fn set_or_clear_hourly_schedule<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourcePolicyHourlyCycle>,
pub fn set_or_clear_hourly_schedule<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourcePolicyHourlyCycle>,
Sets or clears the value of hourly_schedule.
§Example
ⓘ
use google_cloud_compute_v1::model::ResourcePolicyHourlyCycle;
let x = ResourcePolicySnapshotSchedulePolicySchedule::new().set_or_clear_hourly_schedule(Some(ResourcePolicyHourlyCycle::default()/* use setters */));
let x = ResourcePolicySnapshotSchedulePolicySchedule::new().set_or_clear_hourly_schedule(None::<ResourcePolicyHourlyCycle>);Sourcepub fn set_weekly_schedule<T>(self, v: T) -> Selfwhere
T: Into<ResourcePolicyWeeklyCycle>,
pub fn set_weekly_schedule<T>(self, v: T) -> Selfwhere
T: Into<ResourcePolicyWeeklyCycle>,
Sets the value of weekly_schedule.
§Example
ⓘ
use google_cloud_compute_v1::model::ResourcePolicyWeeklyCycle;
let x = ResourcePolicySnapshotSchedulePolicySchedule::new().set_weekly_schedule(ResourcePolicyWeeklyCycle::default()/* use setters */);Sourcepub fn set_or_clear_weekly_schedule<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourcePolicyWeeklyCycle>,
pub fn set_or_clear_weekly_schedule<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourcePolicyWeeklyCycle>,
Sets or clears the value of weekly_schedule.
§Example
ⓘ
use google_cloud_compute_v1::model::ResourcePolicyWeeklyCycle;
let x = ResourcePolicySnapshotSchedulePolicySchedule::new().set_or_clear_weekly_schedule(Some(ResourcePolicyWeeklyCycle::default()/* use setters */));
let x = ResourcePolicySnapshotSchedulePolicySchedule::new().set_or_clear_weekly_schedule(None::<ResourcePolicyWeeklyCycle>);Trait Implementations§
Source§impl Clone for ResourcePolicySnapshotSchedulePolicySchedule
impl Clone for ResourcePolicySnapshotSchedulePolicySchedule
Source§fn clone(&self) -> ResourcePolicySnapshotSchedulePolicySchedule
fn clone(&self) -> ResourcePolicySnapshotSchedulePolicySchedule
Returns a duplicate of the value. Read more
1.0.0 · 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 ResourcePolicySnapshotSchedulePolicySchedule
impl Default for ResourcePolicySnapshotSchedulePolicySchedule
Source§fn default() -> ResourcePolicySnapshotSchedulePolicySchedule
fn default() -> ResourcePolicySnapshotSchedulePolicySchedule
Returns the “default value” for a type. Read more
Source§impl PartialEq for ResourcePolicySnapshotSchedulePolicySchedule
impl PartialEq for ResourcePolicySnapshotSchedulePolicySchedule
Source§fn eq(&self, other: &ResourcePolicySnapshotSchedulePolicySchedule) -> bool
fn eq(&self, other: &ResourcePolicySnapshotSchedulePolicySchedule) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResourcePolicySnapshotSchedulePolicySchedule
Auto Trait Implementations§
impl Freeze for ResourcePolicySnapshotSchedulePolicySchedule
impl RefUnwindSafe for ResourcePolicySnapshotSchedulePolicySchedule
impl Send for ResourcePolicySnapshotSchedulePolicySchedule
impl Sync for ResourcePolicySnapshotSchedulePolicySchedule
impl Unpin for ResourcePolicySnapshotSchedulePolicySchedule
impl UnwindSafe for ResourcePolicySnapshotSchedulePolicySchedule
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