pub struct SchemaDef {
pub version: u32,
pub ddl: Vec<&'static str>,
pub tables: Vec<TableMeta>,
}Expand description
테이블 스키마 정의 — #[database] 매크로가 엔티티 메타에서 구성
Fields§
§version: u32스키마 버전 (#[database(version = N)])
ddl: Vec<&'static str>테이블·인덱스 DDL (실행 순서대로)
tables: Vec<TableMeta>테이블·컬럼 메타 — 스냅샷 생성·해시 대조용 (명세 §7.4)
Implementations§
Source§impl SchemaDef
impl SchemaDef
Sourcepub fn to_snapshot(&self) -> SchemaSnapshot
pub fn to_snapshot(&self) -> SchemaSnapshot
엔티티 메타 → 스냅샷 변환 (매크로·런타임 공유 모델, 명세 §3)
Auto Trait Implementations§
impl Freeze for SchemaDef
impl RefUnwindSafe for SchemaDef
impl Send for SchemaDef
impl Sync for SchemaDef
impl Unpin for SchemaDef
impl UnsafeUnpin for SchemaDef
impl UnwindSafe for SchemaDef
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