pub struct ContainerNetworkDataBuilder<___State = __ContainerNetworkDataBuilderInitialState> { /* private fields */ }
Expand description

Use builder syntax to set the required parameters and finish by calling the method Self::build_struct().

Implementations§

source§

impl<__Gateway, __GlobalIpv6Address, __GlobalIpv6PrefixLength, __IpAddress, __IpPrefixLength, __Ipv6Gateway, __MacAddress, __NetworkName> ContainerNetworkDataBuilder<(__Gateway, __GlobalIpv6Address, __GlobalIpv6PrefixLength, __IpAddress, __IpPrefixLength, __Ipv6Gateway, __MacAddress, __NetworkName)>

source

pub fn build_struct(self) -> ContainerNetworkData
where __Gateway: IntoSet<Option<Box<Option<String>>>, ContainerNetworkDataBuilder__gateway>, __GlobalIpv6Address: IntoSet<Option<Box<Option<String>>>, ContainerNetworkDataBuilder__global_ipv_6_address>, __GlobalIpv6PrefixLength: IntoSet<Option<Box<Option<i32>>>, ContainerNetworkDataBuilder__global_ipv_6_prefix_length>, __IpAddress: IntoSet<Option<Box<Option<String>>>, ContainerNetworkDataBuilder__ip_address>, __IpPrefixLength: IntoSet<Option<Box<Option<i32>>>, ContainerNetworkDataBuilder__ip_prefix_length>, __Ipv6Gateway: IntoSet<Option<Box<Option<String>>>, ContainerNetworkDataBuilder__ipv_6_gateway>, __MacAddress: IntoSet<Option<Box<Option<String>>>, ContainerNetworkDataBuilder__mac_address>, __NetworkName: IntoSet<Option<Box<Option<String>>>, ContainerNetworkDataBuilder__network_name>,

Finishes building and returns the requested object.

source

pub fn maybe_gateway( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ContainerNetworkDataBuilderSetMember>::Gateway
where __Gateway: IsUnset,

Same as [Self::r#gateway], but accepts an Option as input. See that method’s documentation for more details.

source

pub fn gateway( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ContainerNetworkDataBuilderSetMember>::Gateway
where __Gateway: IsUnset,

The network gateway of the container.

source

pub fn maybe_global_ipv_6_address( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ContainerNetworkDataBuilderSetMember>::GlobalIpv6Address
where __GlobalIpv6Address: IsUnset,

Same as [Self::r#global_ipv_6_address], but accepts an Option as input. See that method’s documentation for more details.

source

pub fn global_ipv_6_address( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ContainerNetworkDataBuilderSetMember>::GlobalIpv6Address
where __GlobalIpv6Address: IsUnset,

The IPV6 address of the container.

source

pub fn maybe_global_ipv_6_prefix_length( self, value: Option<impl Into<Box<Option<i32>>>>, ) -> <Self as __ContainerNetworkDataBuilderSetMember>::GlobalIpv6PrefixLength
where __GlobalIpv6PrefixLength: IsUnset,

Same as [Self::r#global_ipv_6_prefix_length], but accepts an Option as input. See that method’s documentation for more details.

source

pub fn global_ipv_6_prefix_length( self, value: impl Into<Box<Option<i32>>>, ) -> <Self as __ContainerNetworkDataBuilderSetMember>::GlobalIpv6PrefixLength
where __GlobalIpv6PrefixLength: IsUnset,

The IPV6 prefix length address of the container.

source

pub fn maybe_ip_address( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ContainerNetworkDataBuilderSetMember>::IpAddress
where __IpAddress: IsUnset,

Same as [Self::r#ip_address], but accepts an Option as input. See that method’s documentation for more details.

source

pub fn ip_address( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ContainerNetworkDataBuilderSetMember>::IpAddress
where __IpAddress: IsUnset,

The IP address of the container.

source

pub fn maybe_ip_prefix_length( self, value: Option<impl Into<Box<Option<i32>>>>, ) -> <Self as __ContainerNetworkDataBuilderSetMember>::IpPrefixLength
where __IpPrefixLength: IsUnset,

Same as [Self::r#ip_prefix_length], but accepts an Option as input. See that method’s documentation for more details.

source

pub fn ip_prefix_length( self, value: impl Into<Box<Option<i32>>>, ) -> <Self as __ContainerNetworkDataBuilderSetMember>::IpPrefixLength
where __IpPrefixLength: IsUnset,

The IP prefix length of the container.

source

pub fn maybe_ipv_6_gateway( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ContainerNetworkDataBuilderSetMember>::Ipv6Gateway
where __Ipv6Gateway: IsUnset,

Same as [Self::r#ipv_6_gateway], but accepts an Option as input. See that method’s documentation for more details.

source

pub fn ipv_6_gateway( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ContainerNetworkDataBuilderSetMember>::Ipv6Gateway
where __Ipv6Gateway: IsUnset,

The IPV6 gateway of the container.

source

pub fn maybe_mac_address( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ContainerNetworkDataBuilderSetMember>::MacAddress
where __MacAddress: IsUnset,

Same as [Self::r#mac_address], but accepts an Option as input. See that method’s documentation for more details.

source

pub fn mac_address( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ContainerNetworkDataBuilderSetMember>::MacAddress
where __MacAddress: IsUnset,

The MAC address of the container.

source

pub fn maybe_network_name( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ContainerNetworkDataBuilderSetMember>::NetworkName
where __NetworkName: IsUnset,

Same as [Self::r#network_name], but accepts an Option as input. See that method’s documentation for more details.

source

pub fn network_name( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ContainerNetworkDataBuilderSetMember>::NetworkName
where __NetworkName: IsUnset,

The name of the network

Auto Trait Implementations§

§

impl<___State> Freeze for ContainerNetworkDataBuilder<___State>
where ___State: Freeze,

§

impl<___State> RefUnwindSafe for ContainerNetworkDataBuilder<___State>
where ___State: RefUnwindSafe,

§

impl<___State> Send for ContainerNetworkDataBuilder<___State>
where ___State: Send,

§

impl<___State> Sync for ContainerNetworkDataBuilder<___State>
where ___State: Sync,

§

impl<___State> Unpin for ContainerNetworkDataBuilder<___State>
where ___State: Unpin,

§

impl<___State> UnwindSafe for ContainerNetworkDataBuilder<___State>
where ___State: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.