Add repr transparent
This commit is contained in:
parent
5ca754e972
commit
65d04be7f3
1 changed files with 2 additions and 0 deletions
|
@ -12,11 +12,13 @@ use crate::schema;
|
||||||
#[derive(Debug, Clone, FromSqlRow, AsExpression)]
|
#[derive(Debug, Clone, FromSqlRow, AsExpression)]
|
||||||
#[diesel(sql_type = sql::BigInt)]
|
#[diesel(sql_type = sql::BigInt)]
|
||||||
#[diesel(check_for_backend(Pg))]
|
#[diesel(check_for_backend(Pg))]
|
||||||
|
#[repr(transparent)]
|
||||||
pub struct TelegramId(pub teloxide::types::ChatId);
|
pub struct TelegramId(pub teloxide::types::ChatId);
|
||||||
|
|
||||||
#[derive(Debug, Clone, FromSqlRow, AsExpression)]
|
#[derive(Debug, Clone, FromSqlRow, AsExpression)]
|
||||||
#[diesel(sql_type = schema::sql_types::WenglinT)]
|
#[diesel(sql_type = schema::sql_types::WenglinT)]
|
||||||
#[diesel(check_for_backend(Pg))]
|
#[diesel(check_for_backend(Pg))]
|
||||||
|
#[repr(transparent)]
|
||||||
pub struct WengLinRating(pub skillratings::weng_lin::WengLinRating);
|
pub struct WengLinRating(pub skillratings::weng_lin::WengLinRating);
|
||||||
|
|
||||||
#[derive(Debug, Clone, Queryable, QueryableByName, Identifiable, Selectable)]
|
#[derive(Debug, Clone, Queryable, QueryableByName, Identifiable, Selectable)]
|
||||||
|
|
Loading…
Reference in a new issue