Struct eventstore_tcp::builder::ReadEventBuilder [] [src]

pub struct ReadEventBuilder { /* fields omitted */ }

Builder for a single event read request ReadEvent.

Example

use eventstore_tcp::{Builder, StreamVersion};

let package = Builder::read_event()
    .stream_id("my_stream-1")
    .event_number(StreamVersion::from(42))
    .resolve_link_tos(true) // default
    .require_master(false)  // default
    .build_package(None, None);

Methods

impl ReadEventBuilder
[src]

Panics if the id is an empty string

Event number to be read.

Whether or not the server should resolve links found in the stream to events of other streams. Defaults to true.

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.

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