mirror of
https://github.com/Tencent/BrowserSkill.git
synced 2026-09-10 13:01:23 +08:00
17 lines
383 B
Rust
17 lines
383 B
Rust
//! Generic JSON-RPC cancellation envelope.
|
|
|
|
use schemars::JsonSchema;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
use crate::RpcId;
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, JsonSchema)]
|
|
pub struct CancelParams {
|
|
pub rpc_id: RpcId,
|
|
}
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, JsonSchema)]
|
|
pub struct CancelResult {
|
|
pub cancelled: bool,
|
|
}
|