pub struct LxcVmConfigResponseData {Show 34 fields
pub arch: Option<PveLxcArchEnum>,
pub cmode: Option<PveCmodeEnum>,
pub console: Option<PveBoolean>,
pub cores: Option<i32>,
pub cpulimit: Option<f64>,
pub cpuunits: Option<i32>,
pub debug: Option<PveBoolean>,
pub description: Option<String>,
pub digest: String,
pub entrypoint: Option<String>,
pub env: Option<String>,
pub features: Option<Box<PveLxcFeaturesField>>,
pub hookscript: Option<String>,
pub hostname: Option<String>,
pub lock: Option<PveLockEnum>,
pub lxc: Option<Vec<Vec<String>>>,
pub memory: Option<i64>,
pub nameserver: Option<String>,
pub onboot: Option<PveBoolean>,
pub ostype: Option<PveOstypeEnum>,
pub protection: Option<PveBoolean>,
pub rootfs: Option<Box<PveLxcRootfsField>>,
pub searchdomain: Option<String>,
pub startup: Option<String>,
pub swap: Option<i64>,
pub tags: Option<String>,
pub template: Option<PveBoolean>,
pub timezone: Option<String>,
pub tty: Option<i32>,
pub unprivileged: Option<PveBoolean>,
pub devs: Option<HashMap<u32, PveLxcDevField>>,
pub mps: Option<HashMap<u32, PveLxcMpField>>,
pub nets: Option<HashMap<u32, PveLxcNetField>>,
pub unuseds: Option<HashMap<u32, PveLxcUnusedField>>,
}Fields§
§arch: Option<PveLxcArchEnum>OS architecture type.
cmode: Option<PveCmodeEnum>Console mode. By default, the console command tries to open a connection to one of the available tty devices. By setting cmode to ‘console’ it tries to attach to /dev/console instead. If you set cmode to ‘shell’, it simply invokes a shell inside the container (no login).
console: Option<PveBoolean>Attach a console device (/dev/console) to the container.
cores: Option<i32>The number of cores assigned to the container. A container can use all available cores by default.
cpulimit: Option<f64>Limit of CPU usage. NOTE: If the computer has 2 CPUs, it has a total of ‘2’ CPU time. Value ‘0’ indicates no CPU limit.
cpuunits: Option<i32>CPU weight for a container. Argument is used in the kernel fair scheduler. The larger the number is, the more CPU time this container gets. Number is relative to the weights of all the other running guests.
debug: Option<PveBoolean>Try to be more verbose. For now this only enables debug log-level on start.
description: Option<String>Description for the Container. Shown in the web-interface CT’s summary. This is saved as comment inside the configuration file.
digest: StringSHA1 digest of configuration file. This can be used to prevent concurrent modifications.
entrypoint: Option<String>Command to run as init, optionally with arguments; may start with an absolute path, relative path, or a binary in $PATH.
env: Option<String>The container runtime environment as NUL-separated list. Replaces any lxc.environment.runtime entries in the config.
features: Option<Box<PveLxcFeaturesField>>Allow containers access to advanced features.
hookscript: Option<String>Script that will be executed during various steps in the containers lifetime.
hostname: Option<String>Set a host name for the container.
lock: Option<PveLockEnum>Lock/unlock the container.
lxc: Option<Vec<Vec<String>>>Array of lxc low-level configurations ([[key1, value1], [key2, value2] …]).
memory: Option<i64>Amount of RAM for the container in MB.
nameserver: Option<String>Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
onboot: Option<PveBoolean>Specifies whether a container will be started during system bootup.
ostype: Option<PveOstypeEnum>OS type. This is used to setup configuration inside the container, and corresponds to lxc setup scripts in /usr/share/lxc/config/
protection: Option<PveBoolean>Sets the protection flag of the container. This will prevent the CT or CT’s disk remove/update operation.
rootfs: Option<Box<PveLxcRootfsField>>Use volume as container root.
searchdomain: Option<String>Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
startup: Option<String>Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the ‘up’ or ‘down’ delay in seconds, which specifies a delay to wait before the next VM is started or stopped.
swap: Option<i64>Amount of SWAP for the container in MB.
Tags of the Container. This is only meta information.
template: Option<PveBoolean>Enable/disable Template.
timezone: Option<String>Time zone to use in the container. If option isn’t set, then nothing will be done. Can be set to ‘host’ to match the host time zone, or an arbitrary time zone option from /usr/share/zoneinfo/zone.tab
tty: Option<i32>Specify the number of tty available to the container
unprivileged: Option<PveBoolean>Makes the container run as unprivileged user. For creation, the default is 1. For restore, the default is the value from the backup. (Should not be modified manually.)
devs: Option<HashMap<u32, PveLxcDevField>>Devs family. Wire form: dev0..dev8. Serialised by the manual impls below.
mps: Option<HashMap<u32, PveLxcMpField>>Mps family. Wire form: mp0..mp255. Serialised by the manual impls below.
nets: Option<HashMap<u32, PveLxcNetField>>Nets family. Wire form: net0..net31. Serialised by the manual impls below.
unuseds: Option<HashMap<u32, PveLxcUnusedField>>Unuseds family. Wire form: unused0..unused255. Serialised by the manual impls below.
Implementations§
Source§impl LxcVmConfigResponseData
impl LxcVmConfigResponseData
pub fn new(digest: String) -> LxcVmConfigResponseData
Trait Implementations§
Source§impl Clone for LxcVmConfigResponseData
impl Clone for LxcVmConfigResponseData
Source§fn clone(&self) -> LxcVmConfigResponseData
fn clone(&self) -> LxcVmConfigResponseData
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 LxcVmConfigResponseData
impl Debug for LxcVmConfigResponseData
Source§impl Default for LxcVmConfigResponseData
impl Default for LxcVmConfigResponseData
Source§fn default() -> LxcVmConfigResponseData
fn default() -> LxcVmConfigResponseData
Source§impl<'de> Deserialize<'de> for LxcVmConfigResponseData
impl<'de> Deserialize<'de> for LxcVmConfigResponseData
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Source§impl PartialEq for LxcVmConfigResponseData
impl PartialEq for LxcVmConfigResponseData
Source§fn eq(&self, other: &LxcVmConfigResponseData) -> bool
fn eq(&self, other: &LxcVmConfigResponseData) -> bool
self and other values to be equal, and is used by ==.