pub struct CustomImage { /* private fields */ }Expand description
A custom image is an image with an user-supplied raw image. The body must contain a url attribute pointing to a Linux virtual machine image to be imported into DigitalOcean. The image must be in the raw, qcow2, vhdx, vdi, or vmdk format. It may be compressed using gzip or bzip2 and must be smaller than 100 GB after being decompressed.
Implementations§
Source§impl CustomImage
impl CustomImage
Sourcepub fn create<S: AsRef<str> + Display + Serialize>(
name: S,
image_url: S,
region: S,
distribution: S,
desc: S,
tags: Vec<S>,
) -> CustomImageRequest<Create, CustomImage>
pub fn create<S: AsRef<str> + Display + Serialize>( name: S, image_url: S, region: S, distribution: S, desc: S, tags: Vec<S>, ) -> CustomImageRequest<Create, CustomImage>
Trait Implementations§
Source§impl Clone for CustomImage
impl Clone for CustomImage
Source§fn clone(&self) -> CustomImage
fn clone(&self) -> CustomImage
Returns a duplicate of the value. Read more
1.0.0 · 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 CustomImage
impl Debug for CustomImage
Source§impl<'de> Deserialize<'de> for CustomImage
impl<'de> Deserialize<'de> for CustomImage
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 HasResponse for CustomImage
impl HasResponse for CustomImage
Auto Trait Implementations§
impl Freeze for CustomImage
impl RefUnwindSafe for CustomImage
impl Send for CustomImage
impl Sync for CustomImage
impl Unpin for CustomImage
impl UnwindSafe for CustomImage
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