# Attribute

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

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

```rust
struct Attribute
```



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

## Members

- [`name`](#struct_field-name)
- [`value`](#struct_field-value)
- [`namespace_uri`](#struct_field-namespace_uri)
- [`span`](#struct_field-span)
- [`name_span`](#struct_field-name_span)
- [`value_span`](#struct_field-value_span)
- [`quote`](#struct_field-quote)
- [`markup`](#function-markup)
- [`is_namespace`](#function-is_namespace)

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

### name

```rust
name: String
```

Lexical qualified name, including namespace prefix or attached owner.

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

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

### value

```rust
value: String
```

XML-decoded value. `value_span` retains the original lexical spelling.

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

<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#L57)

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

### span

```rust
span: SourceSpan
```

Range from the name to the closing quote; leading whitespace is excluded.

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

<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#L60)

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

### value_span

```rust
value_span: SourceSpan
```



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

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

### quote

```rust
quote: char
```



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

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

### markup

```rust
fn markup(self: &Self) -> Result<MarkupValue, String>
```



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

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

### is_namespace

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



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

## 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/).
