# DeclaredRust

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-build/type_system/enum-declaredrust/

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

```rust
enum DeclaredRust
```

What a declared member is in its declaration, with the Rust type it yields, as the one
text of the type (`ModelSet::expanded`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Build.Tasks/type_system/types.rs#L76)

## Members

- [`Getter`](#variant-getter)
- [`Setter`](#variant-setter)
- [`StaticGetter`](#variant-staticgetter)
- [`StaticSetter`](#variant-staticsetter)
- [`Method`](#variant-method)
- [`Parse`](#variant-parse)
- [`Constructor`](#variant-constructor)
- [`Field`](#variant-field)
- [`EnumMember`](#variant-enummember)

<a id="variant-getter"></a>

### Getter

```rust
Getter(String)
```

The getter of an instance property, and the type of the property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Build.Tasks/type_system/types.rs#L78)

<a id="variant-setter"></a>

### Setter

```rust
Setter
```

The setter of an instance property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Build.Tasks/type_system/types.rs#L80)

<a id="variant-staticgetter"></a>

### StaticGetter

```rust
StaticGetter(String)
```

The getter of a static property, and the type of the property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Build.Tasks/type_system/types.rs#L82)

<a id="variant-staticsetter"></a>

### StaticSetter

```rust
StaticSetter
```

The setter of a static property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Build.Tasks/type_system/types.rs#L84)

<a id="variant-method"></a>

### Method

```rust
Method(Option<String>)
```

A method, and the type it returns.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Build.Tasks/type_system/types.rs#L86)

<a id="variant-parse"></a>

### Parse

```rust
Parse
```

`parse:` of the type; it returns a value of the type.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Build.Tasks/type_system/types.rs#L88)

<a id="variant-constructor"></a>

### Constructor

```rust
Constructor
```

A constructor; it returns a value of the type.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Build.Tasks/type_system/types.rs#L90)

<a id="variant-field"></a>

### Field

```rust
Field(String)
```

A static field of the metadata, and its type.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Build.Tasks/type_system/types.rs#L92)

<a id="variant-enummember"></a>

### EnumMember

```rust
EnumMember
```

A member of an enumeration.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Build.Tasks/type_system/types.rs#L94)

## Trait implementations

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

## Availability

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