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 more