Skip to main content

DescribeGroupsResponse

Struct DescribeGroupsResponse 

Source
pub struct DescribeGroupsResponse;
Expand description

Java DescribeGroupsResponse helpers.

Implementations§

Source§

impl DescribeGroupsResponse

Source

pub const UNKNOWN_STATE: &str = ""

Java DescribeGroupsResponse.UNKNOWN_STATE.

Source

pub const UNKNOWN_PROTOCOL_TYPE: &str = ""

Java DescribeGroupsResponse.UNKNOWN_PROTOCOL_TYPE.

Source

pub const UNKNOWN_PROTOCOL: &str = ""

Java DescribeGroupsResponse.UNKNOWN_PROTOCOL.

Source

pub const AUTHORIZED_OPERATIONS_OMITTED: i32 = i32::MIN

Java DescribeGroupsResponse.AUTHORIZED_OPERATIONS_OMITTED.

Source

pub const fn should_client_throttle(version: i16) -> bool

Java DescribeGroupsResponse.shouldClientThrottle.

Source

pub fn error_counts(groups: &[DescribedGroup]) -> HashMap<i16, i32>

Java DescribeGroupsResponse.errorCounts.

Counts per-group error codes (including NONE).

Source

pub fn group_member( member_id: impl Into<String>, group_instance_id: Option<&str>, client_id: impl Into<String>, client_host: impl Into<String>, assignment: &[u8], metadata: &[u8], ) -> DescribedGroupMember

Java DescribeGroupsResponse.groupMember.

group_instance_id stays the JSON default (null) when None. assignment is MemberAssignment; metadata is MemberMetadata.

Source

pub fn group_metadata( group_id: impl Into<String>, error_code: i16, state: impl Into<String>, protocol_type: impl Into<String>, protocol: impl Into<String>, members: Vec<DescribedGroupMember>, authorized_operations: i32, ) -> DescribedGroup

Java DescribeGroupsResponse.groupMetadata (int authorizedOperations).

Unset ErrorMessage stays the JSON default (null). Two-argument DescribedGroup::new is groupError (UNKNOWN_STATE / empty protocol strings / empty Members / Self::AUTHORIZED_OPERATIONS_OMITTED).

Source

pub fn group_error( group_id: impl Into<String>, error_code: i16, error_message: Option<&str>, ) -> DescribedGroup

Java DescribeGroupsResponse.groupError with ErrorMessage.

Unset fields stay JSON defaults (empty protocol strings, empty Members, Self::AUTHORIZED_OPERATIONS_OMITTED). DescribedGroup::new is the two-argument groupError.

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> 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, 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