pub struct ApprovalId(pub String);Expand description
Identifies a pending tool-use approval request.
When a tool requires human approval, the loop emits an approval request tagged with this ID. The caller responds with a decision keyed to the same ID.
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl Clone for ApprovalId
impl Clone for ApprovalId
Source§fn clone(&self) -> ApprovalId
fn clone(&self) -> ApprovalId
Returns a duplicate of the value. Read more
1.0.0 · 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 ApprovalId
impl Debug for ApprovalId
Source§impl Default for ApprovalId
impl Default for ApprovalId
Source§fn default() -> ApprovalId
fn default() -> ApprovalId
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApprovalId
impl<'de> Deserialize<'de> for ApprovalId
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 Display for ApprovalId
impl Display for ApprovalId
Source§impl From<&str> for ApprovalId
impl From<&str> for ApprovalId
Source§impl From<String> for ApprovalId
impl From<String> for ApprovalId
Source§impl Hash for ApprovalId
impl Hash for ApprovalId
Source§impl Ord for ApprovalId
impl Ord for ApprovalId
Source§fn cmp(&self, other: &ApprovalId) -> Ordering
fn cmp(&self, other: &ApprovalId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ApprovalId
impl PartialEq for ApprovalId
Source§impl PartialOrd for ApprovalId
impl PartialOrd for ApprovalId
Source§impl Serialize for ApprovalId
impl Serialize for ApprovalId
impl Eq for ApprovalId
impl StructuralPartialEq for ApprovalId
Auto Trait Implementations§
impl Freeze for ApprovalId
impl RefUnwindSafe for ApprovalId
impl Send for ApprovalId
impl Sync for ApprovalId
impl Unpin for ApprovalId
impl UnsafeUnpin for ApprovalId
impl UnwindSafe for ApprovalId
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