mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 10:14:06 +02:00
add display for tick types
This commit is contained in:
parent
92d9be233c
commit
b5a43e1451
1 changed files with 3 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer};
|
||||||
use std::cmp::Ordering;
|
use std::cmp::Ordering;
|
||||||
use std::fmt::{Debug, Display, Formatter};
|
use std::fmt::{Debug, Display, Formatter};
|
||||||
use std::ops::{Add, Sub};
|
use std::ops::{Add, Sub};
|
||||||
|
use parse_display::Display;
|
||||||
|
|
||||||
pub use userinfo::UserInfo;
|
pub use userinfo::UserInfo;
|
||||||
|
|
||||||
|
|
@ -145,6 +146,7 @@ impl schemars::JsonSchema for MaybeUtf8String {
|
||||||
Serialize,
|
Serialize,
|
||||||
Deserialize,
|
Deserialize,
|
||||||
Default,
|
Default,
|
||||||
|
Display,
|
||||||
)]
|
)]
|
||||||
pub struct ServerTick(u32);
|
pub struct ServerTick(u32);
|
||||||
|
|
||||||
|
|
@ -237,6 +239,7 @@ impl Sub<ServerTick> for ServerTick {
|
||||||
Serialize,
|
Serialize,
|
||||||
Deserialize,
|
Deserialize,
|
||||||
Default,
|
Default,
|
||||||
|
Display,
|
||||||
)]
|
)]
|
||||||
pub struct DemoTick(u32);
|
pub struct DemoTick(u32);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue