Finished refresh token and remove all warns
This commit is contained in:
@ -10,18 +10,18 @@ use skytable::{
|
||||
|
||||
|
||||
pub struct Users {
|
||||
pub login: String,
|
||||
pub uuid: String,
|
||||
pub login: String,
|
||||
pub password: String,
|
||||
pub email: String,
|
||||
pub tokens: Vec<Value>,
|
||||
}
|
||||
|
||||
impl Users {
|
||||
pub fn new(login: String, uuid: String, password: String, email: String, tokens: Vec<Value>) -> Self {
|
||||
pub fn new(uuid: String, login: String, password: String, email: String, tokens: Vec<Value>) -> Self {
|
||||
Self {
|
||||
login,
|
||||
uuid,
|
||||
login,
|
||||
password,
|
||||
email,
|
||||
tokens,
|
||||
@ -31,8 +31,8 @@ impl Users {
|
||||
|
||||
impl SQParam for Users {
|
||||
fn append_param(&self, q: &mut Vec<u8>) -> usize {
|
||||
self.login.append_param(q)
|
||||
+ self.uuid.append_param(q)
|
||||
self.uuid.append_param(q)
|
||||
+ self.login.append_param(q)
|
||||
+ self.password.append_param(q)
|
||||
+ self.email.append_param(q)
|
||||
}
|
||||
@ -40,7 +40,7 @@ impl SQParam for Users {
|
||||
|
||||
impl FromResponse for Users {
|
||||
fn from_response(resp: Response) -> ClientResult<Self> {
|
||||
let (login, uuid, password, email, tokens) = FromResponse::from_response(resp)?;
|
||||
Ok(Self::new(login, uuid, password, email, tokens))
|
||||
let (uuid, login, password, email, tokens) = FromResponse::from_response(resp)?;
|
||||
Ok(Self::new(uuid, login, password, email, tokens))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user