ory_client_client/models/
ui_node.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/// UiNode : Nodes are represented as HTML elements or their native UI equivalents. For example, a node can be an `<img>` tag, or an `<input element>` but also `some plain text`.
12
13
14
15#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UiNode {
17    #[serde(rename = "attributes")]
18    pub attributes: Box<crate::models::UiNodeAttributes>,
19    #[serde(rename = "group")]
20    pub group: String,
21    #[serde(rename = "messages")]
22    pub messages: Vec<crate::models::UiText>,
23    #[serde(rename = "meta")]
24    pub meta: Box<crate::models::Meta>,
25    #[serde(rename = "type")]
26    pub _type: String,
27}
28
29impl UiNode {
30    /// Nodes are represented as HTML elements or their native UI equivalents. For example, a node can be an `<img>` tag, or an `<input element>` but also `some plain text`.
31    pub fn new(attributes: crate::models::UiNodeAttributes, group: String, messages: Vec<crate::models::UiText>, meta: crate::models::Meta, _type: String) -> UiNode {
32        UiNode {
33            attributes: Box::new(attributes),
34            group,
35            messages,
36            meta: Box::new(meta),
37            _type,
38        }
39    }
40}
41
42