pub struct Light {
pub id: Option<Id>,
pub name: String,
pub position: [f32; 3],
pub color: Option<[f32; 3]>,
pub intensity: f32,
pub radius: Option<f32>,
pub range: Option<f32>,
pub shadow: Option<bool>,
pub authoring: Option<Value>,
}Fields§
§id: Option<Id>§name: String§position: [f32; 3]§color: Option<[f32; 3]>§intensity: f32§radius: Option<f32>§range: Option<f32>§shadow: Option<bool>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Light
impl<'de> Deserialize<'de> for Light
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
impl StructuralPartialEq for Light
Auto Trait Implementations§
impl Freeze for Light
impl RefUnwindSafe for Light
impl Send for Light
impl Sync for Light
impl Unpin for Light
impl UnsafeUnpin for Light
impl UnwindSafe for Light
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