pub struct ImageInApi {
pub name: Option<String>,
pub description: Option<String>,
pub disk_id: Option<i32>,
pub upload_url: Option<String>,
pub location: Location,
pub os: Os,
}Fields§
§name: Option<String>Имя образа.
description: Option<String>Описание образа.
disk_id: Option<i32>ID диска, для которого создается образ.
upload_url: Option<String>Ссылка для загрузки образа.
location: LocationЛокация, в которой будет создан образ.
os: OsОперационная система образа.
Implementations§
Source§impl ImageInApi
impl ImageInApi
pub fn new(location: Location, os: Os) -> ImageInApi
Trait Implementations§
Source§impl Clone for ImageInApi
impl Clone for ImageInApi
Source§fn clone(&self) -> ImageInApi
fn clone(&self) -> ImageInApi
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 ImageInApi
impl Debug for ImageInApi
Source§impl Default for ImageInApi
impl Default for ImageInApi
Source§fn default() -> ImageInApi
fn default() -> ImageInApi
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImageInApi
impl<'de> Deserialize<'de> for ImageInApi
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 ImageInApi
impl PartialEq for ImageInApi
Source§fn eq(&self, other: &ImageInApi) -> bool
fn eq(&self, other: &ImageInApi) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ImageInApi
impl Serialize for ImageInApi
impl StructuralPartialEq for ImageInApi
Auto Trait Implementations§
impl Freeze for ImageInApi
impl RefUnwindSafe for ImageInApi
impl Send for ImageInApi
impl Sync for ImageInApi
impl Unpin for ImageInApi
impl UnsafeUnpin for ImageInApi
impl UnwindSafe for ImageInApi
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