#[non_exhaustive]pub struct ResourcePolicyDailyCycle {
pub days_in_cycle: Option<i32>,
pub duration: Option<String>,
pub start_time: Option<String>,
/* private fields */
}Available on crate feature
resource-policies only.Expand description
Time window specified for daily operations.
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.days_in_cycle: Option<i32>Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle.
duration: Option<String>Output only. [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.
start_time: Option<String>Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00,12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
Implementations§
Source§impl ResourcePolicyDailyCycle
impl ResourcePolicyDailyCycle
pub fn new() -> Self
Sourcepub fn set_days_in_cycle<T>(self, v: T) -> Self
pub fn set_days_in_cycle<T>(self, v: T) -> Self
Sets the value of days_in_cycle.
§Example
ⓘ
let x = ResourcePolicyDailyCycle::new().set_days_in_cycle(42);Sourcepub fn set_or_clear_days_in_cycle<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_days_in_cycle<T>(self, v: Option<T>) -> Self
Sets or clears the value of days_in_cycle.
§Example
ⓘ
let x = ResourcePolicyDailyCycle::new().set_or_clear_days_in_cycle(Some(42));
let x = ResourcePolicyDailyCycle::new().set_or_clear_days_in_cycle(None::<i32>);Sourcepub fn set_duration<T>(self, v: T) -> Self
pub fn set_duration<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_duration<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_duration<T>(self, v: Option<T>) -> Self
Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
§Example
ⓘ
let x = ResourcePolicyDailyCycle::new().set_start_time("example");Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
§Example
ⓘ
let x = ResourcePolicyDailyCycle::new().set_or_clear_start_time(Some("example"));
let x = ResourcePolicyDailyCycle::new().set_or_clear_start_time(None::<String>);Trait Implementations§
Source§impl Clone for ResourcePolicyDailyCycle
impl Clone for ResourcePolicyDailyCycle
Source§fn clone(&self) -> ResourcePolicyDailyCycle
fn clone(&self) -> ResourcePolicyDailyCycle
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 Debug for ResourcePolicyDailyCycle
impl Debug for ResourcePolicyDailyCycle
Source§impl Default for ResourcePolicyDailyCycle
impl Default for ResourcePolicyDailyCycle
Source§fn default() -> ResourcePolicyDailyCycle
fn default() -> ResourcePolicyDailyCycle
Returns the “default value” for a type. Read more
Source§impl Message for ResourcePolicyDailyCycle
impl Message for ResourcePolicyDailyCycle
Source§impl PartialEq for ResourcePolicyDailyCycle
impl PartialEq for ResourcePolicyDailyCycle
impl StructuralPartialEq for ResourcePolicyDailyCycle
Auto Trait Implementations§
impl Freeze for ResourcePolicyDailyCycle
impl RefUnwindSafe for ResourcePolicyDailyCycle
impl Send for ResourcePolicyDailyCycle
impl Sync for ResourcePolicyDailyCycle
impl Unpin for ResourcePolicyDailyCycle
impl UnwindSafe for ResourcePolicyDailyCycle
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