ferogram_tl_parser/tl/category.rs
1// Copyright (c) Ankit Chaubey <ankitchaubey.dev@gmail.com>
2//
3// ferogram: async Telegram MTProto client in Rust
4// https://github.com/ankit-chaubey/ferogram
5//
6// Licensed under either the MIT License or the Apache License 2.0.
7// See the LICENSE-MIT or LICENSE-APACHE file in this repository:
8// https://github.com/ankit-chaubey/ferogram
9//
10// Feel free to use, modify, and share this code.
11// Please keep this notice when redistributing.
12
13#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
14/// Whether a TL definition is a data constructor or an RPC function.
15pub enum Category {
16 /// A concrete data constructor (the section before `---functions---`).
17 Types,
18 /// An RPC function definition (the section after `---functions---`).
19 Functions,
20}