Struct dim_database::user::Login
source · Fields§
§username: String
§password: String
§invite_token: Option<String>
Implementations§
source§impl Login
impl Login
sourcepub async fn invite_token_valid(
&self,
conn: &mut Transaction<'_>
) -> Result<bool, DatabaseError>
pub async fn invite_token_valid(
&self,
conn: &mut Transaction<'_>
) -> Result<bool, DatabaseError>
Will return whether the token is valid and hasnt been claimed yet.
pub async fn invalidate_token(
&self,
conn: &mut Transaction<'_>
) -> Result<usize, DatabaseError>
pub async fn new_invite(
conn: &mut Transaction<'_>
) -> Result<String, DatabaseError>
pub async fn get_all_invites(
conn: &mut Transaction<'_>
) -> Result<Vec<String>, DatabaseError>
pub async fn delete_token(
conn: &mut Transaction<'_>,
token: String
) -> Result<usize, DatabaseError>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Login
impl<'de> Deserialize<'de> for Login
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more