#[non_exhaustive]pub struct DenyMaintenancePeriod {
pub start_date: String,
pub end_date: String,
pub time: String,
/* private fields */
}Expand description
Deny maintenance Periods. This specifies a date range during when all CSA rollout will be denied.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.start_date: String“deny maintenance period” start date. If the year of the start date is empty, the year of the end date also must be empty. In this case, it means the deny maintenance period recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
end_date: String“deny maintenance period” end date. If the year of the end date is empty, the year of the start date also must be empty. In this case, it means the no maintenance interval recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
time: StringTime in UTC when the “deny maintenance period” starts on start_date and ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00
Implementations§
Source§impl DenyMaintenancePeriod
impl DenyMaintenancePeriod
pub fn new() -> Self
Sourcepub fn set_start_date<T: Into<String>>(self, v: T) -> Self
pub fn set_start_date<T: Into<String>>(self, v: T) -> Self
Sets the value of start_date.
§Example
let x = DenyMaintenancePeriod::new().set_start_date("example");Sourcepub fn set_end_date<T: Into<String>>(self, v: T) -> Self
pub fn set_end_date<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for DenyMaintenancePeriod
impl Clone for DenyMaintenancePeriod
Source§fn clone(&self) -> DenyMaintenancePeriod
fn clone(&self) -> DenyMaintenancePeriod
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more