pub struct StyleSourceInfo {
pub id: String,
pub type: StyleSourceType,
pub is_volatile: bool,
pub attribution: String,
pub url: String,
pub tile_json: Option<StyleSourceTileInfo>,
pub bounds: Option<LatLngBounds>,
pub tile_size: Option<u32>,
pub vector_encoding: Option<StyleVectorTileEncoding>,
pub raster_encoding: Option<StyleRasterDemEncoding>,
pub geo_json: Option<GeoJsonSourceOptions>,
}Expand description
A source in the map’s style.
See mln_style_source_info in the
C API reference.
Fields§
§id: String§type: StyleSourceType§is_volatile: bool§attribution: String§url: String§tile_json: Option<StyleSourceTileInfo>The tiles that the style lists in the source itself, instead of at a URL.
bounds: Option<LatLngBounds>§tile_size: Option<u32>§vector_encoding: Option<StyleVectorTileEncoding>§raster_encoding: Option<StyleRasterDemEncoding>§geo_json: Option<GeoJsonSourceOptions>A GeoJSON source’s options, with every field set.
Trait Implementations§
Source§impl Clone for StyleSourceInfo
impl Clone for StyleSourceInfo
Source§fn clone(&self) -> StyleSourceInfo
fn clone(&self) -> StyleSourceInfo
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 StyleSourceInfo
impl Debug for StyleSourceInfo
Source§impl Default for StyleSourceInfo
impl Default for StyleSourceInfo
Source§fn default() -> StyleSourceInfo
fn default() -> StyleSourceInfo
Returns the “default value” for a type. Read more
Source§impl PartialEq for StyleSourceInfo
impl PartialEq for StyleSourceInfo
impl StructuralPartialEq for StyleSourceInfo
Auto Trait Implementations§
impl Freeze for StyleSourceInfo
impl RefUnwindSafe for StyleSourceInfo
impl Send for StyleSourceInfo
impl Sync for StyleSourceInfo
impl Unpin for StyleSourceInfo
impl UnsafeUnpin for StyleSourceInfo
impl UnwindSafe for StyleSourceInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more