# Node

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer-core/struct-node/

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

```rust
struct Node
```



[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Core/ast.rs#L74)

## Members

- [`id`](#struct_field-id)
- [`kind`](#struct_field-kind)
- [`name`](#struct_field-name)
- [`namespace_uri`](#struct_field-namespace_uri)
- [`parent`](#struct_field-parent)
- [`children`](#struct_field-children)
- [`attributes`](#struct_field-attributes)
- [`span`](#struct_field-span)
- [`name_span`](#struct_field-name_span)
- [`opening_span`](#struct_field-opening_span)
- [`closing_span`](#struct_field-closing_span)
- [`self_closing`](#struct_field-self_closing)
- [`text`](#struct_field-text)
- [`is_element`](#function-is_element)
- [`attribute`](#function-attribute)
- [`attribute_info`](#function-attribute_info)
- [`local_name`](#function-local_name)
- [`xaml_name`](#function-xaml_name)

<a id="struct_field-id"></a>

### id

```rust
id: NodeId
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Core/ast.rs#L75)

<a id="struct_field-kind"></a>

### kind

```rust
kind: NodeKind
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Core/ast.rs#L76)

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

### name

```rust
name: String
```

Lexical qualified name for elements, empty for text and trivia.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Core/ast.rs#L78)

<a id="struct_field-namespace_uri"></a>

### namespace_uri

```rust
namespace_uri: Option<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Core/ast.rs#L79)

<a id="struct_field-parent"></a>

### parent

```rust
parent: Option<NodeId>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Core/ast.rs#L80)

<a id="struct_field-children"></a>

### children

```rust
children: Vec<NodeId>
```

All syntax children in source order, including whitespace and comments.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Core/ast.rs#L82)

<a id="struct_field-attributes"></a>

### attributes

```rust
attributes: Vec<Attribute>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Core/ast.rs#L83)

<a id="struct_field-span"></a>

### span

```rust
span: SourceSpan
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Core/ast.rs#L84)

<a id="struct_field-name_span"></a>

### name_span

```rust
name_span: SourceSpan
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Core/ast.rs#L85)

<a id="struct_field-opening_span"></a>

### opening_span

```rust
opening_span: SourceSpan
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Core/ast.rs#L86)

<a id="struct_field-closing_span"></a>

### closing_span

```rust
closing_span: Option<SourceSpan>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Core/ast.rs#L87)

<a id="struct_field-self_closing"></a>

### self_closing

```rust
self_closing: bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Core/ast.rs#L88)

<a id="struct_field-text"></a>

### text

```rust
text: Option<String>
```

Decoded text or unwrapped comment, CDATA or processing-instruction text.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Core/ast.rs#L90)

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

### is_element

```rust
fn is_element(self: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Core/ast.rs#L93)

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

### attribute

```rust
fn attribute(self: &Self, name: &str) -> Option<&str>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Core/ast.rs#L96)

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

### attribute_info

```rust
fn attribute_info(self: &Self, name: &str) -> Option<&Attribute>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Core/ast.rs#L102)

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

### local_name

```rust
fn local_name(self: &Self) -> &str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Core/ast.rs#L105)

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

### xaml_name

```rust
fn xaml_name(self: &Self) -> Option<&str>
```

XAML name in its resolved namespace, with unprefixed Name as fallback.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Core/ast.rs#L109)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `DeserializeOwned`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Serialize`
- `Deserialize<'de>`

## Availability

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