[Crate] Add better documentation for generic game implementation (#49)

This commit is contained in:
Tom 2023-06-14 20:25:26 +00:00 committed by GitHub
parent 08e00c64e4
commit 4b081371f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 28 additions and 2 deletions

View file

@ -7,6 +7,7 @@ pub mod protocols;
pub use protocols::*;
/// Versions of the gamespy protocol
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[derive(Debug, Clone, PartialEq)]
pub enum GameSpyVersion {
@ -15,6 +16,7 @@ pub enum GameSpyVersion {
Three,
}
/// Enum of versions and their ExtraResponse data
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[derive(Debug, Clone, PartialEq)]
pub enum VersionedExtraResponse {