# Struct `kurogane::NavigationRequest`

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

A page's navigation of the window it is in, passed to
[`App::on_navigation`](https://kurogane-rs.org/docs/api/app/app.md#method.on_navigation).

[crate::App::on_navigation]: https://kurogane-rs.org/docs/api/app/app.md#method.on_navigation

## Methods

### `url`

```rust
pub fn url(&self) -> &str
```

The URL the window would load.

### `origin`

```rust
pub fn origin(&self) -> &Origin
```

The origin of the document the window would show.

### `from_origin`

```rust
pub fn from_origin(&self) -> &Origin
```

The origin of the document the window shows now.

### `user_gesture`

```rust
pub fn user_gesture(&self) -> bool
```

Whether the user asked, by clicking a link or a button, rather than a
script on its own.

### `is_redirect`

```rust
pub fn is_redirect(&self) -> bool
```

Whether the server sent the navigation here from the URL it asked
for first.

## Trait implementations

- `impl Clone for NavigationRequest`
- `impl Debug for NavigationRequest`

Source: https://github.com/0x48piraj/kurogane/blob/584c586118ee53cc04604007ee038557bd859092/kurogane/src/navigation.rs#L27
