Struct pulumi_wasm_docker::ContainerVolumeBuilder

source ·
pub struct ContainerVolumeBuilder<___State = __ContainerVolumeBuilderInitialState> { /* private fields */ }
Expand description

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

Implementations§

source§

impl<__ContainerPath, __FromContainer, __HostPath, __ReadOnly, __VolumeName> ContainerVolumeBuilder<(__ContainerPath, __FromContainer, __HostPath, __ReadOnly, __VolumeName)>

source

pub fn build_struct(self) -> ContainerVolume
where __ContainerPath: IntoSet<Option<Box<Option<String>>>, ContainerVolumeBuilder__container_path>, __FromContainer: IntoSet<Option<Box<Option<String>>>, ContainerVolumeBuilder__from_container>, __HostPath: IntoSet<Option<Box<Option<String>>>, ContainerVolumeBuilder__host_path>, __ReadOnly: IntoSet<Option<Box<Option<bool>>>, ContainerVolumeBuilder__read_only>, __VolumeName: IntoSet<Option<Box<Option<String>>>, ContainerVolumeBuilder__volume_name>,

Finishes building and returns the requested object.

source

pub fn maybe_container_path( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ContainerVolumeBuilderSetMember>::ContainerPath
where __ContainerPath: IsUnset,

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

source

pub fn container_path( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ContainerVolumeBuilderSetMember>::ContainerPath
where __ContainerPath: IsUnset,

The path in the container where the volume will be mounted.

source

pub fn maybe_from_container( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ContainerVolumeBuilderSetMember>::FromContainer
where __FromContainer: IsUnset,

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

source

pub fn from_container( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ContainerVolumeBuilderSetMember>::FromContainer
where __FromContainer: IsUnset,

The container where the volume is coming from.

source

pub fn maybe_host_path( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ContainerVolumeBuilderSetMember>::HostPath
where __HostPath: IsUnset,

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

source

pub fn host_path( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ContainerVolumeBuilderSetMember>::HostPath
where __HostPath: IsUnset,

The path on the host where the volume is coming from.

source

pub fn maybe_read_only( self, value: Option<impl Into<Box<Option<bool>>>>, ) -> <Self as __ContainerVolumeBuilderSetMember>::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 __ContainerVolumeBuilderSetMember>::ReadOnly
where __ReadOnly: IsUnset,

If true, this volume will be readonly. Defaults to false.

source

pub fn maybe_volume_name( self, value: Option<impl Into<Box<Option<String>>>>, ) -> <Self as __ContainerVolumeBuilderSetMember>::VolumeName
where __VolumeName: IsUnset,

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

source

pub fn volume_name( self, value: impl Into<Box<Option<String>>>, ) -> <Self as __ContainerVolumeBuilderSetMember>::VolumeName
where __VolumeName: IsUnset,

The name of the docker volume which should be mounted.

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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