diff options
author | Daniel Schadt <kingdread@gmx.de> | 2020-10-01 16:27:48 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2020-10-01 16:27:48 +0200 |
commit | fa3f8e5ce231a5844e59f0d5e1081b5c6f8274c8 (patch) | |
tree | 7ec2404fecdc7188a4f0f546dc0895847721309a /src/agent.rs | |
parent | 65bd385540db567751405df000f6b063226d8b8a (diff) | |
download | evtclib-fa3f8e5ce231a5844e59f0d5e1081b5c6f8274c8.tar.gz evtclib-fa3f8e5ce231a5844e59f0d5e1081b5c6f8274c8.tar.bz2 evtclib-fa3f8e5ce231a5844e59f0d5e1081b5c6f8274c8.zip |
manually implement Deserialize for Agent
The rationale is included in the comment below. The gist is that we want
to avoid deserializing Agent<Player> (and others) directly, as that
would circumvent the checks.
As a small bonus, we now skip the phantom_data field in serialization,
as that's just an implementation detail that other consumers shouldn't
worry about.
Diffstat (limited to 'src/agent.rs')
0 files changed, 0 insertions, 0 deletions