mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-16 01:14:02 +00:00
cb753b045f
* Group imports with rustfmt * Running cargo fmt again. Co-authored-by: Felix Ableitner <me@nutomic.com>
20 lines
673 B
Rust
20 lines
673 B
Rust
use crate::newtypes::LocalUserId;
|
|
#[cfg(feature = "full")]
|
|
use crate::schema::password_reset_request;
|
|
|
|
#[derive(PartialEq, Eq, Debug)]
|
|
#[cfg_attr(feature = "full", derive(Queryable, Identifiable))]
|
|
#[cfg_attr(feature = "full", diesel(table_name = password_reset_request))]
|
|
pub struct PasswordResetRequest {
|
|
pub id: i32,
|
|
pub token_encrypted: String,
|
|
pub published: chrono::NaiveDateTime,
|
|
pub local_user_id: LocalUserId,
|
|
}
|
|
|
|
#[cfg_attr(feature = "full", derive(Insertable, AsChangeset))]
|
|
#[cfg_attr(feature = "full", diesel(table_name = password_reset_request))]
|
|
pub struct PasswordResetRequestForm {
|
|
pub local_user_id: LocalUserId,
|
|
pub token_encrypted: String,
|
|
}
|