Struct orm::meta::EntityMeta
[−]
[src]
pub struct EntityMeta { pub entity_name: String, pub table_name: String, pub field_vec: Vec<String>, pub field_map: HashMap<String, FieldMeta>, }
Fields
entity_name: String
table_name: String
field_vec: Vec<String>
field_map: HashMap<String, FieldMeta>
Methods
impl EntityMeta
[src]
pub fn is_id_auto(&self) -> bool
[src]
pub fn get_fields(&self) -> Vec<&FieldMeta>
[src]
pub fn get_normal_fields(&self) -> Vec<&FieldMeta>
[src]
pub fn get_non_refer_fields(&self) -> Vec<&FieldMeta>
[src]
pub fn get_refer_fields(&self) -> Vec<&FieldMeta>
[src]
pub fn get_pointer_fields(&self) -> Vec<&FieldMeta>
[src]
pub fn get_one_one_fields(&self) -> Vec<&FieldMeta>
[src]
pub fn get_one_many_fields(&self) -> Vec<&FieldMeta>
[src]
pub fn get_columns(&self) -> Vec<String>
[src]
pub fn sql_create_table(&self) -> String
[src]
pub fn sql_drop_table(&self) -> String
[src]
pub fn sql_insert(&self) -> String
[src]
pub fn sql_update(&self) -> String
[src]
pub fn sql_get(&self) -> String
[src]
pub fn sql_delete(&self) -> String
[src]
Trait Implementations
impl Debug for EntityMeta
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Default for EntityMeta
[src]
fn default() -> EntityMeta
[src]
Returns the "default value" for a type. Read more
impl Clone for EntityMeta
[src]
fn clone(&self) -> EntityMeta
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Decodable for EntityMeta
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<EntityMeta, __D::Error>
[src]
Deserialize a value using a Decoder
.