pub struct LeaseEntry {
pub hostname: String,
pub ip: String,
pub mac: String,
pub expires: String,
}Expand description
One DHCP lease row for status / export.
Fields§
§hostname: StringClient hostname when known.
ip: StringLeased IPv4 address.
mac: StringClient MAC address.
expires: StringLease expiry (dnsmasq epoch or formatted string).
Trait Implementations§
Source§impl Clone for LeaseEntry
impl Clone for LeaseEntry
Source§fn clone(&self) -> LeaseEntry
fn clone(&self) -> LeaseEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LeaseEntry
impl Debug for LeaseEntry
Source§impl<'de> Deserialize<'de> for LeaseEntry
impl<'de> Deserialize<'de> for LeaseEntry
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
Auto Trait Implementations§
impl Freeze for LeaseEntry
impl RefUnwindSafe for LeaseEntry
impl Send for LeaseEntry
impl Sync for LeaseEntry
impl Unpin for LeaseEntry
impl UnsafeUnpin for LeaseEntry
impl UnwindSafe for LeaseEntry
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