pub struct DocumentTraversal {
pub follow_links: bool,
pub max_depth: Option<u16>,
pub max_documents: Option<u32>,
}Expand description
Bounded traversal applied after resolving the initial documents.
Fields§
§follow_links: boolFollow typed links to other registered documents.
max_depth: Option<u16>Optional maximum number of link edges from an initial document.
Omission selects DEFAULT_SCOPE_DEPTH when Self::follow_links is
true. The field is invalid when link traversal is disabled.
max_documents: Option<u32>Optional maximum number of distinct documents, including roots.
Omission selects DEFAULT_SCOPE_DOCUMENT_LIMIT when
Self::follow_links is true. The field is invalid when link traversal
is disabled.
Implementations§
Source§impl DocumentTraversal
impl DocumentTraversal
Sourcepub fn effective_max_depth(self) -> u16
pub fn effective_max_depth(self) -> u16
Effective edge limit after applying the native default.
Sourcepub fn effective_max_documents(self) -> u32
pub fn effective_max_documents(self) -> u32
Effective document budget after applying the native default.
Trait Implementations§
Source§impl Clone for DocumentTraversal
impl Clone for DocumentTraversal
Source§fn clone(&self) -> DocumentTraversal
fn clone(&self) -> DocumentTraversal
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 moreimpl Copy for DocumentTraversal
Source§impl Debug for DocumentTraversal
impl Debug for DocumentTraversal
Source§impl Default for DocumentTraversal
impl Default for DocumentTraversal
Source§fn default() -> DocumentTraversal
fn default() -> DocumentTraversal
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DocumentTraversal
impl<'de> Deserialize<'de> for DocumentTraversal
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
impl Eq for DocumentTraversal
Source§impl JsonSchema for DocumentTraversal
impl JsonSchema for DocumentTraversal
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for DocumentTraversal
impl PartialEq for DocumentTraversal
Source§impl Serialize for DocumentTraversal
impl Serialize for DocumentTraversal
impl StructuralPartialEq for DocumentTraversal
Auto Trait Implementations§
impl Freeze for DocumentTraversal
impl RefUnwindSafe for DocumentTraversal
impl Send for DocumentTraversal
impl Sync for DocumentTraversal
impl Unpin for DocumentTraversal
impl UnsafeUnpin for DocumentTraversal
impl UnwindSafe for DocumentTraversal
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