qubit_fs/options/read_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//! Read operation options.
11
12use crate::ChecksumPolicy;
13
14/// Options controlling a read operation.
15#[derive(Clone, Debug, Default, Eq, PartialEq)]
16pub struct ReadOptions {
17 /// Optional byte offset.
18 pub offset: Option<u64>,
19 /// Optional byte length.
20 pub length: Option<u64>,
21 /// Optional required ETag or provider version.
22 pub if_match: Option<String>,
23 /// Optional ETag or provider version that must not match.
24 pub if_none_match: Option<String>,
25 /// Checksum validation policy.
26 pub checksum: ChecksumPolicy,
27}