pub enum AdapterEvent {
DoctorReport {
schema_version: String,
runtime_id: RuntimeId,
report: DoctorReport,
},
CaseDiscovered {
schema_version: String,
runtime_id: RuntimeId,
case: Case,
},
CaseStarted {
schema_version: String,
case_id: CaseId,
runtime_id: RuntimeId,
},
Observation {
schema_version: String,
observation: Observation,
},
CaseFinished {
schema_version: String,
case_id: CaseId,
runtime_id: RuntimeId,
duration_ms: u64,
},
AdapterError {
schema_version: String,
runtime_id: RuntimeId,
case_id: Option<CaseId>,
message: String,
retryable: bool,
},
}Variants§
Implementations§
Source§impl AdapterEvent
impl AdapterEvent
pub fn observation(observation: Observation) -> Self
Trait Implementations§
Source§impl Clone for AdapterEvent
impl Clone for AdapterEvent
Source§impl Debug for AdapterEvent
impl Debug for AdapterEvent
Source§impl<'de> Deserialize<'de> for AdapterEvent
impl<'de> Deserialize<'de> for AdapterEvent
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 JsonSchema for AdapterEvent
impl JsonSchema for AdapterEvent
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 moreSource§impl PartialEq for AdapterEvent
impl PartialEq for AdapterEvent
Source§impl Serialize for AdapterEvent
impl Serialize for AdapterEvent
impl StructuralPartialEq for AdapterEvent
Auto Trait Implementations§
impl Forget for AdapterEvent
impl Freeze for AdapterEvent
impl Move for AdapterEvent
impl RefUnwindSafe for AdapterEvent
impl Send for AdapterEvent
impl Sync for AdapterEvent
impl Unpin for AdapterEvent
impl UnsafeUnpin for AdapterEvent
impl UnwindSafe for AdapterEvent
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