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 duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Default for LightSourceSettings
impl Default 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
Source§impl PartialEq for LightSourceSettings
impl PartialEq for LightSourceSettings
Source§fn eq(&self, other: &LightSourceSettings) -> bool
fn eq(&self, other: &LightSourceSettings) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LightSourceSettings
impl Serialize for LightSourceSettings
impl StructuralPartialEq for LightSourceSettings
Auto Trait Implementations§
impl Freeze for LightSourceSettings
impl RefUnwindSafe for LightSourceSettings
impl Send for LightSourceSettings
impl Sync for LightSourceSettings
impl Unpin for LightSourceSettings
impl UnsafeUnpin 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