pub struct VolumeRequest {
pub name: String,
pub type: String,
pub read_only: bool,
pub access_mode: String,
pub attachment_mode: String,
pub source: String,
pub mount_options: Option<CsiMountOptions>,
pub per_alloc: bool,
}
Expand description
VolumeRequest is a representation of a storage volume that a TaskGroup wishes to use.
This struct was generated based on the Go types of the official Nomad API.
Fields§
§name: String
§type: String
§read_only: bool
§access_mode: String
§attachment_mode: String
§source: String
§mount_options: Option<CsiMountOptions>
§per_alloc: bool
Trait Implementations§
Source§impl Clone for VolumeRequest
impl Clone for VolumeRequest
Source§fn clone(&self) -> VolumeRequest
fn clone(&self) -> VolumeRequest
Returns a copy 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 VolumeRequest
impl Debug for VolumeRequest
Source§impl Default for VolumeRequest
impl Default for VolumeRequest
Source§fn default() -> VolumeRequest
fn default() -> VolumeRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VolumeRequest
impl<'de> Deserialize<'de> for VolumeRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for VolumeRequest
impl PartialEq for VolumeRequest
Source§impl Serialize for VolumeRequest
impl Serialize for VolumeRequest
impl StructuralPartialEq for VolumeRequest
Auto Trait Implementations§
impl Freeze for VolumeRequest
impl RefUnwindSafe for VolumeRequest
impl Send for VolumeRequest
impl Sync for VolumeRequest
impl Unpin for VolumeRequest
impl UnwindSafe for VolumeRequest
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