pub struct ServiceTaskSpecContainerSpecMountBuilder<___State = __ServiceTaskSpecContainerSpecMountBuilderInitialState> { /* private fields */ }
Expand description

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

Implementations§

source§

impl<__BindOptions, __ReadOnly, __Source, __Target, __TmpfsOptions, __Type, __VolumeOptions> ServiceTaskSpecContainerSpecMountBuilder<(__BindOptions, __ReadOnly, __Source, __Target, __TmpfsOptions, __Type, __VolumeOptions)>

source

pub fn build_struct(self) -> ServiceTaskSpecContainerSpecMount
where __BindOptions: IntoSet<Option<Box<Option<ServiceTaskSpecContainerSpecMountBindOptions>>>, ServiceTaskSpecContainerSpecMountBuilder__bind_options>, __ReadOnly: IntoSet<Option<Box<Option<bool>>>, ServiceTaskSpecContainerSpecMountBuilder__read_only>, __Source: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecMountBuilder__source>, __Target: IntoSet<Box<String>, ServiceTaskSpecContainerSpecMountBuilder__target>, __TmpfsOptions: IntoSet<Option<Box<Option<ServiceTaskSpecContainerSpecMountTmpfsOptions>>>, ServiceTaskSpecContainerSpecMountBuilder__tmpfs_options>, __Type: IntoSet<Box<String>, ServiceTaskSpecContainerSpecMountBuilder__type>, __VolumeOptions: IntoSet<Option<Box<Option<ServiceTaskSpecContainerSpecMountVolumeOptions>>>, ServiceTaskSpecContainerSpecMountBuilder__volume_options>,

Finishes building and returns the requested object.

source

pub fn maybe_bind_options( self, value: Option<impl Into<Box<Option<ServiceTaskSpecContainerSpecMountBindOptions>>>>, ) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::BindOptions
where __BindOptions: IsUnset,

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

source

pub fn bind_options( self, value: impl Into<Box<Option<ServiceTaskSpecContainerSpecMountBindOptions>>>, ) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::BindOptions
where __BindOptions: IsUnset,

Optional configuration for the bind type

source

pub fn maybe_read_only( self, value: Option<impl Into<Box<Option<bool>>>>, ) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::ReadOnly
where __ReadOnly: IsUnset,

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

source

pub fn read_only( self, value: impl Into<Box<Option<bool>>>, ) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::ReadOnly
where __ReadOnly: IsUnset,

Whether the mount should be read-only

source

pub fn maybe_source( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::Source
where __Source: IsUnset,

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

source

pub fn source( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::Source
where __Source: IsUnset,

Mount source (e.g. a volume name, a host path)

source

pub fn target( self, value: impl Into<Box<String>>, ) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::Target
where __Target: IsUnset,

Container path

source

pub fn maybe_tmpfs_options( self, value: Option<impl Into<Box<Option<ServiceTaskSpecContainerSpecMountTmpfsOptions>>>>, ) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::TmpfsOptions
where __TmpfsOptions: IsUnset,

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

source

pub fn tmpfs_options( self, value: impl Into<Box<Option<ServiceTaskSpecContainerSpecMountTmpfsOptions>>>, ) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::TmpfsOptions
where __TmpfsOptions: IsUnset,

Optional configuration for the tmpfs type

source

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

The mount type

source

pub fn maybe_volume_options( self, value: Option<impl Into<Box<Option<ServiceTaskSpecContainerSpecMountVolumeOptions>>>>, ) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::VolumeOptions
where __VolumeOptions: IsUnset,

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

source

pub fn volume_options( self, value: impl Into<Box<Option<ServiceTaskSpecContainerSpecMountVolumeOptions>>>, ) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::VolumeOptions
where __VolumeOptions: IsUnset,

Optional configuration for the volume type

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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