#[non_exhaustive]pub struct ResourcePolicyHourlyCycle {
pub duration: Option<String>,
pub hours_in_cycle: Option<i32>,
pub start_time: Option<String>,
/* private fields */
}Available on crate feature
resource-policies only.Expand description
Time window specified for hourly 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.duration: Option<String>Output only. [Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.
hours_in_cycle: Option<i32>Defines a schedule with units measured in hours. The value determines how many hours pass between the start of each cycle.
start_time: Option<String>Time within the window to start the operations. It must be in format “HH:MM”, where HH : [00-23] and MM : [00-00] GMT.
Implementations§
Source§impl ResourcePolicyHourlyCycle
impl ResourcePolicyHourlyCycle
pub fn new() -> Self
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_hours_in_cycle<T>(self, v: T) -> Self
pub fn set_hours_in_cycle<T>(self, v: T) -> Self
Sets the value of hours_in_cycle.
§Example
ⓘ
let x = ResourcePolicyHourlyCycle::new().set_hours_in_cycle(42);Sourcepub fn set_or_clear_hours_in_cycle<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_hours_in_cycle<T>(self, v: Option<T>) -> Self
Sets or clears the value of hours_in_cycle.
§Example
ⓘ
let x = ResourcePolicyHourlyCycle::new().set_or_clear_hours_in_cycle(Some(42));
let x = ResourcePolicyHourlyCycle::new().set_or_clear_hours_in_cycle(None::<i32>);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 = ResourcePolicyHourlyCycle::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 = ResourcePolicyHourlyCycle::new().set_or_clear_start_time(Some("example"));
let x = ResourcePolicyHourlyCycle::new().set_or_clear_start_time(None::<String>);Trait Implementations§
Source§impl Clone for ResourcePolicyHourlyCycle
impl Clone for ResourcePolicyHourlyCycle
Source§fn clone(&self) -> ResourcePolicyHourlyCycle
fn clone(&self) -> ResourcePolicyHourlyCycle
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 ResourcePolicyHourlyCycle
impl Debug for ResourcePolicyHourlyCycle
Source§impl Default for ResourcePolicyHourlyCycle
impl Default for ResourcePolicyHourlyCycle
Source§fn default() -> ResourcePolicyHourlyCycle
fn default() -> ResourcePolicyHourlyCycle
Returns the “default value” for a type. Read more
Source§impl Message for ResourcePolicyHourlyCycle
impl Message for ResourcePolicyHourlyCycle
impl StructuralPartialEq for ResourcePolicyHourlyCycle
Auto Trait Implementations§
impl Freeze for ResourcePolicyHourlyCycle
impl RefUnwindSafe for ResourcePolicyHourlyCycle
impl Send for ResourcePolicyHourlyCycle
impl Sync for ResourcePolicyHourlyCycle
impl Unpin for ResourcePolicyHourlyCycle
impl UnwindSafe for ResourcePolicyHourlyCycle
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