#[non_exhaustive]pub enum SubagentResultStatus {
Completed,
Failed,
Cancelled,
Unknown(String),
}Expand description
subagentResult.resultStatus: the consumed attempt’s outcome. Absent when
the host had not seen that attempt’s result envelope at the drain; a client
then shows the child’s current outcome. Open: a client treats a value it
does not know as an absent member.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Completed
The attempt finished normally (its envelope names no error, or the generated child’s model-step cap).
Failed
The attempt failed (any other error the envelope names).
Cancelled
The attempt was cancelled, for example by a redirect.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the item. Excluded from the generated schema while the enum stays declared open; never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for SubagentResultStatus
impl Clone for SubagentResultStatus
Source§impl Debug for SubagentResultStatus
impl Debug for SubagentResultStatus
Source§impl<'de> Deserialize<'de> for SubagentResultStatus
impl<'de> Deserialize<'de> for SubagentResultStatus
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 SubagentResultStatus
Source§impl PartialEq for SubagentResultStatus
impl PartialEq for SubagentResultStatus
Source§impl Serialize for SubagentResultStatus
impl Serialize for SubagentResultStatus
impl StructuralPartialEq for SubagentResultStatus
Auto Trait Implementations§
impl Forget for SubagentResultStatus
impl Freeze for SubagentResultStatus
impl Move for SubagentResultStatus
impl RefUnwindSafe for SubagentResultStatus
impl Send for SubagentResultStatus
impl Sync for SubagentResultStatus
impl Unpin for SubagentResultStatus
impl UnsafeUnpin for SubagentResultStatus
impl UnwindSafe for SubagentResultStatus
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