pub struct RequestedWorkerOutcome {
pub status: RequestedWorkerStatus,
pub reason_code: Option<String>,
pub next_action: Option<String>,
}Expand description
The structured result of evaluating a requested worker.
Fields§
§status: RequestedWorkerStatusOutcome class.
reason_code: Option<String>Stable incident reason code (RCH-Innn) for a refusal, when applicable.
next_action: Option<String>Concrete next action for the agent on a refusal.
Implementations§
Source§impl RequestedWorkerOutcome
impl RequestedWorkerOutcome
Sourcepub fn not_requested() -> Self
pub fn not_requested() -> Self
Outcome for “no worker requested”.
Trait Implementations§
Source§impl Clone for RequestedWorkerOutcome
impl Clone for RequestedWorkerOutcome
Source§impl Debug for RequestedWorkerOutcome
impl Debug for RequestedWorkerOutcome
Source§impl<'de> Deserialize<'de> for RequestedWorkerOutcome
impl<'de> Deserialize<'de> for RequestedWorkerOutcome
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
impl Eq for RequestedWorkerOutcome
Source§impl JsonSchema for RequestedWorkerOutcome
impl JsonSchema for RequestedWorkerOutcome
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 RequestedWorkerOutcome
impl PartialEq for RequestedWorkerOutcome
Source§impl Serialize for RequestedWorkerOutcome
impl Serialize for RequestedWorkerOutcome
impl StructuralPartialEq for RequestedWorkerOutcome
Auto Trait Implementations§
impl Freeze for RequestedWorkerOutcome
impl RefUnwindSafe for RequestedWorkerOutcome
impl Send for RequestedWorkerOutcome
impl Sync for RequestedWorkerOutcome
impl Unpin for RequestedWorkerOutcome
impl UnsafeUnpin for RequestedWorkerOutcome
impl UnwindSafe for RequestedWorkerOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.