pub struct Database {Show 17 fields
pub id: Option<String>,
pub name: Option<String>,
pub compatibility_level: Option<DatabaseCompatLevel>,
pub collation: Option<String>,
pub server_name: Option<String>,
pub fqdn: Option<String>,
pub install_id: Option<String>,
pub server_version: Option<String>,
pub server_edition: Option<String>,
pub server_level: Option<String>,
pub server_default_data_path: Option<String>,
pub server_default_log_path: Option<String>,
pub server_default_backup_path: Option<String>,
pub server_core_count: Option<i64>,
pub server_visible_online_core_count: Option<i64>,
pub database_state: Option<DatabaseState>,
pub server_id: Option<String>,
}
Expand description
Information about a single database
Fields§
§id: Option<String>
Unique identifier for the database
name: Option<String>
Name of the database
compatibility_level: Option<DatabaseCompatLevel>
An enumeration of SQL Server database compatibility levels
collation: Option<String>
Collation name of the database
server_name: Option<String>
Name of the server
fqdn: Option<String>
Fully qualified name
install_id: Option<String>
Install id of the database
server_version: Option<String>
Version of the server
server_edition: Option<String>
Edition of the server
server_level: Option<String>
Product level of the server (RTM, SP, CTP).
server_default_data_path: Option<String>
Default path of the data files
server_default_log_path: Option<String>
Default path of the log files
server_default_backup_path: Option<String>
Default path of the backup folder
server_core_count: Option<i64>
Number of cores on the server
server_visible_online_core_count: Option<i64>
Number of cores on the server that have VISIBLE ONLINE status
database_state: Option<DatabaseState>
An enumeration of SQL Server Database states
server_id: Option<String>
The unique Server Id
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Database
impl<'de> Deserialize<'de> for Database
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Database> for Database
impl PartialEq<Database> for Database
impl StructuralPartialEq for Database
Auto Trait Implementations§
impl RefUnwindSafe for Database
impl Send for Database
impl Sync for Database
impl Unpin for Database
impl UnwindSafe for Database
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