pub struct Inet {
pub ip: IpAddr,
pub prefix_len: Option<u8>,
}Expand description
PostgreSQL INET type representing IP addresses with optional subnet mask
Fields§
§ip: IpAddr§prefix_len: Option<u8>Implementations§
Trait Implementations§
impl Eq for Inet
Source§impl<'a> FromSqlBase<'a> for Inet
impl<'a> FromSqlBase<'a> for Inet
fn accepts_postgres_type(oid: i32) -> bool
fn accepts(field: &FieldDescription) -> bool
Source§fn accepts_with_registry(
field: &FieldDescription,
_registry: &EnumTypeRegistry,
) -> bool
fn accepts_with_registry( field: &FieldDescription, _registry: &EnumTypeRegistry, ) -> bool
Extended accepts check with access to the enum type registry.
Override for enum types and collections of enums.
Default delegates to the static
accepts check.fn from_null(field: &FieldDescription) -> Result<Self, ElefantClientError>
Source§impl<'a> FromSqlBinary<'a> for Inet
impl<'a> FromSqlBinary<'a> for Inet
fn from_sql_binary( raw: &'a [u8], _field: &FieldDescription, ) -> Result<Self, Box<dyn Error + Sync + Send>>
Source§impl<'a> FromSqlText<'a> for Inet
impl<'a> FromSqlText<'a> for Inet
fn from_sql_text( raw: &'a str, _field: &FieldDescription, ) -> Result<Self, Box<dyn Error + Sync + Send>>
impl StructuralPartialEq for Inet
Auto Trait Implementations§
impl Freeze for Inet
impl RefUnwindSafe for Inet
impl Send for Inet
impl Sync for Inet
impl Unpin for Inet
impl UnsafeUnpin for Inet
impl UnwindSafe for Inet
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