pub struct BondQuery {
pub source: Option<PathBuf>,
pub target: Option<PathBuf>,
pub metadata: Option<MetadataFilter>,
}Expand description
Composable filter object for querying bonds.
All fields are optional. When multiple fields are set, they are combined with AND logic.
Fields§
§source: Option<PathBuf>§target: Option<PathBuf>§metadata: Option<MetadataFilter>Implementations§
Source§impl BondQuery
impl BondQuery
Sourcepub fn with_source<P: AsRef<Path>>(self, source: P) -> Self
pub fn with_source<P: AsRef<Path>>(self, source: P) -> Self
Add an exact source-path filter.
Sourcepub fn with_target<P: AsRef<Path>>(self, target: P) -> Self
pub fn with_target<P: AsRef<Path>>(self, target: P) -> Self
Add an exact target-path filter.
Sourcepub fn with_metadata_key(self, key: impl Into<String>) -> Self
pub fn with_metadata_key(self, key: impl Into<String>) -> Self
Add a metadata key-exists filter.
Trait Implementations§
impl Eq for BondQuery
impl StructuralPartialEq for BondQuery
Auto Trait Implementations§
impl Freeze for BondQuery
impl RefUnwindSafe for BondQuery
impl Send for BondQuery
impl Sync for BondQuery
impl Unpin for BondQuery
impl UnsafeUnpin for BondQuery
impl UnwindSafe for BondQuery
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§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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.