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(Debug, Clone, PartialEq, Eq)]
pub struct ColumnDefault {
    pub value: String,
    pub name: Option<String>,
}

impl ColumnDefault {
    pub fn new(value: impl Into<String>, name: Option<&str>) -> Self {
        Self {
            value: value.into(),
            name: name.map(str::to_string),
        }
    }
}