Struct safe_app::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 Rand for PermissionSet
[src]

Generates a random instance of this type using the specified source of randomness. Read more

impl Serialize for PermissionSet
[src]

Serialize this value into the given Serde serializer. Read more

impl PartialOrd<PermissionSet> 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 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 Clone for PermissionSet
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for PermissionSet
[src]

Formats the value using the given formatter. Read more

impl Ord for PermissionSet
[src]

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

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl<'de> Deserialize<'de> for PermissionSet
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Default for PermissionSet
[src]

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

impl Copy for PermissionSet
[src]

impl Eq for PermissionSet
[src]

impl PartialEq<PermissionSet> for PermissionSet
[src]

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

This method tests for !=.

Auto Trait Implementations