pub struct PropertyMeta {Show 15 fields
pub field_name: Cow<'static, str>,
pub column_name: Cow<'static, str>,
pub type_id: TypeId,
pub type_name: Cow<'static, str>,
pub is_primary_key: bool,
pub is_auto_increment: bool,
pub is_sequence: bool,
pub sequence_name: Option<Cow<'static, str>>,
pub is_required: bool,
pub is_foreign_key: bool,
pub is_concurrency_token: bool,
pub max_length: Option<usize>,
pub is_unique: bool,
pub has_index: bool,
pub is_not_mapped: bool,
}Expand description
Metadata describing a property (column) of an entity type.
Corresponds to EFCore’s IProperty.
Fields§
§field_name: Cow<'static, str>The Rust field name.
column_name: Cow<'static, str>The database column name (may differ from field_name via #column).
type_id: TypeIdThe Rust type identifier.
type_name: Cow<'static, str>Human-readable type name for debugging.
is_primary_key: boolWhether this property is part of the primary key.
is_auto_increment: boolWhether this property is auto-increment / identity.
is_sequence: boolWhether this property is backed by a database sequence (PostgreSQL). On non-PG providers, falls back to auto_increment behavior.
sequence_name: Option<Cow<'static, str>>The sequence name when is_sequence is true (PostgreSQL only).
is_required: boolWhether this property is required (NOT NULL).
is_foreign_key: boolWhether this property is a foreign key.
is_concurrency_token: boolWhether this property is used for optimistic concurrency control.
max_length: Option<usize>Maximum length for string columns (None = unbounded).
is_unique: boolWhether this property has a unique index.
has_index: boolWhether this property has a regular index.
is_not_mapped: boolWhether this property is excluded from mapping (NotMapped).
Trait Implementations§
Source§impl Clone for PropertyMeta
impl Clone for PropertyMeta
Source§fn clone(&self) -> PropertyMeta
fn clone(&self) -> PropertyMeta
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more