pub struct ResourceLinkContent {
pub uri: String,
pub name: String,
pub description: Option<String>,
pub mime_type: Option<String>,
pub size: Option<u64>,
pub icons: Vec<ResourceIcon>,
pub title: Option<String>,
pub annotations: Option<Annotations>,
pub extensions: Extensions,
}Expand description
A link to a resource, 2025-06-18 and later (PR #603).
Fields§
§uri: StringThe resource’s URI.
name: StringThe name to show.
description: Option<String>A human-readable description.
mime_type: Option<String>The media type, if known.
size: Option<u64>The size in bytes, if known.
icons: Vec<ResourceIcon>Icons for the resource. 2025-11-25, SEP-973.
https://github.com/modelcontextprotocol/modelcontextprotocol/issues/973
title: Option<String>A human-readable title for the resource. 2025-06-18.
Distinct from name: name is the identifier a client uses to ask for
the resource, title is a label for a human reading the result. The
specification defines both, and a link that carried only title across a
crossing would arrive stripped of it.
annotations: Option<Annotations>Optional annotations, 2025-03-26.
extensions: ExtensionsUnmodelled fields.
Implementations§
Source§impl ResourceLinkContent
impl ResourceLinkContent
Sourcepub fn required_features(&self) -> FeatureSet
pub fn required_features(&self) -> FeatureSet
What this block needs, over and above being a link.
Trait Implementations§
Source§impl Clone for ResourceLinkContent
impl Clone for ResourceLinkContent
Source§impl Debug for ResourceLinkContent
impl Debug for ResourceLinkContent
Source§impl PartialEq for ResourceLinkContent
impl PartialEq for ResourceLinkContent
impl StructuralPartialEq for ResourceLinkContent
Auto Trait Implementations§
impl Freeze for ResourceLinkContent
impl RefUnwindSafe for ResourceLinkContent
impl Send for ResourceLinkContent
impl Sync for ResourceLinkContent
impl Unpin for ResourceLinkContent
impl UnsafeUnpin for ResourceLinkContent
impl UnwindSafe for ResourceLinkContent
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