Struct diesel::pg::types::sql_types::Inet [−][src]
pub struct Inet;
Expand description
The INET
SQL type. This type can only be used with feature = "network-address"
ToSql
impls
FromSql
impls
Examples
extern crate ipnetwork; use ipnetwork::IpNetwork; table! { clients { id -> Integer, ip_address -> Inet, } } let addr = IpNetwork::from_str("10.1.9.32/32").unwrap(); let inserted_address = insert_into(clients) .values(ip_address.eq(&addr)) .returning(ip_address) .get_result(&connection); assert_eq!(Ok(addr), inserted_address);
Trait Implementations
type Expression = Bound<Inet, Self>
type Expression = Bound<Inet, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Inet, Self>
type Expression = Bound<Inet, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Inet, Self>
type Expression = Bound<Inet, Self>
The expression being returned
Perform the conversion
Fetch the metadata for the given type Read more
Can the SQL generated by Self
be uniquely identified by its type? Read more
Auto Trait Implementations
impl RefUnwindSafe for Inet
impl UnwindSafe for Inet
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert self
to an expression for Diesel’s query builder. Read more