#[non_exhaustive]pub struct SourceInstanceParams {
pub disk_configs: Vec<DiskInstantiationConfig>,
/* private fields */
}Available on crate features
instance-templates or region-instance-templates only.Expand description
A specification of the parameters to use when creating the instance template from a source instance.
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.disk_configs: Vec<DiskInstantiationConfig>Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.
Implementations§
Source§impl SourceInstanceParams
impl SourceInstanceParams
pub fn new() -> Self
Sourcepub fn set_disk_configs<T, V>(self, v: T) -> Self
pub fn set_disk_configs<T, V>(self, v: T) -> Self
Sets the value of disk_configs.
§Example
ⓘ
use google_cloud_compute_v1::model::DiskInstantiationConfig;
let x = SourceInstanceParams::new()
.set_disk_configs([
DiskInstantiationConfig::default()/* use setters */,
DiskInstantiationConfig::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for SourceInstanceParams
impl Clone for SourceInstanceParams
Source§fn clone(&self) -> SourceInstanceParams
fn clone(&self) -> SourceInstanceParams
Returns a duplicate of the value. Read more
1.0.0 · 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 SourceInstanceParams
impl Debug for SourceInstanceParams
Source§impl Default for SourceInstanceParams
impl Default for SourceInstanceParams
Source§fn default() -> SourceInstanceParams
fn default() -> SourceInstanceParams
Returns the “default value” for a type. Read more
Source§impl Message for SourceInstanceParams
impl Message for SourceInstanceParams
Source§impl PartialEq for SourceInstanceParams
impl PartialEq for SourceInstanceParams
impl StructuralPartialEq for SourceInstanceParams
Auto Trait Implementations§
impl Freeze for SourceInstanceParams
impl RefUnwindSafe for SourceInstanceParams
impl Send for SourceInstanceParams
impl Sync for SourceInstanceParams
impl Unpin for SourceInstanceParams
impl UnwindSafe for SourceInstanceParams
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