pub struct DatastreamObject { /* private fields */ }Expand description
Interface of type datastream object.
For this interface all the mappings have the same prefix and configurations.
Implementations§
Source§impl DatastreamObject
impl DatastreamObject
Sourcepub fn reliability(&self) -> Reliability
pub fn reliability(&self) -> Reliability
Return the reliability for the object.
Sourcepub fn explicit_timestamp(&self) -> bool
pub fn explicit_timestamp(&self) -> bool
Return true if the object requires an explicit timestamp.
Otherwise the reception timestamp is used.
Sourcepub fn is_object_path(&self, path: &MappingPath<'_>) -> bool
pub fn is_object_path(&self, path: &MappingPath<'_>) -> bool
Check if the path if the correct one for this object interface.
Sourcepub fn mapping(&self, path: &str) -> Option<&DatastreamObjectMapping>
pub fn mapping(&self, path: &str) -> Option<&DatastreamObjectMapping>
Get a mapping for in the object for the given field.
The field is the last level of an endpoint.
Trait Implementations§
Source§impl Clone for DatastreamObject
impl Clone for DatastreamObject
Source§fn clone(&self) -> DatastreamObject
fn clone(&self) -> DatastreamObject
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 DatastreamObject
impl Debug for DatastreamObject
Source§impl Display for DatastreamObject
impl Display for DatastreamObject
Source§impl FromStr for DatastreamObject
impl FromStr for DatastreamObject
Source§impl PartialEq for DatastreamObject
impl PartialEq for DatastreamObject
Source§fn eq(&self, other: &DatastreamObject) -> bool
fn eq(&self, other: &DatastreamObject) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Schema for DatastreamObject
impl Schema for DatastreamObject
Source§type Mapping = DatastreamObjectMapping
type Mapping = DatastreamObjectMapping
Mapping specific for the interface type and aggregation.
Source§fn interface_name(&self) -> &InterfaceName
fn interface_name(&self) -> &InterfaceName
Returns the interface name.
Source§fn version_major(&self) -> i32
fn version_major(&self) -> i32
Returns the interface major version.
Source§fn version_minor(&self) -> i32
fn version_minor(&self) -> i32
Returns the interface minor version.
Source§fn version(&self) -> InterfaceVersion
fn version(&self) -> InterfaceVersion
Returns the interface version.
Source§fn interface_type(&self) -> InterfaceType
fn interface_type(&self) -> InterfaceType
Returns the interface type.
Source§fn aggregation(&self) -> Aggregation
fn aggregation(&self) -> Aggregation
Returns the interface aggregation.
Source§fn iter_mappings(&self) -> impl Iterator<Item = &Self::Mapping>
fn iter_mappings(&self) -> impl Iterator<Item = &Self::Mapping>
Returns an iterator over the interface’s mappings.
Source§fn mappings_len(&self) -> usize
fn mappings_len(&self) -> usize
Returns the number of Mappings in the interface.
Source§impl Serialize for DatastreamObject
impl Serialize for DatastreamObject
Source§impl<T> TryFrom<InterfaceJson<T>> for DatastreamObject
impl<T> TryFrom<InterfaceJson<T>> for DatastreamObject
impl Eq for DatastreamObject
impl StructuralPartialEq for DatastreamObject
Auto Trait Implementations§
impl Freeze for DatastreamObject
impl RefUnwindSafe for DatastreamObject
impl Send for DatastreamObject
impl Sync for DatastreamObject
impl Unpin for DatastreamObject
impl UnsafeUnpin for DatastreamObject
impl UnwindSafe for DatastreamObject
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.