fn has_field(model: &Model, name: &str) -> bool {
            match model
                .find_scalar_field(name)
                .or_else(|| model.find_scalar_field(name.to_lowercase().as_ref()))
            {
                Some(f) => f.field_type.is_datetime(),
                None => false,
            }
        }
/// Finds a field by name.
Finds a field by name.
Finds a field by name .
fn has_field(model: &Model, name: &str) -> bool {
            match model
                .find_scalar_field(name)
                .or_else(|| model.find_scalar_field(name.to_lowercase().as_ref()))
            {
                Some(f) => f.field_type.is_datetime(),
                None => false,
            }
        }
fn has_field ( model : & Model , name : & str ) -> bool { match model . find_scalar_field ( name ) . or_else ( | | model . find_scalar_field ( name . to_lowercase ( ) . as_ref ( ) ) ) { Some ( f ) => f . field_type . is_datetime ( ) , None => false , } }
Finds a field by name.
Finds a field by name .
model
&Model
name
&str
model
&Model
name
&str