pub struct UpdateImageVersionWire {
pub status: VersionStatus,
}Expand description
UpdateMicrovmImageVersionRequest’s one body member.
imageIdentifier and imageVersion are both URI parameters, so the body is a single
key. That is the whole request, and it is the model’s only non-destructive retire
primitive: setting a version INACTIVE makes RunMicrovm refuse to launch it while
existing VMs keep running and the version stays readable through
GetMicrovmImageVersion. DeleteMicrovmImageVersion is the alternative and it is
irreversible.
status is a VersionStatus rather than a String, unlike the HookState members
above. The difference is that this enum is the entire request: a typo in it is a
ValidationException on the only field there is, spent on a call that was going to
change a version’s availability. MicrovmImageVersionStatus has exactly two values and
naming them in the type means a caller cannot spell either wrong.
Fields§
§status: VersionStatusTrait Implementations§
Source§impl Clone for UpdateImageVersionWire
impl Clone for UpdateImageVersionWire
Source§fn clone(&self) -> UpdateImageVersionWire
fn clone(&self) -> UpdateImageVersionWire
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UpdateImageVersionWire
impl Debug for UpdateImageVersionWire
Source§impl Serialize for UpdateImageVersionWire
impl Serialize for UpdateImageVersionWire
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for UpdateImageVersionWire
impl RefUnwindSafe for UpdateImageVersionWire
impl Send for UpdateImageVersionWire
impl Sync for UpdateImageVersionWire
impl Unpin for UpdateImageVersionWire
impl UnsafeUnpin for UpdateImageVersionWire
impl UnwindSafe for UpdateImageVersionWire
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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 more