make u2f registration challenge Deserialize

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2020-11-02 13:07:38 +01:00
parent a6f8f84632
commit ad8fc652f6

View File

@ -78,7 +78,7 @@ struct ClientData {
/// A registration challenge to be sent to the `u2f.register` function in the browser.
///
/// Part of the U2F API, therefore `camelCase`.
#[derive(Clone, Debug, Serialize)]
#[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct RegistrationChallenge {
pub challenge: String,