datasources 0.1.5

Async datasource interfaces, middleware, registry, and test doubles
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(Clone)]
pub struct Association {
    pub parent: String,
    pub related: String,
}

impl Association {
    pub fn new(parent: impl Into<String>, related: impl Into<String>) -> Self {
        Self {
            parent: parent.into(),
            related: related.into(),
        }
    }
}