[][src]Struct amitu_base::point::Point

pub struct Point {
    pub lat: f64,
    pub long: f64,
}

Point is represented in Postgres as a tuple of 64 bit floating point values (x, y). This struct is a dumb wrapper type, meant only to indicate the tuple's meaning.

Fields

lat: f64long: f64

Trait Implementations

impl Clone for Point[src]

impl PartialEq<Point> for Point[src]

impl Copy for Point[src]

impl Debug for Point[src]

impl<'expr> AsExpression<PgPoint> for &'expr Point[src]

type Expression = Bound<PgPoint, Self>

The expression being returned

impl<'expr> AsExpression<Nullable<PgPoint>> for &'expr Point[src]

type Expression = Bound<Nullable<PgPoint>, Self>

The expression being returned

impl AsExpression<PgPoint> for Point[src]

type Expression = Bound<PgPoint, Self>

The expression being returned

impl AsExpression<Nullable<PgPoint>> for Point[src]

type Expression = Bound<Nullable<PgPoint>, Self>

The expression being returned

impl<__ST, __DB> Queryable<__ST, __DB> for Point where
    __DB: Backend,
    Self: FromSql<__ST, __DB>, 
[src]

type Row = Self

The Rust type you'd like to map from. Read more

impl NotNull for Point[src]

impl SingleValue for Point[src]

impl<__DB> ToSql<Nullable<PgPoint>, __DB> for Point where
    __DB: Backend,
    Self: ToSql<PgPoint, __DB>, 
[src]

impl ToSql<PgPoint, Pg> for Point[src]

impl FromSql<PgPoint, Pg> for Point[src]

impl<__ST, __DB> FromSqlRow<__ST, __DB> for Point where
    __DB: Backend,
    Self: FromSql<__ST, __DB>, 
[src]

impl Serialize for Point[src]

impl<'de> Deserialize<'de> for Point[src]

Auto Trait Implementations

impl Unpin for Point

impl Sync for Point

impl Send for Point

impl UnwindSafe for Point

impl RefUnwindSafe for Point

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> IntoSql for T[src]

impl<T> IntoNullable for T where
    T: NotNull
[src]

type Nullable = Nullable<T>

The nullable representation of this type. Read more

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> Any for T where
    T: Any

impl<T> Erased for T

impl<T> Erased for T