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
name: String
modfun: ModFun
Methods
impl CommitHook
[src]
fn new(name: &str, modfun: &ModFun) -> CommitHook
Trait Implementations
impl Clone for CommitHook
[src]
fn clone(&self) -> CommitHook
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for CommitHook
[src]
impl Default for CommitHook
[src]
fn default() -> CommitHook
Returns the "default value" for a type. Read more