1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
 * Ory Hydra API
 *
 * Documentation for all of Ory Hydra's APIs. 
 *
 * The version of the OpenAPI document: v2.2.0
 * Contact: hi@ory.sh
 * Generated by: https://openapi-generator.tech
 */

/// CredentialSupportedDraft00 : Includes information about the supported verifiable credentials.



#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct CredentialSupportedDraft00 {
    /// OpenID Connect Verifiable Credentials Cryptographic Binding Methods Supported  Contains a list of cryptographic binding methods supported for signing the proof.
    #[serde(rename = "cryptographic_binding_methods_supported", skip_serializing_if = "Option::is_none")]
    pub cryptographic_binding_methods_supported: Option<Vec<String>>,
    /// OpenID Connect Verifiable Credentials Cryptographic Suites Supported  Contains a list of cryptographic suites methods supported for signing the proof.
    #[serde(rename = "cryptographic_suites_supported", skip_serializing_if = "Option::is_none")]
    pub cryptographic_suites_supported: Option<Vec<String>>,
    /// OpenID Connect Verifiable Credentials Format  Contains the format that is supported by this authorization server.
    #[serde(rename = "format", skip_serializing_if = "Option::is_none")]
    pub format: Option<String>,
    /// OpenID Connect Verifiable Credentials Types  Contains the types of verifiable credentials supported.
    #[serde(rename = "types", skip_serializing_if = "Option::is_none")]
    pub types: Option<Vec<String>>,
}

impl Default for CredentialSupportedDraft00 {
    fn default() -> Self {
        Self::new()
    }
}

impl CredentialSupportedDraft00 {
    /// Includes information about the supported verifiable credentials.
    pub fn new() -> CredentialSupportedDraft00 {
        CredentialSupportedDraft00 {
                cryptographic_binding_methods_supported: None,
                cryptographic_suites_supported: None,
                format: None,
                types: None,
        }
    }
}