pub struct ImageSource {
pub alias: Option<String>,
pub certificate: Option<String>,
pub image_type: Option<String>,
pub protocol: Option<String>,
pub server: Option<String>,
}Expand description
ImageSource : ImageSource represents the source of an image
Fields§
§alias: Option<String>Source alias to download from
certificate: Option<String>Source server certificate (if not trusted by system CA)
image_type: Option<String>Type of image (container or virtual-machine)
protocol: Option<String>Source server protocol
server: Option<String>URL of the source server
Implementations§
Source§impl ImageSource
impl ImageSource
Sourcepub fn new() -> ImageSource
pub fn new() -> ImageSource
ImageSource represents the source of an image
Trait Implementations§
Source§impl Clone for ImageSource
impl Clone for ImageSource
Source§fn clone(&self) -> ImageSource
fn clone(&self) -> ImageSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ImageSource
impl Debug for ImageSource
Source§impl Default for ImageSource
impl Default for ImageSource
Source§fn default() -> ImageSource
fn default() -> ImageSource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImageSource
impl<'de> Deserialize<'de> for ImageSource
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 PartialEq for ImageSource
impl PartialEq for ImageSource
Source§fn eq(&self, other: &ImageSource) -> bool
fn eq(&self, other: &ImageSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ImageSource
impl Serialize for ImageSource
impl StructuralPartialEq for ImageSource
Auto Trait Implementations§
impl Freeze for ImageSource
impl RefUnwindSafe for ImageSource
impl Send for ImageSource
impl Sync for ImageSource
impl Unpin for ImageSource
impl UnsafeUnpin for ImageSource
impl UnwindSafe for ImageSource
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