pub struct AppSpecMaintenance {
pub archive: Option<bool>,
pub enabled: Option<bool>,
pub offline_page_url: Option<String>,
}Expand description
Specification to configure maintenance settings for the app, such as maintenance mode and archiving the app.
JSON schema
{
"description": "Specification to configure maintenance settings for the app, such as maintenance mode and archiving the app.",
"type": "object",
"properties": {
"archive": {
"description": "Indicates whether the app should be archived. Setting this to true implies that enabled is set to true.",
"examples": [
true
],
"type": "boolean"
},
"enabled": {
"description": "Indicates whether maintenance mode should be enabled for the app.",
"examples": [
true
],
"type": "boolean"
},
"offline_page_url": {
"description": "A custom offline page to display when maintenance mode is enabled or the app is archived.",
"examples": [
"https://example.com/offline.html"
],
"type": "string"
}
}
}Fields§
§archive: Option<bool>Indicates whether the app should be archived. Setting this to true implies that enabled is set to true.
enabled: Option<bool>Indicates whether maintenance mode should be enabled for the app.
offline_page_url: Option<String>A custom offline page to display when maintenance mode is enabled or the app is archived.
Trait Implementations§
Source§impl Clone for AppSpecMaintenance
impl Clone for AppSpecMaintenance
Source§fn clone(&self) -> AppSpecMaintenance
fn clone(&self) -> AppSpecMaintenance
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 AppSpecMaintenance
impl Debug for AppSpecMaintenance
Source§impl Default for AppSpecMaintenance
impl Default for AppSpecMaintenance
Source§impl<'de> Deserialize<'de> for AppSpecMaintenance
impl<'de> Deserialize<'de> for AppSpecMaintenance
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 From<&AppSpecMaintenance> for AppSpecMaintenance
impl From<&AppSpecMaintenance> for AppSpecMaintenance
Source§fn from(value: &AppSpecMaintenance) -> Self
fn from(value: &AppSpecMaintenance) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AppSpecMaintenance
impl RefUnwindSafe for AppSpecMaintenance
impl Send for AppSpecMaintenance
impl Sync for AppSpecMaintenance
impl Unpin for AppSpecMaintenance
impl UnsafeUnpin for AppSpecMaintenance
impl UnwindSafe for AppSpecMaintenance
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