toasty-core 0.5.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
16
//! Relation types that connect models to each other.
//!
//! Toasty supports three kinds of relations:
//!
//! - [`BelongsTo`] -- the owning side; stores the foreign key fields.
//! - [`HasMany`] -- the inverse side for a one-to-many relationship.
//! - [`HasOne`] -- the inverse side for a one-to-one relationship.

mod belongs_to;
pub use belongs_to::BelongsTo;

mod has_many;
pub use has_many::HasMany;

mod has_one;
pub use has_one::HasOne;