pub struct CommandConnect {
pub client_version: String,
pub auth_method: Option<i32>,
pub auth_method_name: Option<String>,
pub auth_data: Option<Vec<u8>>,
pub protocol_version: Option<i32>,
pub proxy_to_broker_url: Option<String>,
pub original_principal: Option<String>,
pub original_auth_data: Option<String>,
pub original_auth_method: Option<String>,
pub feature_flags: Option<FeatureFlags>,
}Fields§
§client_version: String§auth_method: Option<i32>Deprecated. Use “auth_method_name” instead.
auth_method_name: Option<String>§auth_data: Option<Vec<u8>>§protocol_version: Option<i32>§proxy_to_broker_url: Option<String>Client can ask to be proxyied to a specific broker This is only honored by a Pulsar proxy
original_principal: Option<String>Original principal that was verified by a Pulsar proxy. In this case the auth info above will be the auth of the proxy itself
original_auth_data: Option<String>Original auth role and auth Method that was passed to the proxy. In this case the auth info above will be the auth of the proxy itself
original_auth_method: Option<String>§feature_flags: Option<FeatureFlags>Feature flags
Implementations§
Source§impl CommandConnect
impl CommandConnect
Sourcepub fn auth_method(&self) -> AuthMethod
pub fn auth_method(&self) -> AuthMethod
Returns the enum value of auth_method, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_auth_method(&mut self, value: AuthMethod)
pub fn set_auth_method(&mut self, value: AuthMethod)
Sets auth_method to the provided enum value.
Sourcepub fn auth_data(&self) -> &[u8] ⓘ
pub fn auth_data(&self) -> &[u8] ⓘ
Returns the value of auth_data, or the default value if auth_data is unset.
Sourcepub fn protocol_version(&self) -> i32
pub fn protocol_version(&self) -> i32
Returns the value of protocol_version, or the default value if protocol_version is unset.
Sourcepub fn auth_method_name(&self) -> &str
pub fn auth_method_name(&self) -> &str
Returns the value of auth_method_name, or the default value if auth_method_name is unset.
Sourcepub fn proxy_to_broker_url(&self) -> &str
pub fn proxy_to_broker_url(&self) -> &str
Returns the value of proxy_to_broker_url, or the default value if proxy_to_broker_url is unset.
Sourcepub fn original_principal(&self) -> &str
pub fn original_principal(&self) -> &str
Returns the value of original_principal, or the default value if original_principal is unset.
Sourcepub fn original_auth_data(&self) -> &str
pub fn original_auth_data(&self) -> &str
Returns the value of original_auth_data, or the default value if original_auth_data is unset.
Sourcepub fn original_auth_method(&self) -> &str
pub fn original_auth_method(&self) -> &str
Returns the value of original_auth_method, or the default value if original_auth_method is unset.
Trait Implementations§
Source§impl Clone for CommandConnect
impl Clone for CommandConnect
Source§fn clone(&self) -> CommandConnect
fn clone(&self) -> CommandConnect
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CommandConnect
impl Debug for CommandConnect
Source§impl Default for CommandConnect
impl Default for CommandConnect
Source§impl Message for CommandConnect
impl Message for CommandConnect
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.Source§impl PartialEq for CommandConnect
impl PartialEq for CommandConnect
impl StructuralPartialEq for CommandConnect
Auto Trait Implementations§
impl Freeze for CommandConnect
impl RefUnwindSafe for CommandConnect
impl Send for CommandConnect
impl Sync for CommandConnect
impl Unpin for CommandConnect
impl UnsafeUnpin for CommandConnect
impl UnwindSafe for CommandConnect
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more