# QrPublicationPolicy

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-media-qr/struct-qrpublicationpolicy/

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

```rust
struct QrPublicationPolicy
```

Optional publication policy; the default continuous stream preserves all
symbols. Accept/feedback do not authenticate or interpret application data.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media.Qr/lib.rs#L269)

## Members

- [`deduplicate`](#struct_field-deduplicate)
- [`stop_after_acceptance`](#struct_field-stop_after_acceptance)
- [`publish`](#function-publish)
- [`suppress`](#function-suppress)
- [`clear_feedback`](#function-clear_feedback)
- [`accept`](#function-accept)
- [`reset`](#function-reset)

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

### deduplicate

```rust
deduplicate: bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media.Qr/lib.rs#L270)

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

### stop_after_acceptance

```rust
stop_after_acceptance: bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media.Qr/lib.rs#L271)

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

### publish

```rust
fn publish(self: &mut Self, candidates: Vec<QrCandidate>) -> Vec<QrCandidate>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media.Qr/lib.rs#L277)

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

### suppress

```rust
fn suppress(self: &mut Self, text: String)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media.Qr/lib.rs#L301)

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

### clear_feedback

```rust
fn clear_feedback(self: &mut Self)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media.Qr/lib.rs#L304)

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

### accept

```rust
fn accept(self: &mut Self)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media.Qr/lib.rs#L307)

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

### reset

```rust
fn reset(self: &mut Self)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media.Qr/lib.rs#L312)

## Trait implementations

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

## Availability

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