pub struct DeviceAddress {
pub address: String,
pub network: AddressNetwork,
}Expand description
An address a device reached the server from.
Fields§
§address: StringIts IP address as text: 192.168.86.20, fd7a:115c:a1e0::1. An
IPv4 address is never in its IPv6-mapped form.
network: AddressNetworkWhat kind of network that address is on, as the server judges it.
Trait Implementations§
Source§impl Clone for DeviceAddress
impl Clone for DeviceAddress
Source§impl Debug for DeviceAddress
impl Debug for DeviceAddress
Source§impl<'de> Deserialize<'de> for DeviceAddress
impl<'de> Deserialize<'de> for DeviceAddress
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DeviceAddress
Source§impl PartialEq for DeviceAddress
impl PartialEq for DeviceAddress
Source§impl Serialize for DeviceAddress
impl Serialize for DeviceAddress
impl StructuralPartialEq for DeviceAddress
Auto Trait Implementations§
impl Freeze for DeviceAddress
impl RefUnwindSafe for DeviceAddress
impl Send for DeviceAddress
impl Sync for DeviceAddress
impl Unpin for DeviceAddress
impl UnsafeUnpin for DeviceAddress
impl UnwindSafe for DeviceAddress
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