#[non_exhaustive]pub struct VolumeMount {
pub name: String,
pub mount_path: String,
pub sub_path: String,
/* private fields */
}Expand description
VolumeMount describes a mounting of a Volume within a container.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringRequired. This must match the Name of a Volume.
mount_path: StringRequired. Path within the container at which the volume should be mounted.
Must not contain ‘:’. For Cloud SQL volumes, it can be left empty, or must
otherwise be /cloudsql. All instances defined in the Volume will be
available as /cloudsql/[instance]. For more information on Cloud SQL
volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
sub_path: StringOptional. Path within the volume from which the container’s volume should be mounted. Defaults to “” (volume’s root).
Implementations§
Trait Implementations§
Source§impl Clone for VolumeMount
impl Clone for VolumeMount
Source§fn clone(&self) -> VolumeMount
fn clone(&self) -> VolumeMount
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VolumeMount
impl Debug for VolumeMount
Source§impl Default for VolumeMount
impl Default for VolumeMount
Source§fn default() -> VolumeMount
fn default() -> VolumeMount
Returns the “default value” for a type. Read more
Source§impl Message for VolumeMount
impl Message for VolumeMount
Source§impl PartialEq for VolumeMount
impl PartialEq for VolumeMount
impl StructuralPartialEq for VolumeMount
Auto Trait Implementations§
impl Freeze for VolumeMount
impl RefUnwindSafe for VolumeMount
impl Send for VolumeMount
impl Sync for VolumeMount
impl Unpin for VolumeMount
impl UnwindSafe for VolumeMount
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more