pub trait GenStruct {
// Required methods
fn get_tables<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_tables_comment<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, String>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn gen_templates<'life0, 'async_trait>(
&'life0 self,
tables: Vec<String>,
table_comment_map: HashMap<String, String>,
fields_type: Option<BTreeMap<String, String>>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Table>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided methods
fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
filename: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<Table>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn load_custom_fields_type<'life0, 'life1, 'async_trait>(
&'life0 self,
filename: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<BTreeMap<String, String>>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn get_field_type<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
field_type: &'life1 str,
filed_name: &'life2 str,
field_type_map: &'life3 BTreeMap<String, String>,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait { ... }
fn first_char_to_uppercase<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn load<'life0, 'async_trait>(
filename: &'life0 str,
) -> Pin<Box<dyn Future<Output = Result<CustomConfig>> + Send + 'async_trait>>
where 'life0: 'async_trait { ... }
fn filter_tables<'life0, 'async_trait>(
&'life0 self,
tables: Vec<String>,
exclude_tables: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}Required Methods§
fn get_tables<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_tables_comment<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn gen_templates<'life0, 'async_trait>(
&'life0 self,
tables: Vec<String>,
table_comment_map: HashMap<String, String>,
fields_type: Option<BTreeMap<String, String>>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Table>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provided Methods§
fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
filename: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<Table>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_custom_fields_type<'life0, 'life1, 'async_trait>(
&'life0 self,
filename: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<BTreeMap<String, String>>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_field_type<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
field_type: &'life1 str,
filed_name: &'life2 str,
field_type_map: &'life3 BTreeMap<String, String>,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Sourcefn first_char_to_uppercase<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn first_char_to_uppercase<'life0, 'life1, 'async_trait>(
&'life0 self,
params: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
字符串首字母大写
fn load<'life0, 'async_trait>(
filename: &'life0 str,
) -> Pin<Box<dyn Future<Output = Result<CustomConfig>> + Send + 'async_trait>>where
'life0: 'async_trait,
fn filter_tables<'life0, 'async_trait>(
&'life0 self,
tables: Vec<String>,
exclude_tables: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
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.