pub struct UiNodeDivisionAttributes {
pub class: Option<String>,
pub data: Option<HashMap<String, String>>,
pub id: String,
pub node_type: NodeTypeEnum,
}Expand description
UiNodeDivisionAttributes : Division sections are used for interactive widgets that require a hook in the DOM / view.
Fields§
§class: Option<String>A classname that should be rendered into the DOM.
data: Option<HashMap<String, String>>Data is a map of key-value pairs that are passed to the division. They may be used for data-... attributes.
id: StringA unique identifier
node_type: NodeTypeEnumNodeType represents this node’s type. It is a mirror of node.type and is primarily used to allow compatibility with OpenAPI 3.0. In this struct it technically always is "script". text Text input Input img Image a Anchor script Script div Division
Implementations§
Source§impl UiNodeDivisionAttributes
impl UiNodeDivisionAttributes
Sourcepub fn new(id: String, node_type: NodeTypeEnum) -> UiNodeDivisionAttributes
pub fn new(id: String, node_type: NodeTypeEnum) -> UiNodeDivisionAttributes
Division sections are used for interactive widgets that require a hook in the DOM / view.
Trait Implementations§
Source§impl Clone for UiNodeDivisionAttributes
impl Clone for UiNodeDivisionAttributes
Source§fn clone(&self) -> UiNodeDivisionAttributes
fn clone(&self) -> UiNodeDivisionAttributes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UiNodeDivisionAttributes
impl Debug for UiNodeDivisionAttributes
Source§impl Default for UiNodeDivisionAttributes
impl Default for UiNodeDivisionAttributes
Source§fn default() -> UiNodeDivisionAttributes
fn default() -> UiNodeDivisionAttributes
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UiNodeDivisionAttributes
impl<'de> Deserialize<'de> for UiNodeDivisionAttributes
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UiNodeDivisionAttributes
impl PartialEq for UiNodeDivisionAttributes
Source§impl Serialize for UiNodeDivisionAttributes
impl Serialize for UiNodeDivisionAttributes
impl StructuralPartialEq for UiNodeDivisionAttributes
Auto Trait Implementations§
impl Freeze for UiNodeDivisionAttributes
impl RefUnwindSafe for UiNodeDivisionAttributes
impl Send for UiNodeDivisionAttributes
impl Sync for UiNodeDivisionAttributes
impl Unpin for UiNodeDivisionAttributes
impl UnwindSafe for UiNodeDivisionAttributes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more