Official client/server compatible Loco client implementation
Check src/request
, src/response
directory for already implemented command datas.
For data structs used in many places check src/structs
.
Example command data implementation below
use serde::{Serialize, Deserialize};
// Add `Req` suffix to request
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct SampleDataReq {
/// Alias for obfuscated key
#[serde(rename = "req")]
pub request: String
}
// Add `Res` suffix to response
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct SampleDataRes {
#[serde(rename = "res")]
pub response: String
}
- chat room, channel, ... => channel
- member, user, ... => user
- message, chat, ... => chat
TalkLocoClient is following MIT license.
See LICENSE
for full text.