Skip to main content

layer_tl_parser/tl/
flag.rs

1/// A flag reference inside a parameter type, e.g. `flags.0` in `flags.0?true`.
2#[derive(Clone, Debug, PartialEq, Eq, Hash)]
3pub struct Flag {
4    /// The name of the flags field that holds this bit (usually `"flags"`).
5    pub name: String,
6    /// The bit index (0-based).
7    pub index: u32,
8}