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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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<ListRootsResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ListRootsResult, <__D as Deserializer<'de>>::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) -> ClientResult
fn from(value: ListRootsResult) -> ClientResult
Converts to this type from the input type.
Source§impl From<ListRootsResult> for MessageFromClient
impl From<ListRootsResult> for MessageFromClient
Source§fn from(value: ListRootsResult) -> MessageFromClient
fn from(value: ListRootsResult) -> MessageFromClient
Converts to this type from the input type.
Source§impl From<ListRootsResult> for ResultFromClient
impl From<ListRootsResult> for ResultFromClient
Source§fn from(value: ListRootsResult) -> ResultFromClient
fn from(value: ListRootsResult) -> ResultFromClient
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<ClientMessage, RpcError>
Source§impl Serialize for ListRootsResult
impl Serialize for ListRootsResult
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
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
Source§fn try_from(
value: ResultFromClient,
) -> Result<ListRootsResult, <ListRootsResult as TryFrom<ResultFromClient>>::Error>
fn try_from( value: ResultFromClient, ) -> Result<ListRootsResult, <ListRootsResult as TryFrom<ResultFromClient>>::Error>
Performs the conversion.
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