pub struct MaintenanceState {
pub enabled: bool,
pub message: Option<String>,
pub enabled_at: Option<String>,
pub enabled_by_email: Option<String>,
}Expand description
MaintenanceState model.
Fields§
§enabled: bool§message: Option<String>Plain text rendered on the blocked page; the API does not render HTML. Absent when no message is set — a message that trims to empty is not stored.
enabled_at: Option<String>When the most recent toggle happened.
enabled_by_email: Option<String>Empty string for the synthetic default-off state — that state has no author.
Trait Implementations§
Source§impl Clone for MaintenanceState
impl Clone for MaintenanceState
Source§fn clone(&self) -> MaintenanceState
fn clone(&self) -> MaintenanceState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MaintenanceState
impl Debug for MaintenanceState
Source§impl Default for MaintenanceState
impl Default for MaintenanceState
Source§fn default() -> MaintenanceState
fn default() -> MaintenanceState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MaintenanceState
impl<'de> Deserialize<'de> for MaintenanceState
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
Source§impl PartialEq for MaintenanceState
impl PartialEq for MaintenanceState
Source§impl Serialize for MaintenanceState
impl Serialize for MaintenanceState
impl StructuralPartialEq for MaintenanceState
Auto Trait Implementations§
impl Freeze for MaintenanceState
impl RefUnwindSafe for MaintenanceState
impl Send for MaintenanceState
impl Sync for MaintenanceState
impl Unpin for MaintenanceState
impl UnsafeUnpin for MaintenanceState
impl UnwindSafe for MaintenanceState
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