Struct async_nats::jetstream::consumer::pull::OrderedConfig
source · pub struct OrderedConfig {Show 14 fields
pub name: Option<String>,
pub description: Option<String>,
pub filter_subject: String,
pub filter_subjects: Vec<String>,
pub replay_policy: ReplayPolicy,
pub rate_limit: u64,
pub sample_frequency: u8,
pub headers_only: bool,
pub deliver_policy: DeliverPolicy,
pub max_waiting: i64,
pub metadata: HashMap<String, String>,
pub max_batch: i64,
pub max_bytes: i64,
pub max_expires: Duration,
}
Expand description
Configuration for consumers. From a high level, the
durable_name
and deliver_subject
fields have a particularly
strong influence on the consumer’s overall behavior.
Fields§
§name: Option<String>
A name of the consumer. Can be specified for both durable and ephemeral consumers.
description: Option<String>
A short description of the purpose of this consumer.
filter_subject: String
§filter_subjects: Vec<String>
Fulfills the same role as Config::filter_subject, but allows filtering by many subjects.
replay_policy: ReplayPolicy
Whether messages are sent as quickly as possible or at the rate of receipt
rate_limit: u64
The rate of message delivery in bits per second
sample_frequency: u8
What percentage of acknowledgments should be samples for observability, 0-100
headers_only: bool
Only deliver headers without payloads.
deliver_policy: DeliverPolicy
Allows for a variety of options that determine how this consumer will receive messages
max_waiting: i64
The maximum number of waiting consumers.
metadata: HashMap<String, String>
§max_batch: i64
§max_bytes: i64
§max_expires: Duration
Trait Implementations§
source§impl Clone for OrderedConfig
impl Clone for OrderedConfig
source§fn clone(&self) -> OrderedConfig
fn clone(&self) -> OrderedConfig
Returns a copy 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 OrderedConfig
impl Debug for OrderedConfig
source§impl Default for OrderedConfig
impl Default for OrderedConfig
source§fn default() -> OrderedConfig
fn default() -> OrderedConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for OrderedConfig
impl<'de> Deserialize<'de> for OrderedConfig
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
source§impl From<OrderedConfig> for Config
impl From<OrderedConfig> for Config
source§fn from(config: OrderedConfig) -> Self
fn from(config: OrderedConfig) -> Self
Converts to this type from the input type.
source§impl FromConsumer for OrderedConfig
impl FromConsumer for OrderedConfig
source§impl IntoConsumerConfig for OrderedConfig
impl IntoConsumerConfig for OrderedConfig
fn into_consumer_config(self) -> Config
source§impl PartialEq for OrderedConfig
impl PartialEq for OrderedConfig
source§impl Serialize for OrderedConfig
impl Serialize for OrderedConfig
impl Eq for OrderedConfig
impl StructuralPartialEq for OrderedConfig
Auto Trait Implementations§
impl Freeze for OrderedConfig
impl RefUnwindSafe for OrderedConfig
impl Send for OrderedConfig
impl Sync for OrderedConfig
impl Unpin for OrderedConfig
impl UnwindSafe for OrderedConfig
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)