Struct riak::bucket::CommitHook [] [src]

pub struct CommitHook {
    pub name: String,
    pub modfun: ModFun,
}

CommitHook represents a commit hook that will be set on a Riak bucket via BucketProps.

This is used specifically for "precommit" and "postcommit", properties on a bucket that represent functions that should run before and after an object is stored in Riak.

For more information see: https://docs.basho.com/riak/kv/2.1.4/developing/usage/commit-hooks/

Examples

Fields

Methods

impl CommitHook
[src]

Trait Implementations

impl Clone for CommitHook
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for CommitHook
[src]

Formats the value using the given formatter.

impl Default for CommitHook
[src]

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