# MarkupEnumMember

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/metadata/struct-markupenummember/

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

```rust
struct MarkupEnumMember
```

A member of an enumeration.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/metadata/markup_type.rs#L808)

## Members

- [`name`](#struct_field-name)
- [`value`](#struct_field-value)
- [`rust_variant`](#struct_field-rust_variant)
- [`get`](#function-get)

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

### name

```rust
name: &'static str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/metadata/markup_type.rs#L809)

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

### value

```rust
value: i64
```

The numeric value (the bits, for a flags enumeration). The member as a
value of the enumeration type is `get`: the conversion
of this value (`MarkupType::enum_from_value`), so that a member
costs no code of its own.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/metadata/markup_type.rs#L814)

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

### rust_variant

```rust
rust_variant: Option<&'static str>
```

The identifier of the Rust variant of a plain enumeration (the member
name unless the declaration renames it), for the emitter of Rust
source: the member is `<public path of the type>::<rust_variant>`.
`None` for the members of a set of flags (their constants are
arbitrary expressions).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/metadata/markup_type.rs#L820)

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

### get

```rust
fn get(self: &Self, markup: &MarkupType) -> Option<BoxedValue>
```

The member as a value of the enumeration type `markup` (the
enumeration that lists it): the value of the enumeration with the
numeric value of the member. `None` only for metadata without
`MarkupType::enum_from_value`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/metadata/markup_type.rs#L828)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`

## Availability

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