Struct tether_utils::tether_send::SendOptions
source · pub struct SendOptions {
pub plug_name: Option<String>,
pub plug_role: Option<String>,
pub plug_id: Option<String>,
pub plug_topic: Option<String>,
pub message_payload_json: Option<String>,
pub use_dummy_data: bool,
}Fields§
§plug_name: Option<String>Overide the auto-generated topic with your own, to use with every published message
plug_role: Option<String>Overide Tether Agent role with your own, to use with every published message
plug_id: Option<String>Overide Tether Agent ID with your own, to use with every published message
plug_topic: Option<String>Overide the entire topic string (ignoring any defaults or customisations applied elsewhere), to use with every published message
message_payload_json: Option<String>Provide a custom message as an escaped JSON string which will be converted into MessagePack; by default the payload will be empty.
use_dummy_data: boolFlag to generate dummy data for the MessagePack payload; useful for testing. Any custom message will be ignored if enabled.
Trait Implementations§
source§impl Args for SendOptions
impl Args for SendOptions
source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§impl FromArgMatches for SendOptions
impl FromArgMatches for SendOptions
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches to self.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for SendOptions
impl RefUnwindSafe for SendOptions
impl Send for SendOptions
impl Sync for SendOptions
impl Unpin for SendOptions
impl UnwindSafe for SendOptions
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