pub struct TurnRequest {
pub print_id: PrintId,
pub event: EventRecord,
pub image_path: Option<PathBuf>,
pub context_command: String,
}Expand description
What one supervision turn is asked to consider.
Fields§
§print_id: PrintIdThe print the turn is about.
event: EventRecordThe event that prompted the turn.
image_path: Option<PathBuf>The absolute path of the image to look at, when there is one.
context_command: StringThe command the turn runs to read the print’s context.
Trait Implementations§
Source§impl Clone for TurnRequest
impl Clone for TurnRequest
Source§fn clone(&self) -> TurnRequest
fn clone(&self) -> TurnRequest
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 TurnRequest
impl Debug for TurnRequest
Source§impl<'de> Deserialize<'de> for TurnRequest
impl<'de> Deserialize<'de> for TurnRequest
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 TurnRequest
impl JsonSchema for TurnRequest
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 TurnRequest
impl PartialEq for TurnRequest
Source§impl Serialize for TurnRequest
impl Serialize for TurnRequest
impl StructuralPartialEq for TurnRequest
Auto Trait Implementations§
impl Freeze for TurnRequest
impl RefUnwindSafe for TurnRequest
impl Send for TurnRequest
impl Sync for TurnRequest
impl Unpin for TurnRequest
impl UnsafeUnpin for TurnRequest
impl UnwindSafe for TurnRequest
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