pub struct Device {
pub container_path: Option<String>,
pub host_path: String,
pub permissions: Option<Vec<String>>,
}
Expand description
An object representing a container instance host device.
Fields§
§container_path: Option<String>
The path inside the container at which to expose the host device. By default the hostPath
value is used.
host_path: String
The path for the device on the host container instance.
permissions: Option<Vec<String>>
The explicit permissions to provide to the container for the device. By default, the container has permissions for read
, write
, and mknod
for the device.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Device
impl<'de> Deserialize<'de> for Device
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
impl StructuralPartialEq for Device
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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