#[non_exhaustive]pub struct ListTransactionsRequest {
pub state_filters: Vec<StrBytes>,
pub producer_id_filters: Vec<ProducerId>,
pub duration_filter: i64,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0-1
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.state_filters: Vec<StrBytes>
The transaction states to filter by: if empty, all transactions are returned; if non-empty, then only transactions matching one of the filtered states will be returned
Supported API versions: 0-1
producer_id_filters: Vec<ProducerId>
The producerIds to filter by: if empty, all transactions will be returned; if non-empty, only transactions which match one of the filtered producerIds will be returned
Supported API versions: 0-1
duration_filter: i64
Duration (in millis) to filter by: if < 0, all transactions will be returned; otherwise, only transactions running longer than this duration will be returned
Supported API versions: 1
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl ListTransactionsRequest
impl ListTransactionsRequest
Sourcepub fn with_state_filters(self, value: Vec<StrBytes>) -> Self
pub fn with_state_filters(self, value: Vec<StrBytes>) -> Self
Sets state_filters
to the passed value.
The transaction states to filter by: if empty, all transactions are returned; if non-empty, then only transactions matching one of the filtered states will be returned
Supported API versions: 0-1
Sourcepub fn with_producer_id_filters(self, value: Vec<ProducerId>) -> Self
pub fn with_producer_id_filters(self, value: Vec<ProducerId>) -> Self
Sets producer_id_filters
to the passed value.
The producerIds to filter by: if empty, all transactions will be returned; if non-empty, only transactions which match one of the filtered producerIds will be returned
Supported API versions: 0-1
Sourcepub fn with_duration_filter(self, value: i64) -> Self
pub fn with_duration_filter(self, value: i64) -> Self
Sets duration_filter
to the passed value.
Duration (in millis) to filter by: if < 0, all transactions will be returned; otherwise, only transactions running longer than this duration will be returned
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 ListTransactionsRequest
impl Clone for ListTransactionsRequest
Source§fn clone(&self) -> ListTransactionsRequest
fn clone(&self) -> ListTransactionsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ListTransactionsRequest
impl Debug for ListTransactionsRequest
Source§impl Decodable for ListTransactionsRequest
Available on crate feature broker
only.
impl Decodable for ListTransactionsRequest
broker
only.Source§impl Default for ListTransactionsRequest
impl Default for ListTransactionsRequest
Source§impl Encodable for ListTransactionsRequest
Available on crate feature client
only.
impl Encodable for ListTransactionsRequest
client
only.Source§impl From<ListTransactionsRequest> for RequestKind
Available on crate feature messages_enums
only.
impl From<ListTransactionsRequest> for RequestKind
messages_enums
only.Source§fn from(value: ListTransactionsRequest) -> RequestKind
fn from(value: ListTransactionsRequest) -> RequestKind
Source§impl HeaderVersion for ListTransactionsRequest
impl HeaderVersion for ListTransactionsRequest
Source§fn header_version(version: i16) -> i16
fn header_version(version: i16) -> i16
Source§impl Message for ListTransactionsRequest
impl Message for ListTransactionsRequest
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
Source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
Source§impl PartialEq for ListTransactionsRequest
impl PartialEq for ListTransactionsRequest
Source§impl Request for ListTransactionsRequest
Available on crate features client
and broker
only.
impl Request for ListTransactionsRequest
client
and broker
only.