blob: 4fdfd887f68ae1c434fbd547a02f3570e831e5f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
use std::fmt::{self, Display};
use sqlx::FromRow;
#[derive(Debug, FromRow)]
pub struct Task {
pub test: String,
}
impl Display for Task {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "test: {}", self.test)
}
}
|