pub struct ListRootsResult {
pub meta: Option<Map<String, Value>>,
pub roots: Vec<Root>,
}
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.
JSON schema
{
"description": "The client's response to a roots/list request from the server.\nThis result contains an array of Root objects, each representing a root directory\nor file that the server can operate on.",
"type": "object",
"required": [
"roots"
],
"properties": {
"_meta": {
"description": "This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.",
"type": "object",
"additionalProperties": {}
},
"roots": {
"type": "array",
"items": {
"$ref": "#/definitions/Root"
}
}
}
}
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>
Trait Implementations§
Source§impl Clone for ListRootsResult
impl Clone for ListRootsResult
Source§fn clone(&self) -> ListRootsResult
fn clone(&self) -> ListRootsResult
Returns a copy 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 From<ListRootsResult> for ClientResult
impl From<ListRootsResult> for ClientResult
Source§fn from(value: ListRootsResult) -> Self
fn from(value: ListRootsResult) -> Self
Converts to this type from the input type.
Source§impl From<ListRootsResult> for MessageFromClient
impl From<ListRootsResult> for MessageFromClient
Source§fn from(value: ListRootsResult) -> Self
fn from(value: ListRootsResult) -> Self
Converts to this type from the input type.
Source§impl From<ListRootsResult> for ResultFromClient
impl From<ListRootsResult> for ResultFromClient
Source§fn from(value: ListRootsResult) -> Self
fn from(value: ListRootsResult) -> Self
Converts to this type from the input type.
Source§impl FromMessage<ListRootsResult> for ClientMessage
impl FromMessage<ListRootsResult> for ClientMessage
fn from_message( message: ListRootsResult, request_id: Option<RequestId>, ) -> Result<Self, RpcError>
Source§impl Serialize for ListRootsResult
impl Serialize for ListRootsResult
Source§impl ToMessage<ClientMessage> for ListRootsResult
impl ToMessage<ClientMessage> for ListRootsResult
fn to_message( self, request_id: Option<RequestId>, ) -> Result<ClientMessage, RpcError>
Source§impl TryFrom<ResultFromClient> for ListRootsResult
impl TryFrom<ResultFromClient> 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