Struct sn_data_types::UnseqMap[][src]

pub struct UnseqMap { /* fields omitted */ }
Expand description

Map that is unpublished on the network. This data can only be fetched by the owner or those in the permissions fields with Permission::Read access.

Implementations

Returns the address.

Returns the name.

Returns the tag type.

Returns the kind.

Returns the version of the Map fields (not the data version).

Returns the owner key.

Returns all the keys in the data.

Returns the shell of this Map (the fields without the data).

Gets a complete list of permissions.

Gets the permissions for the provided user.

Checks if the provided user is an owner.

Returns Ok(()) on success and Err(Error::AccessDenied) if the user is not an owner.

Checks permissions for given action for the provided user.

Returns Err(Error::AccessDenied) if the permission check has failed.

Inserts or updates permissions for the provided user.

Requires the new version of the Map fields. If it does not match the current version + 1, an error will be returned.

Deletes permissions for the provided user.

Requires the new version of the Map fields. If it does not match the current version + 1, an error will be returned.

Deletes user permissions without performing any validation.

Requires the new version of the Map fields. If it does not match the current version + 1, an error will be returned.

Changes the owner.

Requires the new version of the Map fields. If it does not match the current version + 1, an error will be returned.

Changes the owner without performing any validation.

Requires the new version of the Map fields. If it does not match the current version + 1, an error will be returned.

Returns true if action is allowed for the provided user.

Creates a new unsequenced Map.

Creates a new unsequenced Map with entries and permissions.

Returns a value for the given key.

Returns values of all entries.

Returns all entries.

Removes and returns all entries.

Mutates entries based on actions for the provided user.

Returns Err(InvalidEntryActions) if the mutation parameters are invalid.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Performs the conversion.

Feeds this value into the given Hasher. Read more

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

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

Restrict a value to a certain interval. Read more

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

This method tests for !=.

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

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.