pub enum LinkWiring {
Mqtt {
host: String,
port: u16,
client_id: Option<String>,
username: Option<String>,
password: Option<String>,
tls: Option<TlsWiring>,
},
Print,
}Expand description
The link the readings are published over, as a wiring file names it.
{ "mqtt": "192.168.1.10", "port": 1883 }
{ "print": true }Variants§
Mqtt
An MQTT broker.
Fields
A line of text for each reading, for trying a profile with no broker.
Trait Implementations§
Source§impl Clone for LinkWiring
impl Clone for LinkWiring
Source§fn clone(&self) -> LinkWiring
fn clone(&self) -> LinkWiring
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LinkWiring
impl Debug for LinkWiring
Source§impl<'de> Deserialize<'de> for LinkWiring
impl<'de> Deserialize<'de> for LinkWiring
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
Source§impl PartialEq for LinkWiring
impl PartialEq for LinkWiring
Source§impl Serialize for LinkWiring
impl Serialize for LinkWiring
impl StructuralPartialEq for LinkWiring
Auto Trait Implementations§
impl Freeze for LinkWiring
impl RefUnwindSafe for LinkWiring
impl Send for LinkWiring
impl Sync for LinkWiring
impl Unpin for LinkWiring
impl UnsafeUnpin for LinkWiring
impl UnwindSafe for LinkWiring
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