pub struct Mqtt {
pub en: Option<bool>,
pub broker: Option<String>,
pub port: Option<u16>,
pub user: Option<String>,
pub pskl: Option<u8>,
pub cid: Option<String>,
pub rtn: Option<bool>,
pub topics: Option<Topics>,
}
Fields§
§en: Option<bool>
MQTT enabled?
broker: Option<String>
both domains and IPs should work (no SSL)
port: Option<u16>
MQTT port
user: Option<String>
optional: username for MQTT auth
pskl: Option<u8>
optional: length of password for MQTT auth
cid: Option<String>
override the client ID
rtn: Option<bool>
retain brightness and color
topics: Option<Topics>
mqtt topics
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
impl StructuralPartialEq for Mqtt
Auto Trait Implementations§
impl Freeze for Mqtt
impl RefUnwindSafe for Mqtt
impl Send for Mqtt
impl Sync for Mqtt
impl Unpin 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