Skip to main content

FieldProperty

Enum FieldProperty 

Source
#[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.

Implementations§

Source§

impl FieldProperty

Source

pub const fn field_type(&self) -> FieldType

Source

pub fn field_code(&self) -> &str

Trait Implementations§

Source§

impl Clone for FieldProperty

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for FieldProperty

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for FieldProperty

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for FieldProperty

Source§

impl From<CalcFieldProperty> for FieldProperty

Source§

fn from(property: CalcFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<CategoryFieldProperty> for FieldProperty

Source§

fn from(property: CategoryFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<CheckBoxFieldProperty> for FieldProperty

Source§

fn from(property: CheckBoxFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<CreatedTimeFieldProperty> for FieldProperty

Source§

fn from(property: CreatedTimeFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<CreatorFieldProperty> for FieldProperty

Source§

fn from(property: CreatorFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<DateFieldProperty> for FieldProperty

Source§

fn from(property: DateFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<DateTimeFieldProperty> for FieldProperty

Source§

fn from(property: DateTimeFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<DropDownFieldProperty> for FieldProperty

Source§

fn from(property: DropDownFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<FileFieldProperty> for FieldProperty

Source§

fn from(property: FileFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<GroupFieldProperty> for FieldProperty

Source§

fn from(property: GroupFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<GroupSelectFieldProperty> for FieldProperty

Source§

fn from(property: GroupSelectFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<LinkFieldProperty> for FieldProperty

Source§

fn from(property: LinkFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<ModifierFieldProperty> for FieldProperty

Source§

fn from(property: ModifierFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<MultiLineTextFieldProperty> for FieldProperty

Source§

fn from(property: MultiLineTextFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<MultiSelectFieldProperty> for FieldProperty

Source§

fn from(property: MultiSelectFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<NumberFieldProperty> for FieldProperty

Source§

fn from(property: NumberFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<OrganizationSelectFieldProperty> for FieldProperty

Source§

fn from(property: OrganizationSelectFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<RadioButtonFieldProperty> for FieldProperty

Source§

fn from(property: RadioButtonFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<RecordNumberFieldProperty> for FieldProperty

Source§

fn from(property: RecordNumberFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<ReferenceTableFieldProperty> for FieldProperty

Source§

fn from(property: ReferenceTableFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<RichTextFieldProperty> for FieldProperty

Source§

fn from(property: RichTextFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<SingleLineTextFieldProperty> for FieldProperty

Source§

fn from(property: SingleLineTextFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<StatusAssigneeFieldProperty> for FieldProperty

Source§

fn from(property: StatusAssigneeFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<StatusFieldProperty> for FieldProperty

Source§

fn from(property: StatusFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<SubtableFieldProperty> for FieldProperty

Source§

fn from(property: SubtableFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<TimeFieldProperty> for FieldProperty

Source§

fn from(property: TimeFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<UpdatedTimeFieldProperty> for FieldProperty

Source§

fn from(property: UpdatedTimeFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl From<UserSelectFieldProperty> for FieldProperty

Source§

fn from(property: UserSelectFieldProperty) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for FieldProperty

Source§

fn eq(&self, other: &FieldProperty) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for FieldProperty

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for FieldProperty

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V