ΑZ
md5_post_signature
, которое нужно сериализовать как md5(sorted + "const string")
, где sorted
это отсортированные по алфавиту названия полей в формате f_name=value
? #[derive(Debug, Serialize)]
pub struct CheckIfUserExists<'a> {
email: &'a str,
#[serde(with = "string")]
birthday: Birthday,
#[serde(with = "string")]
name: Name<'a>,
}```sorted для этой структуры выглядит примерно так:
```birthday=self.birthday&email=self.email&name=self.name
#[derive(Debug, Serialize)]держи
pub struct CheckIfUserExists<'a> {
email: &'a str,
#[serde(with = "string")]
birthday: Birthday,
#[serde(with = "string")]
name: Name<'a>,
f_name: String
}