Struct routing::MutableData[][src]

pub struct MutableData { /* fields omitted */ }

Mutable data.

Methods

impl MutableData
[src]

Creates a new MutableData

Validate this data.

Returns the shell of this data. Shell contains the same fields as the data itself, except the entries.

Returns the name.

Returns the type tag of this MutableData

Returns the current version of this MutableData

Returns the owner keys

Returns a value by the given key

Returns keys of all entries

Returns values of all entries

Returns all entries

Removes and returns all entries

Mutates entries (key + value pairs) in bulk

Mutates entries without performing any validation.

For updates and deletes, the mutation is performed only if he entry version of the action is higher than the current version of the entry.

Mutates single entry without performing any validations, except the version check (new version must be higher than the existing one). If the entry doesn't exist yet, inserts it, otherwise, updates it. Returns true if the version check passed and the entry was mutated, false otherwise.

Gets a complete list of permissions

Gets a list of permissions for the provided user.

Insert or update permissions for the provided user.

Set user permission without performing any validation.

Delete permissions for the provided user.

Delete user permissions without performing any validation.

Change owner of the mutable data.

Change the owner without performing any validation.

Return the size of this data after serialisation.

Return true if the size is valid

Trait Implementations

impl Hash for MutableData
[src]

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

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

impl Eq for MutableData
[src]

impl PartialEq for MutableData
[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 MutableData
[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 MutableData
[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 Clone for MutableData
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for MutableData
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for MutableData

impl Sync for MutableData