pub struct BackendCheck<C = NoErrorCode> {
pub backend: &'static str,
pub ok: bool,
pub code: Option<C>,
pub error: Option<String>,
}Available on crate feature
terminal only.Expand description
Outcome of checking one backend’s connection.
Fields§
§backend: &'static strThe backend that was checked.
ok: boolWhether it answered.
code: Option<C>The stable code of the failure, null when it answered or the
failure carries none.
error: Option<String>Why it did not answer, null when it did.
Implementations§
Trait Implementations§
Source§impl<C: Clone> Clone for BackendCheck<C>
impl<C: Clone> Clone for BackendCheck<C>
Source§impl<C: Debug> Debug for BackendCheck<C>
impl<C: Debug> Debug for BackendCheck<C>
Source§impl<C> JsonSchema for BackendCheck<C>where
C: JsonSchema,
impl<C> JsonSchema for BackendCheck<C>where
C: JsonSchema,
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl<C> Forget for BackendCheck<C>
impl<C> Freeze for BackendCheck<C>
impl<C> Move for BackendCheck<C>
impl<C> RefUnwindSafe for BackendCheck<C>where
Option<C>: RefUnwindSafe,
impl<C> Send for BackendCheck<C>
impl<C> Sync for BackendCheck<C>
impl<C> Unpin for BackendCheck<C>
impl<C> UnsafeUnpin for BackendCheck<C>where
Option<C>: UnsafeUnpin,
impl<C> UnwindSafe for BackendCheck<C>where
Option<C>: UnwindSafe,
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