#[non_exhaustive]pub struct VmImage {
pub project: String,
pub image: Option<Image>,
/* private fields */
}Expand description
Definition of a custom Compute Engine virtual machine image for starting a notebook instance with the environment installed directly on the VM.
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.project: StringRequired. The name of the Google Cloud project that this VM image belongs
to. Format: {project_id}
image: Option<Image>The reference to an external Compute Engine VM image.
Implementations§
Source§impl VmImage
impl VmImage
pub fn new() -> Self
Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sourcepub fn name(&self) -> Option<&String>
pub fn name(&self) -> Option<&String>
The value of image
if it holds a Name, None if the field is not set or
holds a different branch.
Trait Implementations§
impl StructuralPartialEq for VmImage
Auto Trait Implementations§
impl Freeze for VmImage
impl RefUnwindSafe for VmImage
impl Send for VmImage
impl Sync for VmImage
impl Unpin for VmImage
impl UnwindSafe for VmImage
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