pub struct ReservedIPsCreateResponseReservedIpDropletSubtype1NetworksV4Item {
pub gateway: Option<String>,
pub ip_address: Option<Ipv4Addr>,
pub netmask: Option<Ipv4Addr>,
pub type_: Option<ReservedIPsCreateResponseReservedIpDropletSubtype1NetworksV4ItemType>,
}Expand description
ReservedIPsCreateResponseReservedIpDropletSubtype1NetworksV4Item
JSON schema
{
"type": "object",
"properties": {
"gateway": {
"description": "The gateway of the specified IPv4 network interface.\n\nFor private interfaces, a gateway is not provided. This is denoted by\nreturning `nil` as its value.\n",
"examples": [
"104.236.0.1"
],
"type": "string"
},
"ip_address": {
"description": "The IP address of the IPv4 network interface.",
"examples": [
"104.236.32.182"
],
"type": "string",
"format": "ipv4"
},
"netmask": {
"description": "The netmask of the IPv4 network interface.",
"examples": [
"255.255.192.0"
],
"type": "string",
"format": "ipv4"
},
"type": {
"description": "The type of the IPv4 network interface.",
"examples": [
"public"
],
"type": "string",
"enum": [
"public",
"private"
]
}
}
}Fields§
§gateway: Option<String>The gateway of the specified IPv4 network interface.
For private interfaces, a gateway is not provided. This is denoted by
returning nil as its value.
ip_address: Option<Ipv4Addr>The IP address of the IPv4 network interface.
netmask: Option<Ipv4Addr>The netmask of the IPv4 network interface.
type_: Option<ReservedIPsCreateResponseReservedIpDropletSubtype1NetworksV4ItemType>The type of the IPv4 network interface.
Trait Implementations§
Source§impl Clone for ReservedIPsCreateResponseReservedIpDropletSubtype1NetworksV4Item
impl Clone for ReservedIPsCreateResponseReservedIpDropletSubtype1NetworksV4Item
Source§fn clone(
&self,
) -> ReservedIPsCreateResponseReservedIpDropletSubtype1NetworksV4Item
fn clone( &self, ) -> ReservedIPsCreateResponseReservedIpDropletSubtype1NetworksV4Item
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<'de> Deserialize<'de> for ReservedIPsCreateResponseReservedIpDropletSubtype1NetworksV4Item
impl<'de> Deserialize<'de> for ReservedIPsCreateResponseReservedIpDropletSubtype1NetworksV4Item
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
Source§impl From<&ReservedIPsCreateResponseReservedIpDropletSubtype1NetworksV4Item> for ReservedIPsCreateResponseReservedIpDropletSubtype1NetworksV4Item
impl From<&ReservedIPsCreateResponseReservedIpDropletSubtype1NetworksV4Item> for ReservedIPsCreateResponseReservedIpDropletSubtype1NetworksV4Item
Source§fn from(
value: &ReservedIPsCreateResponseReservedIpDropletSubtype1NetworksV4Item,
) -> Self
fn from( value: &ReservedIPsCreateResponseReservedIpDropletSubtype1NetworksV4Item, ) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReservedIPsCreateResponseReservedIpDropletSubtype1NetworksV4Item
impl RefUnwindSafe for ReservedIPsCreateResponseReservedIpDropletSubtype1NetworksV4Item
impl Send for ReservedIPsCreateResponseReservedIpDropletSubtype1NetworksV4Item
impl Sync for ReservedIPsCreateResponseReservedIpDropletSubtype1NetworksV4Item
impl Unpin for ReservedIPsCreateResponseReservedIpDropletSubtype1NetworksV4Item
impl UnsafeUnpin for ReservedIPsCreateResponseReservedIpDropletSubtype1NetworksV4Item
impl UnwindSafe for ReservedIPsCreateResponseReservedIpDropletSubtype1NetworksV4Item
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