pub struct ProvenanceQueryLimits { /* private fields */ }Expand description
Bounds for a provenance ancestor or descendant query.
Implementations§
Source§impl ProvenanceQueryLimits
impl ProvenanceQueryLimits
Sourcepub fn new(max_depth: u32, max_representations: u32) -> Result<Self>
pub fn new(max_depth: u32, max_representations: u32) -> Result<Self>
Creates explicit provenance traversal bounds.
§Errors
Returns an invalid-argument error when either bound is zero or exceeds its documented maximum.
Sourcepub const fn max_depth(self) -> u32
pub const fn max_depth(self) -> u32
Returns the maximum number of activity edges followed in one path.
Sourcepub const fn max_representations(self) -> u32
pub const fn max_representations(self) -> u32
Returns the maximum number of representations visited.
Trait Implementations§
Source§impl Clone for ProvenanceQueryLimits
impl Clone for ProvenanceQueryLimits
Source§fn clone(&self) -> ProvenanceQueryLimits
fn clone(&self) -> ProvenanceQueryLimits
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 ProvenanceQueryLimits
Source§impl Debug for ProvenanceQueryLimits
impl Debug for ProvenanceQueryLimits
impl Eq for ProvenanceQueryLimits
Source§impl PartialEq for ProvenanceQueryLimits
impl PartialEq for ProvenanceQueryLimits
impl StructuralPartialEq for ProvenanceQueryLimits
Auto Trait Implementations§
impl Freeze for ProvenanceQueryLimits
impl RefUnwindSafe for ProvenanceQueryLimits
impl Send for ProvenanceQueryLimits
impl Sync for ProvenanceQueryLimits
impl Unpin for ProvenanceQueryLimits
impl UnsafeUnpin for ProvenanceQueryLimits
impl UnwindSafe for ProvenanceQueryLimits
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