tsproto-types 0.1.0

Basic types and enums that are used within the TeamSpeak protocol.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::ops::Deref;

use heck::*;
use t4rust_derive::Template;
use tsproto_structs::errors::*;
use tsproto_structs::EnumValue;
use tsproto_structs::{doc_comment, indent};

#[derive(Template)]
#[TemplatePath = "build/Errors.tt"]
#[derive(Default, Debug)]
pub struct Errors;

impl Deref for Errors {
	type Target = Vec<EnumValue>;
	fn deref(&self) -> &Self::Target { &DATA.0 }
}