layer_tl_parser/tl/category.rs
1/// Whether a [`super::Definition`] is a data constructor or an RPC function.
2#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
3pub enum Category {
4 /// A concrete data constructor (the section before `---functions---`).
5 Types,
6 /// An RPC function definition (the section after `---functions---`).
7 Functions,
8}