pub struct McpResource { /* private fields */ }Expand description
Metadata describing one readable MCP resource.
Implementations§
Source§impl McpResource
impl McpResource
pub fn get_uri(&self) -> &String
pub fn get_mut_uri(&mut self) -> &mut String
pub fn set_uri(&mut self, val: String) -> &mut Self
pub fn get_name(&self) -> &String
pub fn get_mut_name(&mut self) -> &mut String
pub fn set_name(&mut self, val: String) -> &mut Self
pub fn get_description(&self) -> &String
pub fn get_mut_description(&mut self) -> &mut String
pub fn set_description(&mut self, val: String) -> &mut Self
pub fn get_mime_type(&self) -> &String
pub fn get_mut_mime_type(&mut self) -> &mut String
pub fn set_mime_type(&mut self, val: String) -> &mut Self
Trait Implementations§
Source§impl Clone for McpResource
impl Clone for McpResource
Source§impl Debug for McpResource
impl Debug for McpResource
Source§impl<'de> Deserialize<'de> for McpResource
impl<'de> Deserialize<'de> for McpResource
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 Eq for McpResource
Source§impl PartialEq for McpResource
impl PartialEq for McpResource
Source§impl Serialize for McpResource
impl Serialize for McpResource
impl StructuralPartialEq for McpResource
Auto Trait Implementations§
impl Forget for McpResource
impl Freeze for McpResource
impl Move for McpResource
impl RefUnwindSafe for McpResource
impl Send for McpResourcewhere
RawVecInner: Send,
impl Sync for McpResourcewhere
RawVecInner: Sync,
impl Unpin for McpResource
impl UnsafeUnpin for McpResource
impl UnwindSafe for McpResourcewhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.