pub struct LightSourceType {
pub manufacturer: Option<String>,
pub model: Option<String>,
pub serial_number: Option<String>,
pub lot_number: Option<String>,
pub id: String,
pub power: Option<f32>,
pub power_unit: UnitsPower,
pub annotation_ref: Vec<AnnotationRef>,
}Fields§
§manufacturer: Option<String>§model: Option<String>§serial_number: Option<String>§lot_number: Option<String>§id: String§power: Option<f32>§power_unit: UnitsPower§annotation_ref: Vec<AnnotationRef>Implementations§
Source§impl LightSourceType
impl LightSourceType
pub fn default_power_unit() -> UnitsPower
Trait Implementations§
Source§impl Clone for LightSourceType
impl Clone for LightSourceType
Source§fn clone(&self) -> LightSourceType
fn clone(&self) -> LightSourceType
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 LightSourceType
impl Debug for LightSourceType
Source§impl<'de> Deserialize<'de> for LightSourceType
impl<'de> Deserialize<'de> for LightSourceType
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 LightSourceType
impl RefUnwindSafe for LightSourceType
impl Send for LightSourceType
impl Sync for LightSourceType
impl Unpin for LightSourceType
impl UnwindSafe for LightSourceType
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