Struct s2_tilejson::MetadataBuilder
source · pub struct MetadataBuilder { /* private fields */ }Expand description
Builder for the metadata
Implementations§
source§impl MetadataBuilder
impl MetadataBuilder
sourcepub fn set_scheme(&mut self, scheme: Scheme)
pub fn set_scheme(&mut self, scheme: Scheme)
Set the scheme of the data. [default=fzxy]
sourcepub fn set_extension(&mut self, extension: String)
pub fn set_extension(&mut self, extension: String)
Set the extension of the data. [default=pbf]
sourcepub fn set_type(&mut self, type_: SourceType)
pub fn set_type(&mut self, type_: SourceType)
Set the type of the data. [default=vector]
sourcepub fn set_version(&mut self, version: String)
pub fn set_version(&mut self, version: String)
Set the version of the data
sourcepub fn set_description(&mut self, description: String)
pub fn set_description(&mut self, description: String)
Set the description of the data
sourcepub fn set_encoding(&mut self, encoding: Encoding)
pub fn set_encoding(&mut self, encoding: Encoding)
Set the encoding of the data. [default=none]
sourcepub fn add_attribution(&mut self, display_name: &str, href: &str)
pub fn add_attribution(&mut self, display_name: &str, href: &str)
add an attribution
sourcepub fn add_layer(&mut self, name: &str, layer: &LayerMetaData)
pub fn add_layer(&mut self, name: &str, layer: &LayerMetaData)
Add the layer metadata
sourcepub fn add_tile_wm(
&mut self,
zoom: u8,
x: u32,
y: u32,
ll_bounds: &LonLatBounds,
)
pub fn add_tile_wm( &mut self, zoom: u8, x: u32, y: u32, ll_bounds: &LonLatBounds, )
Add the WM tile metadata
sourcepub fn add_tile_s2(
&mut self,
face: Face,
zoom: u8,
x: u32,
y: u32,
ll_bounds: &LonLatBounds,
)
pub fn add_tile_s2( &mut self, face: Face, zoom: u8, x: u32, y: u32, ll_bounds: &LonLatBounds, )
Add the S2 tile metadata
Trait Implementations§
source§impl Clone for MetadataBuilder
impl Clone for MetadataBuilder
source§fn clone(&self) -> MetadataBuilder
fn clone(&self) -> MetadataBuilder
Returns a copy 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 MetadataBuilder
impl Debug for MetadataBuilder
Auto Trait Implementations§
impl Freeze for MetadataBuilder
impl RefUnwindSafe for MetadataBuilder
impl Send for MetadataBuilder
impl Sync for MetadataBuilder
impl Unpin for MetadataBuilder
impl UnwindSafe for MetadataBuilder
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)