# ExpressionChainParameters

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui/binding/observable_for_property/struct-expressionchainparameters/

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

```rust
struct ExpressionChainParameters<T, V>
```

How one property path is to be observed (`ExpressionChainParameters<TSender>`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/observable_for_property/expression_chain_parameters.rs#L14)

## Members

- [`source`](#struct_field-source)
- [`path`](#struct_field-path)
- [`before_change`](#struct_field-before_change)
- [`skip_initial`](#struct_field-skip_initial)
- [`is_distinct`](#struct_field-is_distinct)
- [`suppress_warnings`](#struct_field-suppress_warnings)
- [`comparer`](#struct_field-comparer)
- [`keeps_repeat_after_attachment`](#struct_field-keeps_repeat_after_attachment)
- [`new`](#function-new)
- [`with_comparer`](#function-with_comparer)

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

### source

```rust
source: std::rc::Weak<T>
```

The root object of the path (`Source`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/observable_for_property/expression_chain_parameters.rs#L16)

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

### path

```rust
path: ferroui_system::component_model::PropertyPath<std::rc::Rc<T>, V>
```

The path: its text is the expression of the changes, its steps the links (`Expression`,
`Links`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/observable_for_property/expression_chain_parameters.rs#L19)

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

### before_change

```rust
before_change: bool
```

Whether the values are observed before they change (`BeforeChange`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/observable_for_property/expression_chain_parameters.rs#L21)

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

### skip_initial

```rust
skip_initial: bool
```

Whether the first value is dropped (`SkipInitial`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/observable_for_property/expression_chain_parameters.rs#L23)

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

### is_distinct

```rust
is_distinct: bool
```

Whether a value equal to the last one is dropped (`IsDistinct`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/observable_for_property/expression_chain_parameters.rs#L25)

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

### suppress_warnings

```rust
suppress_warnings: bool
```

Whether the warning of a property that cannot notify is suppressed (`SuppressWarnings`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/observable_for_property/expression_chain_parameters.rs#L27)

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

### comparer

```rust
comparer: Option<ValueComparer<V>>
```

How two values are compared; without it, no two values are equal.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/observable_for_property/expression_chain_parameters.rs#L29)

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

### keeps_repeat_after_attachment

```rust
keeps_repeat_after_attachment: bool
```

Whether a notification that repeats the value read after an attachment is kept. Upstream's
run-time chain drops it once; its generated `WhenChanging` of one property, which observes
`PropertyChanging` directly, keeps it.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/observable_for_property/expression_chain_parameters.rs#L33)

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

### new

```rust
fn new(source: &Rc<T>, path: PropertyPath<Rc<T>, V>, before_change: bool, skip_initial: bool, is_distinct: bool, suppress_warnings: bool) -> Self
```

The parameters of the observation of `path` on `source`, comparing the values with
`PartialEq`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/observable_for_property/expression_chain_parameters.rs#L54)

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

### with_comparer

```rust
fn with_comparer(source: &Rc<T>, path: PropertyPath<Rc<T>, V>, before_change: bool, skip_initial: bool, is_distinct: bool, suppress_warnings: bool, comparer: Option<ValueComparer<V>>) -> Self
```

The parameters of the observation of `path` on `source`, comparing the values with
`comparer` (`None`: no two values are equal).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/observable_for_property/expression_chain_parameters.rs#L72)

## Trait implementations

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

## Availability

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