pub struct AdminDiagnosticsResponse {
pub checks: AdminDiagnosticsResponseChecks,
pub mode: String,
pub ok: bool,
pub uptime_seconds: f64,
}Expand description
AdminDiagnosticsResponse
JSON schema
{
"type": "object",
"required": [
"checks",
"mode",
"ok",
"uptimeSeconds"
],
"properties": {
"checks": {
"type": "object",
"required": [
"cache",
"db",
"storage"
],
"properties": {
"cache": {
"type": "object",
"required": [
"ok"
],
"properties": {
"detail": {
"type": "string"
},
"ok": {
"type": "boolean"
}
}
},
"db": {
"type": "object",
"required": [
"ok"
],
"properties": {
"detail": {
"type": "string"
},
"ok": {
"type": "boolean"
}
}
},
"storage": {
"type": "object",
"required": [
"ok"
],
"properties": {
"detail": {
"type": "string"
},
"ok": {
"type": "boolean"
}
}
}
}
},
"mode": {
"type": "string"
},
"ok": {
"type": "boolean"
},
"uptimeSeconds": {
"type": "number"
}
}
}Fields§
§checks: AdminDiagnosticsResponseChecks§mode: String§ok: bool§uptime_seconds: f64Implementations§
Source§impl AdminDiagnosticsResponse
impl AdminDiagnosticsResponse
pub fn builder() -> AdminDiagnosticsResponse
Trait Implementations§
Source§impl Clone for AdminDiagnosticsResponse
impl Clone for AdminDiagnosticsResponse
Source§fn clone(&self) -> AdminDiagnosticsResponse
fn clone(&self) -> AdminDiagnosticsResponse
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 AdminDiagnosticsResponse
impl Debug for AdminDiagnosticsResponse
Source§impl<'de> Deserialize<'de> for AdminDiagnosticsResponse
impl<'de> Deserialize<'de> for AdminDiagnosticsResponse
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<&AdminDiagnosticsResponse> for AdminDiagnosticsResponse
impl From<&AdminDiagnosticsResponse> for AdminDiagnosticsResponse
Source§fn from(value: &AdminDiagnosticsResponse) -> Self
fn from(value: &AdminDiagnosticsResponse) -> Self
Converts to this type from the input type.
Source§impl From<AdminDiagnosticsResponse> for AdminDiagnosticsResponse
impl From<AdminDiagnosticsResponse> for AdminDiagnosticsResponse
Source§fn from(value: AdminDiagnosticsResponse) -> Self
fn from(value: AdminDiagnosticsResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for AdminDiagnosticsResponse
impl Serialize for AdminDiagnosticsResponse
Source§impl TryFrom<AdminDiagnosticsResponse> for AdminDiagnosticsResponse
impl TryFrom<AdminDiagnosticsResponse> for AdminDiagnosticsResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: AdminDiagnosticsResponse) -> Result<Self, ConversionError>
fn try_from(value: AdminDiagnosticsResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for AdminDiagnosticsResponse
impl RefUnwindSafe for AdminDiagnosticsResponse
impl Send for AdminDiagnosticsResponse
impl Sync for AdminDiagnosticsResponse
impl Unpin for AdminDiagnosticsResponse
impl UnsafeUnpin for AdminDiagnosticsResponse
impl UnwindSafe for AdminDiagnosticsResponse
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