# DataFormatKind

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/input/enum-dataformatkind/

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

```rust
enum DataFormatKind
```

Represents the kind of a `DataFormat`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/data_format_kind.rs#L4)

## Members

- [`Application`](#variant-application)
- [`Platform`](#variant-platform)
- [`Universal`](#variant-universal)
- [`InProcess`](#variant-inprocess)
- [`name`](#function-name)

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

### Application

```rust
Application = 0
```

The data format is specific to the application. The exact format
name used internally will vary depending on the platform.

Such a format is created using
`DataFormat::create_bytes_application_format`
or `DataFormat::create_string_application_format`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/data_format_kind.rs#L11)

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

### Platform

```rust
Platform = 1
```

The data format is specific to the current platform. Any other
application using the same identifier will be able to access it.

Such a format is created using
`DataFormat::create_bytes_platform_format`
or `DataFormat::create_string_platform_format`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/data_format_kind.rs#L19)

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

### Universal

```rust
Universal = 2
```

The data format is cross-platform and supported directly by the
framework. Such formats include `DataFormat::text`
and `DataFormat::bitmap`.

It is not possible to create such a format directly.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/data_format_kind.rs#L26)

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

### InProcess

```rust
InProcess = 3
```

The data format is only usable within the current process. It never
crosses process or serialization boundaries.

Such a format is created using
`DataFormat::create_in_process_format`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/data_format_kind.rs#L33)

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

### name

```rust
fn name(self: Self) -> &'static str
```

The name of the kind.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/data_format_kind.rs#L38)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ResourceKeyObject`](/docs/0.5.0/api/ferroui-base/controls/trait-resourcekeyobject/)
- [`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/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ToString`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- `Display`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- [`ValueTypeRegistration`](/docs/0.5.0/api/ferroui-base/data/core/trait-valuetyperegistration/)

## Availability

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