Struct yewprint::NodeData[][src]

pub struct NodeData<T> {
    pub disabled: bool,
    pub has_caret: bool,
    pub icon: Option<IconName>,
    pub icon_color: Option<String>,
    pub icon_intent: Option<Intent>,
    pub is_expanded: bool,
    pub is_selected: bool,
    pub label: VNode,
    pub secondary_label: Option<VNode>,
    pub data: T,
}

Fields

disabled: boolhas_caret: boolicon: Option<IconName>icon_color: Option<String>icon_intent: Option<Intent>is_expanded: boolis_selected: boollabel: VNodesecondary_label: Option<VNode>data: T

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Convert self to an optional value of a Properties struct.

Convert self to a value of a Properties struct.

Convert self to a value of a Properties struct.

If self and new aren’t equal, assigns new to self and returns true, otherwise returns false. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.