[−][src]Struct openstack::network::Subnet
Structure representing a subnet - a virtual NIC.
Implementations
impl Subnet
[src][−]
pub fn allocation_pools(&self) -> &Vec<AllocationPool>
[src][−]
Allocation pools for DHCP.
pub fn allocation_pools_mut(&mut self) -> &mut Vec<AllocationPool>
[src][−]
Update the allocation pools for DHCP.
pub fn set_allocation_pools(&mut self, value: Vec<AllocationPool>)
[src][−]
Update the allocation pools for DHCP.
pub fn with_allocation_pools(self, value: Vec<AllocationPool>) -> Self
[src][−]
Update the allocation pools for DHCP.
pub fn cidr(&self) -> IpNet
[src][−]
Network address of this subnet.
pub fn created_at(&self) -> Option<DateTime<FixedOffset>>
[src][−]
Creation data and time (if available).
pub fn description(&self) -> &Option<String>
[src][−]
Subnet description.
pub fn set_description<S: Into<String>>(&mut self, value: S)
[src][−]
Update the description.
pub fn with_description<S: Into<String>>(self, value: S) -> Self
[src][−]
Update the description.
pub fn dhcp_enabled(&self) -> bool
[src][−]
Whether DHCP is enabled.
pub fn set_dhcp_enabled(&mut self, value: bool)
[src][−]
Update whether DHCP is enabled.
pub fn with_dhcp_enabled(self, value: bool) -> Self
[src][−]
Update whether DHCP is enabled.
pub fn dns_nameservers(&self) -> &Vec<String>
[src][−]
List of DNS servers.
pub fn dns_nameservers_mut(&mut self) -> &mut Vec<String>
[src][−]
Update the list of DNS servers.
pub fn set_dns_nameservers(&mut self, value: Vec<String>)
[src][−]
Update the list of DNS servers.
pub fn with_dns_nameservers(self, value: Vec<String>) -> Self
[src][−]
Update the list of DNS servers.
pub fn gateway_ip(&self) -> Option<IpAddr>
[src][−]
Gateway IP address (if any).
pub fn set_gateway_ip(&mut self, value: IpAddr)
[src][−]
Update the gateway IP.
pub fn with_gateway_ip(self, value: IpAddr) -> Self
[src][−]
Update the gateway IP.
pub fn host_routes(&self) -> &Vec<HostRoute>
[src][−]
Statically configured routes.
pub fn host_routes_mut(&mut self) -> &mut Vec<HostRoute>
[src][−]
Update the statically configured routes.
pub fn set_host_routes(&mut self, value: Vec<HostRoute>)
[src][−]
Update the statically configured routes.
pub fn with_host_routes(self, value: Vec<HostRoute>) -> Self
[src][−]
Update the statically configured routes.
pub fn id(&self) -> &String
[src][−]
Unique ID.
pub fn ip_version(&self) -> IpVersion
[src][−]
IP protocol version.
pub fn ipv6_address_mode(&self) -> Option<Ipv6Mode>
[src][−]
Address assignment mode for IPv6.
pub fn ipv6_router_advertisement_mode(&self) -> Option<Ipv6Mode>
[src][−]
Router advertisement mode for IPv6.
pub fn name(&self) -> &Option<String>
[src][−]
Subnet name.
pub fn set_name<S: Into<String>>(&mut self, value: S)
[src][−]
Update the name.
pub fn with_name<S: Into<String>>(self, value: S) -> Self
[src][−]
Update the name.
pub fn network(&self) -> Result<Network>
[src][−]
Get network associated with this subnet.
pub fn network_id(&self) -> &String
[src][−]
ID of the network this subnet belongs to.
pub fn updated_at(&self) -> Option<DateTime<FixedOffset>>
[src][−]
Last update data and time (if available).
pub fn delete(self) -> Result<DeletionWaiter<Subnet>>
[src][−]
Delete the subnet.
pub fn is_dirty(&self) -> bool
[src][−]
Whether the subnet is modified.
pub fn save(&mut self) -> Result<()>
[src][−]
Save the changes to the subnet.
Trait Implementations
impl Clone for Subnet
[src][+]
impl Debug for Subnet
[src][+]
impl From<Subnet> for SubnetRef
[src][+]
impl Refresh for Subnet
[src][+]
Auto Trait Implementations
impl !RefUnwindSafe for Subnet
impl !Send for Subnet
impl !Sync for Subnet
impl Unpin for Subnet
impl !UnwindSafe for Subnet
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,