---
title: PurgeOptions
summary: Options for purgewithopts().
url: https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/cache/simple/struct.PurgeOptions/
---

**Kind:** Struct  
**Module:** [simple](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/cache/simple/)  
**Package:** fastly 0.13.1  
**Source:** https://docs.rs/crate/fastly/0.13.1/source/src/cache/simple.rs#244

```rust
pub struct PurgeOptions { /* private fields */ }
```

Options for [`purge_with_opts()`](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/cache/simple/fn.purge_with_opts/).

## Methods

### global_scope

**Source:** https://docs.rs/crate/fastly/0.13.1/source/src/cache/simple.rs#262

```rust
fn global_scope() -> Self
```

Purge the key globally.

This purging mode is subject to the same rate limits as other forms of global
[purging on
Fastly](https://developer.fastly.com/learning/concepts/purging/#limitations-and-constraints). You
should use POP scope where possible, and can contact <support@fastly.com> with
questions if you encounter rate limiting issues.

**Returns**

`Self`

### pop_scope

**Source:** https://docs.rs/crate/fastly/0.13.1/source/src/cache/simple.rs#253

```rust
fn pop_scope() -> Self
```

Purge the key from the current POP (default behavior).

This is the default option used by [`purge()`](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/cache/simple/fn.purge/), and allows a higher throughput of purging
than purging globally.

**Returns**

`Self`

## Trait implementations

### impl Clone for PurgeOptions

#### clone

**Source:** https://docs.rs/crate/fastly/0.13.1/source/src/cache/simple.rs#243

```rust
fn clone(&self) -> Self
```

**Parameters**

- `self`: `&Self`

**Returns**

`Self`

### impl Debug for PurgeOptions

#### fmt

**Source:** https://docs.rs/crate/fastly/0.13.1/source/src/cache/simple.rs#243

```rust
fn fmt(&self, f: &mut Formatter<'_>) -> Result
```

**Parameters**

- `self`: `&Self`
- `f`: `&mut $crate::fmt::Formatter`

**Returns**

`$crate::fmt::Result`

### impl Default for PurgeOptions

#### default

**Source:** https://docs.rs/crate/fastly/0.13.1/source/src/cache/simple.rs#243

```rust
fn default() -> Self
```

**Returns**

`Self`

## Auto trait implementations

- `Freeze`
- `RefUnwindSafe`
- `Send`
- `Sync`
- `Unpin`
- `UnsafeUnpin`
- `UnwindSafe`

## Blanket implementations

- `Any`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Downcast`
- `DowncastSync`
- `ErasedDestructor`
- `From<T>`
- `Into<U>`
- `IntoEither`
- `Same`
- `ToOwned`
- `TryFrom<U>`
- `TryInto<U>`
