pub struct Resource {
pub uri: String,
pub name: Option<String>,
pub description: Option<String>,
pub mime_type: Option<String>,
pub annotations: Option<Annotations>,
pub size: Option<u64>,
}
Expand description
Resource definition
Fieldsยง
ยงuri: String
URI of the resource
name: Option<String>
Human-readable name of the resource
description: Option<String>
Description of the resource
mime_type: Option<String>
MIME type of the resource
annotations: Option<Annotations>
Resource annotations (2025-03-26)
size: Option<u64>
Resource size in bytes (2025-03-26)
Trait Implementationsยง
Sourceยงimpl<'de> Deserialize<'de> for Resource
impl<'de> Deserialize<'de> for Resource
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
impl StructuralPartialEq for Resource
Auto Trait Implementationsยง
impl Freeze for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnwindSafe for Resource
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