pub struct OrderedConfig {
pub deliver_subject: String,
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>,
}
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§
§deliver_subject: String
The delivery subject used by the push consumer.
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>
server_2_10
only.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>
server_2_10
only.Trait Implementations§
Source§impl Clone for OrderedConfig
impl Clone for OrderedConfig
Source§fn clone(&self) -> OrderedConfig
fn clone(&self) -> OrderedConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more