PutParameters

Struct PutParameters 

Source
pub struct PutParameters {
Show 22 fields pub bwlimit: Option<String>, pub console: Option<String>, pub crs: Option<String>, pub delete: Option<String>, pub description: Option<String>, pub email_from: Option<String>, pub fencing: Option<String>, pub ha: Option<String>, pub http_proxy: Option<String>, pub keyboard: Option<String>, pub language: Option<String>, pub mac_prefix: Option<String>, pub max_workers: Option<u64>, pub migration: Option<String>, pub migration_unsecure: Option<bool>, pub next_id: Option<String>, pub notify: Option<String>, pub registered_tags: Option<String>, pub tag_style: Option<String>, pub u2f: Option<String>, pub user_tag_access: Option<String>, pub webauthn: Option<String>,
}

Fields§

§bwlimit: Option<String>

Set bandwidth/io limits various operations.

§console: Option<String>

Select the default Console viewer. You can either use the builtin java applet (VNC; deprecated and maps to html5), an external virt-viewer comtatible application (SPICE), an HTML5 based vnc viewer (noVNC), or an HTML5 based console client (xtermjs). If the selected viewer is not available (e.g. SPICE not activated for the VM), the fallback is noVNC.

§crs: Option<String>

Cluster resource scheduling settings.

§delete: Option<String>

A list of settings you want to delete.

§description: Option<String>

Datacenter description. Shown in the web-interface datacenter notes panel. This is saved as comment inside the configuration file.

§email_from: Option<String>

Specify email address to send notification from (default is root@$hostname)

§fencing: Option<String>

Set the fencing mode of the HA cluster. Hardware mode needs a valid configuration of fence devices in /etc/pve/ha/fence.cfg. With both all two modes are used. WARNING: ‘hardware’ and ‘both’ are EXPERIMENTAL & WIP

§ha: Option<String>

Cluster wide HA settings.

§http_proxy: Option<String>

Specify external http proxy which is used for downloads (example: ‘http://username:password@host:port/’)

§keyboard: Option<String>

Default keybord layout for vnc server.

§language: Option<String>

Default GUI language.

§mac_prefix: Option<String>

Prefix for autogenerated MAC addresses.

§max_workers: Option<u64>

Defines how many workers (per node) are maximal started on actions like ‘stopall VMs’ or task from the ha-manager.

§migration: Option<String>

For cluster wide migration settings.

§migration_unsecure: Option<bool>

Migration is secure using SSH tunnel by default. For secure private networks you can disable it to speed up migration. Deprecated, use the ‘migration’ property instead!

§next_id: Option<String>

Control the range for the free VMID auto-selection pool.

§notify: Option<String>

Cluster-wide notification settings.

§registered_tags: Option<String>

A list of tags that require a Sys.Modify on ‘/’ to set and delete. Tags set here that are also in ‘user-tag-access’ also require Sys.Modify.

§tag_style: Option<String>

Tag style options.

§u2f: Option<String>

u2f

§user_tag_access: Option<String>

Privilege options for user-settable tags

§webauthn: Option<String>

webauthn configuration

Trait Implementations§

Source§

impl Clone for PutParameters

Source§

fn clone(&self) -> PutParameters

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PutParameters

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PutParameters

Source§

fn default() -> PutParameters

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for PutParameters

Source§

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 PutParameters

Source§

fn eq(&self, other: &PutParameters) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for PutParameters

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for PutParameters

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,