pub struct NetworkV4 {
pub gateway: Ipv4Addr,
pub ip_address: Ipv4Addr,
pub netmask: Ipv4Addr,
pub kind: String,
}Expand description
These exist in the networks field of a droplet.
Fields§
§gateway: Ipv4Addr§ip_address: Ipv4Addr§netmask: Ipv4Addr§kind: StringNote: Since type is a keyword in Rust kind is used instead.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NetworkV4
impl<'de> Deserialize<'de> for NetworkV4
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 NetworkV4
impl RefUnwindSafe for NetworkV4
impl Send for NetworkV4
impl Sync for NetworkV4
impl Unpin for NetworkV4
impl UnwindSafe for NetworkV4
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