pub struct DescribeTopicPartitionsOptions { /* private fields */ }Expand description
Options controlling a DescribeTopicPartitions request.
Implementations§
Source§impl DescribeTopicPartitionsOptions
impl DescribeTopicPartitionsOptions
Sourcepub fn with_response_partition_limit(self, limit: i32) -> Self
pub fn with_response_partition_limit(self, limit: i32) -> Self
Sets the maximum number of partitions returned by the broker.
Sourcepub fn with_cursor(self, cursor: DescribeTopicPartitionsCursor) -> Self
pub fn with_cursor(self, cursor: DescribeTopicPartitionsCursor) -> Self
Sets the starting cursor for a paged request.
Sourcepub fn response_partition_limit(&self) -> i32
pub fn response_partition_limit(&self) -> i32
Returns the requested response partition limit.
Sourcepub fn cursor(&self) -> Option<&DescribeTopicPartitionsCursor>
pub fn cursor(&self) -> Option<&DescribeTopicPartitionsCursor>
Returns the optional paging cursor.
Trait Implementations§
Source§impl Clone for DescribeTopicPartitionsOptions
impl Clone for DescribeTopicPartitionsOptions
Source§fn clone(&self) -> DescribeTopicPartitionsOptions
fn clone(&self) -> DescribeTopicPartitionsOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Eq for DescribeTopicPartitionsOptions
impl StructuralPartialEq for DescribeTopicPartitionsOptions
Auto Trait Implementations§
impl Freeze for DescribeTopicPartitionsOptions
impl RefUnwindSafe for DescribeTopicPartitionsOptions
impl Send for DescribeTopicPartitionsOptions
impl Sync for DescribeTopicPartitionsOptions
impl Unpin for DescribeTopicPartitionsOptions
impl UnsafeUnpin for DescribeTopicPartitionsOptions
impl UnwindSafe for DescribeTopicPartitionsOptions
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