pub struct LightSourceData {
pub id: u64,
pub source_type: String,
pub color_temperature: Option<f64>,
pub luminous_flux: Option<f64>,
pub emission_source: Option<String>,
pub intensity: Option<f64>,
pub color_rgb: Option<(f64, f64, f64)>,
pub distribution: Option<LightDistributionData>,
}Expand description
Light source data (goniometric, positional, etc.)
Fields§
§id: u64§source_type: String§color_temperature: Option<f64>Color temperature in Kelvin
luminous_flux: Option<f64>Luminous flux in lumens
emission_source: Option<String>Light emission source (LED, FLUORESCENT, etc.)
intensity: Option<f64>Intensity (cd)
color_rgb: Option<(f64, f64, f64)>Color RGB
distribution: Option<LightDistributionData>Light distribution data
Trait Implementations§
Source§impl Clone for LightSourceData
impl Clone for LightSourceData
Source§fn clone(&self) -> LightSourceData
fn clone(&self) -> LightSourceData
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 LightSourceData
impl Debug for LightSourceData
Source§impl<'de> Deserialize<'de> for LightSourceData
impl<'de> Deserialize<'de> for LightSourceData
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 LightSourceData
impl RefUnwindSafe for LightSourceData
impl Send for LightSourceData
impl Sync for LightSourceData
impl Unpin for LightSourceData
impl UnsafeUnpin for LightSourceData
impl UnwindSafe for LightSourceData
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