#[non_exhaustive]pub struct WebMCPToolAnnotations {
pub read_only: Option<bool>,
pub untrusted_content: Option<bool>,
pub consequential: Option<bool>,
}Expand description
Hints a page gives about a tool. Each is reported only when the page set it to true.
See: https://playwright.dev/docs/api/class-webmcp#webmcp-tools
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.read_only: Option<bool>The tool does not change anything (the page’s readOnlyHint).
untrusted_content: Option<bool>The tool’s output may hold content the page does not vouch for.
consequential: Option<bool>The tool has effects beyond the page.
Trait Implementations§
Source§impl Clone for WebMCPToolAnnotations
impl Clone for WebMCPToolAnnotations
Source§impl Debug for WebMCPToolAnnotations
impl Debug for WebMCPToolAnnotations
Source§impl Default for WebMCPToolAnnotations
impl Default for WebMCPToolAnnotations
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
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 UnsafeUnpin 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