# TextStreamOptions

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/rich_text/struct-textstreamoptions/

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

```rust
struct TextStreamOptions
```

Stream policy supplied explicitly at each call. A matching leading BOM is
accepted and removed on input; a contradictory BOM is an encoding error.
RTF uses its own byte encoding and requires the default Utf8/no-BOM policy,
without transcoding its byte payload. The byte bound also applies to output.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rich_edit_text_stream.rs#L24)

## Members

- [`encoding`](#struct_field-encoding)
- [`write_byte_order_mark`](#struct_field-write_byte_order_mark)
- [`max_bytes`](#struct_field-max_bytes)

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

### encoding

```rust
encoding: TextStreamEncoding
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rich_edit_text_stream.rs#L25)

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

### write_byte_order_mark

```rust
write_byte_order_mark: bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rich_edit_text_stream.rs#L26)

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

### max_bytes

```rust
max_bytes: usize
```

Maximum bytes consumed or emitted. Zero permits only an empty stream.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rich_edit_text_stream.rs#L28)

## 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`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Default`

## Availability

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