pub struct ListRootsParams {
pub meta: Option<HashMap<String, Value>>,
}
Expand description
Parameters for roots/list request (per MCP spec - no params required but can have _meta)
Fields§
§meta: Option<HashMap<String, Value>>
Meta information (optional _meta field inside params)
Implementations§
Source§impl ListRootsParams
impl ListRootsParams
pub fn new() -> ListRootsParams
pub fn with_meta(self, meta: HashMap<String, Value>) -> ListRootsParams
Trait Implementations§
Source§impl Clone for ListRootsParams
impl Clone for ListRootsParams
Source§fn clone(&self) -> ListRootsParams
fn clone(&self) -> ListRootsParams
Returns a duplicate of the value. Read more
1.0.0 · 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 ListRootsParams
impl Debug for ListRootsParams
Source§impl Default for ListRootsParams
impl Default for ListRootsParams
Source§fn default() -> ListRootsParams
fn default() -> ListRootsParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ListRootsParams
impl<'de> Deserialize<'de> for ListRootsParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ListRootsParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ListRootsParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl HasMetaParam for ListRootsParams
impl HasMetaParam for ListRootsParams
Source§impl Serialize for ListRootsParams
impl Serialize for ListRootsParams
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Params for ListRootsParams
Auto Trait Implementations§
impl Freeze for ListRootsParams
impl RefUnwindSafe for ListRootsParams
impl Send for ListRootsParams
impl Sync for ListRootsParams
impl Unpin for ListRootsParams
impl UnwindSafe for ListRootsParams
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