# PreviewStageSelection

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

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

```rust
struct PreviewStageSelection
```



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

## Members

- [`stage`](#struct_field-stage)
- [`source_uri`](#struct_field-source_uri)
- [`node`](#struct_field-node)
- [`anchor`](#struct_field-anchor)
- [`configuration`](#struct_field-configuration)
- [`revision`](#struct_field-revision)
- [`matches_source`](#function-matches_source)

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

### stage

```rust
stage: PreviewStageId
```



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

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

### source_uri

```rust
source_uri: String
```



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

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

### node

```rust
node: ferroui_designer_core::NodeId
```



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

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

### anchor

```rust
anchor: Option<PreviewSourceAnchor>
```



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

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

### configuration

```rust
configuration: PreviewStageConfiguration
```



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

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

### revision

```rust
revision: u64
```



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

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

### matches_source

```rust
fn matches_source(self: &Self, uri: &str, document: &Document) -> bool
```

Tab activation may rebase revisions, but must retain the exact authored AST
and source accepted by the stage before a selection reaches authoring tools.

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

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

## Availability

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