pub struct UnitDefinition {
pub unit_id: u8,
pub name: String,
pub datastore: Option<DatastoreSelector>,
pub points: Vec<PointProfile>,
pub response_delay_ms: u64,
pub word_order: WordOrder,
pub broadcast_enabled: bool,
pub action_bindings: Vec<PointActionBinding>,
pub tags: Tags,
}Expand description
File-backed unit definition with reusable datastore references.
Fields§
§unit_id: u8§name: String§datastore: Option<DatastoreSelector>§points: Vec<PointProfile>§response_delay_ms: u64§word_order: WordOrder§broadcast_enabled: bool§action_bindings: Vec<PointActionBinding>Trait Implementations§
Source§impl Clone for UnitDefinition
impl Clone for UnitDefinition
Source§fn clone(&self) -> UnitDefinition
fn clone(&self) -> UnitDefinition
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 UnitDefinition
impl Debug for UnitDefinition
Source§impl<'de> Deserialize<'de> for UnitDefinition
impl<'de> Deserialize<'de> for UnitDefinition
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 UnitDefinition
impl RefUnwindSafe for UnitDefinition
impl Send for UnitDefinition
impl Sync for UnitDefinition
impl Unpin for UnitDefinition
impl UnsafeUnpin for UnitDefinition
impl UnwindSafe for UnitDefinition
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