pub struct StyleSpecLight {
pub light_type: StyleSpecLightType,
pub properties: StyleSpecLightProperties,
}Expand description
A single light entry in the style-spec "lights" array.
Follows the Mapbox GL JS v3 convention:
"lights": [
{ "type": "ambient", "properties": { "color": "white", "intensity": 0.5 } },
{ "type": "directional", "properties": { "direction": [210, 45], "color": "white", "intensity": 0.5 } }
]Fields§
§light_type: StyleSpecLightTypeLight type: "ambient", "directional", or "flat".
properties: StyleSpecLightPropertiesLight properties (optional; missing fields use defaults).
Trait Implementations§
Source§impl Clone for StyleSpecLight
impl Clone for StyleSpecLight
Source§fn clone(&self) -> StyleSpecLight
fn clone(&self) -> StyleSpecLight
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 StyleSpecLight
impl Debug for StyleSpecLight
Source§impl<'de> Deserialize<'de> for StyleSpecLight
impl<'de> Deserialize<'de> for StyleSpecLight
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 StyleSpecLight
impl RefUnwindSafe for StyleSpecLight
impl Send for StyleSpecLight
impl Sync for StyleSpecLight
impl Unpin for StyleSpecLight
impl UnsafeUnpin for StyleSpecLight
impl UnwindSafe for StyleSpecLight
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