pub struct SystemInfo {
pub version: u32,
pub system: String,
pub suffix: Vec<String>,
}
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§
Source§impl 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§
Source§impl Clone for SystemInfo
impl Clone for SystemInfo
Source§fn clone(&self) -> SystemInfo
fn clone(&self) -> SystemInfo
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 SystemInfo
impl Debug for SystemInfo
Source§impl Default for SystemInfo
impl Default for SystemInfo
Source§fn default() -> SystemInfo
fn default() -> SystemInfo
Returns the “default value” for a type. Read more
Source§impl PartialEq for SystemInfo
impl PartialEq for SystemInfo
impl StructuralPartialEq for SystemInfo
Auto Trait Implementations§
impl Freeze for SystemInfo
impl RefUnwindSafe for SystemInfo
impl Send for SystemInfo
impl Sync for SystemInfo
impl Unpin for SystemInfo
impl UnwindSafe for SystemInfo
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