pub struct ContainerCapabilitiesBuilder<___State = __ContainerCapabilitiesBuilderInitialState> { /* private fields */ }
Expand description
Use builder syntax to set the required parameters and finish by calling the method Self::build_struct()
.
Implementations§
source§impl<__Adds, __Drops> ContainerCapabilitiesBuilder<(__Adds, __Drops)>
impl<__Adds, __Drops> ContainerCapabilitiesBuilder<(__Adds, __Drops)>
sourcepub fn build_struct(self) -> ContainerCapabilities
pub fn build_struct(self) -> ContainerCapabilities
Finishes building and returns the requested object.
sourcepub fn maybe_adds(
self,
value: Option<impl Into<Box<Option<Vec<String>>>>>,
) -> <Self as __ContainerCapabilitiesBuilderSetMember>::Addswhere
__Adds: IsUnset,
pub fn maybe_adds(
self,
value: Option<impl Into<Box<Option<Vec<String>>>>>,
) -> <Self as __ContainerCapabilitiesBuilderSetMember>::Addswhere
__Adds: IsUnset,
Same as [Self::r#adds
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn adds(
self,
value: impl Into<Box<Option<Vec<String>>>>,
) -> <Self as __ContainerCapabilitiesBuilderSetMember>::Addswhere
__Adds: IsUnset,
pub fn adds(
self,
value: impl Into<Box<Option<Vec<String>>>>,
) -> <Self as __ContainerCapabilitiesBuilderSetMember>::Addswhere
__Adds: IsUnset,
List of linux capabilities to add.
Auto Trait Implementations§
impl<___State> Freeze for ContainerCapabilitiesBuilder<___State>where
___State: Freeze,
impl<___State> RefUnwindSafe for ContainerCapabilitiesBuilder<___State>where
___State: RefUnwindSafe,
impl<___State> Send for ContainerCapabilitiesBuilder<___State>where
___State: Send,
impl<___State> Sync for ContainerCapabilitiesBuilder<___State>where
___State: Sync,
impl<___State> Unpin for ContainerCapabilitiesBuilder<___State>where
___State: Unpin,
impl<___State> UnwindSafe for ContainerCapabilitiesBuilder<___State>where
___State: UnwindSafe,
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