pub struct PropertyMeta {Show 13 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_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_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
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 moreAuto Trait Implementations§
impl Freeze for PropertyMeta
impl RefUnwindSafe for PropertyMeta
impl Send for PropertyMeta
impl Sync for PropertyMeta
impl Unpin for PropertyMeta
impl UnsafeUnpin for PropertyMeta
impl UnwindSafe for PropertyMeta
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