Struct kafka_api::schemata::apikey::ApiMessageType
source · pub struct ApiMessageType {
pub api_key: i16,
pub lowest_supported_version: i16,
pub highest_supported_version: i16,
pub latest_version_unstable: bool,
}
Fields§
§api_key: i16
§lowest_supported_version: i16
§highest_supported_version: i16
§latest_version_unstable: bool
Implementations§
source§impl ApiMessageType
impl ApiMessageType
pub const PRODUCE: Self = _
pub const FETCH: Self = _
pub const METADATA: Self = _
pub const OFFSET_FETCH: Self = _
pub const FIND_COORDINATOR: Self = _
pub const JOIN_GROUP: Self = _
pub const HEARTBEAT: Self = _
pub const SYNC_GROUP: Self = _
pub const API_VERSIONS: Self = _
pub const CREATE_TOPICS: Self = _
pub const INIT_PRODUCER_ID: 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 for ApiMessageType
impl PartialEq for ApiMessageType
source§impl PartialOrd for ApiMessageType
impl PartialOrd for ApiMessageType
source§impl TryFrom<i16> for ApiMessageType
impl TryFrom<i16> for ApiMessageType
impl Copy for ApiMessageType
impl Eq for ApiMessageType
impl StructuralPartialEq for ApiMessageType
Auto Trait Implementations§
impl Freeze for ApiMessageType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)