pub struct StyleSpecSource {
pub source_type: StyleSpecSourceType,
pub url: Option<String>,
pub tiles: Vec<String>,
pub metadata: HashMap<String, Value>,
}Expand description
Declarative source entry.
Fields§
§source_type: StyleSpecSourceTypeSource type.
url: Option<String>Optional URL.
tiles: Vec<String>Optional tile URL templates.
metadata: HashMap<String, Value>Optional arbitrary metadata.
Trait Implementations§
Source§impl Clone for StyleSpecSource
impl Clone for StyleSpecSource
Source§fn clone(&self) -> StyleSpecSource
fn clone(&self) -> StyleSpecSource
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 StyleSpecSource
impl Debug for StyleSpecSource
Source§impl<'de> Deserialize<'de> for StyleSpecSource
impl<'de> Deserialize<'de> for StyleSpecSource
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 StyleSpecSource
impl RefUnwindSafe for StyleSpecSource
impl Send for StyleSpecSource
impl Sync for StyleSpecSource
impl Unpin for StyleSpecSource
impl UnsafeUnpin for StyleSpecSource
impl UnwindSafe for StyleSpecSource
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