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
<#@ template cleanws="true" #>
use serde::{Deserialize, Serialize};

#[derive(Clone, Copy, Debug, Deserialize, Eq, FromPrimitive, Hash, PartialEq, Serialize, ToPrimitive)]
#[non_exhaustive]
pub enum Error {
<# for e in &**self { #>
	<# if !e.doc.is_empty() { #>
<#= indent(&doc_comment(&e.doc), 1) #>
	<# } #>
	<#= e.name.to_camel_case() #> = <#= e.num #>,
<# } #>
}