pub struct MaintenanceSnapshot {
pub enabled: bool,
pub message: String,
pub retry_after_seconds: u64,
pub severity: String,
pub started_at: Option<DateTime<Utc>>,
pub estimated_end_at: Option<DateTime<Utc>>,
}Expand description
Snapshot returned by /maintenance/status and used to render 503 bodies.
Fields§
§enabled: boolCurrent on/off state.
message: StringCurrent message.
retry_after_seconds: u64Current Retry-After value.
severity: StringCurrent severity classification.
started_at: Option<DateTime<Utc>>When the gate was last toggled on.
estimated_end_at: Option<DateTime<Utc>>Optional ETA when maintenance is expected to end.
Trait Implementations§
Source§impl Clone for MaintenanceSnapshot
impl Clone for MaintenanceSnapshot
Source§impl Debug for MaintenanceSnapshot
impl Debug for MaintenanceSnapshot
Source§impl<'de> Deserialize<'de> for MaintenanceSnapshot
impl<'de> Deserialize<'de> for MaintenanceSnapshot
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 MaintenanceSnapshot
impl RefUnwindSafe for MaintenanceSnapshot
impl Send for MaintenanceSnapshot
impl Sync for MaintenanceSnapshot
impl Unpin for MaintenanceSnapshot
impl UnsafeUnpin for MaintenanceSnapshot
impl UnwindSafe for MaintenanceSnapshot
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