# FormatArgument

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-protranslate-core/enum-formatargument/

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

```rust
enum FormatArgument
```



[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/formatting.rs#L13)

## Members

- [`String`](#variant-string)
- [`Integer8`](#variant-integer8)
- [`Integer16`](#variant-integer16)
- [`Integer32`](#variant-integer32)
- [`Integer`](#variant-integer)
- [`Integer128`](#variant-integer128)
- [`Unsigned`](#variant-unsigned)
- [`Unsigned128`](#variant-unsigned128)
- [`Float`](#variant-float)
- [`Number`](#variant-number)
- [`Bool`](#variant-bool)
- [`Null`](#variant-null)
- [`Decimal`](#variant-decimal)
- [`Custom`](#variant-custom)
- [`DateTime`](#variant-datetime)
- [`NaiveDateTime`](#variant-naivedatetime)
- [`decimal`](#function-decimal)
- [`format`](#function-format)

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

### String

```rust
String(String)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/formatting.rs#L14)

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

### Integer8

```rust
Integer8(i8)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/formatting.rs#L15)

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

### Integer16

```rust
Integer16(i16)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/formatting.rs#L16)

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

### Integer32

```rust
Integer32(i32)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/formatting.rs#L17)

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

### Integer

```rust
Integer(i64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/formatting.rs#L18)

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

### Integer128

```rust
Integer128(i128)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/formatting.rs#L19)

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

### Unsigned

```rust
Unsigned(u64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/formatting.rs#L20)

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

### Unsigned128

```rust
Unsigned128(u128)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/formatting.rs#L21)

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

### Float

```rust
Float(f32)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/formatting.rs#L22)

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

### Number

```rust
Number(f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/formatting.rs#L23)

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

### Bool

```rust
Bool(bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/formatting.rs#L24)

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

### Null

```rust
Null
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/formatting.rs#L25)

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

### Decimal

```rust
Decimal(fixed_decimal::Decimal)
```

Exact base-ten value, useful for money and numbers above 2^53.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/formatting.rs#L27)

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

### Custom

```rust
Custom(std::rc::Rc<dyn LocalizedFormat>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/formatting.rs#L28)

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

### DateTime

```rust
DateTime(crate::LocalizedDateTime)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/formatting.rs#L29)

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

### NaiveDateTime

```rust
NaiveDateTime(crate::LocalizedNaiveDateTime)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/formatting.rs#L30)

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

### decimal

```rust
fn decimal(value: &str) -> Result<Self, TranslationError>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/formatting.rs#L133)

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

### format

```rust
fn format(self: &Self, specifier: &str, culture: &Culture) -> Result<String, TranslationError>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/formatting.rs#L139)

## 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`
- `From<LocalizedDateTime>`
- `From<OffsetDateTime>`
- `From<LocalizedNaiveDateTime>`
- `From<PlainDateTime>`
- `Clone`
- `Debug`
- `PartialEq`
- `From<String>`
- `From<&str>`
- `From<f64>`
- `From<f32>`
- `From<bool>`
- `From<i8>`
- `From<i16>`
- `From<i32>`
- `From<i64>`
- `From<i128>`
- `From<u128>`
- `From<u8>`
- `From<u16>`
- `From<u32>`
- `From<u64>`
- `From<isize>`
- `From<usize>`
- `From<Signed<UnsignedDecimal>>`

## Availability

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