pub struct MaintenanceDetails {
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
Mutable details surfaced in the 503 body and /maintenance/status.
Fields§
§message: StringHuman-readable message displayed to clients.
retry_after_seconds: u64Retry-After value (seconds) and field in the response body.
severity: StringSeverity classification (e.g. “info”, “warning”, “critical”).
started_at: Option<DateTime<Utc>>When the gate was last toggled on (None when off).
estimated_end_at: Option<DateTime<Utc>>Optional ETA when maintenance is expected to end.
Trait Implementations§
Source§impl Clone for MaintenanceDetails
impl Clone for MaintenanceDetails
Source§impl Debug for MaintenanceDetails
impl Debug for MaintenanceDetails
Source§impl<'de> Deserialize<'de> for MaintenanceDetails
impl<'de> Deserialize<'de> for MaintenanceDetails
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 MaintenanceDetails
impl RefUnwindSafe for MaintenanceDetails
impl Send for MaintenanceDetails
impl Sync for MaintenanceDetails
impl Unpin for MaintenanceDetails
impl UnsafeUnpin for MaintenanceDetails
impl UnwindSafe for MaintenanceDetails
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