#[non_exhaustive]pub struct CheckInstanceUpgradabilityResponse {
pub upgradeable: bool,
pub upgrade_version: String,
pub upgrade_info: String,
pub upgrade_image: String,
/* private fields */
}Expand description
Response for checking if a notebook instance is upgradeable.
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.upgradeable: boolIf an instance is upgradeable.
upgrade_version: StringThe version this instance will be upgraded to if calling the upgrade endpoint. This field will only be populated if field upgradeable is true.
upgrade_info: StringAdditional information about upgrade.
upgrade_image: StringThe new image self link this instance will be upgraded to if calling the upgrade endpoint. This field will only be populated if field upgradeable is true.
Implementations§
Source§impl CheckInstanceUpgradabilityResponse
impl CheckInstanceUpgradabilityResponse
pub fn new() -> Self
Sourcepub fn set_upgradeable<T: Into<bool>>(self, v: T) -> Self
pub fn set_upgradeable<T: Into<bool>>(self, v: T) -> Self
Sets the value of upgradeable.
Sourcepub fn set_upgrade_version<T: Into<String>>(self, v: T) -> Self
pub fn set_upgrade_version<T: Into<String>>(self, v: T) -> Self
Sets the value of upgrade_version.
Sourcepub fn set_upgrade_info<T: Into<String>>(self, v: T) -> Self
pub fn set_upgrade_info<T: Into<String>>(self, v: T) -> Self
Sets the value of upgrade_info.
Sourcepub fn set_upgrade_image<T: Into<String>>(self, v: T) -> Self
pub fn set_upgrade_image<T: Into<String>>(self, v: T) -> Self
Sets the value of upgrade_image.
Trait Implementations§
Source§impl Clone for CheckInstanceUpgradabilityResponse
impl Clone for CheckInstanceUpgradabilityResponse
Source§fn clone(&self) -> CheckInstanceUpgradabilityResponse
fn clone(&self) -> CheckInstanceUpgradabilityResponse
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 Default for CheckInstanceUpgradabilityResponse
impl Default for CheckInstanceUpgradabilityResponse
Source§fn default() -> CheckInstanceUpgradabilityResponse
fn default() -> CheckInstanceUpgradabilityResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for CheckInstanceUpgradabilityResponse
impl PartialEq for CheckInstanceUpgradabilityResponse
Source§fn eq(&self, other: &CheckInstanceUpgradabilityResponse) -> bool
fn eq(&self, other: &CheckInstanceUpgradabilityResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CheckInstanceUpgradabilityResponse
Auto Trait Implementations§
impl Freeze for CheckInstanceUpgradabilityResponse
impl RefUnwindSafe for CheckInstanceUpgradabilityResponse
impl Send for CheckInstanceUpgradabilityResponse
impl Sync for CheckInstanceUpgradabilityResponse
impl Unpin for CheckInstanceUpgradabilityResponse
impl UnwindSafe for CheckInstanceUpgradabilityResponse
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