# MarkupMethod

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

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

```rust
struct MarkupMethod
```

A method: an instance method (`Add`, a command method, an event handler)
or a static one (`Parse`, a factory method, an attached property
accessor).

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

## Members

- [`name`](#struct_field-name)
- [`is_static`](#struct_field-is_static)
- [`parameters`](#struct_field-parameters)
- [`return_type`](#struct_field-return_type)
- [`invoke`](#struct_field-invoke)
- [`attributes`](#struct_field-attributes)
- [`emit`](#struct_field-emit)

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

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

### is_static

```rust
is_static: bool
```



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

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

### parameters

```rust
parameters: &'static [TypeOf]
```

The parameter types, without the instance.

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

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

### return_type

```rust
return_type: Option<TypeOf>
```

`None` for a method that returns nothing.

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

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

### invoke

```rust
invoke: MarkupInvoke
```

Calls the method: `(instance, arguments..)`, or `(arguments..)` for
a static method.

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

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

### attributes

```rust
attributes: &'static [MarkupAttribute]
```



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

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

### emit

```rust
emit: CompilerMetadata<Option<MarkupEmit>>
```

The typed function the declaration generated for the method (see
`MarkupEmit`).

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

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