qubit_fs/options/list_options.rs
1/*******************************************************************************
2 *
3 * Copyright (c) 2026 Haixing Hu.
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 *
7 * Licensed under the Apache License, Version 2.0.
8 *
9 ******************************************************************************/
10//! Directory listing options.
11
12/// Options controlling directory or prefix listing.
13#[derive(Clone, Debug, Default, Eq, PartialEq)]
14pub struct ListOptions {
15 /// Whether listing should recurse into child containers.
16 pub recursive: bool,
17 /// Whether symbolic links should be followed.
18 pub follow_symlinks: bool,
19 /// Whether entries should include metadata when available.
20 pub include_metadata: bool,
21 /// Optional provider page size hint.
22 pub page_size: Option<usize>,
23 /// Optional lexical prefix filter.
24 pub prefix: Option<String>,
25}