pub struct SystemStatusResponse {
pub msg: String,
pub status: i32,
}
Expand description
SystemStatusResponse
JSON schema
{
"type": "object",
"required": [
"msg",
"status"
],
"properties": {
"msg": {
"description": "\"normal\", \"system_maintenance\"",
"examples": [
"normal"
],
"type": "string"
},
"status": {
"description": "0: normal, 1:system maintenance",
"examples": [
0
],
"type": "integer",
"format": "int32"
}
}
}
Fields§
§msg: String
“normal”, “system_maintenance”
status: i32
0: normal, 1:system maintenance
Trait Implementations§
Source§impl Clone for SystemStatusResponse
impl Clone for SystemStatusResponse
Source§fn clone(&self) -> SystemStatusResponse
fn clone(&self) -> SystemStatusResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 SystemStatusResponse
impl Debug for SystemStatusResponse
Source§impl<'de> Deserialize<'de> for SystemStatusResponse
impl<'de> Deserialize<'de> for SystemStatusResponse
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<&SystemStatusResponse> for SystemStatusResponse
impl From<&SystemStatusResponse> for SystemStatusResponse
Source§fn from(value: &SystemStatusResponse) -> Self
fn from(value: &SystemStatusResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SystemStatusResponse
impl RefUnwindSafe for SystemStatusResponse
impl Send for SystemStatusResponse
impl Sync for SystemStatusResponse
impl Unpin for SystemStatusResponse
impl UnwindSafe for SystemStatusResponse
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