Skip to main content

DomainType

Trait DomainType 

Source
pub trait DomainType {
    type Inner: for<'owned> FromSql<'owned>;

    // Required methods
    fn from_inner(inner: Self::Inner) -> Self;
    fn accepts_postgres_type(oid: i32) -> bool;

    // Provided method
    fn accepts(field: &FieldDescription) -> bool { ... }
}

Required Associated Types§

Source

type Inner: for<'owned> FromSql<'owned>

Required Methods§

Source

fn from_inner(inner: Self::Inner) -> Self

Source

fn accepts_postgres_type(oid: i32) -> bool

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§