pub enum FieldMeaning {
Show 19 variants
Identifier,
ForeignKey,
EntityName,
Email,
Phone,
Url,
ImageUrl,
Money,
Percentage,
Quantity,
Status,
Category,
Boolean,
FreeText,
CreatedAt,
UpdatedAt,
DateTime,
Sensitive,
Custom(String),
}Expand description
Semantic meaning of a field, driving rendering and behavior decisions.
Known variants map to specific UI treatments (e.g., Money formats as currency,
Status renders as a badge). The Custom fallback captures domain-specific
meanings not covered by built-in variants.
Custom(String) must remain the last variant for correct serde deserialization.
Variants§
Identifier
ForeignKey
EntityName
Phone
Url
ImageUrl
Money
Percentage
Quantity
Status
Category
Boolean
FreeText
CreatedAt
UpdatedAt
DateTime
Sensitive
Custom(String)
Trait Implementations§
Source§impl Clone for FieldMeaning
impl Clone for FieldMeaning
Source§fn clone(&self) -> FieldMeaning
fn clone(&self) -> FieldMeaning
Returns a duplicate of the value. Read more
1.0.0 · 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 FieldMeaning
impl Debug for FieldMeaning
Source§impl<'de> Deserialize<'de> for FieldMeaning
impl<'de> Deserialize<'de> for FieldMeaning
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
Source§impl JsonSchema for FieldMeaning
impl JsonSchema for FieldMeaning
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for FieldMeaning
impl PartialEq for FieldMeaning
Source§impl Serialize for FieldMeaning
impl Serialize for FieldMeaning
impl Eq for FieldMeaning
impl StructuralPartialEq for FieldMeaning
Auto Trait Implementations§
impl Freeze for FieldMeaning
impl RefUnwindSafe for FieldMeaning
impl Send for FieldMeaning
impl Sync for FieldMeaning
impl Unpin for FieldMeaning
impl UnsafeUnpin for FieldMeaning
impl UnwindSafe for FieldMeaning
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