pub struct VolumeDevice {
pub device_path: Option<String>,
pub name: Option<String>,
}Fields§
§device_path: Option<String>devicePath is the path inside of the container that the device will be mapped to.
name: Option<String>name must match the name of a persistentVolumeClaim in the pod
Implementations§
Source§impl VolumeDevice
impl VolumeDevice
pub fn new() -> VolumeDevice
Trait Implementations§
Source§impl Clone for VolumeDevice
impl Clone for VolumeDevice
Source§fn clone(&self) -> VolumeDevice
fn clone(&self) -> VolumeDevice
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 VolumeDevice
impl Debug for VolumeDevice
Source§impl<'de> Deserialize<'de> for VolumeDevice
impl<'de> Deserialize<'de> for VolumeDevice
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 FromStr for VolumeDevice
Converts Query Parameters representation (style=form, explode=false) to a VolumeDevice value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for VolumeDevice
Converts Query Parameters representation (style=form, explode=false) to a VolumeDevice value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for VolumeDevice
impl PartialEq for VolumeDevice
Source§impl Serialize for VolumeDevice
impl Serialize for VolumeDevice
Source§impl ToString for VolumeDevice
Converts the VolumeDevice value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for VolumeDevice
Converts the VolumeDevice value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer
Source§impl Validate for VolumeDevice
impl Validate for VolumeDevice
Source§impl<'v_a> ValidateArgs<'v_a> for VolumeDevice
impl<'v_a> ValidateArgs<'v_a> for VolumeDevice
impl StructuralPartialEq for VolumeDevice
Auto Trait Implementations§
impl Freeze for VolumeDevice
impl RefUnwindSafe for VolumeDevice
impl Send for VolumeDevice
impl Sync for VolumeDevice
impl Unpin for VolumeDevice
impl UnwindSafe for VolumeDevice
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