pub struct HostNetworkInfoBuilder { /* private fields */ }
Expand description
Builder for HostNetworkInfo
.
Implementations§
Source§impl HostNetworkInfoBuilder
impl HostNetworkInfoBuilder
pub fn name(&mut self, value: String) -> &mut Self
pub fn cidr(&mut self, value: String) -> &mut Self
pub fn interface(&mut self, value: String) -> &mut Self
pub fn reserved_ports(&mut self, value: String) -> &mut Self
Sourcepub fn build(&self) -> Result<HostNetworkInfo, HostNetworkInfoBuilderError>
pub fn build(&self) -> Result<HostNetworkInfo, HostNetworkInfoBuilderError>
Trait Implementations§
Source§impl Clone for HostNetworkInfoBuilder
impl Clone for HostNetworkInfoBuilder
Source§fn clone(&self) -> HostNetworkInfoBuilder
fn clone(&self) -> HostNetworkInfoBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for HostNetworkInfoBuilder
impl RefUnwindSafe for HostNetworkInfoBuilder
impl Send for HostNetworkInfoBuilder
impl Sync for HostNetworkInfoBuilder
impl Unpin for HostNetworkInfoBuilder
impl UnwindSafe for HostNetworkInfoBuilder
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