#[non_exhaustive]#[repr(i16)]pub enum ApiKey {
Show 92 variants
Produce = 0,
Fetch = 1,
ListOffsets = 2,
Metadata = 3,
OffsetCommit = 8,
OffsetFetch = 9,
FindCoordinator = 10,
JoinGroup = 11,
Heartbeat = 12,
LeaveGroup = 13,
SyncGroup = 14,
DescribeGroups = 15,
ListGroups = 16,
SaslHandshake = 17,
ApiVersions = 18,
CreateTopics = 19,
DeleteTopics = 20,
DeleteRecords = 21,
InitProducerId = 22,
OffsetForLeaderEpoch = 23,
AddPartitionsToTxn = 24,
AddOffsetsToTxn = 25,
EndTxn = 26,
WriteTxnMarkers = 27,
TxnOffsetCommit = 28,
DescribeAcls = 29,
CreateAcls = 30,
DeleteAcls = 31,
DescribeConfigs = 32,
AlterConfigs = 33,
AlterReplicaLogDirs = 34,
DescribeLogDirs = 35,
SaslAuthenticate = 36,
CreatePartitions = 37,
CreateDelegationToken = 38,
RenewDelegationToken = 39,
ExpireDelegationToken = 40,
DescribeDelegationToken = 41,
DeleteGroups = 42,
ElectLeaders = 43,
IncrementalAlterConfigs = 44,
AlterPartitionReassignments = 45,
ListPartitionReassignments = 46,
OffsetDelete = 47,
DescribeClientQuotas = 48,
AlterClientQuotas = 49,
DescribeUserScramCredentials = 50,
AlterUserScramCredentials = 51,
Vote = 52,
BeginQuorumEpoch = 53,
EndQuorumEpoch = 54,
DescribeQuorum = 55,
AlterPartition = 56,
UpdateFeatures = 57,
Envelope = 58,
FetchSnapshot = 59,
DescribeCluster = 60,
DescribeProducers = 61,
BrokerRegistration = 62,
BrokerHeartbeat = 63,
UnregisterBroker = 64,
DescribeTransactions = 65,
ListTransactions = 66,
AllocateProducerIds = 67,
ConsumerGroupHeartbeat = 68,
ConsumerGroupDescribe = 69,
ControllerRegistration = 70,
GetTelemetrySubscriptions = 71,
PushTelemetry = 72,
AssignReplicasToDirs = 73,
ListConfigResources = 74,
DescribeTopicPartitions = 75,
ShareGroupHeartbeat = 76,
ShareGroupDescribe = 77,
ShareFetch = 78,
ShareAcknowledge = 79,
AddRaftVoter = 80,
RemoveRaftVoter = 81,
UpdateRaftVoter = 82,
InitializeShareGroupState = 83,
ReadShareGroupState = 84,
WriteShareGroupState = 85,
DeleteShareGroupState = 86,
ReadShareGroupStateSummary = 87,
StreamsGroupHeartbeat = 88,
StreamsGroupDescribe = 89,
DescribeShareGroupOffsets = 90,
AlterShareGroupOffsets = 91,
DeleteShareGroupOffsets = 92,
StreamsGroupTopologyDescriptionUpdate = 93,
UnregisterController = 94,
GetReplicaLogInfo = 1_020,
}Expand description
Kafka API key registry generated from the vendored schemas.
Each variant corresponds to a request/response pair defined in the schemas.
Variants with validVersions = "none" are omitted (reserved keys with no
currently-valid wire version).
The enum is #[non_exhaustive] so that adding variants for new Kafka API
keys in future schema updates is non-breaking.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Produce = 0
ProduceRequest (versions 3–13).
Fetch = 1
FetchRequest (versions 4–18).
ListOffsets = 2
ListOffsetsRequest (versions 1–11).
Metadata = 3
MetadataRequest (versions 0–13).
OffsetCommit = 8
OffsetCommitRequest (versions 2–10).
OffsetFetch = 9
OffsetFetchRequest (versions 1–10).
FindCoordinator = 10
FindCoordinatorRequest (versions 0–6).
JoinGroup = 11
JoinGroupRequest (versions 0–9).
Heartbeat = 12
HeartbeatRequest (versions 0–4).
LeaveGroup = 13
LeaveGroupRequest (versions 0–5).
SyncGroup = 14
SyncGroupRequest (versions 0–5).
DescribeGroups = 15
DescribeGroupsRequest (versions 0–6).
ListGroups = 16
ListGroupsRequest (versions 0–5).
SaslHandshake = 17
SaslHandshakeRequest (versions 0–1).
ApiVersions = 18
ApiVersionsRequest (versions 0–5).
CreateTopics = 19
CreateTopicsRequest (versions 2–7).
DeleteTopics = 20
DeleteTopicsRequest (versions 1–6).
DeleteRecords = 21
DeleteRecordsRequest (versions 0–2).
InitProducerId = 22
InitProducerIdRequest (versions 0–6).
OffsetForLeaderEpoch = 23
OffsetForLeaderEpochRequest (versions 2–4).
AddPartitionsToTxn = 24
AddPartitionsToTxnRequest (versions 0–5).
AddOffsetsToTxn = 25
AddOffsetsToTxnRequest (versions 0–4).
EndTxn = 26
EndTxnRequest (versions 0–5).
WriteTxnMarkers = 27
WriteTxnMarkersRequest (versions 1–2).
TxnOffsetCommit = 28
TxnOffsetCommitRequest (versions 0–6).
DescribeAcls = 29
DescribeAclsRequest (versions 1–3).
CreateAcls = 30
CreateAclsRequest (versions 1–3).
DeleteAcls = 31
DeleteAclsRequest (versions 1–3).
DescribeConfigs = 32
DescribeConfigsRequest (versions 1–4).
AlterConfigs = 33
AlterConfigsRequest (versions 0–2).
AlterReplicaLogDirs = 34
AlterReplicaLogDirsRequest (versions 1–2).
DescribeLogDirs = 35
DescribeLogDirsRequest (versions 1–5).
SaslAuthenticate = 36
SaslAuthenticateRequest (versions 0–2).
CreatePartitions = 37
CreatePartitionsRequest (versions 0–3).
CreateDelegationToken = 38
CreateDelegationTokenRequest (versions 1–3).
RenewDelegationToken = 39
RenewDelegationTokenRequest (versions 1–2).
ExpireDelegationToken = 40
ExpireDelegationTokenRequest (versions 1–2).
DescribeDelegationToken = 41
DescribeDelegationTokenRequest (versions 1–3).
DeleteGroups = 42
DeleteGroupsRequest (versions 0–3).
ElectLeaders = 43
ElectLeadersRequest (versions 0–2).
IncrementalAlterConfigs = 44
IncrementalAlterConfigsRequest (versions 0–1).
AlterPartitionReassignments = 45
AlterPartitionReassignmentsRequest (versions 0–1).
ListPartitionReassignments = 46
ListPartitionReassignmentsRequest (versions 0–0).
OffsetDelete = 47
OffsetDeleteRequest (versions 0–0).
DescribeClientQuotas = 48
DescribeClientQuotasRequest (versions 0–1).
AlterClientQuotas = 49
AlterClientQuotasRequest (versions 0–1).
DescribeUserScramCredentials = 50
DescribeUserScramCredentialsRequest (versions 0–0).
AlterUserScramCredentials = 51
AlterUserScramCredentialsRequest (versions 0–0).
Vote = 52
VoteRequest (versions 0–2).
BeginQuorumEpoch = 53
BeginQuorumEpochRequest (versions 0–1).
EndQuorumEpoch = 54
EndQuorumEpochRequest (versions 0–1).
DescribeQuorum = 55
DescribeQuorumRequest (versions 0–2).
AlterPartition = 56
AlterPartitionRequest (versions 2–3).
UpdateFeatures = 57
UpdateFeaturesRequest (versions 0–2).
Envelope = 58
EnvelopeRequest (versions 0–0).
FetchSnapshot = 59
FetchSnapshotRequest (versions 0–1).
DescribeCluster = 60
DescribeClusterRequest (versions 0–2).
DescribeProducers = 61
DescribeProducersRequest (versions 0–0).
BrokerRegistration = 62
BrokerRegistrationRequest (versions 0–4).
BrokerHeartbeat = 63
BrokerHeartbeatRequest (versions 0–2).
UnregisterBroker = 64
UnregisterBrokerRequest (versions 0–0).
DescribeTransactions = 65
DescribeTransactionsRequest (versions 0–0).
ListTransactions = 66
ListTransactionsRequest (versions 0–2).
AllocateProducerIds = 67
AllocateProducerIdsRequest (versions 0–0).
ConsumerGroupHeartbeat = 68
ConsumerGroupHeartbeatRequest (versions 0–1).
ConsumerGroupDescribe = 69
ConsumerGroupDescribeRequest (versions 0–1).
ControllerRegistration = 70
ControllerRegistrationRequest (versions 0–0).
GetTelemetrySubscriptions = 71
GetTelemetrySubscriptionsRequest (versions 0–0).
PushTelemetry = 72
PushTelemetryRequest (versions 0–0).
AssignReplicasToDirs = 73
AssignReplicasToDirsRequest (versions 0–0).
ListConfigResources = 74
ListConfigResourcesRequest (versions 0–1).
DescribeTopicPartitions = 75
DescribeTopicPartitionsRequest (versions 0–0).
ShareGroupHeartbeatRequest (versions 1–1).
ShareGroupDescribeRequest (versions 1–1).
ShareFetchRequest (versions 1–2).
ShareAcknowledgeRequest (versions 1–2).
AddRaftVoter = 80
AddRaftVoterRequest (versions 0–1).
RemoveRaftVoter = 81
RemoveRaftVoterRequest (versions 0–0).
UpdateRaftVoter = 82
UpdateRaftVoterRequest (versions 0–0).
InitializeShareGroupStateRequest (versions 0–0).
ReadShareGroupStateRequest (versions 0–0).
WriteShareGroupStateRequest (versions 0–1).
DeleteShareGroupStateRequest (versions 0–0).
ReadShareGroupStateSummaryRequest (versions 0–1).
StreamsGroupHeartbeat = 88
StreamsGroupHeartbeatRequest (versions 0–1).
StreamsGroupDescribe = 89
StreamsGroupDescribeRequest (versions 0–1).
DescribeShareGroupOffsetsRequest (versions 0–1).
AlterShareGroupOffsetsRequest (versions 0–0).
DeleteShareGroupOffsetsRequest (versions 0–0).
StreamsGroupTopologyDescriptionUpdate = 93
StreamsGroupTopologyDescriptionUpdateRequest (versions 0–0).
UnregisterController = 94
UnregisterControllerRequest (versions 0–0).
GetReplicaLogInfo = 1_020
GetReplicaLogInfoRequest (versions 0–0).
Implementations§
Trait Implementations§
impl Copy for ApiKey
impl Eq for ApiKey
impl StructuralPartialEq for ApiKey
Auto Trait Implementations§
impl Freeze for ApiKey
impl RefUnwindSafe for ApiKey
impl Send for ApiKey
impl Sync for ApiKey
impl Unpin for ApiKey
impl UnsafeUnpin for ApiKey
impl UnwindSafe for ApiKey
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);