pub struct ConsumerConfig {
pub name: Option<String>,
pub description: Option<String>,
pub filter_subjects: Vec<String>,
pub replay_policy: ReplayPolicy,
pub rate_limit: u64,
pub deliver_policy: DeliverPolicy,
pub max_waiting: i64,
pub metadata: HashMap<String, String>,
pub max_batch: Option<i64>,
pub max_bytes: Option<i64>,
pub max_expires: Option<Duration>,
}Fields§
§name: Option<String>§description: Option<String>§filter_subjects: Vec<String>§replay_policy: ReplayPolicy§rate_limit: u64§deliver_policy: DeliverPolicy§max_waiting: i64§metadata: HashMap<String, String>§max_batch: Option<i64>§max_bytes: Option<i64>§max_expires: Option<Duration>Trait Implementations§
Source§impl Clone for ConsumerConfig
impl Clone for ConsumerConfig
Source§fn clone(&self) -> ConsumerConfig
fn clone(&self) -> ConsumerConfig
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 moreSource§impl Debug for ConsumerConfig
impl Debug for ConsumerConfig
Source§impl<'de> Deserialize<'de> for ConsumerConfig
impl<'de> Deserialize<'de> for ConsumerConfig
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
impl Eq for ConsumerConfig
Source§impl PartialEq for ConsumerConfig
impl PartialEq for ConsumerConfig
Source§fn eq(&self, other: &ConsumerConfig) -> bool
fn eq(&self, other: &ConsumerConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConsumerConfig
impl Serialize for ConsumerConfig
impl StructuralPartialEq for ConsumerConfig
Auto Trait Implementations§
impl Freeze for ConsumerConfig
impl RefUnwindSafe for ConsumerConfig
impl Send for ConsumerConfig
impl Sync for ConsumerConfig
impl Unpin for ConsumerConfig
impl UnsafeUnpin for ConsumerConfig
impl UnwindSafe for ConsumerConfig
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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.