#[non_exhaustive]pub struct AvailableDatabaseVersion {
pub major_version: Option<String>,
pub name: Option<String>,
pub display_name: Option<String>,
/* private fields */
}
Expand description
An available database version. It can be a major or a minor version.
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.major_version: Option<String>
The version’s major version name.
name: Option<String>
The database version name. For MySQL 8.0, this string provides the database major and minor version.
display_name: Option<String>
The database version’s display name.
Implementations§
Source§impl AvailableDatabaseVersion
impl AvailableDatabaseVersion
pub fn new() -> Self
Sourcepub fn set_major_version<T>(self, v: T) -> Self
pub fn set_major_version<T>(self, v: T) -> Self
Sets the value of major_version.
Sourcepub fn set_or_clear_major_version<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_major_version<T>(self, v: Option<T>) -> Self
Sets or clears the value of major_version.
Sourcepub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
Sets or clears the value of name.
Sourcepub fn set_display_name<T>(self, v: T) -> Self
pub fn set_display_name<T>(self, v: T) -> Self
Sets the value of display_name.
Sourcepub fn set_or_clear_display_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_display_name<T>(self, v: Option<T>) -> Self
Sets or clears the value of display_name.
Trait Implementations§
Source§impl Clone for AvailableDatabaseVersion
impl Clone for AvailableDatabaseVersion
Source§fn clone(&self) -> AvailableDatabaseVersion
fn clone(&self) -> AvailableDatabaseVersion
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 AvailableDatabaseVersion
impl Debug for AvailableDatabaseVersion
Source§impl Default for AvailableDatabaseVersion
impl Default for AvailableDatabaseVersion
Source§fn default() -> AvailableDatabaseVersion
fn default() -> AvailableDatabaseVersion
Returns the “default value” for a type. Read more
Source§impl Message for AvailableDatabaseVersion
impl Message for AvailableDatabaseVersion
Source§impl PartialEq for AvailableDatabaseVersion
impl PartialEq for AvailableDatabaseVersion
impl StructuralPartialEq for AvailableDatabaseVersion
Auto Trait Implementations§
impl Freeze for AvailableDatabaseVersion
impl RefUnwindSafe for AvailableDatabaseVersion
impl Send for AvailableDatabaseVersion
impl Sync for AvailableDatabaseVersion
impl Unpin for AvailableDatabaseVersion
impl UnwindSafe for AvailableDatabaseVersion
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