pub struct ResourceListParams {
pub channel: Uri,
pub uri: Uri,
}Expand description
Lists directory entries at a file URI on the server’s filesystem.
This is intended for remote folder pickers and similar UI that needs to let users navigate the server’s local filesystem.
The server MUST return success only if the target exists and is a directory. If the target does not exist, is not a directory, or cannot be accessed, the server MUST return a JSON-RPC error.
Like all resource* methods, resourceList is symmetrical and MAY be
sent in either direction.
Fields§
§channel: UriChannel URI this command targets.
uri: UriDirectory URI on the server filesystem
Trait Implementations§
Source§impl Clone for ResourceListParams
impl Clone for ResourceListParams
Source§fn clone(&self) -> ResourceListParams
fn clone(&self) -> ResourceListParams
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 ResourceListParams
impl Debug for ResourceListParams
Source§impl<'de> Deserialize<'de> for ResourceListParams
impl<'de> Deserialize<'de> for ResourceListParams
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 ResourceListParams
impl PartialEq for ResourceListParams
Source§fn eq(&self, other: &ResourceListParams) -> bool
fn eq(&self, other: &ResourceListParams) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ResourceListParams
impl Serialize for ResourceListParams
impl StructuralPartialEq for ResourceListParams
Auto Trait Implementations§
impl Freeze for ResourceListParams
impl RefUnwindSafe for ResourceListParams
impl Send for ResourceListParams
impl Sync for ResourceListParams
impl Unpin for ResourceListParams
impl UnsafeUnpin for ResourceListParams
impl UnwindSafe for ResourceListParams
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