pub struct ListRootsResult {
pub meta: Option<Map<String, Value>>,
pub roots: Vec<Root>,
pub extra: Map<String, Value>,
}
Expand description
The client’s response to a roots/list request from the server. This result contains an array of Root objects, each representing a root directory or file that the server can operate on.
Fields§
§meta: Option<Map<String, Value>>
This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
roots: Vec<Root>
§extra: Map<String, Value>
Additional parameters that are not part of the schema.
Trait Implementations§
Source§impl Clone for ListRootsResult
impl Clone for ListRootsResult
Source§fn clone(&self) -> ListRootsResult
fn clone(&self) -> ListRootsResult
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 ListRootsResult
impl Debug for ListRootsResult
Source§impl<'de> Deserialize<'de> for ListRootsResult
impl<'de> Deserialize<'de> for ListRootsResult
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 ListRootsResult
impl PartialEq for ListRootsResult
Source§impl Serialize for ListRootsResult
impl Serialize for ListRootsResult
impl StructuralPartialEq for ListRootsResult
Auto Trait Implementations§
impl Freeze for ListRootsResult
impl RefUnwindSafe for ListRootsResult
impl Send for ListRootsResult
impl Sync for ListRootsResult
impl Unpin for ListRootsResult
impl UnwindSafe for ListRootsResult
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