#[non_exhaustive]pub struct ScalingScheduleStatus {
pub last_start_time: Option<String>,
pub next_start_time: Option<String>,
pub state: Option<State>,
/* private fields */
}Available on crate features
autoscalers or region-autoscalers only.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.last_start_time: Option<String>[Output Only] The last time the scaling schedule became active. Note: this is a timestamp when a schedule actually became active, not when it was planned to do so. The timestamp is in RFC3339 text format.
next_start_time: Option<String>[Output Only] The next time the scaling schedule is to become active. Note: this is a timestamp when a schedule is planned to run, but the actual time might be slightly different. The timestamp is in RFC3339 text format.
state: Option<State>[Output Only] The current state of a scaling schedule.
Implementations§
Source§impl ScalingScheduleStatus
impl ScalingScheduleStatus
pub fn new() -> Self
Sourcepub fn set_last_start_time<T>(self, v: T) -> Self
pub fn set_last_start_time<T>(self, v: T) -> Self
Sets the value of last_start_time.
§Example
ⓘ
let x = ScalingScheduleStatus::new().set_last_start_time("example");Sourcepub fn set_or_clear_last_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_last_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of last_start_time.
§Example
ⓘ
let x = ScalingScheduleStatus::new().set_or_clear_last_start_time(Some("example"));
let x = ScalingScheduleStatus::new().set_or_clear_last_start_time(None::<String>);Sourcepub fn set_next_start_time<T>(self, v: T) -> Self
pub fn set_next_start_time<T>(self, v: T) -> Self
Sets the value of next_start_time.
§Example
ⓘ
let x = ScalingScheduleStatus::new().set_next_start_time("example");Sourcepub fn set_or_clear_next_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_next_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of next_start_time.
§Example
ⓘ
let x = ScalingScheduleStatus::new().set_or_clear_next_start_time(Some("example"));
let x = ScalingScheduleStatus::new().set_or_clear_next_start_time(None::<String>);Sourcepub fn set_or_clear_state<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_state<T>(self, v: Option<T>) -> Self
Sets or clears the value of state.
§Example
ⓘ
use google_cloud_compute_v1::model::scaling_schedule_status::State;
let x0 = ScalingScheduleStatus::new().set_or_clear_state(Some(State::Disabled));
let x1 = ScalingScheduleStatus::new().set_or_clear_state(Some(State::Obsolete));
let x2 = ScalingScheduleStatus::new().set_or_clear_state(Some(State::Ready));
let x_none = ScalingScheduleStatus::new().set_or_clear_state(None::<State>);Trait Implementations§
Source§impl Clone for ScalingScheduleStatus
impl Clone for ScalingScheduleStatus
Source§fn clone(&self) -> ScalingScheduleStatus
fn clone(&self) -> ScalingScheduleStatus
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 ScalingScheduleStatus
impl Debug for ScalingScheduleStatus
Source§impl Default for ScalingScheduleStatus
impl Default for ScalingScheduleStatus
Source§fn default() -> ScalingScheduleStatus
fn default() -> ScalingScheduleStatus
Returns the “default value” for a type. Read more
Source§impl Message for ScalingScheduleStatus
impl Message for ScalingScheduleStatus
Source§impl PartialEq for ScalingScheduleStatus
impl PartialEq for ScalingScheduleStatus
impl StructuralPartialEq for ScalingScheduleStatus
Auto Trait Implementations§
impl Freeze for ScalingScheduleStatus
impl RefUnwindSafe for ScalingScheduleStatus
impl Send for ScalingScheduleStatus
impl Sync for ScalingScheduleStatus
impl Unpin for ScalingScheduleStatus
impl UnwindSafe for ScalingScheduleStatus
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