# ObservableAsPropertyInitialValue

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui/binding/bindings/enum-observableaspropertyinitialvalue/

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

```rust
enum ObservableAsPropertyInitialValue<T>
```

The initial value of an [`ObservableAsPropertyHelper`](/docs/0.5.0/api/ferroui-reactiveui/binding/bindings/struct-observableaspropertyhelper/): a value, or a factory read when the
helper starts (upstream's `T? initialValue` and `Func<T?> getInitialValue` overloads).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/bindings/observable_as_property_helper.rs#L16)

## Members

- [`Value`](#variant-value)
- [`Factory`](#variant-factory)
- [`factory`](#function-factory)

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

### Value

```rust
Value(T)
```

The value itself.

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

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

### Factory

```rust
Factory(std::rc::Rc<dyn Fn() -> T>)
```

A factory run when the helper starts, or on the first read of a deferred helper.

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

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

### factory

```rust
fn factory(factory: impl Fn() -> T + 'static) -> Self
```

A factory of the initial value.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/bindings/observable_as_property_helper.rs#L34)

## 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`
- `Default`

## Availability

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