Struct kafka_api::apikey::ApiMessageType
source · pub struct ApiMessageType {
pub api_key: i16,
pub lowest_supported_version: i16,
pub highest_supported_version: i16,
}
Fields§
§api_key: i16
§lowest_supported_version: i16
§highest_supported_version: i16
Implementations§
source§impl ApiMessageType
impl ApiMessageType
pub const Metadata: Self = _
pub const ApiVersions: Self = _
pub const CreateTopics: Self = _
pub const InitProducerId: Self = _
source§impl ApiMessageType
impl ApiMessageType
pub fn request_header_version(&self, api_version: i16) -> i16
pub fn response_header_version(&self, api_version: i16) -> i16
Trait Implementations§
source§impl Clone for ApiMessageType
impl Clone for ApiMessageType
source§fn clone(&self) -> ApiMessageType
fn clone(&self) -> ApiMessageType
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 ApiMessageType
impl Debug for ApiMessageType
source§impl Ord for ApiMessageType
impl Ord for ApiMessageType
source§fn cmp(&self, other: &ApiMessageType) -> Ordering
fn cmp(&self, other: &ApiMessageType) -> 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<ApiMessageType> for ApiMessageType
impl PartialEq<ApiMessageType> for ApiMessageType
source§fn eq(&self, other: &ApiMessageType) -> bool
fn eq(&self, other: &ApiMessageType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ApiMessageType> for ApiMessageType
impl PartialOrd<ApiMessageType> for ApiMessageType
source§fn partial_cmp(&self, other: &ApiMessageType) -> Option<Ordering>
fn partial_cmp(&self, other: &ApiMessageType) -> 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<i16> for ApiMessageType
impl TryFrom<i16> for ApiMessageType
impl Copy for ApiMessageType
impl Eq for ApiMessageType
impl StructuralEq for ApiMessageType
impl StructuralPartialEq for ApiMessageType
Auto Trait Implementations§
impl RefUnwindSafe for ApiMessageType
impl Send for ApiMessageType
impl Sync for ApiMessageType
impl Unpin for ApiMessageType
impl UnwindSafe for ApiMessageType
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