# BindingOptions

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-dynamic-data/binding/struct-bindingoptions/

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

```rust
struct BindingOptions
```

The options of the binding of change sets to an observable collection (`BindingOptions`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/binding_options.rs#L5)

## Members

- [`reset_threshold`](#struct_field-reset_threshold)
- [`use_replace_for_updates`](#struct_field-use_replace_for_updates)
- [`reset_on_first_time_load`](#struct_field-reset_on_first_time_load)
- [`DEFAULT_RESET_THRESHOLD`](#assoc_const-default_reset_threshold)
- [`DEFAULT_USE_REPLACE_FOR_UPDATES`](#assoc_const-default_use_replace_for_updates)
- [`DEFAULT_RESET_ON_FIRST_TIME_LOAD`](#assoc_const-default_reset_on_first_time_load)
- [`new`](#function-new)
- [`with_all`](#function-with_all)
- [`never_fire_reset`](#function-never_fire_reset)
- [`never_fire_reset_with`](#function-never_fire_reset_with)
- [`with_reset_threshold`](#function-with_reset_threshold)
- [`with_use_replace_for_updates`](#function-with_use_replace_for_updates)
- [`with_reset_on_first_time_load`](#function-with_reset_on_first_time_load)

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

### reset_threshold

```rust
reset_threshold: usize
```

The number of changes above which the collection is loaded again and a reset is raised
(`ResetThreshold`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/binding_options.rs#L8)

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

### use_replace_for_updates

```rust
use_replace_for_updates: bool
```

Whether an update replaces the item in place, rather than removing and adding it
(`UseReplaceForUpdates`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/binding_options.rs#L11)

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

### reset_on_first_time_load

```rust
reset_on_first_time_load: bool
```

Whether the first change set loads the collection with a reset (`ResetOnFirstTimeLoad`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/binding_options.rs#L13)

<a id="assoc_const-default_reset_threshold"></a>

### DEFAULT_RESET_THRESHOLD

```rust
const DEFAULT_RESET_THRESHOLD: usize
```

`DefaultResetThreshold`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/binding_options.rs#L18)

<a id="assoc_const-default_use_replace_for_updates"></a>

### DEFAULT_USE_REPLACE_FOR_UPDATES

```rust
const DEFAULT_USE_REPLACE_FOR_UPDATES: bool
```

`DefaultUseReplaceForUpdates`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/binding_options.rs#L20)

<a id="assoc_const-default_reset_on_first_time_load"></a>

### DEFAULT_RESET_ON_FIRST_TIME_LOAD

```rust
const DEFAULT_RESET_ON_FIRST_TIME_LOAD: bool
```

`DefaultResetOnFirstTimeLoad`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/binding_options.rs#L22)

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

### new

```rust
const fn new(reset_threshold: usize) -> Self
```

The options with the threshold and upstream's defaults for the others
(`BindingOptions(int ResetThreshold)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/binding_options.rs#L26)

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

### with_all

```rust
const fn with_all(reset_threshold: usize, use_replace_for_updates: bool, reset_on_first_time_load: bool) -> Self
```

Every part (`BindingOptions(int, bool, bool)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/binding_options.rs#L31)

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

### never_fire_reset

```rust
const fn never_fire_reset() -> Self
```

The options that never reset the collection (`NeverFireReset(bool useReplaceForUpdates =
true)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/binding_options.rs#L37)

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

### never_fire_reset_with

```rust
const fn never_fire_reset_with(use_replace_for_updates: bool) -> Self
```

`never_fire_reset` with the choice of replacements
(`NeverFireReset(bool)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/binding_options.rs#L43)

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

### with_reset_threshold

```rust
const fn with_reset_threshold(self: Self, reset_threshold: usize) -> Self
```

A copy with another threshold (`with { ResetThreshold = .. }`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/binding_options.rs#L48)

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

### with_use_replace_for_updates

```rust
const fn with_use_replace_for_updates(self: Self, use_replace_for_updates: bool) -> Self
```

A copy with another choice of replacements (`with { UseReplaceForUpdates = .. }`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/binding_options.rs#L53)

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

### with_reset_on_first_time_load

```rust
const fn with_reset_on_first_time_load(self: Self, reset_on_first_time_load: bool) -> Self
```

A copy with another choice of the first load (`with { ResetOnFirstTimeLoad = .. }`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/binding_options.rs#L58)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `Equivalent<K>`
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- `Default`

## Availability

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