pub struct ListRootsRequest {
pub method: MustBeStr<(r, o, o, t, s, (char<'/'>, l, i, s, t))>,
pub params: Option<ListRootsRequestParams>,
pub extra: Map<String, Value>,
}
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. A common example for roots is providing a set of repositories or directories a server should operate on.
This request is typically used when the server needs to understand the file system structure or access specific locations that the client has permission to read from.
Fields§
§method: MustBeStr<(r, o, o, t, s, (char<'/'>, l, i, s, t))>
§params: Option<ListRootsRequestParams>
§extra: Map<String, Value>
Additional parameters that are not part of the schema.
Trait Implementations§
Source§impl Clone for ListRootsRequest
impl Clone for ListRootsRequest
Source§fn clone(&self) -> ListRootsRequest
fn clone(&self) -> ListRootsRequest
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 ListRootsRequest
impl Debug for ListRootsRequest
Source§impl<'de> Deserialize<'de> for ListRootsRequest
impl<'de> Deserialize<'de> for ListRootsRequest
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 PartialEq for ListRootsRequest
impl PartialEq for ListRootsRequest
Source§impl Serialize for ListRootsRequest
impl Serialize for ListRootsRequest
impl StructuralPartialEq for ListRootsRequest
Auto Trait Implementations§
impl Freeze for ListRootsRequest
impl RefUnwindSafe for ListRootsRequest
impl Send for ListRootsRequest
impl Sync for ListRootsRequest
impl Unpin for ListRootsRequest
impl UnwindSafe for ListRootsRequest
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