pub struct DatastreamObjectMapping { /* private fields */ }Expand description
Shared struct for a mapping for all interface types.
Implementations§
Source§impl DatastreamObjectMapping
impl DatastreamObjectMapping
Sourcepub fn required(&self) -> bool
pub fn required(&self) -> bool
Flag to specify if the mapping is required.
Object Aggregates mappings are optional by default, with this flag you can mark it as required.
Sourcepub fn cmp_object_field(&self, path: &str) -> Ordering
pub fn cmp_object_field(&self, path: &str) -> Ordering
Compares the object field with the mapping endpoint.
Returns the ordering of the mappings.
Sourcepub fn eq_object_field(&self, path: &str) -> bool
pub fn eq_object_field(&self, path: &str) -> bool
Compares the object field with the mapping endpoint.
Returns true if the last level is equal to the object field.
Trait Implementations§
Source§impl Clone for DatastreamObjectMapping
impl Clone for DatastreamObjectMapping
Source§fn clone(&self) -> DatastreamObjectMapping
fn clone(&self) -> DatastreamObjectMapping
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 DatastreamObjectMapping
impl Debug for DatastreamObjectMapping
Source§impl InterfaceMapping for DatastreamObjectMapping
impl InterfaceMapping for DatastreamObjectMapping
Source§fn mapping_type(&self) -> MappingType
fn mapping_type(&self) -> MappingType
Returns the mapping type.
Source§impl PartialEq for DatastreamObjectMapping
impl PartialEq for DatastreamObjectMapping
Source§fn eq(&self, other: &DatastreamObjectMapping) -> bool
fn eq(&self, other: &DatastreamObjectMapping) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<T> TryFrom<Mapping<T>> for DatastreamObjectMapping
impl<T> TryFrom<Mapping<T>> for DatastreamObjectMapping
impl Eq for DatastreamObjectMapping
impl StructuralPartialEq for DatastreamObjectMapping
Auto Trait Implementations§
impl Freeze for DatastreamObjectMapping
impl RefUnwindSafe for DatastreamObjectMapping
impl Send for DatastreamObjectMapping
impl Sync for DatastreamObjectMapping
impl Unpin for DatastreamObjectMapping
impl UnsafeUnpin for DatastreamObjectMapping
impl UnwindSafe for DatastreamObjectMapping
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.