dex_sdk/search_flows_options.rs
1// Copyright (c) 2026 Super Durable, Inc.
2//
3// Licensed under the Sustainable Use License 1.0.
4// You may not use this file except in compliance with the License.
5// See the LICENSE file in the repository root.
6//
7// SPDX-License-Identifier: LicenseRef-Sustainable-Use-1.0
8
9/// Controls inclusion of earlier Continue-as-New runs in visibility searches.
10#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
11pub struct SearchFlowsOptions {
12 pub(crate) include_continued_as_new: bool,
13}
14
15impl SearchFlowsOptions {
16 /// Excludes earlier Continue-as-New runs by default.
17 pub fn new() -> Self {
18 Self::default()
19 }
20
21 /// Disables default exclusion when true, retaining all explicit query filters.
22 pub fn include_continued_as_new(mut self, value: bool) -> Self {
23 self.include_continued_as_new = value;
24 self
25 }
26}