pub struct ClusterData {
Show 22 fields pub authentication_parameters: Option<String>, pub authentication_plugin: Option<String>, pub broker_client_certificate_file_path: Option<String>, pub broker_client_key_file_path: Option<String>, pub broker_client_tls_enabled: Option<bool>, pub broker_client_tls_enabled_with_key_store: Option<bool>, pub broker_client_tls_key_store: Option<String>, pub broker_client_tls_key_store_password: Option<String>, pub broker_client_tls_key_store_type: Option<String>, pub broker_client_tls_trust_store: Option<String>, pub broker_client_tls_trust_store_password: Option<String>, pub broker_client_tls_trust_store_type: Option<String>, pub broker_client_trust_certs_file_path: Option<String>, pub broker_service_url: Option<String>, pub broker_service_url_tls: Option<String>, pub listener_name: Option<String>, pub peer_cluster_names: Option<Vec<String>>, pub proxy_protocol: Option<ProxyProtocol>, pub proxy_service_url: Option<String>, pub service_url: Option<String>, pub service_url_tls: Option<String>, pub tls_allow_insecure_connection: Option<bool>,
}
Expand description

ClusterData : The configuration data for a cluster

Fields§

§authentication_parameters: Option<String>

Authentication parameters when client would like to connect to cluster.

§authentication_plugin: Option<String>

Authentication plugin when client would like to connect to cluster.

§broker_client_certificate_file_path: Option<String>

TLS certificate file for internal client, used by the internal client to authenticate with Pulsar brokers

§broker_client_key_file_path: Option<String>

TLS private key file for internal client, used by the internal client to authenticate with Pulsar brokers

§broker_client_tls_enabled: Option<bool>

Enable TLS when talking with other brokers in the same cluster (admin operation) or different clusters (replication)

§broker_client_tls_enabled_with_key_store: Option<bool>

Whether internal client use KeyStore type to authenticate with other Pulsar brokers

§broker_client_tls_key_store: Option<String>

TLS KeyStore path for internal client, used by the internal client to authenticate with Pulsar brokers

§broker_client_tls_key_store_password: Option<String>

TLS KeyStore password for internal client, used by the internal client to authenticate with Pulsar brokers

§broker_client_tls_key_store_type: Option<String>

TLS KeyStore type configuration for internal client: JKS, PKCS12, used by the internal client to authenticate with Pulsar brokers

§broker_client_tls_trust_store: Option<String>

TLS TrustStore path for internal client used by the internal client to authenticate with Pulsar brokers

§broker_client_tls_trust_store_password: Option<String>

TLS TrustStore password for internal client used by the internal client to authenticate with Pulsar brokers

§broker_client_tls_trust_store_type: Option<String>

TLS TrustStore type configuration for internal client: JKS, PKCS12 used by the internal client to authenticate with Pulsar brokers

§broker_client_trust_certs_file_path: Option<String>

Path for the trusted TLS certificate file for outgoing connection to a server (broker)

§broker_service_url: Option<String>

The broker service url (for produce and consume operations)

§broker_service_url_tls: Option<String>

The secured broker service url (for produce and consume operations)

§listener_name: Option<String>

listenerName when client would like to connect to cluster

§peer_cluster_names: Option<Vec<String>>

A set of peer cluster names

§proxy_protocol: Option<ProxyProtocol>

protocol to decide type of proxy routing eg: SNI-routing

§proxy_service_url: Option<String>

Proxy-service url when client would like to connect to broker via proxy.

§service_url: Option<String>

The HTTP rest service URL (for admin operations)

§service_url_tls: Option<String>

The HTTPS rest service URL (for admin operations)

§tls_allow_insecure_connection: Option<bool>

Allow TLS connections to servers whose certificate cannot be be verified to have been signed by a trusted certificate authority.

Implementations§

source§

impl ClusterData

source

pub fn new() -> ClusterData

The configuration data for a cluster

Trait Implementations§

source§

impl Clone for ClusterData

source§

fn clone(&self) -> ClusterData

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ClusterData

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ClusterData

source§

fn default() -> ClusterData

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for ClusterData

source§

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 PartialEq for ClusterData

source§

fn eq(&self, other: &ClusterData) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for ClusterData

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for ClusterData

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,