13 lines
237 B
Rust
13 lines
237 B
Rust
|
|
use chrono::{DateTime, Utc};
|
||
|
|
use sqlx::{Encode, postgres::Postgres};
|
||
|
|
use uuid::Uuid;
|
||
|
|
|
||
|
|
pub enum Sqlizable {
|
||
|
|
Integer(i32),
|
||
|
|
Text(String),
|
||
|
|
Timestamptz(DateTime<Utc>),
|
||
|
|
Uuid(Uuid),
|
||
|
|
}
|
||
|
|
|
||
|
|
impl Encode<'a, Postgres> for Sqlizable {}
|