# SourceAnalysisOptions

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-protranslate-build/struct-sourceanalysisoptions/

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

```rust
struct SourceAnalysisOptions
```

Rust syntax analysis is opt-in and scoped to explicit receiver expressions.
This avoids claiming semantic type analysis that a build script cannot perform.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Build/source.rs#L42)

## Members

- [`receivers`](#struct_field-receivers)
- [`generated_accessors`](#struct_field-generated_accessors)
- [`receiver`](#function-receiver)
- [`generated_accessors`](#function-generated_accessors)

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

### receivers

```rust
receivers: std::collections::BTreeSet<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Build/source.rs#L43)

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

### generated_accessors

```rust
generated_accessors: bool
```

Inspect generated get/value/format/observe methods on selected receivers.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Build/source.rs#L45)

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

### receiver

```rust
fn receiver(self: Self, expression: impl Into<String>) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Build/source.rs#L49)

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

### generated_accessors

```rust
fn generated_accessors(self: Self, enabled: bool) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Build/source.rs#L54)

## Trait implementations

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

## Availability

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