pub struct ServiceTaskSpecContainerSpecPrivilegesSeLinuxContextBuilder<___State = __ServiceTaskSpecContainerSpecPrivilegesSeLinuxContextBuilderInitialState> { /* private fields */ }
Expand description

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

Implementations§

source§

impl<__Disable, __Level, __Role, __Type, __User> ServiceTaskSpecContainerSpecPrivilegesSeLinuxContextBuilder<(__Disable, __Level, __Role, __Type, __User)>

source

pub fn build_struct( self, ) -> ServiceTaskSpecContainerSpecPrivilegesSeLinuxContext
where __Disable: IntoSet<Option<Box<Option<bool>>>, ServiceTaskSpecContainerSpecPrivilegesSeLinuxContextBuilder__disable>, __Level: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecPrivilegesSeLinuxContextBuilder__level>, __Role: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecPrivilegesSeLinuxContextBuilder__role>, __Type: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecPrivilegesSeLinuxContextBuilder__type>, __User: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecPrivilegesSeLinuxContextBuilder__user>,

Finishes building and returns the requested object.

source

pub fn maybe_disable( self, value: Option<impl Into<Box<Option<bool>>>>, ) -> <Self as __ServiceTaskSpecContainerSpecPrivilegesSeLinuxContextBuilderSetMember>::Disable
where __Disable: IsUnset,

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

source

pub fn disable( self, value: impl Into<Box<Option<bool>>>, ) -> <Self as __ServiceTaskSpecContainerSpecPrivilegesSeLinuxContextBuilderSetMember>::Disable
where __Disable: IsUnset,

Disable SELinux

source

pub fn maybe_level( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ServiceTaskSpecContainerSpecPrivilegesSeLinuxContextBuilderSetMember>::Level
where __Level: IsUnset,

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

source

pub fn level( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ServiceTaskSpecContainerSpecPrivilegesSeLinuxContextBuilderSetMember>::Level
where __Level: IsUnset,

SELinux level label

source

pub fn maybe_role( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ServiceTaskSpecContainerSpecPrivilegesSeLinuxContextBuilderSetMember>::Role
where __Role: IsUnset,

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

source

pub fn role( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ServiceTaskSpecContainerSpecPrivilegesSeLinuxContextBuilderSetMember>::Role
where __Role: IsUnset,

SELinux role label

source

pub fn maybe_type( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ServiceTaskSpecContainerSpecPrivilegesSeLinuxContextBuilderSetMember>::Type
where __Type: IsUnset,

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

source

pub fn type( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ServiceTaskSpecContainerSpecPrivilegesSeLinuxContextBuilderSetMember>::Type
where __Type: IsUnset,

SELinux type label

source

pub fn maybe_user( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ServiceTaskSpecContainerSpecPrivilegesSeLinuxContextBuilderSetMember>::User
where __User: IsUnset,

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

source

pub fn user( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ServiceTaskSpecContainerSpecPrivilegesSeLinuxContextBuilderSetMember>::User
where __User: IsUnset,

SELinux user label

Auto Trait Implementations§

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.