pub fn find_enum_fields(&self, enum_name: &str) -> Vec<(String, String)> {
        let mut fields = vec![];
        for model in self.models() {
            for field in model.scalar_fields() {
                if FieldType::Enum(enum_name.to_owned()) == field.field_type {
                    fields.push((model.name.clone(), field.name.clone()))
                }
            }
        }
        fields
    }
/// Returns (model_name, field_name) for all fields using a specific enum.
Returns (model_name, field_name) for all fields using a specific enum.
Returns ( model_name field_name ) for all fields using a specific enum .
pub fn find_enum_fields(&self, enum_name: &str) -> Vec<(String, String)> {
        let mut fields = vec![];
        for model in self.models() {
            for field in model.scalar_fields() {
                if FieldType::Enum(enum_name.to_owned()) == field.field_type {
                    fields.push((model.name.clone(), field.name.clone()))
                }
            }
        }
        fields
    }
pub fn find_enum_fields ( & self , enum_name : & str ) -> Vec < ( String , String ) > { let mut fields = vec ! [ ] ; for model in self . models ( ) { for field in model . scalar_fields ( ) { if FieldType :: Enum ( enum_name . to_owned ( ) ) == field . field_type { fields . push ( ( model . name . clone ( ) , field . name . clone ( ) ) ) } } } fields }
Returns (model_name, field_name) for all fields using a specific enum.
Returns ( model_name field_name ) for all fields using a specific enum .
&self
enum_name
&str
&self
enum_name
&str