#[non_exhaustive]pub struct PreCheckMajorVersionUpgradeContext {
pub target_database_version: SqlDatabaseVersion,
pub pre_check_response: Vec<PreCheckResponse>,
pub kind: String,
/* private fields */
}Expand description
Pre-check major version upgrade context.
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.target_database_version: SqlDatabaseVersionRequired. The target database version to upgrade to.
pre_check_response: Vec<PreCheckResponse>Output only. The responses from the precheck operation.
kind: StringOptional. This is always sql#preCheckMajorVersionUpgradeContext.
Implementations§
Source§impl PreCheckMajorVersionUpgradeContext
impl PreCheckMajorVersionUpgradeContext
pub fn new() -> Self
Sourcepub fn set_target_database_version<T: Into<SqlDatabaseVersion>>(
self,
v: T,
) -> Self
pub fn set_target_database_version<T: Into<SqlDatabaseVersion>>( self, v: T, ) -> Self
Sets the value of target_database_version.
§Example
ⓘ
use google_cloud_sql_v1::model::SqlDatabaseVersion;
let x0 = PreCheckMajorVersionUpgradeContext::new().set_target_database_version(SqlDatabaseVersion::Mysql56);
let x1 = PreCheckMajorVersionUpgradeContext::new().set_target_database_version(SqlDatabaseVersion::Mysql57);
let x2 = PreCheckMajorVersionUpgradeContext::new().set_target_database_version(SqlDatabaseVersion::Mysql80);Sourcepub fn set_pre_check_response<T, V>(self, v: T) -> Self
pub fn set_pre_check_response<T, V>(self, v: T) -> Self
Sets the value of pre_check_response.
§Example
ⓘ
use google_cloud_sql_v1::model::PreCheckResponse;
let x = PreCheckMajorVersionUpgradeContext::new()
.set_pre_check_response([
PreCheckResponse::default()/* use setters */,
PreCheckResponse::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for PreCheckMajorVersionUpgradeContext
impl Clone for PreCheckMajorVersionUpgradeContext
Source§fn clone(&self) -> PreCheckMajorVersionUpgradeContext
fn clone(&self) -> PreCheckMajorVersionUpgradeContext
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 PreCheckMajorVersionUpgradeContext
impl Default for PreCheckMajorVersionUpgradeContext
Source§fn default() -> PreCheckMajorVersionUpgradeContext
fn default() -> PreCheckMajorVersionUpgradeContext
Returns the “default value” for a type. Read more
Source§impl PartialEq for PreCheckMajorVersionUpgradeContext
impl PartialEq for PreCheckMajorVersionUpgradeContext
Source§fn eq(&self, other: &PreCheckMajorVersionUpgradeContext) -> bool
fn eq(&self, other: &PreCheckMajorVersionUpgradeContext) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PreCheckMajorVersionUpgradeContext
Auto Trait Implementations§
impl Freeze for PreCheckMajorVersionUpgradeContext
impl RefUnwindSafe for PreCheckMajorVersionUpgradeContext
impl Send for PreCheckMajorVersionUpgradeContext
impl Sync for PreCheckMajorVersionUpgradeContext
impl Unpin for PreCheckMajorVersionUpgradeContext
impl UnwindSafe for PreCheckMajorVersionUpgradeContext
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