#[non_exhaustive]pub struct GCSVolumeSource {
pub bucket: String,
pub read_only: bool,
pub mount_options: Vec<String>,
/* private fields */
}Expand description
Represents a volume backed by a Cloud Storage bucket using Cloud Storage FUSE.
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.bucket: StringCloud Storage Bucket name.
read_only: boolIf true, the volume will be mounted as read only for all mounts.
mount_options: Vec<String>A list of additional flags to pass to the gcsfuse CLI. Options should be specified without the leading “–”.
Implementations§
Source§impl GCSVolumeSource
impl GCSVolumeSource
pub fn new() -> Self
Sourcepub fn set_bucket<T: Into<String>>(self, v: T) -> Self
pub fn set_bucket<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_read_only<T: Into<bool>>(self, v: T) -> Self
pub fn set_read_only<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_mount_options<T, V>(self, v: T) -> Self
pub fn set_mount_options<T, V>(self, v: T) -> Self
Sets the value of mount_options.
§Example
ⓘ
let x = GCSVolumeSource::new().set_mount_options(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for GCSVolumeSource
impl Clone for GCSVolumeSource
Source§fn clone(&self) -> GCSVolumeSource
fn clone(&self) -> GCSVolumeSource
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 GCSVolumeSource
impl Debug for GCSVolumeSource
Source§impl Default for GCSVolumeSource
impl Default for GCSVolumeSource
Source§fn default() -> GCSVolumeSource
fn default() -> GCSVolumeSource
Returns the “default value” for a type. Read more
Source§impl Message for GCSVolumeSource
impl Message for GCSVolumeSource
Source§impl PartialEq for GCSVolumeSource
impl PartialEq for GCSVolumeSource
impl StructuralPartialEq for GCSVolumeSource
Auto Trait Implementations§
impl Freeze for GCSVolumeSource
impl RefUnwindSafe for GCSVolumeSource
impl Send for GCSVolumeSource
impl Sync for GCSVolumeSource
impl Unpin for GCSVolumeSource
impl UnwindSafe for GCSVolumeSource
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