ory_client_client/models/identity_credentials.rs
1/*
2 * Ory APIs
3 *
4 * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5 *
6 * The version of the OpenAPI document: v0.0.1-alpha.1
7 * Contact: support@ory.sh
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// IdentityCredentials : Credentials represents a specific credential type
12
13
14
15#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
16pub struct IdentityCredentials {
17 #[serde(rename = "config", skip_serializing_if = "Option::is_none")]
18 pub config: Option<serde_json::Value>,
19 /// Identifiers represents a list of unique identifiers this credential type matches.
20 #[serde(rename = "identifiers", skip_serializing_if = "Option::is_none")]
21 pub identifiers: Option<Vec<String>>,
22 /// and so on.
23 #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
24 pub _type: Option<String>,
25}
26
27impl IdentityCredentials {
28 /// Credentials represents a specific credential type
29 pub fn new() -> IdentityCredentials {
30 IdentityCredentials {
31 config: None,
32 identifiers: None,
33 _type: None,
34 }
35 }
36}
37
38