pub struct PveMpConfig {
pub acl: Option<PveBoolean>,
pub backup: Option<PveBoolean>,
pub idmap: Option<String>,
pub keepattrs: Option<PveBoolean>,
pub mountoptions: Option<String>,
pub mp: String,
pub quota: Option<PveBoolean>,
pub replicate: Option<PveBoolean>,
pub ro: Option<PveBoolean>,
pub shared: Option<PveBoolean>,
pub size: Option<String>,
pub volume: String,
}Fields§
§acl: Option<PveBoolean>Explicitly enable or disable ACL support.
backup: Option<PveBoolean>Whether to include the mount point in backups (only used for volume mount points).
idmap: Option<String>Customize UID/GID mappings that override the container’s lxc.idmap for this mount point. Accepts a semicolon-separated list of type:container:disk:range-size entries. type is u for UID or g for GID. container is the first ID as seen inside the container. disk is the first corresponding ID on the underlying filesystem. range-size is the number of consecutive IDs to map. Unmapped IDs fall back to the container’s lxc.idmap. Example 1: u:123:456:1 maps UID 123 in the container to UID 456 on the disk. Files owned by UID 456 on the disk will appear as UID 123 inside the container. Example 2: g:100:50:5 maps 5 consecutive GIDs, such that GIDs 100-104 in the container are mapped to GIDs 50-54 on the disk. Example 3: passthrough identity-maps all UIDs and GIDs, meaning IDs inside the container will match the IDs on the disk.
keepattrs: Option<PveBoolean>Inherit UID, GID and access mode from the mount point directory, if it exists already.
mountoptions: Option<String>Extra mount options for rootfs/mps.
mp: StringPath to the mount point as seen from inside the container. NOTE: Must not contain any symlinks for security reasons.
quota: Option<PveBoolean>Enable user quotas inside the container (not supported with zfs subvolumes)
replicate: Option<PveBoolean>Will include this volume to a storage replica job.
ro: Option<PveBoolean>Read-only mount point
Mark this non-volume mount point as available on all nodes. WARNING: This option does not share the mount point automatically, it assumes it is shared already!
size: Option<String>Volume size (read only value).
volume: StringVolume, device or directory to mount into the container.
Implementations§
Source§impl PveMpConfig
impl PveMpConfig
pub fn new(mp: String, volume: String) -> PveMpConfig
Source§impl PveMpConfig
impl PveMpConfig
Sourcepub fn to_shorthand(&self) -> String
pub fn to_shorthand(&self) -> String
Serialise this PveMpConfig 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: PveMpConfig
→ "virtio,bridge=vmbr0"
Trait Implementations§
Source§impl Clone for PveMpConfig
impl Clone for PveMpConfig
Source§fn clone(&self) -> PveMpConfig
fn clone(&self) -> PveMpConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PveMpConfig
impl Debug for PveMpConfig
Source§impl Default for PveMpConfig
impl Default for PveMpConfig
Source§fn default() -> PveMpConfig
fn default() -> PveMpConfig
Source§impl<'de> Deserialize<'de> for PveMpConfig
impl<'de> Deserialize<'de> for PveMpConfig
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>,
Source§impl PartialEq for PveMpConfig
impl PartialEq for PveMpConfig
Source§fn eq(&self, other: &PveMpConfig) -> bool
fn eq(&self, other: &PveMpConfig) -> bool
self and other values to be equal, and is used by ==.