Struct sqlx::types::mac_address::MacAddress
pub struct MacAddress { /* private fields */ }
Expand description
Contains the individual bytes of the MAC address.
Implementationsยง
ยงimpl MacAddress
impl MacAddress
pub fn new(bytes: [u8; 6]) -> MacAddress
pub fn new(bytes: [u8; 6]) -> MacAddress
Creates a new MacAddress
struct from the given bytes.
ยงimpl MacAddress
impl MacAddress
Trait Implementationsยง
ยงimpl Clone for MacAddress
impl Clone for MacAddress
ยงfn clone(&self) -> MacAddress
fn clone(&self) -> MacAddress
Returns a copy of the value. Read more
1.0.0 ยท sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreยงimpl Debug for MacAddress
impl Debug for MacAddress
sourceยงimpl Decode<'_, Postgres> for MacAddress
impl Decode<'_, Postgres> for MacAddress
ยงimpl Default for MacAddress
impl Default for MacAddress
ยงfn default() -> MacAddress
fn default() -> MacAddress
Returns the โdefault valueโ for a type. Read more
ยงimpl Display for MacAddress
impl Display for MacAddress
sourceยงimpl Encode<'_, Postgres> for MacAddress
impl Encode<'_, Postgres> for MacAddress
sourceยงfn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn size_hint(&self) -> usize
sourceยงfn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere Self: Sized,
Writes the value of
self
into buf
in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
ยงimpl From<[u8; 6]> for MacAddress
impl From<[u8; 6]> for MacAddress
ยงfn from(v: [u8; 6]) -> MacAddress
fn from(v: [u8; 6]) -> MacAddress
Converts to this type from the input type.
ยงimpl FromStr for MacAddress
impl FromStr for MacAddress
ยงimpl Hash for MacAddress
impl Hash for MacAddress
ยงimpl Ord for MacAddress
impl Ord for MacAddress
ยงimpl PartialEq<MacAddress> for MacAddress
impl PartialEq<MacAddress> for MacAddress
ยงfn eq(&self, other: &MacAddress) -> bool
fn eq(&self, other: &MacAddress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.ยงimpl PartialOrd<MacAddress> for MacAddress
impl PartialOrd<MacAddress> for MacAddress
ยงfn partial_cmp(&self, other: &MacAddress) -> Option<Ordering>
fn partial_cmp(&self, other: &MacAddress) -> Option<Ordering>
1.0.0 ยท sourceยงfn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceยงimpl PgHasArrayType for MacAddress
impl PgHasArrayType for MacAddress
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
ยงimpl TryFrom<&str> for MacAddress
impl TryFrom<&str> for MacAddress
ยงimpl TryFrom<Cow<'_, str>> for MacAddress
impl TryFrom<Cow<'_, str>> for MacAddress
sourceยงimpl Type<Postgres> for MacAddress
impl Type<Postgres> for MacAddress
sourceยงfn type_info() -> PgTypeInfo
fn type_info() -> PgTypeInfo
Returns the canonical SQL type for this Rust type. Read more
sourceยงfn compatible(ty: &PgTypeInfo) -> bool
fn compatible(ty: &PgTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
impl Copy for MacAddress
impl Eq for MacAddress
impl StructuralEq for MacAddress
impl StructuralPartialEq for MacAddress
Auto Trait Implementationsยง
impl RefUnwindSafe for MacAddress
impl Send for MacAddress
impl Sync for MacAddress
impl Unpin for MacAddress
impl UnwindSafe for MacAddress
Blanket Implementationsยง
sourceยงimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
sourceยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.