pub trait Print: Sized {
// Required method
fn convert_table(self) -> Result<Table, Error>;
// Provided methods
fn print_all_tables(self) -> Result<(), Error> { ... }
fn table_string(self) -> Result<String, Error> { ... }
}
Required Methods§
fn convert_table(self) -> Result<Table, Error>
Provided Methods§
fn print_all_tables(self) -> Result<(), Error>
fn table_string(self) -> Result<String, Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl Print for DmTableDesc
impl Print for DmTableDesc
Implementors§
impl Print for QueryResult
impl Print for TableDescResultInner
impl<T> Print for Twhere
T: Cursor,
Print Cursor output to table.E.g:
> run you code...
╭────┬────────────┬────────────────────────────┬────────────────────────────╮
│ id │ name │ created_at │ updated_at │
├────┼────────────┼────────────────────────────┼────────────────────────────┤
│ 1 │ hallo │ 2022-08-24 15:50:36.000000 │ 2022-08-24 15:50:36.000000 │
╰────┴────────────┴────────────────────────────┴────────────────────────────╯