Removed sqlx dep and fromrow from player
This commit is contained in:
parent
35639161bf
commit
ac93f4ba37
1169
Cargo.lock
generated
1169
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -14,9 +14,6 @@ repository = "https://github.com/franklinblanco/league-types.git"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
chrono = { version = "0.4", features = [ "serde" ] }
|
||||
rust_decimal = "1.26"
|
||||
sqlx = { version = "0.6", features = [ "runtime-tokio-native-tls" , "mysql" ] }
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
|
||||
|
||||
err = { git = "https://github.com/franklinblanco/err.git" }
|
||||
dev-dtos = { git = "https://github.com/franklinblanco/user-svc-dtos-rust.git" }
|
||||
|
@ -1,11 +1,10 @@
|
||||
use chrono::{Utc, DateTime, NaiveDate};
|
||||
use serde::{Serialize, Deserialize};
|
||||
use sqlx::FromRow;
|
||||
|
||||
use crate::dto::player::PlayerForCreationDto;
|
||||
|
||||
//TODO: Remove sensitive information from player struct
|
||||
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Eq, PartialOrd, Ord, Default, FromRow)]
|
||||
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Eq, PartialOrd, Ord, Default)]
|
||||
pub struct Player {
|
||||
pub id: u32,
|
||||
pub time_created: DateTime<Utc>,
|
||||
|
Loading…
Reference in New Issue
Block a user