pub struct CommandLookupTopicResponse {
pub broker_service_url: Option<String>,
pub broker_service_url_tls: Option<String>,
pub response: Option<i32>,
pub request_id: u64,
pub authoritative: Option<bool>,
pub error: Option<i32>,
pub message: Option<String>,
pub proxy_through_service_url: Option<bool>,
}Fields§
§broker_service_url: Option<String>Optional in case of error
broker_service_url_tls: Option<String>§response: Option<i32>§request_id: u64§error: Option<i32>§message: Option<String>§proxy_through_service_url: Option<bool>If it’s true, indicates to the client that it must always connect through the service url after the lookup has been completed.
Implementations§
Source§impl CommandLookupTopicResponse
impl CommandLookupTopicResponse
Sourcepub fn broker_service_url(&self) -> &str
pub fn broker_service_url(&self) -> &str
Returns the value of broker_service_url, or the default value if broker_service_url is unset.
Sourcepub fn broker_service_url_tls(&self) -> &str
pub fn broker_service_url_tls(&self) -> &str
Returns the value of broker_service_url_tls, or the default value if broker_service_url_tls is unset.
Sourcepub fn response(&self) -> LookupType
pub fn response(&self) -> LookupType
Returns the enum value of response, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_response(&mut self, value: LookupType)
pub fn set_response(&mut self, value: LookupType)
Sets response to the provided enum value.
Returns the value of authoritative, or the default value if authoritative is unset.
Sourcepub fn error(&self) -> ServerError
pub fn error(&self) -> ServerError
Returns the enum value of error, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_error(&mut self, value: ServerError)
pub fn set_error(&mut self, value: ServerError)
Sets error to the provided enum value.
Sourcepub fn message(&self) -> &str
pub fn message(&self) -> &str
Returns the value of message, or the default value if message is unset.
Sourcepub fn proxy_through_service_url(&self) -> bool
pub fn proxy_through_service_url(&self) -> bool
Returns the value of proxy_through_service_url, or the default value if proxy_through_service_url is unset.
Trait Implementations§
Source§impl Clone for CommandLookupTopicResponse
impl Clone for CommandLookupTopicResponse
Source§fn clone(&self) -> CommandLookupTopicResponse
fn clone(&self) -> CommandLookupTopicResponse
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 CommandLookupTopicResponse
impl Debug for CommandLookupTopicResponse
Source§impl Default for CommandLookupTopicResponse
impl Default for CommandLookupTopicResponse
Source§impl Message for CommandLookupTopicResponse
impl Message for CommandLookupTopicResponse
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.impl StructuralPartialEq for CommandLookupTopicResponse
Auto Trait Implementations§
impl Freeze for CommandLookupTopicResponse
impl RefUnwindSafe for CommandLookupTopicResponse
impl Send for CommandLookupTopicResponse
impl Sync for CommandLookupTopicResponse
impl Unpin for CommandLookupTopicResponse
impl UnsafeUnpin for CommandLookupTopicResponse
impl UnwindSafe for CommandLookupTopicResponse
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