Skip to content

Commit

Permalink
Derive serde for Disclosure (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulmth authored Dec 7, 2023
1 parent 8b6592d commit 30d7890
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/disclosure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
// SPDX-License-Identifier: Apache-2.0

use crate::Error;
use serde::Deserialize;
use serde::Serialize;
use serde_json::Value;
use std::fmt::Display;

/// Represents an elements constructing a disclosure.
/// Object properties and array elements disclosures are supported.
///
/// See: https://www.ietf.org/archive/id/draft-ietf-oauth-selective-disclosure-jwt-06.html#name-disclosures
#[derive(Debug, Clone, PartialEq, Eq)]
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct Disclosure {
/// The salt value.
pub salt: String,
Expand Down

0 comments on commit 30d7890

Please sign in to comment.