Struct routing::PermissionSet [] [src]

pub struct PermissionSet { /* fields omitted */ }

Set of user permissions.

Methods

impl PermissionSet
[src]

Construct new permission set.

Allow the given action.

Deny the given action.

Clear the permission for the given action.

Is the given action allowed according to this permission set?

Trait Implementations

impl Clone for PermissionSet
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for PermissionSet
[src]

impl Debug for PermissionSet
[src]

Formats the value using the given formatter.

impl Eq for PermissionSet
[src]

impl Hash for PermissionSet
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for PermissionSet
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for PermissionSet
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for PermissionSet
[src]

This method returns an Ordering between self and other. Read more

impl Default for PermissionSet
[src]

Returns the "default value" for a type. Read more