aboutsummaryrefslogtreecommitdiff
path: root/src/agent.rs
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2020-10-01 16:27:48 +0200
committerDaniel Schadt <kingdread@gmx.de>2020-10-01 16:27:48 +0200
commitfa3f8e5ce231a5844e59f0d5e1081b5c6f8274c8 (patch)
tree7ec2404fecdc7188a4f0f546dc0895847721309a /src/agent.rs
parent65bd385540db567751405df000f6b063226d8b8a (diff)
downloadevtclib-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