[][src]Struct airmash_protocol::server::ServerCustom

pub struct ServerCustom {
    pub ty: ServerCustomType,
    pub data: String,
}

End of game packet for CTF and BTR.

CTF

In CTF, the data of this packet contains a JSON string with 3 fields.

  • w: The id of the winning team.
  • b: The bounty given to each player of the winning team.
  • t: The time (in seconds) that the banner should remain on screen before closing (unless closed by the player.)

BTR

In BTR, the data of this packet contains a JSON string with 5 fields.

  • p: The name of the winning player.
  • f: The flag id of the winning player.
  • b: The bounty given to the winning player.
  • k: The number of kills that the winning player has.
  • t: The time (in seconds) that the banner should remain on the screen before closing (unless closed by the player.)

Fields

ty: ServerCustomTypedata: String

Trait Implementations

impl From<ServerCustom> for ServerPacket
[src]

impl Clone for ServerCustom
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ServerCustom
[src]

impl Serialize for ServerCustom
[src]

impl<'de> Deserialize<'de> for ServerCustom
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]