#[non_exhaustive]pub struct Member {
pub member_id: StrBytes,
pub instance_id: Option<StrBytes>,
pub rack_id: Option<StrBytes>,
pub member_epoch: i32,
pub client_id: StrBytes,
pub client_host: StrBytes,
pub subscribed_topic_names: Vec<TopicName>,
pub subscribed_topic_regex: Option<StrBytes>,
pub assignment: Assignment,
pub target_assignment: Assignment,
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.member_id: StrBytesThe member ID.
Supported API versions: 0
instance_id: Option<StrBytes>The member instance ID.
Supported API versions: 0
rack_id: Option<StrBytes>The member rack ID.
Supported API versions: 0
member_epoch: i32The current member epoch.
Supported API versions: 0
client_id: StrBytesThe client ID.
Supported API versions: 0
client_host: StrBytesThe client host.
Supported API versions: 0
subscribed_topic_names: Vec<TopicName>The subscribed topic names.
Supported API versions: 0
subscribed_topic_regex: Option<StrBytes>the subscribed topic regex otherwise or null of not provided.
Supported API versions: 0
assignment: AssignmentThe current assignment.
Supported API versions: 0
target_assignment: AssignmentThe target assignment.
Supported API versions: 0
unknown_tagged_fields: BTreeMap<i32, Bytes>Other tagged fields
Implementations§
source§impl Member
impl Member
sourcepub fn with_member_id(self, value: StrBytes) -> Self
pub fn with_member_id(self, value: StrBytes) -> Self
Sets member_id to the passed value.
The member ID.
Supported API versions: 0
sourcepub fn with_instance_id(self, value: Option<StrBytes>) -> Self
pub fn with_instance_id(self, value: Option<StrBytes>) -> Self
Sets instance_id to the passed value.
The member instance ID.
Supported API versions: 0
sourcepub fn with_rack_id(self, value: Option<StrBytes>) -> Self
pub fn with_rack_id(self, value: Option<StrBytes>) -> Self
Sets rack_id to the passed value.
The member rack ID.
Supported API versions: 0
sourcepub fn with_member_epoch(self, value: i32) -> Self
pub fn with_member_epoch(self, value: i32) -> Self
Sets member_epoch to the passed value.
The current member epoch.
Supported API versions: 0
sourcepub fn with_client_id(self, value: StrBytes) -> Self
pub fn with_client_id(self, value: StrBytes) -> Self
Sets client_id to the passed value.
The client ID.
Supported API versions: 0
sourcepub fn with_client_host(self, value: StrBytes) -> Self
pub fn with_client_host(self, value: StrBytes) -> Self
Sets client_host to the passed value.
The client host.
Supported API versions: 0
sourcepub fn with_subscribed_topic_names(self, value: Vec<TopicName>) -> Self
pub fn with_subscribed_topic_names(self, value: Vec<TopicName>) -> Self
Sets subscribed_topic_names to the passed value.
The subscribed topic names.
Supported API versions: 0
sourcepub fn with_subscribed_topic_regex(self, value: Option<StrBytes>) -> Self
pub fn with_subscribed_topic_regex(self, value: Option<StrBytes>) -> Self
Sets subscribed_topic_regex to the passed value.
the subscribed topic regex otherwise or null of not provided.
Supported API versions: 0
sourcepub fn with_assignment(self, value: Assignment) -> Self
pub fn with_assignment(self, value: Assignment) -> Self
Sets assignment to the passed value.
The current assignment.
Supported API versions: 0
sourcepub fn with_target_assignment(self, value: Assignment) -> Self
pub fn with_target_assignment(self, value: Assignment) -> Self
Sets target_assignment to the passed value.
The target assignment.
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 Message for Member
impl Message for Member
source§const VERSIONS: VersionRange = _
const VERSIONS: VersionRange = _
source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
impl StructuralPartialEq for Member
Auto Trait Implementations§
impl !Freeze for Member
impl RefUnwindSafe for Member
impl Send for Member
impl Sync for Member
impl Unpin for Member
impl UnwindSafe for Member
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)