Struct kafka_protocol::messages::api_versions_response::ApiVersion
source · #[non_exhaustive]pub struct ApiVersion {
pub min_version: i16,
pub max_version: i16,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0-3
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.min_version: i16
The minimum supported version, inclusive.
Supported API versions: 0-3
max_version: i16
The maximum supported version, inclusive.
Supported API versions: 0-3
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Trait Implementations§
source§impl Builder for ApiVersion
impl Builder for ApiVersion
§type Builder = ApiVersionBuilder
type Builder = ApiVersionBuilder
The
derive_builder::Builder
type for this protocol item.source§impl Clone for ApiVersion
impl Clone for ApiVersion
source§fn clone(&self) -> ApiVersion
fn clone(&self) -> ApiVersion
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 ApiVersion
impl Debug for ApiVersion
source§impl Default for ApiVersion
impl Default for ApiVersion
source§impl Message for ApiVersion
impl Message for ApiVersion
source§const VERSIONS: VersionRange = _
const VERSIONS: VersionRange = _
The valid versions for this message.
source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
The deprecated versions for this message.
source§impl PartialEq for ApiVersion
impl PartialEq for ApiVersion
source§fn eq(&self, other: &ApiVersion) -> bool
fn eq(&self, other: &ApiVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ApiVersion
Auto Trait Implementations§
impl RefUnwindSafe for ApiVersion
impl Send for ApiVersion
impl Sync for ApiVersion
impl Unpin for ApiVersion
impl UnwindSafe for ApiVersion
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