pub struct DataTrackSchemaId { /* private fields */ }Expand description
Identifier for a data track schema.
A compound identifier with two components: name and encoding.
Two IDs are equal only if both components match; the same name with a different encoding refers to a distinct schema. Cloning this type is cheap.
§Examples
let schema = DataTrackSchemaId::new("my_schema", DataTrackSchemaEncoding::Protobuf);
assert_eq!(schema.name(), "my_schema");
assert_eq!(schema.encoding(), &DataTrackSchemaEncoding::Protobuf);Implementations§
Trait Implementations§
Source§impl Clone for DataTrackSchemaId
impl Clone for DataTrackSchemaId
Source§fn clone(&self) -> DataTrackSchemaId
fn clone(&self) -> DataTrackSchemaId
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 DataTrackSchemaId
impl Debug for DataTrackSchemaId
impl Eq for DataTrackSchemaId
Source§impl From<DataTrackSchemaId> for DataTrackSchemaId
impl From<DataTrackSchemaId> for DataTrackSchemaId
Source§fn from(msg: DataTrackSchemaId) -> Self
fn from(msg: DataTrackSchemaId) -> Self
Converts to this type from the input type.
Source§impl From<DataTrackSchemaId> for DataTrackSchemaId
impl From<DataTrackSchemaId> for DataTrackSchemaId
Source§fn from(value: DataTrackSchemaId) -> Self
fn from(value: DataTrackSchemaId) -> Self
Converts to this type from the input type.
Source§impl From<DataTrackSchemaId> for DataBlobKey
impl From<DataTrackSchemaId> for DataBlobKey
Source§fn from(id: DataTrackSchemaId) -> Self
fn from(id: DataTrackSchemaId) -> Self
Converts to this type from the input type.
Source§impl Hash for DataTrackSchemaId
impl Hash for DataTrackSchemaId
Source§impl PartialEq for DataTrackSchemaId
impl PartialEq for DataTrackSchemaId
impl StructuralPartialEq for DataTrackSchemaId
Auto Trait Implementations§
impl Freeze for DataTrackSchemaId
impl RefUnwindSafe for DataTrackSchemaId
impl Send for DataTrackSchemaId
impl Sync for DataTrackSchemaId
impl Unpin for DataTrackSchemaId
impl UnsafeUnpin for DataTrackSchemaId
impl UnwindSafe for DataTrackSchemaId
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.