This commit is contained in:
parent
a0afb6dfd3
commit
fd5f1899c1
4 changed files with 53 additions and 17 deletions
|
|
@ -11,6 +11,7 @@ pub struct Contact {
|
|||
pub id: DbId,
|
||||
pub birthday: Option<Birthday>,
|
||||
pub manually_freshened_at: Option<DateTime<Utc>>,
|
||||
pub lives_with: String,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
|
|
@ -55,10 +56,13 @@ impl FromRow<'_, SqliteRow> for Contact {
|
|||
.map(|d| d.to_utc())
|
||||
});
|
||||
|
||||
let lives_with: String = row.try_get("lives_with")?;
|
||||
|
||||
Ok(Self {
|
||||
id,
|
||||
birthday,
|
||||
manually_freshened_at,
|
||||
lives_with,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue