pub struct ServiceTaskSpecContainerSpecConfigBuilder<___State = __ServiceTaskSpecContainerSpecConfigBuilderInitialState> { /* private fields */ }
Expand description

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

Implementations§

source§

impl<__ConfigId, __ConfigName, __FileGid, __FileMode, __FileName, __FileUid> ServiceTaskSpecContainerSpecConfigBuilder<(__ConfigId, __ConfigName, __FileGid, __FileMode, __FileName, __FileUid)>

source

pub fn build_struct(self) -> ServiceTaskSpecContainerSpecConfig
where __ConfigId: IntoSet<Box<String>, ServiceTaskSpecContainerSpecConfigBuilder__config_id>, __ConfigName: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecConfigBuilder__config_name>, __FileGid: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecConfigBuilder__file_gid>, __FileMode: IntoSet<Option<Box<Option<i32>>>, ServiceTaskSpecContainerSpecConfigBuilder__file_mode>, __FileName: IntoSet<Box<String>, ServiceTaskSpecContainerSpecConfigBuilder__file_name>, __FileUid: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecConfigBuilder__file_uid>,

Finishes building and returns the requested object.

source

pub fn config_id( self, value: impl Into<Box<String>>, ) -> <Self as __ServiceTaskSpecContainerSpecConfigBuilderSetMember>::ConfigId
where __ConfigId: IsUnset,

ID of the specific config that we’re referencing

source

pub fn maybe_config_name( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ServiceTaskSpecContainerSpecConfigBuilderSetMember>::ConfigName
where __ConfigName: IsUnset,

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

source

pub fn config_name( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ServiceTaskSpecContainerSpecConfigBuilderSetMember>::ConfigName
where __ConfigName: IsUnset,

Name of the config that this references, but this is just provided for lookup/display purposes. The config in the reference will be identified by its ID

source

pub fn maybe_file_gid( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ServiceTaskSpecContainerSpecConfigBuilderSetMember>::FileGid
where __FileGid: IsUnset,

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

source

pub fn file_gid( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ServiceTaskSpecContainerSpecConfigBuilderSetMember>::FileGid
where __FileGid: IsUnset,

Represents the file GID. Defaults to 0.

source

pub fn maybe_file_mode( self, value: Option<impl Into<Box<Option<i32>>>>, ) -> <Self as __ServiceTaskSpecContainerSpecConfigBuilderSetMember>::FileMode
where __FileMode: IsUnset,

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

source

pub fn file_mode( self, value: impl Into<Box<Option<i32>>>, ) -> <Self as __ServiceTaskSpecContainerSpecConfigBuilderSetMember>::FileMode
where __FileMode: IsUnset,

Represents represents the FileMode of the file. Defaults to 0o444.

source

pub fn file_name( self, value: impl Into<Box<String>>, ) -> <Self as __ServiceTaskSpecContainerSpecConfigBuilderSetMember>::FileName
where __FileName: IsUnset,

Represents the final filename in the filesystem

source

pub fn maybe_file_uid( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ServiceTaskSpecContainerSpecConfigBuilderSetMember>::FileUid
where __FileUid: IsUnset,

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

source

pub fn file_uid( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ServiceTaskSpecContainerSpecConfigBuilderSetMember>::FileUid
where __FileUid: IsUnset,

Represents the file UID. Defaults to 0.

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

impl<___State> UnwindSafe for ServiceTaskSpecContainerSpecConfigBuilder<___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.