pub struct McpResourceAnnotations {
pub additional_properties: Option<HashMap<String, Value>>,
pub audience: Option<Vec<String>>,
pub last_modified: Option<String>,
pub priority: Option<f64>,
}Expand description
Standard MCP resource annotations plus preserved non-standard annotation fields.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§additional_properties: Option<HashMap<String, Value>>Server-provided non-standard annotation fields preserved from the MCP response
audience: Option<Vec<String>>Intended audience roles for this resource
last_modified: Option<String>Last-modified timestamp hint
priority: Option<f64>Priority hint for model/client use
Trait Implementations§
Source§impl Clone for McpResourceAnnotations
impl Clone for McpResourceAnnotations
Source§fn clone(&self) -> McpResourceAnnotations
fn clone(&self) -> McpResourceAnnotations
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 McpResourceAnnotations
impl Debug for McpResourceAnnotations
Source§impl Default for McpResourceAnnotations
impl Default for McpResourceAnnotations
Source§fn default() -> McpResourceAnnotations
fn default() -> McpResourceAnnotations
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for McpResourceAnnotations
impl<'de> Deserialize<'de> for McpResourceAnnotations
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
Auto Trait Implementations§
impl Freeze for McpResourceAnnotations
impl RefUnwindSafe for McpResourceAnnotations
impl Send for McpResourceAnnotations
impl Sync for McpResourceAnnotations
impl Unpin for McpResourceAnnotations
impl UnsafeUnpin for McpResourceAnnotations
impl UnwindSafe for McpResourceAnnotations
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