pub struct NodesStorageCreateContentRequest {
pub filename: String,
pub format: Option<PveFormatFormatEnum>,
pub size: String,
pub vmid: i32,
}Fields§
§filename: StringThe name of the file to create.
format: Option<PveFormatFormatEnum>Format of the image.
size: StringSize in kilobyte (1024 bytes). Optional suffixes ‘M’ (megabyte, 1024K) and ‘G’ (gigabyte, 1024M)
vmid: i32Specify owner VM
Implementations§
Trait Implementations§
Source§impl Clone for NodesStorageCreateContentRequest
impl Clone for NodesStorageCreateContentRequest
Source§fn clone(&self) -> NodesStorageCreateContentRequest
fn clone(&self) -> NodesStorageCreateContentRequest
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 Default for NodesStorageCreateContentRequest
impl Default for NodesStorageCreateContentRequest
Source§fn default() -> NodesStorageCreateContentRequest
fn default() -> NodesStorageCreateContentRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodesStorageCreateContentRequest
impl<'de> Deserialize<'de> for NodesStorageCreateContentRequest
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 NodesStorageCreateContentRequest
impl PartialEq for NodesStorageCreateContentRequest
Source§fn eq(&self, other: &NodesStorageCreateContentRequest) -> bool
fn eq(&self, other: &NodesStorageCreateContentRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NodesStorageCreateContentRequest
Auto Trait Implementations§
impl Freeze for NodesStorageCreateContentRequest
impl RefUnwindSafe for NodesStorageCreateContentRequest
impl Send for NodesStorageCreateContentRequest
impl Sync for NodesStorageCreateContentRequest
impl Unpin for NodesStorageCreateContentRequest
impl UnsafeUnpin for NodesStorageCreateContentRequest
impl UnwindSafe for NodesStorageCreateContentRequest
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