Skip to main content

ferogram_tl_parser/tl/
flag.rs

1/*
2 * Copyright (c) 2026 Ankit Chaubey <ankitchaubey.dev@gmail.com>
3 * https://github.com/ankit-chaubey
4 *
5 * Project: ferogram
6 * Website: https://ferogram.dev
7 *
8 * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
9 * https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
10 * <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option.
11 * This file may not be copied, modified, or distributed except according
12 * to those terms.
13 */
14
15#[derive(Clone, Debug, PartialEq, Eq, Hash)]
16/// A conditional-field flag reference: the flags field name and the bit index.
17pub struct Flag {
18    /// The name of the flags field that holds this bit (usually `"flags"`).
19    pub name: String,
20    /// The bit index (0-based).
21    pub index: u32,
22}