#[non_exhaustive]pub enum FieldProperty {
Show 28 variants
Calc(CalcFieldProperty),
SingleLineText(SingleLineTextFieldProperty),
MultiLineText(MultiLineTextFieldProperty),
RichText(RichTextFieldProperty),
Number(NumberFieldProperty),
Date(DateFieldProperty),
Time(TimeFieldProperty),
DateTime(DateTimeFieldProperty),
RadioButton(RadioButtonFieldProperty),
CheckBox(CheckBoxFieldProperty),
MultiSelect(MultiSelectFieldProperty),
DropDown(DropDownFieldProperty),
File(FileFieldProperty),
Link(LinkFieldProperty),
UserSelect(UserSelectFieldProperty),
OrganizationSelect(OrganizationSelectFieldProperty),
GroupSelect(GroupSelectFieldProperty),
ReferenceTable(ReferenceTableFieldProperty),
Group(GroupFieldProperty),
Subtable(SubtableFieldProperty),
RecordNumber(RecordNumberFieldProperty),
Category(CategoryFieldProperty),
Status(StatusFieldProperty),
StatusAssignee(StatusAssigneeFieldProperty),
CreatedTime(CreatedTimeFieldProperty),
UpdatedTime(UpdatedTimeFieldProperty),
Creator(CreatorFieldProperty),
Modifier(ModifierFieldProperty),
}Expand description
Represents the configuration properties of a field in a Kintone app.
Each variant corresponds to a specific field type and contains the complete configuration for that field, including validation rules, display options, and default values.
This enum is marked as #[non_exhaustive] to allow for future field types
without breaking changes.
§Examples
use kintone::model::app::field::{single_line_text_field_property, FieldProperty};
let text_field: FieldProperty = single_line_text_field_property("name")
.label("Full Name")
.required(true)
.max_length(50)
.build()
.into();
// Get the field code
assert_eq!(text_field.field_code(), "name");Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Calc(CalcFieldProperty)
SingleLineText(SingleLineTextFieldProperty)
MultiLineText(MultiLineTextFieldProperty)
RichText(RichTextFieldProperty)
Number(NumberFieldProperty)
Date(DateFieldProperty)
Time(TimeFieldProperty)
DateTime(DateTimeFieldProperty)
RadioButton(RadioButtonFieldProperty)
CheckBox(CheckBoxFieldProperty)
MultiSelect(MultiSelectFieldProperty)
DropDown(DropDownFieldProperty)
File(FileFieldProperty)
Link(LinkFieldProperty)
UserSelect(UserSelectFieldProperty)
OrganizationSelect(OrganizationSelectFieldProperty)
GroupSelect(GroupSelectFieldProperty)
ReferenceTable(ReferenceTableFieldProperty)
Group(GroupFieldProperty)
Subtable(SubtableFieldProperty)
RecordNumber(RecordNumberFieldProperty)
Category(CategoryFieldProperty)
Status(StatusFieldProperty)
StatusAssignee(StatusAssigneeFieldProperty)
CreatedTime(CreatedTimeFieldProperty)
UpdatedTime(UpdatedTimeFieldProperty)
Creator(CreatorFieldProperty)
Modifier(ModifierFieldProperty)
Implementations§
Source§impl FieldProperty
impl FieldProperty
pub const fn field_type(&self) -> FieldType
pub fn field_code(&self) -> &str
Trait Implementations§
Source§impl Clone for FieldProperty
impl Clone for FieldProperty
Source§fn clone(&self) -> FieldProperty
fn clone(&self) -> FieldProperty
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FieldProperty
impl Debug for FieldProperty
Source§impl<'de> Deserialize<'de> for FieldProperty
impl<'de> Deserialize<'de> for FieldProperty
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FieldProperty
Source§impl From<CalcFieldProperty> for FieldProperty
impl From<CalcFieldProperty> for FieldProperty
Source§fn from(property: CalcFieldProperty) -> Self
fn from(property: CalcFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<CategoryFieldProperty> for FieldProperty
impl From<CategoryFieldProperty> for FieldProperty
Source§fn from(property: CategoryFieldProperty) -> Self
fn from(property: CategoryFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<CheckBoxFieldProperty> for FieldProperty
impl From<CheckBoxFieldProperty> for FieldProperty
Source§fn from(property: CheckBoxFieldProperty) -> Self
fn from(property: CheckBoxFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<CreatedTimeFieldProperty> for FieldProperty
impl From<CreatedTimeFieldProperty> for FieldProperty
Source§fn from(property: CreatedTimeFieldProperty) -> Self
fn from(property: CreatedTimeFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<CreatorFieldProperty> for FieldProperty
impl From<CreatorFieldProperty> for FieldProperty
Source§fn from(property: CreatorFieldProperty) -> Self
fn from(property: CreatorFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<DateFieldProperty> for FieldProperty
impl From<DateFieldProperty> for FieldProperty
Source§fn from(property: DateFieldProperty) -> Self
fn from(property: DateFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<DateTimeFieldProperty> for FieldProperty
impl From<DateTimeFieldProperty> for FieldProperty
Source§fn from(property: DateTimeFieldProperty) -> Self
fn from(property: DateTimeFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<DropDownFieldProperty> for FieldProperty
impl From<DropDownFieldProperty> for FieldProperty
Source§fn from(property: DropDownFieldProperty) -> Self
fn from(property: DropDownFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<FileFieldProperty> for FieldProperty
impl From<FileFieldProperty> for FieldProperty
Source§fn from(property: FileFieldProperty) -> Self
fn from(property: FileFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<GroupFieldProperty> for FieldProperty
impl From<GroupFieldProperty> for FieldProperty
Source§fn from(property: GroupFieldProperty) -> Self
fn from(property: GroupFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<GroupSelectFieldProperty> for FieldProperty
impl From<GroupSelectFieldProperty> for FieldProperty
Source§fn from(property: GroupSelectFieldProperty) -> Self
fn from(property: GroupSelectFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<LinkFieldProperty> for FieldProperty
impl From<LinkFieldProperty> for FieldProperty
Source§fn from(property: LinkFieldProperty) -> Self
fn from(property: LinkFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<ModifierFieldProperty> for FieldProperty
impl From<ModifierFieldProperty> for FieldProperty
Source§fn from(property: ModifierFieldProperty) -> Self
fn from(property: ModifierFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<MultiLineTextFieldProperty> for FieldProperty
impl From<MultiLineTextFieldProperty> for FieldProperty
Source§fn from(property: MultiLineTextFieldProperty) -> Self
fn from(property: MultiLineTextFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<MultiSelectFieldProperty> for FieldProperty
impl From<MultiSelectFieldProperty> for FieldProperty
Source§fn from(property: MultiSelectFieldProperty) -> Self
fn from(property: MultiSelectFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<NumberFieldProperty> for FieldProperty
impl From<NumberFieldProperty> for FieldProperty
Source§fn from(property: NumberFieldProperty) -> Self
fn from(property: NumberFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<OrganizationSelectFieldProperty> for FieldProperty
impl From<OrganizationSelectFieldProperty> for FieldProperty
Source§fn from(property: OrganizationSelectFieldProperty) -> Self
fn from(property: OrganizationSelectFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<RadioButtonFieldProperty> for FieldProperty
impl From<RadioButtonFieldProperty> for FieldProperty
Source§fn from(property: RadioButtonFieldProperty) -> Self
fn from(property: RadioButtonFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<RecordNumberFieldProperty> for FieldProperty
impl From<RecordNumberFieldProperty> for FieldProperty
Source§fn from(property: RecordNumberFieldProperty) -> Self
fn from(property: RecordNumberFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<ReferenceTableFieldProperty> for FieldProperty
impl From<ReferenceTableFieldProperty> for FieldProperty
Source§fn from(property: ReferenceTableFieldProperty) -> Self
fn from(property: ReferenceTableFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<RichTextFieldProperty> for FieldProperty
impl From<RichTextFieldProperty> for FieldProperty
Source§fn from(property: RichTextFieldProperty) -> Self
fn from(property: RichTextFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<SingleLineTextFieldProperty> for FieldProperty
impl From<SingleLineTextFieldProperty> for FieldProperty
Source§fn from(property: SingleLineTextFieldProperty) -> Self
fn from(property: SingleLineTextFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<StatusAssigneeFieldProperty> for FieldProperty
impl From<StatusAssigneeFieldProperty> for FieldProperty
Source§fn from(property: StatusAssigneeFieldProperty) -> Self
fn from(property: StatusAssigneeFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<StatusFieldProperty> for FieldProperty
impl From<StatusFieldProperty> for FieldProperty
Source§fn from(property: StatusFieldProperty) -> Self
fn from(property: StatusFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<SubtableFieldProperty> for FieldProperty
impl From<SubtableFieldProperty> for FieldProperty
Source§fn from(property: SubtableFieldProperty) -> Self
fn from(property: SubtableFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<TimeFieldProperty> for FieldProperty
impl From<TimeFieldProperty> for FieldProperty
Source§fn from(property: TimeFieldProperty) -> Self
fn from(property: TimeFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<UpdatedTimeFieldProperty> for FieldProperty
impl From<UpdatedTimeFieldProperty> for FieldProperty
Source§fn from(property: UpdatedTimeFieldProperty) -> Self
fn from(property: UpdatedTimeFieldProperty) -> Self
Converts to this type from the input type.
Source§impl From<UserSelectFieldProperty> for FieldProperty
impl From<UserSelectFieldProperty> for FieldProperty
Source§fn from(property: UserSelectFieldProperty) -> Self
fn from(property: UserSelectFieldProperty) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FieldProperty
impl PartialEq for FieldProperty
Source§impl Serialize for FieldProperty
impl Serialize for FieldProperty
impl StructuralPartialEq for FieldProperty
Auto Trait Implementations§
impl Freeze for FieldProperty
impl RefUnwindSafe for FieldProperty
impl Send for FieldProperty
impl Sync for FieldProperty
impl Unpin for FieldProperty
impl UnsafeUnpin for FieldProperty
impl UnwindSafe for FieldProperty
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more