pub struct Mqtt {
pub host: String,
pub port: u16,
pub client_id: String,
pub username: Option<String>,
pub password: Option<String>,
pub password_file: Option<PathBuf>,
pub base_topic: String,
pub keep_alive: u64,
}Expand description
The MQTT broker.
Fields§
§host: StringHost.
port: u16Port.
client_id: StringClient id.
username: Option<String>User name.
password: Option<String>Password.
password_file: Option<PathBuf>A file holding the password (read at start), instead of password.
base_topic: StringTopic prefix.
keep_alive: u64Keep-alive, seconds.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Mqtt
impl<'de> Deserialize<'de> for Mqtt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Mqtt
impl RefUnwindSafe for Mqtt
impl Send for Mqtt
impl Sync for Mqtt
impl Unpin for Mqtt
impl UnsafeUnpin for Mqtt
impl UnwindSafe for Mqtt
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