Skip to content

struct

LinkClick

pub struct LinkClick<'a> {
    pub button: i16,
    pub modifiers: bool,
    pub target: Option<&'a str>,
    pub download: bool,
    pub same_origin: bool,
    pub path: &'a str,
    pub current_path: &'a str,
    pub has_hash: bool,
    pub routed: bool,
}

A click on a link, as handles_link sees it.

Fields

button

pub button: i16

The mouse button: 0 is the main one.

modifiers

pub modifiers: bool

Ctrl, Shift, Alt or Meta held.

target

pub target: Option<&'a str>

The link's target.

download

pub download: bool

The link has download.

same_origin

pub same_origin: bool

The link goes to this page's origin.

path

pub path: &'a str

The link's path, and the page's.

current_path

pub current_path: &'a str

See path.

has_hash

pub has_hash: bool

The link has a #fragment.

routed

pub routed: bool

The app has a route for the link's path.

Trait implementations