Struct fluvio_sc_schema::partition::ReplicaKey
source · pub struct ReplicaKey {
pub topic: String,
pub partition: u32,
}
Fields§
§topic: String
§partition: u32
Implementations§
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 ReplicaKey
impl<S> From<(S, u32)> for ReplicaKey
source§fn from(key: (S, u32)) -> ReplicaKey
fn from(key: (S, u32)) -> ReplicaKey
Converts to this type from the input type.
source§impl FromStr for ReplicaKey
impl FromStr for ReplicaKey
§type Err = PartitionError
type Err = PartitionError
The associated error which can be returned from parsing.
source§fn from_str(s: &str) -> Result<ReplicaKey, <ReplicaKey as FromStr>::Err>
fn from_str(s: &str) -> Result<ReplicaKey, <ReplicaKey as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moresource§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 for ReplicaKey
impl PartialEq 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 for ReplicaKey
impl PartialOrd 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.
impl Eq for ReplicaKey
impl Send for ReplicaKey
impl StructuralPartialEq for ReplicaKey
impl Sync for ReplicaKey
Auto Trait Implementations§
impl Freeze for ReplicaKey
impl RefUnwindSafe for ReplicaKey
impl Unpin for ReplicaKey
impl UnwindSafe for ReplicaKey
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.