#[non_exhaustive]pub struct AcknowledgementBatch {
pub first_offset: i64,
pub last_offset: i64,
pub acknowledge_types: Vec<i8>,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 1
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.first_offset: i64
First offset of batch of records to acknowledge.
Supported API versions: 1
last_offset: i64
Last offset (inclusive) of batch of records to acknowledge.
Supported API versions: 1
acknowledge_types: Vec<i8>
Array of acknowledge types - 0:Gap,1:Accept,2:Release,3:Reject.
Supported API versions: 1
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl AcknowledgementBatch
impl AcknowledgementBatch
Sourcepub fn with_first_offset(self, value: i64) -> Self
pub fn with_first_offset(self, value: i64) -> Self
Sets first_offset
to the passed value.
First offset of batch of records to acknowledge.
Supported API versions: 1
Sourcepub fn with_last_offset(self, value: i64) -> Self
pub fn with_last_offset(self, value: i64) -> Self
Sets last_offset
to the passed value.
Last offset (inclusive) of batch of records to acknowledge.
Supported API versions: 1
Sourcepub fn with_acknowledge_types(self, value: Vec<i8>) -> Self
pub fn with_acknowledge_types(self, value: Vec<i8>) -> Self
Sets acknowledge_types
to the passed value.
Array of acknowledge types - 0:Gap,1:Accept,2:Release,3:Reject.
Supported API versions: 1
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 AcknowledgementBatch
impl Clone for AcknowledgementBatch
Source§fn clone(&self) -> AcknowledgementBatch
fn clone(&self) -> AcknowledgementBatch
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 AcknowledgementBatch
impl Debug for AcknowledgementBatch
Source§impl Decodable for AcknowledgementBatch
Available on crate feature broker
only.
impl Decodable for AcknowledgementBatch
Available on crate feature
broker
only.Source§impl Default for AcknowledgementBatch
impl Default for AcknowledgementBatch
Source§impl Encodable for AcknowledgementBatch
Available on crate feature client
only.
impl Encodable for AcknowledgementBatch
Available on crate feature
client
only.Source§impl Message for AcknowledgementBatch
impl Message for AcknowledgementBatch
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
The valid versions for this message.
Source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
The deprecated versions for this message.
Source§impl PartialEq for AcknowledgementBatch
impl PartialEq for AcknowledgementBatch
impl StructuralPartialEq for AcknowledgementBatch
Auto Trait Implementations§
impl Freeze for AcknowledgementBatch
impl RefUnwindSafe for AcknowledgementBatch
impl Send for AcknowledgementBatch
impl Sync for AcknowledgementBatch
impl Unpin for AcknowledgementBatch
impl UnwindSafe for AcknowledgementBatch
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