pub fn condensed_displayname(&self, table: &Table) -> String {
        if self.name.len() > table.name.len() {
            let mut concise_name = String::new();
            for i in self.name.split('_') {
                if table.name != i {
                    concise_name.push_str(&capitalize(i));
                    concise_name.push_str(" ");
                }
            }
            concise_name.trim().to_owned()
        } else {
            self.displayname()
        }
    }
/// get a shorter display name of a certain table
/// when being refered to this table
/// example product.product_availability -> Availability
/// user.user_info -> Info
get a shorter display name of a certain table
when being refered to this table
example product.product_availability -> Availability
user.user_info -> Info
get a shorter display name of a certain table when being refered to this table example product . product_availability - > Availability user . user_info - > Info
pub fn condensed_displayname(&self, table: &Table) -> String {
        if self.name.len() > table.name.len() {
            let mut concise_name = String::new();
            for i in self.name.split('_') {
                if table.name != i {
                    concise_name.push_str(&capitalize(i));
                    concise_name.push_str(" ");
                }
            }
            concise_name.trim().to_owned()
        } else {
            self.displayname()
        }
    }
pub fn condensed_displayname ( & self , table : & Table ) -> String { if self . name . len ( ) > table . name . len ( ) { let mut concise_name = String :: new ( ) ; for i in self . name . split ( '_' ) { if table . name != i { concise_name . push_str ( & capitalize ( i ) ) ; concise_name . push_str ( " " ) ; } } concise_name . trim ( ) . to_owned ( ) } else { self . displayname ( ) } }
get a shorter display name of a certain table
when being refered to this table
example product.product_availability -> Availability
user.user_info -> Info
get a shorter display name of a certain table when being refered to this table example product . product_availability - > Availability user . user_info - > Info
&self
table
&Table
&self
table
&Table