#[non_exhaustive]pub struct PersistentDisk {
pub source_disk_number: i32,
pub disk_uri: String,
/* private fields */
}Expand description
Details of a created Persistent 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_disk_number: i32The ordinal number of the source VM disk.
disk_uri: StringThe URI of the Persistent Disk.
Implementations§
Source§impl PersistentDisk
impl PersistentDisk
Sourcepub fn set_source_disk_number<T: Into<i32>>(self, v: T) -> Self
pub fn set_source_disk_number<T: Into<i32>>(self, v: T) -> Self
Sets the value of source_disk_number.
§Example
ⓘ
let x = PersistentDisk::new().set_source_disk_number(42);Trait Implementations§
Source§impl Clone for PersistentDisk
impl Clone for PersistentDisk
Source§fn clone(&self) -> PersistentDisk
fn clone(&self) -> PersistentDisk
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 PersistentDisk
impl Debug for PersistentDisk
Source§impl Default for PersistentDisk
impl Default for PersistentDisk
Source§fn default() -> PersistentDisk
fn default() -> PersistentDisk
Returns the “default value” for a type. Read more
Source§impl Message for PersistentDisk
impl Message for PersistentDisk
Source§impl PartialEq for PersistentDisk
impl PartialEq for PersistentDisk
Source§fn eq(&self, other: &PersistentDisk) -> bool
fn eq(&self, other: &PersistentDisk) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PersistentDisk
Auto Trait Implementations§
impl Freeze for PersistentDisk
impl RefUnwindSafe for PersistentDisk
impl Send for PersistentDisk
impl Sync for PersistentDisk
impl Unpin for PersistentDisk
impl UnsafeUnpin for PersistentDisk
impl UnwindSafe for PersistentDisk
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