#[non_exhaustive]pub struct ControllerRegistrationRequest {
pub controller_id: i32,
pub incarnation_id: Uuid,
pub zk_migration_ready: bool,
pub listeners: Vec<Listener>,
pub features: Vec<Feature>,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.controller_id: i32
The ID of the controller to register.
Supported API versions: 0
incarnation_id: Uuid
The controller incarnation ID, which is unique to each process run.
Supported API versions: 0
zk_migration_ready: bool
Set if the required configurations for ZK migration are present.
Supported API versions: 0
listeners: Vec<Listener>
The listeners of this controller
Supported API versions: 0
features: Vec<Feature>
The features on this controller
Supported API versions: 0
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl ControllerRegistrationRequest
impl ControllerRegistrationRequest
Sourcepub fn with_controller_id(self, value: i32) -> Self
pub fn with_controller_id(self, value: i32) -> Self
Sets controller_id
to the passed value.
The ID of the controller to register.
Supported API versions: 0
Sourcepub fn with_incarnation_id(self, value: Uuid) -> Self
pub fn with_incarnation_id(self, value: Uuid) -> Self
Sets incarnation_id
to the passed value.
The controller incarnation ID, which is unique to each process run.
Supported API versions: 0
Sourcepub fn with_zk_migration_ready(self, value: bool) -> Self
pub fn with_zk_migration_ready(self, value: bool) -> Self
Sets zk_migration_ready
to the passed value.
Set if the required configurations for ZK migration are present.
Supported API versions: 0
Sourcepub fn with_listeners(self, value: Vec<Listener>) -> Self
pub fn with_listeners(self, value: Vec<Listener>) -> Self
Sets listeners
to the passed value.
The listeners of this controller
Supported API versions: 0
Sourcepub fn with_features(self, value: Vec<Feature>) -> Self
pub fn with_features(self, value: Vec<Feature>) -> Self
Sets features
to the passed value.
The features on this controller
Supported API versions: 0
Sourcepub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
pub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
Sets unknown_tagged_fields to the passed value.
Sourcepub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
pub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
Inserts an entry into unknown_tagged_fields.
Trait Implementations§
Source§impl Clone for ControllerRegistrationRequest
impl Clone for ControllerRegistrationRequest
Source§fn clone(&self) -> ControllerRegistrationRequest
fn clone(&self) -> ControllerRegistrationRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Decodable for ControllerRegistrationRequest
Available on crate feature broker
only.
impl Decodable for ControllerRegistrationRequest
broker
only.Source§impl Encodable for ControllerRegistrationRequest
Available on crate feature client
only.
impl Encodable for ControllerRegistrationRequest
client
only.Source§impl From<ControllerRegistrationRequest> for RequestKind
Available on crate feature messages_enums
only.
impl From<ControllerRegistrationRequest> for RequestKind
messages_enums
only.Source§fn from(value: ControllerRegistrationRequest) -> RequestKind
fn from(value: ControllerRegistrationRequest) -> RequestKind
Source§impl HeaderVersion for ControllerRegistrationRequest
impl HeaderVersion for ControllerRegistrationRequest
Source§fn header_version(version: i16) -> i16
fn header_version(version: i16) -> i16
Source§impl Message for ControllerRegistrationRequest
impl Message for ControllerRegistrationRequest
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
Source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
Source§impl PartialEq for ControllerRegistrationRequest
impl PartialEq for ControllerRegistrationRequest
Source§fn eq(&self, other: &ControllerRegistrationRequest) -> bool
fn eq(&self, other: &ControllerRegistrationRequest) -> bool
self
and other
values to be equal, and is used by ==
.Source§impl Request for ControllerRegistrationRequest
Available on crate features client
and broker
only.
impl Request for ControllerRegistrationRequest
client
and broker
only.