pub struct MqttConfig {
pub host: String,
pub username: Option<String>,
pub topic_root: Option<String>,
/* private fields */
}
Fields§
§host: String
§username: Option<String>
§topic_root: Option<String>
Implementations§
Source§impl MqttConfig
impl MqttConfig
pub fn as_mqtt_options(&self) -> MqttOptions
Trait Implementations§
Source§impl Debug for MqttConfig
impl Debug for MqttConfig
Source§impl<'de> Deserialize<'de> for MqttConfig
impl<'de> Deserialize<'de> for MqttConfig
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 MqttConfig
impl RefUnwindSafe for MqttConfig
impl Send for MqttConfig
impl Sync for MqttConfig
impl Unpin for MqttConfig
impl UnwindSafe for MqttConfig
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