pub struct ApprovalOption {
pub id: String,
pub label: Option<String>,
pub kind: Option<String>,
}Expand description
One answer the door that raised this request accepts.
id is the token the harness’s own responder expects — an ACP
optionId, an opencode reply word, a supercode frontend decision. It is
never invented: a row carries options only where the request itself
enumerates them or the pinned source documents the responder’s vocabulary.
Fields§
§id: StringToken passed back to the harness.
label: Option<String>Human label when the request carries one.
kind: Option<String>The protocol’s own classification of the answer, when it states one.
Trait Implementations§
Source§impl Clone for ApprovalOption
impl Clone for ApprovalOption
Source§fn clone(&self) -> ApprovalOption
fn clone(&self) -> ApprovalOption
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 ApprovalOption
impl Debug for ApprovalOption
Source§impl<'de> Deserialize<'de> for ApprovalOption
impl<'de> Deserialize<'de> for ApprovalOption
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 ApprovalOption
Source§impl PartialEq for ApprovalOption
impl PartialEq for ApprovalOption
Source§impl Serialize for ApprovalOption
impl Serialize for ApprovalOption
impl StructuralPartialEq for ApprovalOption
Auto Trait Implementations§
impl Freeze for ApprovalOption
impl RefUnwindSafe for ApprovalOption
impl Send for ApprovalOption
impl Sync for ApprovalOption
impl Unpin for ApprovalOption
impl UnsafeUnpin for ApprovalOption
impl UnwindSafe for ApprovalOption
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.