Struct lxd::Image

source · []
pub struct Image {
Show 14 fields pub auto_update: bool, pub properties: BTreeMap<String, String>, pub public: bool, pub aliases: Vec<BTreeMap<String, String>>, pub architecture: String, pub cached: bool, pub filename: String, pub fingerprint: String, pub size: u64, pub update_source: BTreeMap<String, String>, pub created_at: String, pub expires_at: String, pub last_used_at: String, pub uploaded_at: String,
}
Expand description

LXD image information

Fields

auto_update: boolproperties: BTreeMap<String, String>public: boolaliases: Vec<BTreeMap<String, String>>architecture: Stringcached: boolfilename: Stringfingerprint: Stringsize: u64update_source: BTreeMap<String, String>created_at: Stringexpires_at: Stringlast_used_at: Stringuploaded_at: String

Implementations

Retrieve LXD container image information from all images

Arguments
  • location - The location of the host
Return

The LXD image information

Errors

Errors that are encountered while retrieving image info will be returned

Example
use lxd::{Image, Location};

let images = Image::all(Location::Local).unwrap();

Retrieve LXD image information from one image

Arguments
  • location - The location of the host
  • name - The name of the container
Return

The LXD image information

Errors

Errors that are encountered while retrieving image info will be returned

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.