Struct eventstore_tcp::builder::DeleteStreamBuilder [] [src]

pub struct DeleteStreamBuilder { /* fields omitted */ }

Builder for DeleteStream.

Example

use eventstore_tcp::{Builder, StreamVersion};

let package = Builder::delete_stream()
    .stream_id("hello_world")
    .expected_version(StreamVersion::from(42))
    .require_master(false) // default
    .hard_delete(false)    // default
    .build_package(None, None);

Methods

impl DeleteStreamBuilder
[src]

Panics if the id is an empty string

Sets the expected version of the stream as an optimistic locking mechanism.

Should the server only handle the request if it is the cluster master. Note that while only the master server can accept writes, other cluster members can forward requests to the master.

Defaults to false.

Set to true to actually delete data instead of just marking the stream as deleted. Data may be deleted in the next scavenge operation.

Defaults to false.

Build a package. Will panic if required values are not set. Values of this builder will be moved into the package.