pub struct DependencyUsageQuery {
pub specifiers: Vec<String>,
pub sites: Option<SitePageRequest>,
pub closure_depth: Option<u32>,
}Expand description
What a dependency usage trace reports.
Fields§
§specifiers: Vec<String>Imported names to report. Empty reports all names.
sites: Option<SitePageRequest>The page of sites to report, or None for counts only.
closure_depth: Option<u32>The depth of the consumer closure, or None for no closure.
Implementations§
Source§impl DependencyUsageQuery
impl DependencyUsageQuery
Sourcepub fn new(
specifiers: Vec<String>,
sites: Option<SitePageRequest>,
closure_depth: Option<u32>,
) -> Result<DependencyUsageQuery, UsageQueryError>
pub fn new( specifiers: Vec<String>, sites: Option<SitePageRequest>, closure_depth: Option<u32>, ) -> Result<DependencyUsageQuery, UsageQueryError>
Build a validated query.
§Errors
Returns an error when the site limit is not in 1..=500 or the closure depth is not in 1..=10.
Trait Implementations§
Source§impl Clone for DependencyUsageQuery
impl Clone for DependencyUsageQuery
Source§fn clone(&self) -> DependencyUsageQuery
fn clone(&self) -> DependencyUsageQuery
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 DependencyUsageQuery
impl Debug for DependencyUsageQuery
Source§impl Default for DependencyUsageQuery
impl Default for DependencyUsageQuery
Source§fn default() -> DependencyUsageQuery
fn default() -> DependencyUsageQuery
Returns the “default value” for a type. Read more
impl Eq for DependencyUsageQuery
Source§impl PartialEq for DependencyUsageQuery
impl PartialEq for DependencyUsageQuery
impl StructuralPartialEq for DependencyUsageQuery
Auto Trait Implementations§
impl Freeze for DependencyUsageQuery
impl RefUnwindSafe for DependencyUsageQuery
impl Send for DependencyUsageQuery
impl Sync for DependencyUsageQuery
impl Unpin for DependencyUsageQuery
impl UnsafeUnpin for DependencyUsageQuery
impl UnwindSafe for DependencyUsageQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
Converts
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> ⓘ
Converts
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 more