pub struct OperationRecord {Show 13 fields
pub id: String,
pub runtime_id: String,
pub target_id: String,
pub action: String,
pub state: OperationState,
pub outcome: ActionOutcome,
pub dispatch_intent: bool,
pub preparation_intent: bool,
pub started_at_ms: u64,
pub finished_at_ms: Option<u64>,
pub receipt: Option<ActionReceipt>,
pub error_code: Option<String>,
pub error: Option<ErrorDetail>,
}Fields§
§id: String§runtime_id: String§target_id: String§action: String§state: OperationState§outcome: ActionOutcome§dispatch_intent: bool§preparation_intent: bool§started_at_ms: u64§finished_at_ms: Option<u64>§receipt: Option<ActionReceipt>§error_code: Option<String>§error: Option<ErrorDetail>Implementations§
Source§impl OperationRecord
impl OperationRecord
pub fn status(&self) -> OperationStatus
Trait Implementations§
Source§impl Clone for OperationRecord
impl Clone for OperationRecord
Source§impl Debug for OperationRecord
impl Debug for OperationRecord
Source§impl<'de> Deserialize<'de> for OperationRecord
impl<'de> Deserialize<'de> for OperationRecord
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<OperationRecord> for ActionResult
impl From<OperationRecord> for ActionResult
Source§fn from(record: OperationRecord) -> Self
fn from(record: OperationRecord) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for OperationRecord
impl JsonSchema for OperationRecord
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 Forget for OperationRecord
impl Freeze for OperationRecordwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ErrorContext is !null: Freeze,
PhantomData<ErrorContext>: Freeze,
impl Move for OperationRecord
impl RefUnwindSafe for OperationRecord
impl Send for OperationRecord
impl Sync for OperationRecord
impl Unpin for OperationRecord
impl UnsafeUnpin for OperationRecordwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ErrorContext is !null: UnsafeUnpin,
PhantomData<ErrorContext>: UnsafeUnpin,
impl UnwindSafe for OperationRecord
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