#[non_exhaustive]pub struct UpgradeHistoryEntry {
pub snapshot: String,
pub vm_image: String,
pub container_image: String,
pub framework: String,
pub version: String,
pub state: State,
pub create_time: Option<Timestamp>,
pub action: Action,
pub target_version: String,
/* private fields */
}Expand description
The entry of VM image upgrade history.
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.snapshot: StringOptional. The snapshot of the boot disk of this notebook instance before upgrade.
vm_image: StringOptional. The VM image before this instance upgrade.
container_image: StringOptional. The container image before this instance upgrade.
framework: StringOptional. The framework of this notebook instance.
version: StringOptional. The version of the notebook instance before this upgrade.
state: StateOutput only. The state of this instance upgrade history entry.
create_time: Option<Timestamp>Immutable. The time that this instance upgrade history entry is created.
action: ActionOptional. Action. Rolloback or Upgrade.
target_version: StringOptional. Target VM Version, like m63.
Implementations§
Source§impl UpgradeHistoryEntry
impl UpgradeHistoryEntry
pub fn new() -> Self
Sourcepub fn set_snapshot<T: Into<String>>(self, v: T) -> Self
pub fn set_snapshot<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_vm_image<T: Into<String>>(self, v: T) -> Self
pub fn set_vm_image<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_container_image<T: Into<String>>(self, v: T) -> Self
pub fn set_container_image<T: Into<String>>(self, v: T) -> Self
Sets the value of container_image.
§Example
ⓘ
let x = UpgradeHistoryEntry::new().set_container_image("example");Sourcepub fn set_framework<T: Into<String>>(self, v: T) -> Self
pub fn set_framework<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_version<T: Into<String>>(self, v: T) -> Self
pub fn set_version<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = UpgradeHistoryEntry::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = UpgradeHistoryEntry::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = UpgradeHistoryEntry::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_action<T: Into<Action>>(self, v: T) -> Self
pub fn set_action<T: Into<Action>>(self, v: T) -> Self
Sourcepub fn set_target_version<T: Into<String>>(self, v: T) -> Self
pub fn set_target_version<T: Into<String>>(self, v: T) -> Self
Sets the value of target_version.
§Example
ⓘ
let x = UpgradeHistoryEntry::new().set_target_version("example");Trait Implementations§
Source§impl Clone for UpgradeHistoryEntry
impl Clone for UpgradeHistoryEntry
Source§fn clone(&self) -> UpgradeHistoryEntry
fn clone(&self) -> UpgradeHistoryEntry
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 UpgradeHistoryEntry
impl Debug for UpgradeHistoryEntry
Source§impl Default for UpgradeHistoryEntry
impl Default for UpgradeHistoryEntry
Source§fn default() -> UpgradeHistoryEntry
fn default() -> UpgradeHistoryEntry
Returns the “default value” for a type. Read more
Source§impl Message for UpgradeHistoryEntry
impl Message for UpgradeHistoryEntry
Source§impl PartialEq for UpgradeHistoryEntry
impl PartialEq for UpgradeHistoryEntry
impl StructuralPartialEq for UpgradeHistoryEntry
Auto Trait Implementations§
impl Freeze for UpgradeHistoryEntry
impl RefUnwindSafe for UpgradeHistoryEntry
impl Send for UpgradeHistoryEntry
impl Sync for UpgradeHistoryEntry
impl Unpin for UpgradeHistoryEntry
impl UnwindSafe for UpgradeHistoryEntry
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