pub struct WebMcpToolAnnotations {
pub read_only: bool,
pub destructive: bool,
pub required_scopes: Vec<String>,
pub estimated_cost: Option<u64>,
}Expand description
Security and behavioral annotations for a WebMCP tool.
Agents use these to decide whether to auto-execute or prompt for user approval (aligns with CELLSTATE’s intent/autonomy system).
Fields§
§read_only: boolWhether this tool is read-only (safe to auto-execute).
destructive: boolWhether this tool mutates external state.
required_scopes: Vec<String>Required OAuth scopes for execution.
estimated_cost: Option<u64>Maximum cost in tokens this tool typically consumes.
Trait Implementations§
Source§impl Clone for WebMcpToolAnnotations
impl Clone for WebMcpToolAnnotations
Source§fn clone(&self) -> WebMcpToolAnnotations
fn clone(&self) -> WebMcpToolAnnotations
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 ComposeSchema for WebMcpToolAnnotations
impl ComposeSchema for WebMcpToolAnnotations
Source§impl Debug for WebMcpToolAnnotations
impl Debug for WebMcpToolAnnotations
Source§impl Default for WebMcpToolAnnotations
impl Default for WebMcpToolAnnotations
Source§fn default() -> WebMcpToolAnnotations
fn default() -> WebMcpToolAnnotations
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebMcpToolAnnotations
impl<'de> Deserialize<'de> for WebMcpToolAnnotations
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 WebMcpToolAnnotations
impl PartialEq for WebMcpToolAnnotations
Source§impl Serialize for WebMcpToolAnnotations
impl Serialize for WebMcpToolAnnotations
Source§impl ToSchema for WebMcpToolAnnotations
impl ToSchema for WebMcpToolAnnotations
impl StructuralPartialEq for WebMcpToolAnnotations
Auto Trait Implementations§
impl Freeze for WebMcpToolAnnotations
impl RefUnwindSafe for WebMcpToolAnnotations
impl Send for WebMcpToolAnnotations
impl Sync for WebMcpToolAnnotations
impl Unpin for WebMcpToolAnnotations
impl UnwindSafe for WebMcpToolAnnotations
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