pub struct MaintenanceUpdate {
pub enabled: Option<bool>,
pub message: Option<String>,
pub retry_after_seconds: Option<u64>,
pub severity: Option<String>,
pub estimated_end_at: Option<String>,
}Expand description
Partial update accepted by POST /maintenance. Any field omitted is left
unchanged. estimated_end_at: "" (empty string) clears the field.
Fields§
§enabled: Option<bool>Toggle the gate on or off.
message: Option<String>Replace the message.
retry_after_seconds: Option<u64>Replace the Retry-After value.
severity: Option<String>Replace the severity classification.
estimated_end_at: Option<String>Replace the ETA. Empty string clears.
Trait Implementations§
Source§impl Debug for MaintenanceUpdate
impl Debug for MaintenanceUpdate
Source§impl Default for MaintenanceUpdate
impl Default for MaintenanceUpdate
Source§impl<'de> Deserialize<'de> for MaintenanceUpdate
impl<'de> Deserialize<'de> for MaintenanceUpdate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MaintenanceUpdate
impl RefUnwindSafe for MaintenanceUpdate
impl Send for MaintenanceUpdate
impl Sync for MaintenanceUpdate
impl Unpin for MaintenanceUpdate
impl UnsafeUnpin for MaintenanceUpdate
impl UnwindSafe for MaintenanceUpdate
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