#[non_exhaustive]pub struct OffsetCommitRequest {
pub group_id: String,
pub generation_id_or_member_epoch: Option<i32>,
pub member_id: Option<String>,
pub group_instance_id: Option<String>,
pub retention_time_ms: Option<i64>,
pub topics: Option<Vec<OffsetCommitRequestTopic>>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.group_id: StringThe unique group identifier.
generation_id_or_member_epoch: Option<i32>The generation of the group if using the classic group protocol or the member epoch if using the consumer protocol.
member_id: Option<String>The member ID assigned by the group coordinator.
group_instance_id: Option<String>The unique identifier of the consumer instance provided by end user.
retention_time_ms: Option<i64>The time period in ms to retain the offset.
topics: Option<Vec<OffsetCommitRequestTopic>>The topics to commit offsets for.
Implementations§
Source§impl OffsetCommitRequest
impl OffsetCommitRequest
pub fn group_id(self, group_id: String) -> Self
pub fn generation_id_or_member_epoch( self, generation_id_or_member_epoch: Option<i32>, ) -> Self
pub fn member_id(self, member_id: Option<String>) -> Self
pub fn group_instance_id(self, group_instance_id: Option<String>) -> Self
pub fn retention_time_ms(self, retention_time_ms: Option<i64>) -> Self
pub fn topics(self, topics: Option<Vec<OffsetCommitRequestTopic>>) -> Self
Trait Implementations§
Source§impl Clone for OffsetCommitRequest
impl Clone for OffsetCommitRequest
Source§fn clone(&self) -> OffsetCommitRequest
fn clone(&self) -> OffsetCommitRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OffsetCommitRequest
impl Debug for OffsetCommitRequest
Source§impl Default for OffsetCommitRequest
impl Default for OffsetCommitRequest
Source§fn default() -> OffsetCommitRequest
fn default() -> OffsetCommitRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OffsetCommitRequest
impl<'de> Deserialize<'de> for OffsetCommitRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<OffsetCommitRequest> for Body
impl From<OffsetCommitRequest> for Body
Source§fn from(value: OffsetCommitRequest) -> Body
fn from(value: OffsetCommitRequest) -> Body
Converts to this type from the input type.
Source§impl Hash for OffsetCommitRequest
impl Hash for OffsetCommitRequest
Source§impl<State> Matcher<State, Frame> for OffsetCommitRequest
impl<State> Matcher<State, Frame> for OffsetCommitRequest
Source§fn matches(
&self,
ext: Option<&mut Extensions>,
ctx: &Context<State>,
req: &Frame,
) -> bool
fn matches( &self, ext: Option<&mut Extensions>, ctx: &Context<State>, req: &Frame, ) -> bool
returns true on a match, false otherwise Read more
Source§fn or<M>(self, other: M) -> impl Matcher<State, Request>
fn or<M>(self, other: M) -> impl Matcher<State, Request>
Provide an alternative matcher to match if the current one does not match.
Source§impl<State, T> Matcher<State, T> for OffsetCommitRequestwhere
T: ApiKey,
impl<State, T> Matcher<State, T> for OffsetCommitRequestwhere
T: ApiKey,
Source§fn matches(
&self,
ext: Option<&mut Extensions>,
ctx: &Context<State>,
req: &T,
) -> bool
fn matches( &self, ext: Option<&mut Extensions>, ctx: &Context<State>, req: &T, ) -> bool
returns true on a match, false otherwise Read more
Source§fn or<M>(self, other: M) -> impl Matcher<State, Request>
fn or<M>(self, other: M) -> impl Matcher<State, Request>
Provide an alternative matcher to match if the current one does not match.
Source§impl Ord for OffsetCommitRequest
impl Ord for OffsetCommitRequest
Source§fn cmp(&self, other: &OffsetCommitRequest) -> Ordering
fn cmp(&self, other: &OffsetCommitRequest) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OffsetCommitRequest
impl PartialEq for OffsetCommitRequest
Source§impl PartialOrd for OffsetCommitRequest
impl PartialOrd for OffsetCommitRequest
Source§impl Request for OffsetCommitRequest
impl Request for OffsetCommitRequest
Source§impl Serialize for OffsetCommitRequest
impl Serialize for OffsetCommitRequest
Source§impl TryFrom<Body> for OffsetCommitRequest
impl TryFrom<Body> for OffsetCommitRequest
impl Eq for OffsetCommitRequest
impl StructuralPartialEq for OffsetCommitRequest
Auto Trait Implementations§
impl Freeze for OffsetCommitRequest
impl RefUnwindSafe for OffsetCommitRequest
impl Send for OffsetCommitRequest
impl Sync for OffsetCommitRequest
impl Unpin for OffsetCommitRequest
impl UnsafeUnpin for OffsetCommitRequest
impl UnwindSafe for OffsetCommitRequest
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more