pub struct ColumnMeta {
pub name: &'static str,
pub sql_type: &'static str,
pub not_null: bool,
pub pk: bool,
pub renamed_from: Option<&'static str>,
}Expand description
컬럼 메타 — #[entity] 생성, 스냅샷 대조·생성에 사용 (명세 §7)
Fields§
§name: &'static str§sql_type: &'static strSQLite 타입 (빈 문자열 = typeless)
not_null: bool§pk: bool§renamed_from: Option<&'static str>rename 힌트 (명세 §8.3) — diff 초안 전용
Trait Implementations§
Source§impl Clone for ColumnMeta
impl Clone for ColumnMeta
Source§fn clone(&self) -> ColumnMeta
fn clone(&self) -> ColumnMeta
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 moreimpl Copy for ColumnMeta
Auto Trait Implementations§
impl Freeze for ColumnMeta
impl RefUnwindSafe for ColumnMeta
impl Send for ColumnMeta
impl Sync for ColumnMeta
impl Unpin for ColumnMeta
impl UnsafeUnpin for ColumnMeta
impl UnwindSafe for ColumnMeta
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