# PropertyBindingDraft

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer/struct-propertybindingdraft/

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

```rust
struct PropertyBindingDraft
```

Edits only arguments that were explicitly changed. Unknown arguments, nested
extensions, aliases, quoting and spacing in every untouched argument are retained.
`binding_extension` must be the host's namespace-resolved framework extension;
an application extension with the same local name is deliberately not accepted.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_binding_draft.rs#L53)

## Members

- [`new`](#function-new)
- [`empty`](#function-empty)
- [`with_relative_source_extension`](#function-with_relative_source_extension)
- [`source`](#function-source)
- [`argument`](#function-argument)
- [`literal`](#function-literal)
- [`set_path`](#function-set_path)
- [`set_mode`](#function-set_mode)
- [`set_update_source_trigger`](#function-set_update_source_trigger)
- [`set_delay`](#function-set_delay)
- [`set_option`](#function-set_option)
- [`set_source`](#function-set_source)
- [`source_specification`](#function-source_specification)
- [`validate`](#function-validate)

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

### new

```rust
fn new(source: &str, binding_extension: &str) -> Result<Self, String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_binding_draft.rs#L61)

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

### empty

```rust
fn empty(binding_extension: &str) -> Result<Self, String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_binding_draft.rs#L116)

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

### with_relative_source_extension

```rust
fn with_relative_source_extension(self: Self, name: Option<&str>) -> Self
```

Supply the independently namespace-resolved RelativeSource extension. A CLR
alias for Binding does not necessarily expose RelativeSource in the same scope.
None keeps existing expressions available but disables creating relative sources.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_binding_draft.rs#L123)

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

### source

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_binding_draft.rs#L128)

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

### argument

```rust
fn argument(self: &Self, name: &str) -> Option<&MarkupValue>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_binding_draft.rs#L141)

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

### literal

```rust
fn literal(self: &Self, name: &str) -> Option<&str>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_binding_draft.rs#L148)

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

### set_path

```rust
fn set_path(self: &mut Self, path: &str)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_binding_draft.rs#L155)

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

### set_mode

```rust
fn set_mode(self: &mut Self, mode: &str) -> Result<(), String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_binding_draft.rs#L159)

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

### set_update_source_trigger

```rust
fn set_update_source_trigger(self: &mut Self, trigger: &str) -> Result<(), String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_binding_draft.rs#L173)

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

### set_delay

```rust
fn set_delay(self: &mut Self, delay: Option<i32>) -> Result<(), String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_binding_draft.rs#L187)

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

### set_option

```rust
fn set_option(self: &mut Self, option: PropertyBindingOption, value: Option<MarkupValue>) -> Result<(), String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_binding_draft.rs#L198)

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

### set_source

```rust
fn set_source(self: &mut Self, source: PropertyBindingSource) -> Result<(), String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_binding_draft.rs#L215)

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

### source_specification

```rust
fn source_specification(self: &Self) -> Option<PropertyBindingSource>
```

Recognized source fields can be populated by an editor; unknown relative-source
extensions remain exact source until the user explicitly chooses another source.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_binding_draft.rs#L282)

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

### validate

```rust
fn validate(self: &Self) -> Result<(), String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/property_binding_draft.rs#L347)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Same`
- `Clone`

## Availability

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