pub struct Network {Show 24 fields
pub id: EntityId,
pub name: String,
pub enabled: bool,
pub management: Option<NetworkManagement>,
pub purpose: Option<NetworkPurpose>,
pub is_default: bool,
pub vlan_id: Option<u16>,
pub subnet: Option<String>,
pub gateway_ip: Option<Ipv4Addr>,
pub dhcp: Option<DhcpConfig>,
pub ipv6_enabled: bool,
pub ipv6_mode: Option<Ipv6Mode>,
pub ipv6_prefix: Option<String>,
pub dhcpv6_enabled: bool,
pub slaac_enabled: bool,
pub ntp_server: Option<IpAddr>,
pub pxe_enabled: bool,
pub tftp_server: Option<String>,
pub firewall_zone_id: Option<EntityId>,
pub isolation_enabled: bool,
pub internet_access_enabled: bool,
pub mdns_forwarding_enabled: bool,
pub cellular_backup_enabled: bool,
pub origin: Option<EntityOrigin>,
/* private fields */
}Expand description
The canonical Network type.
Fields§
§id: EntityId§name: String§enabled: bool§management: Option<NetworkManagement>§purpose: Option<NetworkPurpose>§is_default: bool§vlan_id: Option<u16>§subnet: Option<String>§gateway_ip: Option<Ipv4Addr>§dhcp: Option<DhcpConfig>§ipv6_enabled: bool§ipv6_mode: Option<Ipv6Mode>§ipv6_prefix: Option<String>§dhcpv6_enabled: bool§slaac_enabled: bool§ntp_server: Option<IpAddr>§pxe_enabled: bool§tftp_server: Option<String>§firewall_zone_id: Option<EntityId>§isolation_enabled: bool§internet_access_enabled: bool§mdns_forwarding_enabled: bool§cellular_backup_enabled: bool§origin: Option<EntityOrigin>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Network
impl<'de> Deserialize<'de> for Network
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<NetworkDetailsResponse> for Network
impl From<NetworkDetailsResponse> for Network
Source§fn from(n: NetworkDetailsResponse) -> Self
fn from(n: NetworkDetailsResponse) -> Self
Converts to this type from the input type.
Source§impl From<NetworkResponse> for Network
impl From<NetworkResponse> for Network
Source§fn from(n: NetworkResponse) -> Self
fn from(n: NetworkResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Network
impl RefUnwindSafe for Network
impl Send for Network
impl Sync for Network
impl Unpin for Network
impl UnsafeUnpin for Network
impl UnwindSafe for Network
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