pub enum TestEventPayload {
SessionStarted,
SessionEnded {
outcome: SessionOutcome,
reason: Option<String>,
},
ObservationCaptured {
observation: Box<Observation>,
},
ActionStarted {
call: RecordedActionCall,
},
ActionCompleted {
call_id: Uuid,
outcome: ActionOutcome,
},
MediaStreamStarted {
stream: MediaStreamInfo,
},
MediaFrameCaptured {
frame: MediaFrame,
},
MediaStreamEnded {
stream_id: MediaStreamId,
frame_count: u64,
},
VerdictRecorded {
verdict: Verdict,
},
Error {
error: ErrorInfo,
},
}Variants§
SessionStarted
SessionEnded
ObservationCaptured
Fields
§
observation: Box<Observation>ActionStarted
Fields
§
call: RecordedActionCallActionCompleted
MediaStreamStarted
Fields
§
stream: MediaStreamInfoMediaFrameCaptured
Fields
§
frame: MediaFrameMediaStreamEnded
VerdictRecorded
Error
Implementations§
Source§impl TestEventPayload
impl TestEventPayload
Sourcepub fn required_protocol_minor(&self) -> u16
pub fn required_protocol_minor(&self) -> u16
Lowest Protocol 1.x minor that can represent this payload without silently dropping additive fields.
Trait Implementations§
Source§impl Clone for TestEventPayload
impl Clone for TestEventPayload
Source§fn clone(&self) -> TestEventPayload
fn clone(&self) -> TestEventPayload
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 TestEventPayload
impl Debug for TestEventPayload
Source§impl<'de> Deserialize<'de> for TestEventPayload
impl<'de> Deserialize<'de> for TestEventPayload
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 TestEventPayload
impl JsonSchema for TestEventPayload
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 TestEventPayload
impl PartialEq for TestEventPayload
Source§impl Serialize for TestEventPayload
impl Serialize for TestEventPayload
impl StructuralPartialEq for TestEventPayload
Auto Trait Implementations§
impl Freeze for TestEventPayload
impl RefUnwindSafe for TestEventPayload
impl Send for TestEventPayload
impl Sync for TestEventPayload
impl Unpin for TestEventPayload
impl UnsafeUnpin for TestEventPayload
impl UnwindSafe for TestEventPayload
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