toasty-core 0.7.0

Core types, schema representations, and driver interface for Toasty
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Relation types that connect models to each other.
//!
//! Toasty supports three kinds of relations:
//!
//! - [`BelongsTo`] -- the owning side; stores the foreign key fields.
//! - [`Has`] -- the inverse side for one-to-many and one-to-one relationships.

mod belongs_to;
pub use belongs_to::BelongsTo;

mod has;
pub use has::{Cardinality, Has};

mod via;
pub use via::Via;