What type do I create a property of a struct in Rust for a field that in my database is Point?

77 views Asked by At

I am new to rust and I don't have much experience, what I am trying is to create a new row in my database in which the table is the following from a MariaDB database

enter image description here

and for that he planned to use a structure like the following

#[derive(sqlx::FromRow, Serialize, Deserialize, Debug)]
pub struct Bar {
    pub id: Option<i32>,
    pub name: Option<String>,
    pub description: Option<String>,
    pub address: Option<String>,
    pub create_At: Option<NaiveDateTime>,
    pub update: Option<NaiveDateTime>,
    pub schedule: Option<String>,
    pub capacitance_idcapacitance: Option<i32>,
    // pub coors
}

And my question is, what type did the Coors field create? Or how could I save this information in the database?

0

There are 0 answers