conundrum_db 0.1.2

Be less dum.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use conundrum_lang::lifted_models::primitives::db_id::DatabaseId;

pub struct OneToMany<IDType = DatabaseId>(Vec<IDType>);

impl<IDType> From<Vec<IDType>> for OneToMany<IDType> {
    fn from(value: Vec<IDType>) -> Self {
        Self(value)
    }
}

impl<T> Default for OneToMany<T> {
    fn default() -> Self {
        Self(Vec::new())
    }
}