fusionauth_rust_client/models/
meta_data.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct MetaData {
16 #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
17 pub data: Option<std::collections::HashMap<String, serde_json::Value>>,
18 #[serde(rename = "device", skip_serializing_if = "Option::is_none")]
19 pub device: Option<Box<models::DeviceInfo>>,
20 #[serde(rename = "scopes", skip_serializing_if = "Option::is_none")]
21 pub scopes: Option<Vec<serde_json::Value>>,
22}
23
24impl MetaData {
25 pub fn new() -> MetaData {
26 MetaData {
27 data: None,
28 device: None,
29 scopes: None,
30 }
31 }
32}
33