Struct sea_schema::mysql::def::SystemInfo
source · [−]Available on crate features
mysql
and def
only.Fields
version: u32
The version number converted to integer using the following formula: major_version * 10000 + minor_version * 100 + sub_version
system: String
The system string. it may be: 0ubuntu0.*
or MariaDB
suffix: Vec<String>
Additional suffix
Implementations
sourceimpl SystemInfo
impl SystemInfo
sourcepub fn is_maria_db(&self) -> bool
pub fn is_maria_db(&self) -> bool
Return true if the system is MariaDB
sourcepub fn version_string(&self) -> String
pub fn version_string(&self) -> String
Return the version version as string. e.g. 8.0.1
Trait Implementations
sourceimpl Clone for SystemInfo
impl Clone for SystemInfo
sourcefn clone(&self) -> SystemInfo
fn clone(&self) -> SystemInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SystemInfo
impl Debug for SystemInfo
sourceimpl Default for SystemInfo
impl Default for SystemInfo
sourcefn default() -> SystemInfo
fn default() -> SystemInfo
Returns the “default value” for a type. Read more
sourceimpl PartialEq<SystemInfo> for SystemInfo
impl PartialEq<SystemInfo> for SystemInfo
sourcefn eq(&self, other: &SystemInfo) -> bool
fn eq(&self, other: &SystemInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SystemInfo) -> bool
fn ne(&self, other: &SystemInfo) -> bool
This method tests for !=
.
impl StructuralPartialEq for SystemInfo
Auto Trait Implementations
impl RefUnwindSafe for SystemInfo
impl Send for SystemInfo
impl Sync for SystemInfo
impl Unpin for SystemInfo
impl UnwindSafe for SystemInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more