pub struct CreateTopicsOptions { /* private fields */ }Expand description
Options for Admin::create_topics.
Corresponds to org.apache.kafka.clients.admin.CreateTopicsOptions.
Implementations§
Source§impl CreateTopicsOptions
impl CreateTopicsOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates default options (validate_only=false,
retry_on_quota_violation=true, default API timeout).
Sourcepub fn set_timeout_ms(self, timeout_ms: Option<i32>) -> Self
pub fn set_timeout_ms(self, timeout_ms: Option<i32>) -> Self
Set the timeout in milliseconds for this operation, or None to use the
default API timeout for the AdminClient.
Sourcepub fn timeout_ms(&self) -> Option<i32>
pub fn timeout_ms(&self) -> Option<i32>
The timeout in milliseconds for this operation, or None if the default
API timeout should be used.
Sourcepub fn set_validate_only(self, validate_only: bool) -> Self
pub fn set_validate_only(self, validate_only: bool) -> Self
Set to true if the request should be validated without creating the topic.
Sourcepub fn should_validate_only(&self) -> bool
pub fn should_validate_only(&self) -> bool
Return true if the request should be validated without creating the topic.
Sourcepub fn set_retry_on_quota_violation(
self,
retry_on_quota_violation: bool,
) -> Self
pub fn set_retry_on_quota_violation( self, retry_on_quota_violation: bool, ) -> Self
Set to true if quota violation should be automatically retried.
Sourcepub fn should_retry_on_quota_violation(&self) -> bool
pub fn should_retry_on_quota_violation(&self) -> bool
Returns true if quota violation should be automatically retried.
Trait Implementations§
Source§impl Clone for CreateTopicsOptions
impl Clone for CreateTopicsOptions
Source§fn clone(&self) -> CreateTopicsOptions
fn clone(&self) -> CreateTopicsOptions
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 CreateTopicsOptions
impl Debug for CreateTopicsOptions
Source§impl Default for CreateTopicsOptions
impl Default for CreateTopicsOptions
Source§impl PartialEq for CreateTopicsOptions
impl PartialEq for CreateTopicsOptions
impl Eq for CreateTopicsOptions
impl StructuralPartialEq for CreateTopicsOptions
Auto Trait Implementations§
impl Freeze for CreateTopicsOptions
impl RefUnwindSafe for CreateTopicsOptions
impl Send for CreateTopicsOptions
impl Sync for CreateTopicsOptions
impl Unpin for CreateTopicsOptions
impl UnsafeUnpin for CreateTopicsOptions
impl UnwindSafe for CreateTopicsOptions
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more