pub struct ResolveOptions {
pub endpoint: Option<String>,
pub connect_url: Option<String>,
pub cache_path: Option<String>,
}Expand description
Options for a resolve. All optional; defaults follow §5.3.
Fields§
§endpoint: Option<String>An explicit endpoint override. When set it WINS and skips the ladder (§5.3): a loopback host may use the node path; any other host is a verified rpc endpoint.
connect_url: Option<String>Override the “Connect to Node” CTA target on the unreachable page. Defaults
to pages::DEFAULT_CONNECT_URL.
cache_path: Option<String>Optional DISK cache directory. When set, verified rpc results are persisted
(as re-verifiable artifacts) and re-verified on read; absent ⇒ the in-memory
cache only. Backed by std::fs natively and by Node’s fs in the wasm build
under Node.js; a no-op clientside (a browser has no filesystem), where the
in-memory cache still applies.
Trait Implementations§
Source§impl Clone for ResolveOptions
impl Clone for ResolveOptions
Source§fn clone(&self) -> ResolveOptions
fn clone(&self) -> ResolveOptions
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 ResolveOptions
impl Debug for ResolveOptions
Source§impl Default for ResolveOptions
impl Default for ResolveOptions
Source§fn default() -> ResolveOptions
fn default() -> ResolveOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ResolveOptions
impl RefUnwindSafe for ResolveOptions
impl Send for ResolveOptions
impl Sync for ResolveOptions
impl Unpin for ResolveOptions
impl UnsafeUnpin for ResolveOptions
impl UnwindSafe for ResolveOptions
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