pub struct SchemaInfo {
pub name: String,
pub is_default: bool,
}Expand description
One schema / database / namespace returned by
Connection::list_schemas.
“Schema” is the cross-backend umbrella term: a PostgreSQL / MSSQL
schema, a MySQL database, an Oracle user/owner, or a SQLite attached
database. name is the identifier as the server reports it
(unquoted). is_default marks the schema the connection currently
resolves unqualified objects against (PostgreSQL current_schema() /
public, MySQL DATABASE(), MSSQL SCHEMA_NAME() / dbo, Oracle
USER, SQLite main) so a UI can pre-select it.
Fields§
§name: StringThe schema / database / owner name, unquoted, as the server reports it.
is_default: booltrue for the schema the connection resolves unqualified objects
against. At most one entry is flagged per connection; a backend
that cannot determine the current schema flags none.
Trait Implementations§
Source§impl Clone for SchemaInfo
impl Clone for SchemaInfo
Source§fn clone(&self) -> SchemaInfo
fn clone(&self) -> SchemaInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SchemaInfo
impl Debug for SchemaInfo
impl Eq for SchemaInfo
Source§impl PartialEq for SchemaInfo
impl PartialEq for SchemaInfo
Source§fn eq(&self, other: &SchemaInfo) -> bool
fn eq(&self, other: &SchemaInfo) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SchemaInfo
Auto Trait Implementations§
impl Freeze for SchemaInfo
impl RefUnwindSafe for SchemaInfo
impl Send for SchemaInfo
impl Sync for SchemaInfo
impl Unpin for SchemaInfo
impl UnsafeUnpin for SchemaInfo
impl UnwindSafe for SchemaInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.