pub struct Relay {
pub meta: AssetMeta,
pub purpose: String,
}Expand description
A switched output — an SG Ready contact, a heating-rod contactor.
Fields§
§meta: AssetMetaIdentity and connection.
purpose: StringWhat closing the contact does, for the UI and the evidence record.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Relay
impl<'de> Deserialize<'de> for Relay
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 Relay
Auto Trait Implementations§
impl Freeze for Relay
impl RefUnwindSafe for Relay
impl Send for Relay
impl Sync for Relay
impl Unpin for Relay
impl UnsafeUnpin for Relay
impl UnwindSafe for Relay
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