Struct diesel::pg::types::sql_types::MacAddr [−][src]
pub struct MacAddr;
Expand description
The MACADDR SQL type. This type can only be used with feature = "network-address"
ToSql impls
[u8; 6]
FromSql impls
[u8; 6]
Examples
table! { devices { id -> Integer, macaddr -> MacAddr, } } let inserted_macaddr = insert_into(devices) .values(macaddr.eq([0x08, 0x00, 0x2b, 0x01, 0x02, 0x03])) .returning(macaddr) .get_result(&connection); assert_eq!(Ok([0x08, 0x00, 0x2b, 0x01, 0x02, 0x03]), inserted_macaddr);
Trait Implementations
type Expression = Bound<MacAddr, Self>
type Expression = Bound<MacAddr, Self>
The expression being returned
Perform the conversion
type Expression = Bound<MacAddr, Self>
type Expression = Bound<MacAddr, Self>
The expression being returned
Perform the conversion
type Expression = Bound<MacAddr, Self>
type Expression = Bound<MacAddr, 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 MacAddr
impl UnwindSafe for MacAddr
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert self to an expression for Diesel’s query builder. Read more