# NominalDatasetStreamBuilder

## pub struct NominalDatasetStreamBuilder

## Implementations

### impl NominalDatasetStreamBuilder

#### pub fn new() -> Self

### impl NominalDatasetStreamBuilder

#### pub fn stream_to_core(self, bearer_token: BearerToken, dataset: ResourceIdentifier, handle: Handle) -> NominalDatasetStreamBuilder

#### pub fn stream_to_file(self, file_path: impl Into<PathBuf>) -> Self

#### pub fn with_file_fallback(self, file_path: impl Into<PathBuf>) -> Self

#### pub fn add_listener(self, listener: Arc<dyn NominalStreamListener>) -> Self

#### pub fn with_listeners(self, listeners: Vec<Arc<dyn NominalStreamListener>>) -> Self

#### pub fn with_options(self, opts: NominalStreamOpts) -> Self

#### pub fn enable_logging(self) -> Self

#### pub fn enable_logging_with_directive(self, log_directive: &str) -> Self

#### pub fn build(self) -> NominalDatasetStream

Validates the configuration and starts the stream.

Panics

Panics where [`Self::try_build`](https://dev.nominal.io/nominal-streaming/ref/rust/nominal_streaming/stream/struct.NominalDatasetStreamBuilder.md#method.try_build "nominal_streaming::stream::NominalDatasetStreamBuilder::try_build") returns an error.

#### pub fn try_build(self) -> Result<NominalDatasetStream, StreamBuildError>

Validates the configuration and starts the stream.

The `stream_to_file` file is created here, replacing any existing file. The
`with_file_fallback` file is created when a request first fails, and is
named after the given path with the stream’s start time (UTC) appended to
the file name: `fallback.avro` becomes `fallback_20260101_120000.avro`.

## Trait implementations

### impl Debug for NominalDatasetStreamBuilder

#### fn fmt(&self, f: &mut Formatter<'_>) -> Result

**Derived**: [`Default`](https://doc.rust-lang.org/1.98.1/core/default/trait.Default.html)

**Auto traits**: [`Send`](https://doc.rust-lang.org/1.98.1/core/marker/trait.Send.html), [`Sync`](https://doc.rust-lang.org/1.98.1/core/marker/trait.Sync.html), [`Unpin`](https://doc.rust-lang.org/1.98.1/core/marker/trait.Unpin.html), [`UnwindSafe`](https://doc.rust-lang.org/1.98.1/core/panic/unwind_safe/trait.UnwindSafe.html), [`RefUnwindSafe`](https://doc.rust-lang.org/1.98.1/core/panic/unwind_safe/trait.RefUnwindSafe.html)
