# FormatHelper

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-protranslate-studio/struct-formathelper/

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

```rust
struct FormatHelper
```



[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/format_helper.rs#L398)

## Members

- [`placeholder`](#struct_field-placeholder)
- [`kind`](#struct_field-kind)
- [`decimal_places`](#struct_field-decimal_places)
- [`percentage`](#struct_field-percentage)
- [`date_pattern`](#struct_field-date_pattern)
- [`branches`](#struct_field-branches)
- [`build`](#function-build)

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

### placeholder

```rust
placeholder: String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/format_helper.rs#L399)

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

### kind

```rust
kind: BuilderFormatType
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/format_helper.rs#L400)

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

### decimal_places

```rust
decimal_places: u8
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/format_helper.rs#L401)

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

### percentage

```rust
percentage: bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/format_helper.rs#L402)

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

### date_pattern

```rust
date_pattern: String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/format_helper.rs#L403)

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

### branches

```rust
branches: std::collections::BTreeMap<String, String>
```

Plural category or select key to text. An absent other branch uses "Value".

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/format_helper.rs#L405)

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

### build

```rust
fn build(self: &Self, format: TranslationFileFormat) -> Result<String, StudioError>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/format_helper.rs#L420)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Debug`
- `Default`

## Availability

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