#[non_exhaustive]pub enum ApprovalResolvedBy {
User,
Policy,
LlmJudge,
Unknown(String),
}Expand description
Who or what made an approval’s final decision. The set is open, so newer hosts may send other values.
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.
User
user: decided neither by policy nor by the LLM judge: a person’s
approval/decide or turn interrupt, or cleanup after a host restart.
Policy
policy: policy decided automatically, for example by denying the
action when no one can be asked.
LlmJudge
llmJudge: the automated LLM judge decided.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. 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 ApprovalResolvedBy
impl Clone for ApprovalResolvedBy
Source§impl Debug for ApprovalResolvedBy
impl Debug for ApprovalResolvedBy
Source§impl<'de> Deserialize<'de> for ApprovalResolvedBy
impl<'de> Deserialize<'de> for ApprovalResolvedBy
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 ApprovalResolvedBy
Source§impl PartialEq for ApprovalResolvedBy
impl PartialEq for ApprovalResolvedBy
Source§impl Serialize for ApprovalResolvedBy
impl Serialize for ApprovalResolvedBy
impl StructuralPartialEq for ApprovalResolvedBy
Auto Trait Implementations§
impl Forget for ApprovalResolvedBy
impl Freeze for ApprovalResolvedBy
impl Move for ApprovalResolvedBy
impl RefUnwindSafe for ApprovalResolvedBy
impl Send for ApprovalResolvedBy
impl Sync for ApprovalResolvedBy
impl Unpin for ApprovalResolvedBy
impl UnsafeUnpin for ApprovalResolvedBy
impl UnwindSafe for ApprovalResolvedBy
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