pub struct IbmMqConfig {Show 13 fields
pub url: String,
pub queue: Option<String>,
pub topic: Option<String>,
pub queue_manager: String,
pub channel: String,
pub username: Option<String>,
pub password: Option<String>,
pub cipher_spec: Option<String>,
pub tls: TlsConfig,
pub max_message_size: usize,
pub wait_timeout_ms: i32,
pub internal_buffer_size: Option<usize>,
pub disable_status_inq: bool,
}Expand description
Connection settings for the IBM MQ Queue Manager.
Fields§
§url: StringRequired. Connection URL in host(port) format. Supports comma-separated list for failover (e.g., host1(1414),host2(1414)).
queue: Option<String>Target Queue name for point-to-point messaging. Optional if topic is set; defaults to route name if omitted.
topic: Option<String>Target Topic string for Publish/Subscribe. If set, enables Subscriber mode (Consumer) or publishes to a topic (Publisher). Optional if queue is set.
queue_manager: StringRequired. Name of the Queue Manager to connect to (e.g., QM1).
channel: StringRequired. Server Connection (SVRCONN) Channel name defined on the QM.
username: Option<String>Username for authentication. Optional; required if the channel enforces authentication.
password: Option<String>Password for authentication. Optional; required if the channel enforces authentication.
cipher_spec: Option<String>TLS CipherSpec (e.g., ANY_TLS12). Optional; required for encrypted connections.
tls: TlsConfigTLS configuration settings (e.g., keystore paths). Optional.
max_message_size: usizeMaximum message size in bytes (default: 4MB). Optional.
wait_timeout_ms: i32(Consumer only) Polling timeout in milliseconds (default: 1000ms). Optional.
internal_buffer_size: Option<usize>Internal buffer size for the channel. Defaults to 100.
disable_status_inq: boolIf false, attempt to open the queue with INQUIRE permissions to fetch queue depth for status checks. Defaults to false.
Implementations§
Source§impl IbmMqConfig
impl IbmMqConfig
Sourcepub fn new(
url: impl Into<String>,
queue_manager: impl Into<String>,
channel: impl Into<String>,
) -> Self
pub fn new( url: impl Into<String>, queue_manager: impl Into<String>, channel: impl Into<String>, ) -> Self
Creates a new IBM MQ configuration with the specified connection URL, queue manager, and channel.
pub fn with_queue(self, queue: impl Into<String>) -> Self
pub fn with_topic(self, topic: impl Into<String>) -> Self
pub fn with_credentials( self, username: impl Into<String>, password: impl Into<String>, ) -> Self
Trait Implementations§
Source§impl Clone for IbmMqConfig
impl Clone for IbmMqConfig
Source§fn clone(&self) -> IbmMqConfig
fn clone(&self) -> IbmMqConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more