Struct pulumi_wasm_docker::ContainerMountBuilder

source ·
pub struct ContainerMountBuilder<___State = __ContainerMountBuilderInitialState> { /* 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> ContainerMountBuilder<(__BindOptions, __ReadOnly, __Source, __Target, __TmpfsOptions, __Type, __VolumeOptions)>

source

pub fn build_struct(self) -> ContainerMount
where __BindOptions: IntoSet<Option<Box<Option<ContainerMountBindOptions>>>, ContainerMountBuilder__bind_options>, __ReadOnly: IntoSet<Option<Box<Option<bool>>>, ContainerMountBuilder__read_only>, __Source: IntoSet<Option<Box<Option<String>>>, ContainerMountBuilder__source>, __Target: IntoSet<Box<String>, ContainerMountBuilder__target>, __TmpfsOptions: IntoSet<Option<Box<Option<ContainerMountTmpfsOptions>>>, ContainerMountBuilder__tmpfs_options>, __Type: IntoSet<Box<String>, ContainerMountBuilder__type>, __VolumeOptions: IntoSet<Option<Box<Option<ContainerMountVolumeOptions>>>, ContainerMountBuilder__volume_options>,

Finishes building and returns the requested object.

source

pub fn maybe_bind_options( self, value: Option<impl Into<Box<Option<ContainerMountBindOptions>>>>, ) -> <Self as __ContainerMountBuilderSetMember>::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<ContainerMountBindOptions>>>, ) -> <Self as __ContainerMountBuilderSetMember>::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 __ContainerMountBuilderSetMember>::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 __ContainerMountBuilderSetMember>::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 __ContainerMountBuilderSetMember>::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 __ContainerMountBuilderSetMember>::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 __ContainerMountBuilderSetMember>::Target
where __Target: IsUnset,

Container path

source

pub fn maybe_tmpfs_options( self, value: Option<impl Into<Box<Option<ContainerMountTmpfsOptions>>>>, ) -> <Self as __ContainerMountBuilderSetMember>::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<ContainerMountTmpfsOptions>>>, ) -> <Self as __ContainerMountBuilderSetMember>::TmpfsOptions
where __TmpfsOptions: IsUnset,

Optional configuration for the tmpfs type.

source

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

The mount type

source

pub fn maybe_volume_options( self, value: Option<impl Into<Box<Option<ContainerMountVolumeOptions>>>>, ) -> <Self as __ContainerMountBuilderSetMember>::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<ContainerMountVolumeOptions>>>, ) -> <Self as __ContainerMountBuilderSetMember>::VolumeOptions
where __VolumeOptions: IsUnset,

Optional configuration for the volume type.

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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