pub struct LayerConfig {
pub name: String,
pub title: Option<String>,
pub abstract_: Option<String>,
pub path: PathBuf,
pub formats: Vec<ImageFormat>,
pub tile_size: u32,
pub min_zoom: u8,
pub max_zoom: u8,
pub tile_matrix_sets: Vec<String>,
pub style: Option<StyleConfig>,
pub metadata: HashMap<String, String>,
pub enabled: bool,
}Expand description
Layer configuration
Fields§
§name: StringLayer name (used in URLs)
title: Option<String>Display title
abstract_: Option<String>Layer description
path: PathBufPath to dataset file
formats: Vec<ImageFormat>Supported output formats
tile_size: u32Tile size in pixels
min_zoom: u8Minimum zoom level
max_zoom: u8Maximum zoom level
tile_matrix_sets: Vec<String>Supported tile matrix sets
style: Option<StyleConfig>Optional style configuration
metadata: HashMap<String, String>Layer-specific metadata
enabled: boolEnable this layer
Trait Implementations§
Source§impl Clone for LayerConfig
impl Clone for LayerConfig
Source§fn clone(&self) -> LayerConfig
fn clone(&self) -> LayerConfig
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 LayerConfig
impl Debug for LayerConfig
Source§impl<'de> Deserialize<'de> for LayerConfig
impl<'de> Deserialize<'de> for LayerConfig
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 LayerConfig
impl RefUnwindSafe for LayerConfig
impl Send for LayerConfig
impl Sync for LayerConfig
impl Unpin for LayerConfig
impl UnsafeUnpin for LayerConfig
impl UnwindSafe for LayerConfig
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