#[non_exhaustive]pub struct MysqlDatabase {
pub database: String,
pub mysql_tables: Vec<MysqlTable>,
/* private fields */
}
Expand description
MySQL database.
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.database: String
Database name.
mysql_tables: Vec<MysqlTable>
Tables in the database.
Implementations§
Source§impl MysqlDatabase
impl MysqlDatabase
pub fn new() -> Self
Sourcepub fn set_database<T: Into<String>>(self, v: T) -> Self
pub fn set_database<T: Into<String>>(self, v: T) -> Self
Sets the value of database.
Sourcepub fn set_mysql_tables<T, V>(self, v: T) -> Self
pub fn set_mysql_tables<T, V>(self, v: T) -> Self
Sets the value of mysql_tables.
Trait Implementations§
Source§impl Clone for MysqlDatabase
impl Clone for MysqlDatabase
Source§fn clone(&self) -> MysqlDatabase
fn clone(&self) -> MysqlDatabase
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 MysqlDatabase
impl Debug for MysqlDatabase
Source§impl Default for MysqlDatabase
impl Default for MysqlDatabase
Source§fn default() -> MysqlDatabase
fn default() -> MysqlDatabase
Returns the “default value” for a type. Read more
Source§impl Message for MysqlDatabase
impl Message for MysqlDatabase
Source§impl PartialEq for MysqlDatabase
impl PartialEq for MysqlDatabase
impl StructuralPartialEq for MysqlDatabase
Auto Trait Implementations§
impl Freeze for MysqlDatabase
impl RefUnwindSafe for MysqlDatabase
impl Send for MysqlDatabase
impl Sync for MysqlDatabase
impl Unpin for MysqlDatabase
impl UnwindSafe for MysqlDatabase
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