pub struct GeographyValue {
pub srid: u32,
pub shape: GeometryShape,
}Fields§
§srid: u32§shape: GeometryShapeImplementations§
Source§impl GeographyValue
impl GeographyValue
pub fn to_geojson_value(&self) -> Result<Value, EncodeError>
pub fn to_geojson_string(&self) -> Result<String, EncodeError>
pub fn from_geojson_value(value: &Value) -> Result<Self, DecodeError>
pub fn from_geojson_str(s: &str) -> Result<Self, DecodeError>
pub fn to_wkt_string(&self) -> Result<String, EncodeError>
pub fn to_ewkt_string(&self) -> Result<String, EncodeError>
pub fn from_wkt_str(s: &str) -> Result<Self, DecodeError>
Source§impl GeographyValue
impl GeographyValue
pub fn encode_blob(&self) -> Result<Vec<u8>, EncodeError>
pub fn decode_blob(blob: &[u8]) -> Result<Self, DecodeError>
Trait Implementations§
Source§impl Clone for GeographyValue
impl Clone for GeographyValue
Source§fn clone(&self) -> GeographyValue
fn clone(&self) -> GeographyValue
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 GeographyValue
impl Debug for GeographyValue
Source§impl PartialEq for GeographyValue
impl PartialEq for GeographyValue
Source§fn eq(&self, other: &GeographyValue) -> bool
fn eq(&self, other: &GeographyValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GeographyValue
Auto Trait Implementations§
impl Freeze for GeographyValue
impl RefUnwindSafe for GeographyValue
impl Send for GeographyValue
impl Sync for GeographyValue
impl Unpin for GeographyValue
impl UnsafeUnpin for GeographyValue
impl UnwindSafe for GeographyValue
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