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) } }