[][src]Enum rustimate_core::messages::req::RequestMessage

pub enum RequestMessage {
    Ping {
        v: i64,
    },
    GetVersion,
    DebugInfo {
        info: String,
    },
    JoinSession {
        id: Uuid,
    },
    UpdateSession {
        name: String,
        choices: Vec<String>,
    },
    UpdateProfile {
        name: String,
    },
    AddPoll {
        str: String,
    },
    UpdatePoll {
        poll: Uuid,
        title: Option<String>,
    },
    SubmitVote {
        poll: Uuid,
        vote: String,
    },
}

Sent from client to server, this shared model is used for all server communication

Variants

Ping

Fields of Ping

v: i64
GetVersion
DebugInfo

Fields of DebugInfo

info: String
JoinSession

Fields of JoinSession

id: Uuid
UpdateSession

Fields of UpdateSession

name: Stringchoices: Vec<String>
UpdateProfile

Fields of UpdateProfile

name: String
AddPoll

Fields of AddPoll

str: String
UpdatePoll

Fields of UpdatePoll

poll: Uuidtitle: Option<String>
SubmitVote

Fields of SubmitVote

poll: Uuidvote: String

Methods

impl RequestMessage[src]

Trait Implementations

impl Debug for RequestMessage[src]

impl Serialize for RequestMessage[src]

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

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

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