pub struct Geo {
pub lat: ColumnName,
pub lon: ColumnName,
pub nullable: bool,
}Expand description
A geographic point built from two same-row columns. Resolves to an
OpenSearch geo_point; the document carries { "lat": …, "lon": … }, or
SQL NULL when either column is null (so a nullable point is absent rather
than {lat: null, lon: null}, which OpenSearch would reject).
Fields§
§lat: ColumnNameThe latitude column (degrees).
lon: ColumnNameThe longitude column (degrees).
nullable: boolWhether the point may be absent — true unless the field is required.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Geo
impl<'de> Deserialize<'de> for Geo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Geo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Geo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Geo
impl Serialize for Geo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Geo
impl RefUnwindSafe for Geo
impl Send for Geo
impl Sync for Geo
impl Unpin for Geo
impl UnsafeUnpin for Geo
impl UnwindSafe for Geo
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