pub struct OptionsBuilder { /* private fields */ }
Expand description
Builder for Options
.
Implementations§
Source§impl OptionsBuilder
impl OptionsBuilder
Sourcepub fn request_topic_pattern<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn request_topic_pattern<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
Topic pattern for the command request. Must align with topic-structure.md
Sourcepub fn response_topic_pattern<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn response_topic_pattern<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Topic pattern for the command response.
Must align with topic-structure.md.
If all response topic options are None
, the response topic will be generated
based on the request topic in the form: clients/<client_id>/<request_topic>
Sourcepub fn command_name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn command_name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Command name
Sourcepub fn topic_namespace<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn topic_namespace<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Optional Topic namespace to be prepended to the topic patterns
Sourcepub fn topic_token_map<VALUE: Into<HashMap<String, String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn topic_token_map<VALUE: Into<HashMap<String, String>>>( &mut self, value: VALUE, ) -> &mut Self
Topic token keys/values to be permanently replaced in the topic pattern
Sourcepub fn response_topic_prefix<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn response_topic_prefix<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Prefix for the response topic.
If all response topic options are None
, the response topic will be generated
based on the request topic in the form: clients/<client_id>/<request_topic>
Sourcepub fn response_topic_suffix<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn response_topic_suffix<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Suffix for the response topic.
If all response topic options are None
, the response topic will be generated
based on the request topic in the form: clients/<client_id>/<request_topic>
Trait Implementations§
Source§impl Clone for OptionsBuilder
impl Clone for OptionsBuilder
Source§fn clone(&self) -> OptionsBuilder
fn clone(&self) -> OptionsBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more