[−][src]Struct digitalocean::prelude::Image
Images in DigitalOcean may refer to one of a few different kinds of objects.
An image may refer to a snapshot that has been taken of a Droplet instance. It may also mean an image representing an automatic backup of a Droplet. The third category that it can represent is a public Linux distribution or application image that is used as a base to create Droplets.
Implementations
impl Image
[src]
pub fn id(&self) -> &usize
[src]
A unique number that can be used to identify and reference a specific image.
pub fn name(&self) -> &String
[src]
The display name that has been given to an image. This is what is shown in the control panel and is generally a descriptive title for the image in question.
pub fn kind(&self) -> &String
[src]
The kind of image, describing the duration of how long the image is stored. This is either "snapshot" or "backup".
Note: Since type
is a keyword in Rust kind
is used instead.
pub fn distribution(&self) -> &String
[src]
This attribute describes the base distribution used for this image.
pub fn slug(&self) -> &Option<String>
[src]
A uniquely identifying string that is associated with each of the DigitalOcean-provided public images. These can be used to reference a public image as an alternative to the numeric id.
pub fn public(&self) -> &bool
[src]
This is a boolean value that indicates whether the image in question is public or not. An image that is public is available to all accounts. A non-public image is only accessible from your account.
pub fn regions(&self) -> &Vec<String>
[src]
This attribute is an array of the regions that the image is available in. The regions are represented by their identifying slug values.
pub fn min_disk_size(&self) -> &usize
[src]
The minimum 'disk' required for a size to use this image.
pub fn size_gigabytes(&self) -> &Option<f32>
[src]
The size of the image in gigabytes.
pub fn created_at(&self) -> &DateTime<Utc>
[src]
A time value given in ISO8601 combined date and time format that represents when the Image was created.
impl Image
[src]
pub fn list() -> ImageRequest<List, Vec<Image>>
[src]
pub fn distributions() -> ImageRequest<List, Vec<Image>>
[src]
pub fn applications() -> ImageRequest<List, Vec<Image>>
[src]
pub fn user() -> ImageRequest<List, Vec<Image>>
[src]
pub fn get<S: Display>(id: S) -> ImageRequest<Get, Image>
[src]
id
is either an id
(numeric) or a slug
(string).
pub fn update<S: Display>(id: S) -> ImageRequest<Update, Image>
[src]
id
is either an id
(numeric) or a slug
(string).
pub fn delete<S: Display>(id: S) -> ImageRequest<Delete, ()>
[src]
id
is either an id
(numeric) or a slug
(string).
Trait Implementations
impl Clone for Image
[src]
impl Debug for Image
[src]
impl<'de> Deserialize<'de> for Image
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl HasResponse for Image
[src]
type Response = ImageResponse
impl Serialize for Image
[src]
Auto Trait Implementations
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,