Skip to main content

DescribedGroup

Struct DescribedGroup 

Source
pub struct DescribedGroup {
    pub error_code: i16,
    pub error_message: Option<String>,
    pub group_id: String,
    pub group_state: String,
    pub protocol_type: String,
    pub protocol_data: String,
    pub members: Vec<DescribedGroupMember>,
    pub authorized_operations: i32,
}
Expand description

One described group in DescribeGroups (api 15).

ErrorCode sits here, not at the top of the response body. error_message is v6+ (nullable). authorized_operations is v3+.

Fields§

§error_code: i16

Kafka error code (0 is success).

§error_message: Option<String>

Broker error message, when present.

§group_id: String

Kafka group.id.

§group_state: String

Group state name from the broker.

§protocol_type: String

Group protocol type (for example consumer).

§protocol_data: String

Classic group protocol data.

§members: Vec<DescribedGroupMember>

Group members.

§authorized_operations: i32

Bitfield of authorized operations, or AUTHORIZED_OPERATIONS_OMITTED.

Implementations§

Source§

impl DescribedGroup

Source

pub fn new(group_id: impl Into<String>, error_code: i16) -> Self

Source

pub fn error_code(&self) -> i16

Kafka error code (0 is success).

Source

pub fn error_message(&self) -> Option<&str>

Broker error message, when present.

Source

pub fn group_id(&self) -> &str

Kafka group.id.

Source

pub fn group_state(&self) -> &str

Group state name from the broker.

Source

pub fn protocol_type(&self) -> &str

Group protocol type (for example consumer).

Source

pub fn protocol_data(&self) -> &str

Java ConsumerGroupDescription.partitionAssignor (classic ProtocolData).

Source

pub fn members(&self) -> &[DescribedGroupMember]

Java ConsumerGroupDescription.members.

Source

pub fn authorized_operations(&self) -> i32

Bitfield of authorized operations, or AUTHORIZED_OPERATIONS_OMITTED.

Source

pub fn is_simple_consumer_group(&self) -> bool

Java ConsumerGroupDescription.isSimpleConsumerGroup (empty protocol type).

Trait Implementations§

Source§

impl Clone for DescribedGroup

Source§

fn clone(&self) -> DescribedGroup

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DescribedGroup

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for DescribedGroup

Source§

impl PartialEq for DescribedGroup

Source§

fn eq(&self, other: &DescribedGroup) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for DescribedGroup

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more