Module green_barrel::fields
source · Expand description
For control of fields on the server and client side.
Re-exports
pub use crate::fields::bool::BoolField;
pub use crate::fields::image::ImageField;
pub use crate::fields::slug::SlugField;
pub use choice_f64::ChoiceF64Field;
pub use choice_f64_dyn::ChoiceF64DynField;
pub use choice_f64_mult::ChoiceF64MultField;
pub use choice_f64_mult_dyn::ChoiceF64MultDynField;
pub use choice_i32::ChoiceI32Field;
pub use choice_i32_dyn::ChoiceI32DynField;
pub use choice_i32_mult::ChoiceI32MultField;
pub use choice_i32_mult_dyn::ChoiceI32MultDynField;
pub use choice_i64::ChoiceI64Field;
pub use choice_i64_dyn::ChoiceI64DynField;
pub use choice_i64_mult::ChoiceI64MultField;
pub use choice_i64_mult_dyn::ChoiceI64MultDynField;
pub use choice_text::ChoiceTextField;
pub use choice_text_dyn::ChoiceTextDynField;
pub use choice_text_mult::ChoiceTextMultField;
pub use choice_text_mult_dyn::ChoiceTextMultDynField;
pub use choice_u32::ChoiceU32Field;
pub use choice_u32_dyn::ChoiceU32DynField;
pub use choice_u32_mult::ChoiceU32MultField;
pub use choice_u32_mult_dyn::ChoiceU32MultDynField;
pub use color::ColorField;
pub use date::DateField;
pub use date_time::DateTimeField;
pub use email::EmailField;
pub use file::FileField;
pub use hash::HashField;
pub use hidden_date_time::HiddenDateTimeField;
pub use ip::IPField;
pub use number_f64::F64Field;
pub use number_i32::I32Field;
pub use number_i64::I64Field;
pub use number_u32::U32Field;
pub use password::PasswordField;
pub use phone::PhoneField;
pub use text::TextField;
pub use url::URLField;
Modules
- Boolean field.
- Type of selective field with static of elements. With a single choice.
- Type of selective field with dynamic addition of elements. For simulate relationship Many-to-One. Elements are added via the
ModelName::update_dyn_field()
method. - Type of selective field with static of elements. With multiple choice.
- Type of selective field with dynamic addition of elements. For simulate relationship Many-to-Many. Elements are added via the
ModelName::update_dyn_field()
method. - Type of selective field with static of elements. With a single choice.
- Type of selective field with dynamic addition of elements. For simulate relationship Many-to-One. Elements are added via the
ModelName::update_dyn_field()
method. - Type of selective field with static of elements. With multiple choice.
- Type of selective field with dynamic addition of elements. For simulate relationship Many-to-Many. Elements are added via the
ModelName::update_dyn_field()
method. - Type of selective field with static of elements. With a single choice.
- Type of selective field with dynamic addition of elements. For simulate relationship Many-to-One. Elements are added via the
ModelName::update_dyn_field()
method. - Type of selective field with static of elements. With multiple choice.
- Type of selective field with dynamic addition of elements. For simulate relationship Many-to-Many. Elements are added via the
ModelName::update_dyn_field()
method. - Type of selective field with static of elements. With a single choice.
- Type of selective field with dynamic addition of elements. For simulate relationship Many-to-One. Elements are added via the
ModelName::update_dyn_field()
method. - Type of selective field with static of elements. With multiple choice.
- Type of selective field with dynamic addition of elements. For simulate relationship Many-to-Many. Elements are added via the
ModelName::update_dyn_field()
method. - Type of selective field with static of elements. With a single choice.
- Type of selective field with dynamic addition of elements. For simulate relationship Many-to-One. Elements are added via the
ModelName::update_dyn_field()
method. - Type of selective field with static of elements. With multiple choice.
- Type of selective field with dynamic addition of elements. For simulate relationship Many-to-Many. Elements are added via the
ModelName::update_dyn_field()
method. - The default value is #000000 (black). Examples: #fff | #f2f2f2 | #ffffff00 | rgb(255,0,24) | rgba(255,0,24,0.5) | rgba(#fff,0.5) | hsl(120,100%,50%) | hsla(170,23%,25%,0.2) | 0x00ffff.
- A field for entering a date in the format 1970-01-01.
- A field for entering a date и времени in the format 1970-01-01T00:00.
- A field for entering Email addresses.
- File upload field.
- This type was created specifically for the hash field.
- This type was created specifically for the created_at and updated_at fields.
- Field for uploading images.
- Field for entering IP addresses. Parameter: field_type=IP|IPv4|IPv6
- Field for entering float numbers. For Html <input type=“number|radio|range”.
- A field for entering integer 32-bit numbers. For Html <input type=“number|radio|range”.
- A field for entering integer 64-bit numbers. For Html <input type=“number|radio|range”.
- A field for entering unsigned 32-bit integers. For Html <input type=“number|radio|range”.
- Password field.
- A field for entering a phone number.
- Automatically creates a label from letters, numbers, and hyphens. Convenient to use for Url addresses.
- A field for entering a text string. For Html <input type=“text|radio” and textarea(multiline=true)
- Field for entering URL addresses.