如何指定负载类型?
作者: patrickelectric创建于 2023年3月29日更新于 2023年3月29日
从我的代码中:
#[api_v2_operation]
/// 为所需车辆发送 MAVLink 消息
pub fn mavlink_post(
data: web::Data<MAVLinkVehicleArcMutex>,
_req: HttpRequest,
bytes: web::Bytes,
) -> HttpResponse {
内容来源: paperclip-rs/paperclip