Primary

Trait Primary 

Source
pub trait Primary {
    // Required methods
    fn name(&self) -> String;
    fn get_fields_name(&self) -> Vec<String>;
    fn into_any_arguments<'p>(self) -> AnyArguments<'p>
       where Self: Sized;

    // Provided methods
    fn table_name(&self, wrap_char: char) -> String { ... }
    fn get_where_clause(&self, wrap_char: char, place_holder: &str) -> String { ... }
}

Required Methods§

Source

fn name(&self) -> String

Source

fn get_fields_name(&self) -> Vec<String>

Source

fn into_any_arguments<'p>(self) -> AnyArguments<'p>
where Self: Sized,

Provided Methods§

Source

fn table_name(&self, wrap_char: char) -> String

Source

fn get_where_clause(&self, wrap_char: char, place_holder: &str) -> String

Implementors§