1
Fork 0

Add repr transparent

This commit is contained in:
Steffo 2024-11-28 15:56:55 +01:00
parent 5ca754e972
commit 65d04be7f3
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -12,11 +12,13 @@ use crate::schema;
#[derive(Debug, Clone, FromSqlRow, AsExpression)]
#[diesel(sql_type = sql::BigInt)]
#[diesel(check_for_backend(Pg))]
#[repr(transparent)]
pub struct TelegramId(pub teloxide::types::ChatId);
#[derive(Debug, Clone, FromSqlRow, AsExpression)]
#[diesel(sql_type = schema::sql_types::WenglinT)]
#[diesel(check_for_backend(Pg))]
#[repr(transparent)]
pub struct WengLinRating(pub skillratings::weng_lin::WengLinRating);
#[derive(Debug, Clone, Queryable, QueryableByName, Identifiable, Selectable)]