ferogram_tl_parser/tl/category.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, Copy, Debug, PartialEq, Eq, Hash)]
16/// Whether a TL definition is a data constructor or an RPC function.
17pub enum Category {
18 /// A concrete data constructor (the section before `---functions---`).
19 Types,
20 /// An RPC function definition (the section after `---functions---`).
21 Functions,
22}