#[non_exhaustive]pub struct DiskImageDefaults {
pub source_image: String,
/* private fields */
}Expand description
Contains details about the image source used to create the disk.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source_image: StringRequired. The Image resource used when creating the disk.
Implementations§
Source§impl DiskImageDefaults
impl DiskImageDefaults
Sourcepub fn set_source_image<T: Into<String>>(self, v: T) -> Self
pub fn set_source_image<T: Into<String>>(self, v: T) -> Self
Sets the value of source_image.
§Example
ⓘ
let x = DiskImageDefaults::new().set_source_image("example");Trait Implementations§
Source§impl Clone for DiskImageDefaults
impl Clone for DiskImageDefaults
Source§fn clone(&self) -> DiskImageDefaults
fn clone(&self) -> DiskImageDefaults
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 DiskImageDefaults
impl Debug for DiskImageDefaults
Source§impl Default for DiskImageDefaults
impl Default for DiskImageDefaults
Source§fn default() -> DiskImageDefaults
fn default() -> DiskImageDefaults
Returns the “default value” for a type. Read more
Source§impl Message for DiskImageDefaults
impl Message for DiskImageDefaults
Source§impl PartialEq for DiskImageDefaults
impl PartialEq for DiskImageDefaults
Source§fn eq(&self, other: &DiskImageDefaults) -> bool
fn eq(&self, other: &DiskImageDefaults) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DiskImageDefaults
Auto Trait Implementations§
impl Freeze for DiskImageDefaults
impl RefUnwindSafe for DiskImageDefaults
impl Send for DiskImageDefaults
impl Sync for DiskImageDefaults
impl Unpin for DiskImageDefaults
impl UnsafeUnpin for DiskImageDefaults
impl UnwindSafe for DiskImageDefaults
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