pub struct ResourceResolveParams {
pub channel: Uri,
pub uri: Uri,
pub follow_symlinks: Option<bool>,
}Expand description
Resolves a resource — the combination of POSIX stat and realpath.
resourceResolve returns metadata about the resource together with its
canonical URI after symlink resolution. Use this in place of any
resourceExists shim: a missing resource MUST surface as a NotFound
JSON-RPC error rather than a success with a sentinel value. Callers that
truly need a boolean check should attempt resourceResolve and treat
NotFound as “does not exist”.
Like all resource* methods, resourceResolve is symmetrical and MAY be
sent in either direction.
Fields§
§channel: UriChannel URI this command targets.
uri: UriURI to resolve
follow_symlinks: Option<bool>When true (default), follow symlinks and report the metadata of the
link target — and set uri in the result to the canonical (realpath)
URI. When false, stat the link itself (lstat semantics) and report
type: 'symlink'.
Trait Implementations§
Source§impl Clone for ResourceResolveParams
impl Clone for ResourceResolveParams
Source§fn clone(&self) -> ResourceResolveParams
fn clone(&self) -> ResourceResolveParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResourceResolveParams
impl Debug for ResourceResolveParams
Source§impl<'de> Deserialize<'de> for ResourceResolveParams
impl<'de> Deserialize<'de> for ResourceResolveParams
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>,
Source§impl PartialEq for ResourceResolveParams
impl PartialEq for ResourceResolveParams
Source§fn eq(&self, other: &ResourceResolveParams) -> bool
fn eq(&self, other: &ResourceResolveParams) -> bool
self and other values to be equal, and is used by ==.