Struct aws_sdk_backupgateway::types::VirtualMachine
source · #[non_exhaustive]pub struct VirtualMachine {
pub host_name: Option<String>,
pub hypervisor_id: Option<String>,
pub name: Option<String>,
pub path: Option<String>,
pub resource_arn: Option<String>,
pub last_backup_date: Option<DateTime>,
}
Expand description
A virtual machine that is on a hypervisor.
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.host_name: Option<String>
The host name of the virtual machine.
hypervisor_id: Option<String>
The ID of the virtual machine's hypervisor.
name: Option<String>
The name of the virtual machine.
path: Option<String>
The path of the virtual machine.
resource_arn: Option<String>
The Amazon Resource Name (ARN) of the virtual machine. For example, arn:aws:backup-gateway:us-west-1:0000000000000:vm/vm-0000ABCDEFGIJKL
.
last_backup_date: Option<DateTime>
The most recent date a virtual machine was backed up, in Unix format and UTC time.
Implementations§
source§impl VirtualMachine
impl VirtualMachine
sourcepub fn hypervisor_id(&self) -> Option<&str>
pub fn hypervisor_id(&self) -> Option<&str>
The ID of the virtual machine's hypervisor.
sourcepub fn resource_arn(&self) -> Option<&str>
pub fn resource_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the virtual machine. For example, arn:aws:backup-gateway:us-west-1:0000000000000:vm/vm-0000ABCDEFGIJKL
.
sourcepub fn last_backup_date(&self) -> Option<&DateTime>
pub fn last_backup_date(&self) -> Option<&DateTime>
The most recent date a virtual machine was backed up, in Unix format and UTC time.
source§impl VirtualMachine
impl VirtualMachine
sourcepub fn builder() -> VirtualMachineBuilder
pub fn builder() -> VirtualMachineBuilder
Creates a new builder-style object to manufacture VirtualMachine
.
Trait Implementations§
source§impl Clone for VirtualMachine
impl Clone for VirtualMachine
source§fn clone(&self) -> VirtualMachine
fn clone(&self) -> VirtualMachine
Returns a copy 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 VirtualMachine
impl Debug for VirtualMachine
source§impl PartialEq for VirtualMachine
impl PartialEq for VirtualMachine
source§fn eq(&self, other: &VirtualMachine) -> bool
fn eq(&self, other: &VirtualMachine) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VirtualMachine
Auto Trait Implementations§
impl Freeze for VirtualMachine
impl RefUnwindSafe for VirtualMachine
impl Send for VirtualMachine
impl Sync for VirtualMachine
impl Unpin for VirtualMachine
impl UnwindSafe for VirtualMachine
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.