0.1.0 |
|
---|
#14 在 #loco
4KB
talk-loco-commands
官方客户端/服务器兼容的Loco命令实现。请查阅文档以获取更多信息。
贡献
请查看 src/request
,src/response
目录以获取已实现的命令数据。对于在多个地方使用的数据结构,请查看 src/structs
。
示例bson命令数据实现。
use crate::BsonData;
use serde::{Serialize, Deserialize};
/*
* Command method will be SAMPLEDATA in this case.
* Note the Method name will be sliced to 11 bytes.
*/
#[derive(Debug, Clone, Serialize, Deserialize, BsonData)]
pub struct SampleData {
pub status: i16,
pub message: String
}
许可证
MIT License
Copyright (c) 2020 storycraft
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
依赖关系
~1.5MB
~35K SLoC