asic_rs/miners/commands.rs
1use serde::{Deserialize, Serialize};
2use serde_json::Value;
3
4#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
5pub enum MinerCommand {
6 RPC {
7 command: &'static str,
8 parameters: Option<Value>,
9 },
10 GRPC {
11 command: &'static str,
12 },
13 WebAPI {
14 command: &'static str,
15 parameters: Option<Value>,
16 },
17 GraphQL {
18 command: &'static str,
19 },
20 SSH {
21 command: &'static str,
22 },
23}