pub enum ShardingCodecConfiguration {
V1(ShardingCodecConfigurationV1),
}
Available on crate feature
sharding
only.Expand description
A wrapper to handle various versions of Sharding codec configuration parameters.
Variants§
V1(ShardingCodecConfigurationV1)
Version 1.0.
Trait Implementations§
source§impl Clone for ShardingCodecConfiguration
impl Clone for ShardingCodecConfiguration
source§fn clone(&self) -> ShardingCodecConfiguration
fn clone(&self) -> ShardingCodecConfiguration
Returns a copy of the value. Read more
1.0.0 · 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 ShardingCodecConfiguration
impl Debug for ShardingCodecConfiguration
source§impl<'de> Deserialize<'de> for ShardingCodecConfiguration
impl<'de> Deserialize<'de> for ShardingCodecConfiguration
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ShardingCodecConfiguration
impl Display for ShardingCodecConfiguration
source§impl From<ShardingCodecConfigurationV1> for ShardingCodecConfiguration
impl From<ShardingCodecConfigurationV1> for ShardingCodecConfiguration
source§fn from(original: ShardingCodecConfigurationV1) -> ShardingCodecConfiguration
fn from(original: ShardingCodecConfigurationV1) -> ShardingCodecConfiguration
Converts to this type from the input type.
source§impl PartialEq for ShardingCodecConfiguration
impl PartialEq for ShardingCodecConfiguration
source§fn eq(&self, other: &ShardingCodecConfiguration) -> bool
fn eq(&self, other: &ShardingCodecConfiguration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ShardingCodecConfiguration
impl StructuralPartialEq for ShardingCodecConfiguration
Auto Trait Implementations§
impl Freeze for ShardingCodecConfiguration
impl RefUnwindSafe for ShardingCodecConfiguration
impl Send for ShardingCodecConfiguration
impl Sync for ShardingCodecConfiguration
impl Unpin for ShardingCodecConfiguration
impl UnwindSafe for ShardingCodecConfiguration
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<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.