pub struct DatatypeDef {
pub name: &'static str,
pub ns: NsId,
pub value: Primitive,
pub unit: Option<&'static str>,
pub multiplier: Option<&'static str>,
pub doc: &'static str,
}Fields§
§name: &'static str§ns: NsId§value: PrimitiveThe primitive actually serialized for this datatype.
unit: Option<&'static str>Fixed UnitSymbol, e.g. W for ActivePower.
multiplier: Option<&'static str>Fixed UnitMultiplier, e.g. M (mega) for ActivePower.
doc: &'static strTrait Implementations§
Auto Trait Implementations§
impl Forget for DatatypeDef
impl Freeze for DatatypeDef
impl Move for DatatypeDef
impl RefUnwindSafe for DatatypeDef
impl Send for DatatypeDef
impl Sync for DatatypeDef
impl Unpin for DatatypeDef
impl UnsafeUnpin for DatatypeDefwhere
&'static str: UnsafeUnpin,
impl UnwindSafe for DatatypeDefwhere
&'static str: UnwindSafe,
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