#[non_exhaustive]pub struct Reschedule {
pub reschedule_type: RescheduleType,
pub schedule_time: Option<Timestamp>,
/* private fields */
}
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.reschedule_type: RescheduleType
Required. The type of the reschedule.
schedule_time: Option<Timestamp>
Optional. Timestamp when the maintenance shall be rescheduled to if
reschedule_type=SPECIFIC_TIME, in
RFC 3339 format, for example
2012-11-15T16:19:00.094Z
.
Implementations§
Source§impl Reschedule
impl Reschedule
pub fn new() -> Self
Sourcepub fn set_reschedule_type<T: Into<RescheduleType>>(self, v: T) -> Self
pub fn set_reschedule_type<T: Into<RescheduleType>>(self, v: T) -> Self
Sets the value of reschedule_type.
Sourcepub fn set_schedule_time<T>(self, v: T) -> Self
pub fn set_schedule_time<T>(self, v: T) -> Self
Sets the value of schedule_time.
Sourcepub fn set_or_clear_schedule_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_schedule_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of schedule_time.
Trait Implementations§
Source§impl Clone for Reschedule
impl Clone for Reschedule
Source§fn clone(&self) -> Reschedule
fn clone(&self) -> Reschedule
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 Reschedule
impl Debug for Reschedule
Source§impl Default for Reschedule
impl Default for Reschedule
Source§fn default() -> Reschedule
fn default() -> Reschedule
Returns the “default value” for a type. Read more
Source§impl PartialEq for Reschedule
impl PartialEq for Reschedule
impl StructuralPartialEq for Reschedule
Auto Trait Implementations§
impl Freeze for Reschedule
impl RefUnwindSafe for Reschedule
impl Send for Reschedule
impl Sync for Reschedule
impl Unpin for Reschedule
impl UnwindSafe for Reschedule
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