pub struct PveDevConfig {
pub deny_write: Option<PveBoolean>,
pub gid: Option<i64>,
pub mode: Option<String>,
pub path: Option<String>,
pub uid: Option<i64>,
}Fields§
§deny_write: Option<PveBoolean>Deny the container to write to the device
gid: Option<i64>Group ID to be assigned to the device node
mode: Option<String>Access mode to be set on the device node
path: Option<String>Path to the device to pass through to the container
uid: Option<i64>User ID to be assigned to the device node
Implementations§
Source§impl PveDevConfig
impl PveDevConfig
pub fn new() -> PveDevConfig
Source§impl PveDevConfig
impl PveDevConfig
Sourcepub fn to_shorthand(&self) -> String
pub fn to_shorthand(&self) -> String
Serialise this PveDevConfig into Proxmox’s CLI-style shorthand
string (key=value,…). The property marked x-pve-default-key
is emitted positionally without a key= prefix; aliases collapse
multiple property names to the same wire key.
Example: PveDevConfig
→ "virtio,bridge=vmbr0"
Trait Implementations§
Source§impl Clone for PveDevConfig
impl Clone for PveDevConfig
Source§fn clone(&self) -> PveDevConfig
fn clone(&self) -> PveDevConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PveDevConfig
impl Debug for PveDevConfig
Source§impl Default for PveDevConfig
impl Default for PveDevConfig
Source§fn default() -> PveDevConfig
fn default() -> PveDevConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PveDevConfig
impl<'de> Deserialize<'de> for PveDevConfig
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 PveDevConfig
impl PartialEq for PveDevConfig
Source§fn eq(&self, other: &PveDevConfig) -> bool
fn eq(&self, other: &PveDevConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PveDevConfig
impl Serialize for PveDevConfig
impl StructuralPartialEq for PveDevConfig
Auto Trait Implementations§
impl Freeze for PveDevConfig
impl RefUnwindSafe for PveDevConfig
impl Send for PveDevConfig
impl Sync for PveDevConfig
impl Unpin for PveDevConfig
impl UnsafeUnpin for PveDevConfig
impl UnwindSafe for PveDevConfig
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