pub struct UiNode {
pub attributes: Box<UiNodeAttributes>,
pub group: GroupEnum,
pub messages: Vec<UiText>,
pub meta: Box<UiNodeMeta>,
pub type: TypeEnum,
}Expand description
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.
Fields§
§attributes: Box<UiNodeAttributes>§group: GroupEnumGroup specifies which group (e.g. password authenticator) this node belongs to. default DefaultGroup password PasswordGroup oidc OpenIDConnectGroup profile ProfileGroup link LinkGroup code CodeGroup totp TOTPGroup lookup_secret LookupGroup webauthn WebAuthnGroup passkey PasskeyGroup identifier_first IdentifierFirstGroup captcha CaptchaGroup saml SAMLGroup
messages: Vec<UiText>§meta: Box<UiNodeMeta>§type: TypeEnumThe node’s type text Text input Input img Image a Anchor script Script div Division
Implementations§
Source§impl UiNode
impl UiNode
Sourcepub fn new(
attributes: UiNodeAttributes,
group: GroupEnum,
messages: Vec<UiText>,
meta: UiNodeMeta,
type: TypeEnum,
) -> UiNode
pub fn new( attributes: UiNodeAttributes, group: GroupEnum, messages: Vec<UiText>, meta: UiNodeMeta, type: TypeEnum, ) -> 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.