[][src]Struct lxd::Image

pub struct Image {
    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,
}

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

Methods

impl Image[src]

pub fn all(location: Location) -> Result<Vec<Self>>[src]

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();

pub fn new(location: Location, name: &str) -> Result<Self>[src]

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

impl PartialEq<Image> for Image[src]

impl Clone for Image[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Image[src]

impl Debug for Image[src]

impl Serialize for Image[src]

impl<'de> Deserialize<'de> for Image[src]

Auto Trait Implementations

impl Send for Image

impl Sync for Image

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]