Enum analytics_proto::proto2::Message
[−]
[src]
pub enum Message {
AllChannels {
num_channels: usize,
},
CreateChannel {
channel: String,
},
GetChannel {
channel: String,
number_served: usize,
},
DelChannel {
channel: String,
},
SendMessage {
channel: String,
message: String,
},
GetMessage,
UpdateMessage {
channel: String,
old_message: String,
new_message: String,
},
DeleteMessage {
channel: String,
message: String,
},
}Variants
AllChannelsAll Channels: {"received_time":"2017-05-01T21:21:01.070462025Z","serviced_time":"2017-05-01T21:21:01.070464560Z","success":true,"message":{"AllChannels":{"num_channels":5}}}
Fields of AllChannels
num_channels: usize |
CreateChannelCreate Channel: {"received_time":"2017-05-01T21:21:01.070521981Z","serviced_time":"2017-05-01T21:21:01.070522531Z","success":true,"message":{"CreateChannel":{"channel":"boo!"}}}
Fields of CreateChannel
channel: String |
GetChannelGet Channel: {"received_time":"2017-05-01T21:21:01.070554580Z","serviced_time":"2017-05-01T21:21:01.070555092Z","success":true,"message":{"GetChannel":{"channel":"boo!","number_served":42}}}
Fields of GetChannel
channel: String | |
number_served: usize |
DelChannelDelete Channel: {"received_time":"2017-05-01T21:21:01.070586852Z","serviced_time":"2017-05-01T21:21:01.070587314Z","success":true,"message":{"DelChannel":{"channel":"wah!"}}}
Fields of DelChannel
channel: String |
SendMessageSend Message: {"received_time":"2017-05-01T21:21:01.070615964Z","serviced_time":"2017-05-01T21:21:01.070616427Z","success":true,"message":{"SendMessage":{"channel":"boo!","message":"woah, you scared me!"}}}
Fields of SendMessage
channel: String | |
message: String |
GetMessageGet Message: {"received_time":"2017-05-01T21:21:01.070649678Z","serviced_time":"2017-05-01T21:21:01.070650200Z","success":true,"message":"GetMessage"}
UpdateMessageUpdate Message: {"received_time":"2017-05-01T21:21:01.070674641Z","serviced_time":"2017-05-01T21:21:01.070675175Z","success":true,"message":{"UpdateMessage":{"channel":"boo!","old_message":"woah, you scared me!","new_message":"woah, the channel name scared me!"}}}
Fields of UpdateMessage
channel: String | |
old_message: String | |
new_message: String |
DeleteMessageDelete Message: {"received_time":"2017-05-01T21:21:01.070721230Z","serviced_time":"2017-05-01T21:21:01.070721680Z","success":true,"message":{"DeleteMessage":{"channel":"boo!","message":"woah, the channel name scared me!"}}}
Fields of DeleteMessage
channel: String | |
message: String |
Trait Implementations
impl Debug for Message[src]
impl Clone for Message[src]
fn clone(&self) -> Message
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl PartialEq for Message[src]
fn eq(&self, __arg_0: &Message) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Message) -> bool
This method tests for !=.
impl Eq for Message[src]
impl Ord for Message[src]
fn cmp(&self, __arg_0: &Message) -> Ordering
This method returns an Ordering between self and other. Read more
impl PartialOrd for Message[src]
fn partial_cmp(&self, __arg_0: &Message) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, __arg_0: &Message) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, __arg_0: &Message) -> bool
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, __arg_0: &Message) -> bool
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, __arg_0: &Message) -> bool
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more