https://github.com/storycraft/talk-loco-client-rs
Official Loco client with command sets
https://github.com/storycraft/talk-loco-client-rs
Last synced: 8 months ago
JSON representation
Official Loco client with command sets
- Host: GitHub
- URL: https://github.com/storycraft/talk-loco-client-rs
- Owner: storycraft
- License: mit
- Created: 2021-07-29T03:56:43.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-08T02:54:16.000Z (almost 4 years ago)
- Last Synced: 2025-03-24T18:11:43.160Z (9 months ago)
- Language: Rust
- Size: 120 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# TalkLocoClient
Official client/server compatible Loco client implementation
## Contributing
### Command
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
```rust
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
}
```
### Word convention
* chat room, channel, ... => channel
* member, user, ... => user
* message, chat, ... => chat
## License
TalkLocoClient is following MIT license.
See `LICENSE` for full text.