pub fn new(name: &str, arity: FieldArity, field_type: FieldType) -> ScalarField {
        ScalarField {
            name: String::from(name),
            arity,
            field_type,
            database_name: None,
            default_value: None,
            is_unique: false,
            is_id: false,
            documentation: None,
            is_generated: false,
            is_updated_at: false,
            is_commented_out: false,
            is_ignored: false,
        }
    }
/// Creates a new field with the given name and type.
Creates a new field with the given name and type.
Creates a new field with the given name and type .
pub fn new(name: &str, arity: FieldArity, field_type: FieldType) -> ScalarField {
        ScalarField {
            name: String::from(name),
            arity,
            field_type,
            database_name: None,
            default_value: None,
            is_unique: false,
            is_id: false,
            documentation: None,
            is_generated: false,
            is_updated_at: false,
            is_commented_out: false,
            is_ignored: false,
        }
    }
pub fn new ( name : & str , arity : FieldArity , field_type : FieldType ) -> ScalarField { ScalarField { name : String :: from ( name ) , arity , field_type , database_name : None , default_value : None , is_unique : false , is_id : false , documentation : None , is_generated : false , is_updated_at : false , is_commented_out : false , is_ignored : false , } }
Creates a new field with the given name and type.
Creates a new field with the given name and type .
name
&str
arity
FieldArity
field_type
FieldType
name
&str
arity
FieldArity
field_type
FieldType