pub struct MetadataQuery { /* private fields */ }Expand description
Optional exact scalar predicate for a metadata-property query.
Implementations§
Source§impl MetadataQuery
impl MetadataQuery
Sourcepub fn new(
property: MetadataProperty,
exact_value: Option<MetadataValue>,
) -> Result<Self>
pub fn new( property: MetadataProperty, exact_value: Option<MetadataValue>, ) -> Result<Self>
Creates a property query with an optional exact scalar value.
§Errors
Returns an invalid-argument error when the predicate is a collection.
Sourcepub const fn property(&self) -> &MetadataProperty
pub const fn property(&self) -> &MetadataProperty
Returns the required metadata property.
Sourcepub const fn exact_value(&self) -> Option<&MetadataValue>
pub const fn exact_value(&self) -> Option<&MetadataValue>
Returns the optional exact scalar value.
Trait Implementations§
Source§impl Clone for MetadataQuery
impl Clone for MetadataQuery
Source§fn clone(&self) -> MetadataQuery
fn clone(&self) -> MetadataQuery
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 MetadataQuery
impl Debug for MetadataQuery
impl Eq for MetadataQuery
Source§impl PartialEq for MetadataQuery
impl PartialEq for MetadataQuery
impl StructuralPartialEq for MetadataQuery
Auto Trait Implementations§
impl Freeze for MetadataQuery
impl RefUnwindSafe for MetadataQuery
impl Send for MetadataQuery
impl Sync for MetadataQuery
impl Unpin for MetadataQuery
impl UnsafeUnpin for MetadataQuery
impl UnwindSafe for MetadataQuery
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