pub struct SchemaTree { /* private fields */ }Expand description
Schema tree view for visualizing database structure.
Displays database tables and their columns as an ASCII/Unicode tree.
Implementations§
Source§impl SchemaTree
impl SchemaTree
Sourcepub fn config(self, config: SchemaTreeConfig) -> Self
pub fn config(self, config: SchemaTreeConfig) -> Self
Set the configuration.
Sourcepub fn render_plain(&self) -> String
pub fn render_plain(&self) -> String
Render the schema as plain text.
Sourcepub fn render_styled(&self) -> String
pub fn render_styled(&self) -> String
Render the schema as styled text with ANSI colors.
Trait Implementations§
Source§impl Clone for SchemaTree
impl Clone for SchemaTree
Source§fn clone(&self) -> SchemaTree
fn clone(&self) -> SchemaTree
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 SchemaTree
impl Debug for SchemaTree
Auto Trait Implementations§
impl Freeze for SchemaTree
impl RefUnwindSafe for SchemaTree
impl Send for SchemaTree
impl Sync for SchemaTree
impl Unpin for SchemaTree
impl UnsafeUnpin for SchemaTree
impl UnwindSafe for SchemaTree
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