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: bool
properties: BTreeMap<String, String>
public: bool
aliases: Vec<BTreeMap<String, String>>
architecture: String
cached: bool
filename: String
fingerprint: String
size: u64
update_source: BTreeMap<String, String>
created_at: String
expires_at: String
last_used_at: String
uploaded_at: String
Implementations
sourceimpl Image
impl Image
sourcepub fn all(location: Location) -> Result<Vec<Self>>
pub fn all(location: Location) -> Result<Vec<Self>>
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();
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Image
impl<'de> Deserialize<'de> for Image
sourcefn 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
impl Eq for Image
impl StructuralEq for Image
impl StructuralPartialEq for Image
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more