#[non_exhaustive]pub struct GeometryBuilder { /* private fields */ }Expand description
A builder for Geometry.
Implementations§
source§impl GeometryBuilder
impl GeometryBuilder
sourcepub fn type(self, input: impl Into<String>) -> Self
pub fn type(self, input: impl Into<String>) -> Self
GeoJson Geometry types like Polygon and MultiPolygon.
This field is required.sourcepub fn set_type(self, input: Option<String>) -> Self
pub fn set_type(self, input: Option<String>) -> Self
GeoJson Geometry types like Polygon and MultiPolygon.
sourcepub fn get_type(&self) -> &Option<String>
pub fn get_type(&self) -> &Option<String>
GeoJson Geometry types like Polygon and MultiPolygon.
sourcepub fn coordinates(self, input: Vec<Vec<f64>>) -> Self
pub fn coordinates(self, input: Vec<Vec<f64>>) -> Self
Appends an item to coordinates.
To override the contents of this collection use set_coordinates.
The coordinates of the GeoJson Geometry.
sourcepub fn set_coordinates(self, input: Option<Vec<Vec<Vec<f64>>>>) -> Self
pub fn set_coordinates(self, input: Option<Vec<Vec<Vec<f64>>>>) -> Self
The coordinates of the GeoJson Geometry.
sourcepub fn get_coordinates(&self) -> &Option<Vec<Vec<Vec<f64>>>>
pub fn get_coordinates(&self) -> &Option<Vec<Vec<Vec<f64>>>>
The coordinates of the GeoJson Geometry.
Trait Implementations§
source§impl Clone for GeometryBuilder
impl Clone for GeometryBuilder
source§fn clone(&self) -> GeometryBuilder
fn clone(&self) -> GeometryBuilder
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 GeometryBuilder
impl Debug for GeometryBuilder
source§impl Default for GeometryBuilder
impl Default for GeometryBuilder
source§fn default() -> GeometryBuilder
fn default() -> GeometryBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for GeometryBuilder
impl PartialEq for GeometryBuilder
source§fn eq(&self, other: &GeometryBuilder) -> bool
fn eq(&self, other: &GeometryBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GeometryBuilder
Auto Trait Implementations§
impl Freeze for GeometryBuilder
impl RefUnwindSafe for GeometryBuilder
impl Send for GeometryBuilder
impl Sync for GeometryBuilder
impl Unpin for GeometryBuilder
impl UnwindSafe for GeometryBuilder
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreCreates a shared type from an unshared type.