pub struct OptionsBuilder { /* private fields */ }
Expand description
Builder for Options
.
Implementations§
Source§impl OptionsBuilder
impl OptionsBuilder
Sourcepub fn topic_pattern<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn topic_pattern<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Topic pattern for the telemetry message. Must align with topic-structure.md
Sourcepub fn topic_namespace<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn topic_namespace<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
Optional Topic namespace to be prepended to the topic pattern
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 auto_ack<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn auto_ack<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
If true, telemetry messages are auto-acknowledged
Sourcepub fn service_group_id<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn service_group_id<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
Service group ID
Trait Implementations§
Source§impl Clone for OptionsBuilder
impl Clone for OptionsBuilder
Source§fn clone(&self) -> OptionsBuilder
fn clone(&self) -> OptionsBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for OptionsBuilder
impl RefUnwindSafe for OptionsBuilder
impl Send for OptionsBuilder
impl Sync for OptionsBuilder
impl Unpin for OptionsBuilder
impl UnwindSafe for OptionsBuilder
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
Mutably borrows from an owned value. Read more