pub struct SchemaTreeConfig {
pub show_types: bool,
pub show_constraints: bool,
pub show_indexes: bool,
pub show_foreign_keys: bool,
pub theme: Option<Theme>,
pub use_unicode: bool,
}Expand description
Configuration for schema tree rendering.
Fields§
§show_types: boolShow column types
show_constraints: boolShow constraints (nullable, default, auto_increment)
show_indexes: boolShow indexes
show_foreign_keys: boolShow foreign keys
theme: Option<Theme>Theme for styled output
use_unicode: boolUse Unicode box drawing characters
Implementations§
Source§impl SchemaTreeConfig
impl SchemaTreeConfig
Sourcepub fn show_types(self, show: bool) -> Self
pub fn show_types(self, show: bool) -> Self
Set whether to show column types.
Sourcepub fn show_constraints(self, show: bool) -> Self
pub fn show_constraints(self, show: bool) -> Self
Set whether to show constraints.
Sourcepub fn show_indexes(self, show: bool) -> Self
pub fn show_indexes(self, show: bool) -> Self
Set whether to show indexes.
Sourcepub fn show_foreign_keys(self, show: bool) -> Self
pub fn show_foreign_keys(self, show: bool) -> Self
Set whether to show foreign keys.
Trait Implementations§
Source§impl Clone for SchemaTreeConfig
impl Clone for SchemaTreeConfig
Source§fn clone(&self) -> SchemaTreeConfig
fn clone(&self) -> SchemaTreeConfig
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 SchemaTreeConfig
impl Debug for SchemaTreeConfig
Auto Trait Implementations§
impl Freeze for SchemaTreeConfig
impl RefUnwindSafe for SchemaTreeConfig
impl Send for SchemaTreeConfig
impl Sync for SchemaTreeConfig
impl Unpin for SchemaTreeConfig
impl UnsafeUnpin for SchemaTreeConfig
impl UnwindSafe for SchemaTreeConfig
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