pub struct SchemaMigrationEntityTarget { /* private fields */ }Expand description
SchemaMigrationEntityTarget
SchemaMigrationEntityTarget binds one canonical entity identity to the runtime model/path authority needed when schema evolution eventually emits row-level migration operations.
Implementations§
Source§impl SchemaMigrationEntityTarget
impl SchemaMigrationEntityTarget
Sourcepub fn for_entity<E>() -> Result<Self, InternalError>where
E: EntityKind + 'static,
pub fn for_entity<E>() -> Result<Self, InternalError>where
E: EntityKind + 'static,
Build one schema-evolution target from a generated entity type.
Sourcepub fn from_model(model: &'static EntityModel) -> Result<Self, InternalError>
pub fn from_model(model: &'static EntityModel) -> Result<Self, InternalError>
Build one schema-evolution target from a runtime entity model.
Sourcepub const fn name(self) -> EntityName
pub const fn name(self) -> EntityName
Return the canonical entity identity.
Sourcepub const fn model(self) -> &'static EntityModel
pub const fn model(self) -> &'static EntityModel
Return the runtime model that owns this schema-evolution target.
Sourcepub const fn runtime_path(self) -> &'static str
pub const fn runtime_path(self) -> &'static str
Return the runtime entity path consumed by commit runtime hooks.
Sourcepub fn schema_fingerprint(self) -> [u8; 16]
pub fn schema_fingerprint(self) -> [u8; 16]
Return the current commit schema fingerprint for this target model.
Trait Implementations§
Source§impl Clone for SchemaMigrationEntityTarget
impl Clone for SchemaMigrationEntityTarget
Source§fn clone(&self) -> SchemaMigrationEntityTarget
fn clone(&self) -> SchemaMigrationEntityTarget
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 moreSource§impl Debug for SchemaMigrationEntityTarget
impl Debug for SchemaMigrationEntityTarget
impl Copy for SchemaMigrationEntityTarget
Auto Trait Implementations§
impl Freeze for SchemaMigrationEntityTarget
impl RefUnwindSafe for SchemaMigrationEntityTarget
impl Send for SchemaMigrationEntityTarget
impl Sync for SchemaMigrationEntityTarget
impl Unpin for SchemaMigrationEntityTarget
impl UnsafeUnpin for SchemaMigrationEntityTarget
impl UnwindSafe for SchemaMigrationEntityTarget
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