pub struct SignalDecl {
pub id: SignalId,
pub value_type: String,
pub description: Option<String>,
pub unit: Option<String>,
}Expand description
One entry of the plugin’s declared state schema.
Fields§
§id: SignalId§value_type: StringMust match Value::type_name() of the values the plugin emits.
description: Option<String>§unit: Option<String>Trait Implementations§
Source§impl Clone for SignalDecl
impl Clone for SignalDecl
Source§fn clone(&self) -> SignalDecl
fn clone(&self) -> SignalDecl
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 SignalDecl
impl Debug for SignalDecl
Source§impl<'de> Deserialize<'de> for SignalDecl
impl<'de> Deserialize<'de> for SignalDecl
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 SignalDecl
impl PartialEq for SignalDecl
Source§impl Serialize for SignalDecl
impl Serialize for SignalDecl
impl StructuralPartialEq for SignalDecl
Auto Trait Implementations§
impl Freeze for SignalDecl
impl RefUnwindSafe for SignalDecl
impl Send for SignalDecl
impl Sync for SignalDecl
impl Unpin for SignalDecl
impl UnsafeUnpin for SignalDecl
impl UnwindSafe for SignalDecl
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