#[non_exhaustive]pub struct UnsupportedFieldVersion {
pub api_key: i16,
pub field: &'static str,
pub version: i16,
}Expand description
A field was set while encoding a protocol version where that field does not exist.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.api_key: i16Kafka API key (numeric form).
field: &'static strGenerated Rust field name.
version: i16The version that does not carry this field.
Implementations§
Trait Implementations§
Source§impl Clone for UnsupportedFieldVersion
impl Clone for UnsupportedFieldVersion
Source§fn clone(&self) -> UnsupportedFieldVersion
fn clone(&self) -> UnsupportedFieldVersion
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 moreimpl Copy for UnsupportedFieldVersion
Source§impl Debug for UnsupportedFieldVersion
impl Debug for UnsupportedFieldVersion
Source§impl Display for UnsupportedFieldVersion
impl Display for UnsupportedFieldVersion
impl Eq for UnsupportedFieldVersion
Source§impl Error for UnsupportedFieldVersion
impl Error for UnsupportedFieldVersion
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<UnsupportedFieldVersion> for ProtocolError
impl From<UnsupportedFieldVersion> for ProtocolError
Source§fn from(source: UnsupportedFieldVersion) -> Self
fn from(source: UnsupportedFieldVersion) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UnsupportedFieldVersion
impl PartialEq for UnsupportedFieldVersion
Source§fn eq(&self, other: &UnsupportedFieldVersion) -> bool
fn eq(&self, other: &UnsupportedFieldVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UnsupportedFieldVersion
Auto Trait Implementations§
impl Freeze for UnsupportedFieldVersion
impl RefUnwindSafe for UnsupportedFieldVersion
impl Send for UnsupportedFieldVersion
impl Sync for UnsupportedFieldVersion
impl Unpin for UnsupportedFieldVersion
impl UnsafeUnpin for UnsupportedFieldVersion
impl UnwindSafe for UnsupportedFieldVersion
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