Skip to main content

tdlib_rs_parser/tl/
category.rs

1// Copyright 2020 - developers of the `grammers` project.
2// Copyright 2021 - developers of the `tdlib-rs` project.
3// Copyright 2024 - developers of the `tgt` and `tdlib-rs` projects.
4//
5// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
8// option. This file may not be copied, modified, or distributed
9// except according to those terms.
10
11/// The category to which a definition belongs.
12#[derive(Clone, Copy, Debug, PartialEq, Eq)]
13pub enum Category {
14    /// The default category, a definition represents a type.
15    Types,
16
17    /// A definition represents a callable function.
18    Functions,
19}