# SankeyNode

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-livecharts/struct-sankeynode/

**struct** · [`ferroui-controls-livecharts`](/docs/0.5.0/api/ferroui-controls-livecharts/) · v0.5.0

```rust
struct SankeyNode
```

A node of a Sankey series (`SankeyNode`): its label and, in place of the source's
`NodeColorMapper`, an optional colour of its own. Links refer to the node object, as the
source links by reference; its value is computed by the layout.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/node_models.rs#L22)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`with_name`](#function-with_name)
- [`entity_id`](#function-entity_id)
- [`snapshot`](#function-snapshot)
- [`name`](#function-name)
- [`set_name`](#function-set_name)
- [`color`](#function-color)
- [`set_color`](#function-set_color)
- [`name_property`](#function-name_property)
- [`color_property`](#function-color_property)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/node_models.rs#L26)

<a id="function-to_ref"></a>

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<SankeyNode>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/node_models.rs#L26)

<a id="function-construct"></a>

### construct

```rust
fn construct() -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/node_models.rs#L32)

<a id="function-new"></a>

### new

```rust
fn new() -> Ref<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/node_models.rs#L38)

<a id="function-with_name"></a>

### with_name

```rust
fn with_name(name: impl Into<String>) -> Ref<Self>
```

A node with the given label (`SankeyNode(name)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/node_models.rs#L42)

<a id="function-entity_id"></a>

### entity_id

```rust
fn entity_id(self: &Self) -> u64
```

The identity of the object, which the links and the engine use.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/node_models.rs#L48)

<a id="function-snapshot"></a>

### snapshot

```rust
fn snapshot(self: &Self) -> ferroui_livecharts::SankeyNode
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/node_models.rs#L51)

<a id="function-name"></a>

### name

```rust
fn name(self: &Self) -> String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/node_models.rs#L58)

<a id="function-set_name"></a>

### set_name

```rust
fn set_name(self: &Self, value: String)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/node_models.rs#L61)

<a id="function-color"></a>

### color

```rust
fn color(self: &Self) -> Option<Color>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/node_models.rs#L64)

<a id="function-set_color"></a>

### set_color

```rust
fn set_color(self: &Self, value: Option<Color>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/node_models.rs#L67)

<a id="function-name_property"></a>

### name_property

```rust
fn name_property() -> &'static StyledProperty<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/node_models.rs#L71)

<a id="function-color_property"></a>

### color_property

```rust
fn color_property() -> &'static StyledProperty<Option<Color>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/node_models.rs#L71)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<SankeyNode>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
