Skip to main content

ferogram_tl_parser/tl/
category.rs

1// Copyright (c) Ankit Chaubey <ankitchaubey.dev@gmail.com>
2// SPDX-License-Identifier: MIT OR Apache-2.0
3//
4// ferogram: async Telegram MTProto client in Rust
5// https://github.com/ankit-chaubey/ferogram
6//
7//
8// If you use or modify this code, keep this notice at the top of your file
9// and include the LICENSE-MIT or LICENSE-APACHE file from this repository:
10// https://github.com/ankit-chaubey/ferogram
11
12/// Whether a [`super::Definition`] is a data constructor or an RPC function.
13#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
14pub enum Category {
15    /// A concrete data constructor (the section before `---functions---`).
16    Types,
17    /// An RPC function definition (the section after `---functions---`).
18    Functions,
19}