pub struct ReadModelSchema {
pub model_name: String,
pub table_name: String,
pub columns: Vec<ColumnDef>,
pub primary_key: PrimaryKey,
pub version_column: Option<String>,
pub foreign_keys: Vec<ForeignKey>,
pub indexes: Vec<IndexDef>,
pub relationships: Vec<RelationshipDef>,
}Expand description
Schema metadata for one relational read-model table.
Fields§
§model_name: String§table_name: String§columns: Vec<ColumnDef>§primary_key: PrimaryKey§version_column: Option<String>§foreign_keys: Vec<ForeignKey>§indexes: Vec<IndexDef>§relationships: Vec<RelationshipDef>Implementations§
Source§impl ReadModelSchema
impl ReadModelSchema
pub fn validate(&self) -> Result<(), ReadModelError>
Trait Implementations§
Source§impl Clone for ReadModelSchema
impl Clone for ReadModelSchema
Source§fn clone(&self) -> ReadModelSchema
fn clone(&self) -> ReadModelSchema
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 ReadModelSchema
impl Debug for ReadModelSchema
Source§impl PartialEq for ReadModelSchema
impl PartialEq for ReadModelSchema
Source§fn eq(&self, other: &ReadModelSchema) -> bool
fn eq(&self, other: &ReadModelSchema) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ReadModelSchema
impl StructuralPartialEq for ReadModelSchema
Auto Trait Implementations§
impl Freeze for ReadModelSchema
impl RefUnwindSafe for ReadModelSchema
impl Send for ReadModelSchema
impl Sync for ReadModelSchema
impl Unpin for ReadModelSchema
impl UnsafeUnpin for ReadModelSchema
impl UnwindSafe for ReadModelSchema
Blanket Implementations§
Source§impl<T> AsyncAggregateBuilder for T
impl<T> AsyncAggregateBuilder for T
fn async_aggregate<A: Aggregate>(self) -> AsyncAggregateRepository<Self, A>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Queueable for T
impl<T> Queueable for T
Source§fn queued_async(self) -> QueuedRepository<Self, InMemoryAsyncLockManager>
fn queued_async(self) -> QueuedRepository<Self, InMemoryAsyncLockManager>
Wrap with the default async lock manager. Pair with
.async_aggregate::<T>() for per-aggregate serialization over the async
repository surface.Source§fn queued_async_with<L: AsyncLockManager>(
self,
lock_manager: L,
) -> QueuedRepository<Self, L>
fn queued_async_with<L: AsyncLockManager>( self, lock_manager: L, ) -> QueuedRepository<Self, L>
Wrap with a custom async lock manager.