pub struct ConnectorDef {
pub protocol: String,
pub direction: ConnectorDirection,
pub url: String,
}Expand description
One [[records.connectors]] entry.
Fields§
§protocol: StringProtocol identifier lower-case, e.g. "mqtt", "knx".
direction: ConnectorDirection"outbound" → link_to, "inbound" → link_from.
url: StringURL template, may contain {variant} placeholder.
Implementations§
Source§impl ConnectorDef
impl ConnectorDef
Sourcepub fn direction_label(&self) -> &'static str
pub fn direction_label(&self) -> &'static str
Human-readable direction label for doc comments.
Trait Implementations§
Source§impl Clone for ConnectorDef
impl Clone for ConnectorDef
Source§fn clone(&self) -> ConnectorDef
fn clone(&self) -> ConnectorDef
Returns a duplicate of the value. Read more
1.0.0 · 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 ConnectorDef
impl Debug for ConnectorDef
Source§impl<'de> Deserialize<'de> for ConnectorDef
impl<'de> Deserialize<'de> for ConnectorDef
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 ConnectorDef
impl RefUnwindSafe for ConnectorDef
impl Send for ConnectorDef
impl Sync for ConnectorDef
impl Unpin for ConnectorDef
impl UnsafeUnpin for ConnectorDef
impl UnwindSafe for ConnectorDef
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