pub struct ResolveOptions {
pub branch: Option<String>,
pub commit: Option<String>,
pub tag: Option<String>,
pub path: Option<String>,
pub recursive: Option<bool>,
pub max_depth: Option<usize>,
}Expand description
Options for resolving a NAP URI. All are optional — omitting all
causes the resolver to use its ResolveConfig::default_branch (if
configured) or fail with NapError::NoDefaultBranch.
Fields§
§branch: Option<String>Resolve at a specific branch. e.g., "canon".
Takes precedence over ResolveConfig::default_branch.
commit: Option<String>Resolve at a specific commit hash (BLAKE3). e.g.,
"af1349b9f5f9a1a6a0404deb36d020949b834f2a42e37e5f8d2e4ba2765f1a2f".
Takes precedence over branch and ResolveConfig::default_branch.
tag: Option<String>Resolve at a specific tag.
path: Option<String>Subtree query path (overrides URI fragment). e.g., "appearances.audienceVotes".
recursive: Option<bool>Recursively resolve nested URIs. When true, the resolver will follow all nap:// URIs found in the resolved manifest and resolve them as well.
max_depth: Option<usize>Maximum recursion depth for recursive resolution. Defaults to 10 to prevent infinite loops. Set to None for unlimited depth (not recommended).
Trait Implementations§
Source§impl Clone for ResolveOptions
impl Clone for ResolveOptions
Source§fn clone(&self) -> ResolveOptions
fn clone(&self) -> ResolveOptions
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 ResolveOptions
impl Debug for ResolveOptions
Source§impl Default for ResolveOptions
impl Default for ResolveOptions
Source§fn default() -> ResolveOptions
fn default() -> ResolveOptions
Source§impl<'de> Deserialize<'de> for ResolveOptions
impl<'de> Deserialize<'de> for ResolveOptions
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>,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request