pub struct MetadataAssertion { /* private fields */ }Expand description
One independently repeatable assertion about a target object.
Implementations§
Source§impl MetadataAssertion
impl MetadataAssertion
Sourcepub const fn new(property: MetadataProperty, value: MetadataValue) -> Self
pub const fn new(property: MetadataProperty, value: MetadataValue) -> Self
Creates an assertion. Repetition is represented by multiple assertions.
Sourcepub const fn property(&self) -> &MetadataProperty
pub const fn property(&self) -> &MetadataProperty
Returns the asserted property.
Sourcepub const fn value(&self) -> &MetadataValue
pub const fn value(&self) -> &MetadataValue
Returns the asserted value.
Trait Implementations§
Source§impl Clone for MetadataAssertion
impl Clone for MetadataAssertion
Source§fn clone(&self) -> MetadataAssertion
fn clone(&self) -> MetadataAssertion
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 MetadataAssertion
impl Debug for MetadataAssertion
impl Eq for MetadataAssertion
Source§impl Hash for MetadataAssertion
impl Hash for MetadataAssertion
Source§impl PartialEq for MetadataAssertion
impl PartialEq for MetadataAssertion
Source§fn eq(&self, other: &MetadataAssertion) -> bool
fn eq(&self, other: &MetadataAssertion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MetadataAssertion
Auto Trait Implementations§
impl Freeze for MetadataAssertion
impl RefUnwindSafe for MetadataAssertion
impl Send for MetadataAssertion
impl Sync for MetadataAssertion
impl Unpin for MetadataAssertion
impl UnsafeUnpin for MetadataAssertion
impl UnwindSafe for MetadataAssertion
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