pub enum ActionPostcondition {
UiElement {
role: Option<String>,
label: Option<String>,
exists: bool,
value_digest: Option<String>,
},
Filesystem {
path: String,
exists: bool,
content_digest: Option<String>,
},
Registry {
path: String,
name: String,
exists: bool,
value_digest: Option<String>,
},
Process {
pid: u32,
running: bool,
},
Window {
window_id: u64,
exists: bool,
},
}Expand description
Digest-only expected state independently verified by computer-use-mcp.
Variants§
UiElement
Expected UI element state, keyed by role/label with a value digest.
Fields
Filesystem
Expected filesystem state with a content digest.
Fields
Registry
Expected registry state with a value digest (Windows).
Fields
Process
Expected process state. Can only prove a process is not running.
Fields
Window
Expected window existence state.
Trait Implementations§
Source§impl Clone for ActionPostcondition
impl Clone for ActionPostcondition
Source§fn clone(&self) -> ActionPostcondition
fn clone(&self) -> ActionPostcondition
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 ActionPostcondition
impl Debug for ActionPostcondition
Source§impl<'de> Deserialize<'de> for ActionPostcondition
impl<'de> Deserialize<'de> for ActionPostcondition
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 PartialEq for ActionPostcondition
impl PartialEq for ActionPostcondition
Source§impl Serialize for ActionPostcondition
impl Serialize for ActionPostcondition
impl StructuralPartialEq for ActionPostcondition
Auto Trait Implementations§
impl Freeze for ActionPostcondition
impl RefUnwindSafe for ActionPostcondition
impl Send for ActionPostcondition
impl Sync for ActionPostcondition
impl Unpin for ActionPostcondition
impl UnsafeUnpin for ActionPostcondition
impl UnwindSafe for ActionPostcondition
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