pub struct EnableMaintenanceModeRequestQuery {
pub service_id: String,
pub enable: bool,
pub reason: Option<String>,
}
Fields§
§service_id: String
§enable: bool
Specifies whether to enable or disable maintenance mode. This is specified as part of the URL as a query string parameter.
reason: Option<String>
Specifies a text string explaining the reason for placing the node into maintenance mode. This is simply to aid human operators. If no reason is provided, a default value is used instead. This parameter must be URI-encoded.
Trait Implementations§
Source§impl Default for EnableMaintenanceModeRequestQuery
impl Default for EnableMaintenanceModeRequestQuery
Source§fn default() -> EnableMaintenanceModeRequestQuery
fn default() -> EnableMaintenanceModeRequestQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EnableMaintenanceModeRequestQuery
impl<'de> Deserialize<'de> for EnableMaintenanceModeRequestQuery
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 EnableMaintenanceModeRequestQuery
impl RefUnwindSafe for EnableMaintenanceModeRequestQuery
impl Send for EnableMaintenanceModeRequestQuery
impl Sync for EnableMaintenanceModeRequestQuery
impl Unpin for EnableMaintenanceModeRequestQuery
impl UnwindSafe for EnableMaintenanceModeRequestQuery
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