pub struct ListRootsParams {
pub meta: Option<RequestMeta>,
}Expand description
Sent from the server to request a list of root URIs from the client. Roots allow servers to ask for specific directories or files to operate on.
TS Ref: ListRootsRequest
Fields§
§meta: Option<RequestMeta>Optional metadata (_meta) for the request.
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 (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 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<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
Source§impl IntoMcpRequest<ListRootsParams> for ListRootsParams
impl IntoMcpRequest<ListRootsParams> for ListRootsParams
const METHOD: &'static str = "roots/list"
type McpResult = ListRootsResult
fn into_mcp_request(self) -> McpRequest<P>
Auto Trait Implementations§
impl Freeze for ListRootsParams
impl RefUnwindSafe for ListRootsParams
impl Send for ListRootsParams
impl Sync for ListRootsParams
impl Unpin for ListRootsParams
impl UnsafeUnpin 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