# IndexerDescriptor

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/data/struct-indexerdescriptor/

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

```rust
struct IndexerDescriptor
```

Holds a description of a binding for the binding indexer of
[`FerroObject`](/docs/0.5.0/api/ferroui-base/struct-ferroobject/) (`FerroObject::indexer` and
`FerroObject::bind_indexer`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/indexer_descriptor.rs#L10)

## Members

- [`mode`](#struct_field-mode)
- [`priority`](#struct_field-priority)
- [`property`](#struct_field-property)
- [`source`](#struct_field-source)
- [`source_observable`](#struct_field-source_observable)
- [`new`](#function-new)
- [`description`](#function-description)
- [`with_mode`](#function-with_mode)
- [`with_priority`](#function-with_priority)

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

### mode

```rust
mode: crate::data::BindingMode
```

The binding mode.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/indexer_descriptor.rs#L12)

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

### priority

```rust
priority: crate::data::BindingPriority
```

The binding priority.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/indexer_descriptor.rs#L14)

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

### property

```rust
property: Option<&'static crate::FerroProperty>
```

The source property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/indexer_descriptor.rs#L16)

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

### source

```rust
source: Option<crate::Ref<crate::FerroObject>>
```

The source object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/indexer_descriptor.rs#L18)

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

### source_observable

```rust
source_observable: Option<std::rc::Rc<dyn IObservable<crate::BoxedValue>>>
```

The source observable. If `None`, then `source`.`property` is used.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/indexer_descriptor.rs#L20)

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

### new

```rust
fn new() -> Self
```

Creates an empty description.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/indexer_descriptor.rs#L25)

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

### description

```rust
fn description(self: &Self) -> String
```

A description of the binding.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/indexer_descriptor.rs#L30)

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

### with_mode

```rust
fn with_mode(self: Self, mode: BindingMode) -> Self
```

Modifies the binding mode.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/indexer_descriptor.rs#L39)

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

### with_priority

```rust
fn with_priority(self: Self, priority: BindingPriority) -> Self
```

Modifies the binding priority.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/indexer_descriptor.rs#L45)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`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`
- [`SubscribeGuard<T>`](/docs/0.5.0/api/ferroui-base/reactive/use-subscribeguard/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Default`
- `Not`
- [`IObservable<Rc<dyn AnyValue>>`](/docs/0.5.0/api/ferroui-base/reactive/use-iobservable/)

## Availability

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