Struct fluvio_smartmodule::dataplane::record::ReplicaKey
source · pub struct ReplicaKey {
pub topic: String,
pub partition: u32,
}Fields§
§topic: String§partition: u32Implementations§
Trait Implementations§
source§impl Clone for ReplicaKey
impl Clone for ReplicaKey
source§fn clone(&self) -> ReplicaKey
fn clone(&self) -> ReplicaKey
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 ReplicaKey
impl Debug for ReplicaKey
source§impl Decoder for ReplicaKey
impl Decoder for ReplicaKey
source§impl Default for ReplicaKey
impl Default for ReplicaKey
source§fn default() -> ReplicaKey
fn default() -> ReplicaKey
Returns the “default value” for a type. Read more
source§impl Display for ReplicaKey
impl Display for ReplicaKey
source§impl Encoder for ReplicaKey
impl Encoder for ReplicaKey
source§impl<S> From<(S, u32)> for ReplicaKeywhere
S: Into<String>,
impl<S> From<(S, u32)> for ReplicaKeywhere S: Into<String>,
source§fn from(key: (S, u32)) -> ReplicaKey
fn from(key: (S, u32)) -> ReplicaKey
Converts to this type from the input type.
source§impl Hash for ReplicaKey
impl Hash for ReplicaKey
source§impl Ord for ReplicaKey
impl Ord for ReplicaKey
source§fn cmp(&self, other: &ReplicaKey) -> Ordering
fn cmp(&self, other: &ReplicaKey) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ReplicaKey> for ReplicaKey
impl PartialEq<ReplicaKey> for ReplicaKey
source§fn eq(&self, other: &ReplicaKey) -> bool
fn eq(&self, other: &ReplicaKey) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<ReplicaKey> for ReplicaKey
impl PartialOrd<ReplicaKey> for ReplicaKey
source§fn partial_cmp(&self, other: &ReplicaKey) -> Option<Ordering>
fn partial_cmp(&self, other: &ReplicaKey) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl TryFrom<String> for ReplicaKey
impl TryFrom<String> for ReplicaKey
§type Error = PartitionError
type Error = PartitionError
The type returned in the event of a conversion error.
source§fn try_from(value: String) -> Result<ReplicaKey, PartitionError>
fn try_from(value: String) -> Result<ReplicaKey, PartitionError>
Performs the conversion.