pub struct MvtSource {
pub url: String,
pub attribution: Option<String>,
}Expand description
Templated XYZ MVT tile source.
Fields§
§url: StringXYZ URL template with {z}, {x}, {y} placeholders, or a
TileJSON document URL (anything ending in .json).
attribution: Option<String>Explicit attribution. When absent, hosts inherit the upstream
TileJSON attribution field.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MvtSource
impl<'de> Deserialize<'de> for MvtSource
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 MvtSource
impl RefUnwindSafe for MvtSource
impl Send for MvtSource
impl Sync for MvtSource
impl Unpin for MvtSource
impl UnsafeUnpin for MvtSource
impl UnwindSafe for MvtSource
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