pub struct LightSourceSettings {
pub id: String,
pub attenuation: Option<f32>,
pub wavelength: Option<f32>,
pub wavelength_unit: UnitsLength,
}Fields§
§id: String§attenuation: Option<f32>§wavelength: Option<f32>§wavelength_unit: UnitsLengthImplementations§
Source§impl LightSourceSettings
impl LightSourceSettings
pub fn default_wavelength_unit() -> UnitsLength
Trait Implementations§
Source§impl Clone for LightSourceSettings
impl Clone for LightSourceSettings
Source§fn clone(&self) -> LightSourceSettings
fn clone(&self) -> LightSourceSettings
Returns a copy 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 LightSourceSettings
impl Debug for LightSourceSettings
Source§impl<'de> Deserialize<'de> for LightSourceSettings
impl<'de> Deserialize<'de> for LightSourceSettings
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 LightSourceSettings
impl RefUnwindSafe for LightSourceSettings
impl Send for LightSourceSettings
impl Sync for LightSourceSettings
impl Unpin for LightSourceSettings
impl UnwindSafe for LightSourceSettings
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