diff --git a/sv1/src/methods/client_to_server.rs b/sv1/src/methods/client_to_server.rs index 356a42232c..4954994a11 100644 --- a/sv1/src/methods/client_to_server.rs +++ b/sv1/src/methods/client_to_server.rs @@ -385,8 +385,8 @@ impl TryFrom for Subscribe<'_> { #[derive(Debug, Clone)] pub struct Configure { - extensions: Vec, - id: u64, + pub extensions: Vec, + pub id: u64, } impl fmt::Display for Configure { @@ -679,8 +679,8 @@ impl From for serde_json::Map { #[derive(Debug, Clone)] pub struct VersionRollingParams { - mask: Option, - min_bit_count: Option, + pub mask: Option, + pub min_bit_count: Option, } impl From for serde_json::Map { @@ -709,13 +709,13 @@ impl From for serde_json::Map { #[derive(Debug, Clone)] pub struct InfoParams { - connection_url: Option, + pub connection_url: Option, #[allow(dead_code)] - hw_id: Option, + pub hw_id: Option, #[allow(dead_code)] - hw_version: Option, + pub hw_version: Option, #[allow(dead_code)] - sw_version: Option, + pub sw_version: Option, } impl From for serde_json::Map { diff --git a/sv1/src/methods/server_to_client.rs b/sv1/src/methods/server_to_client.rs index e67c084adb..fd108f228f 100644 --- a/sv1/src/methods/server_to_client.rs +++ b/sv1/src/methods/server_to_client.rs @@ -284,7 +284,7 @@ impl TryFrom for SetExtranonce<'_> { #[derive(Debug, Clone)] /// Server may arbitrarily adjust version mask pub struct SetVersionMask { - version_mask: HexU32Be, + pub version_mask: HexU32Be, } impl fmt::Display for SetVersionMask { @@ -329,7 +329,7 @@ impl TryFrom for SetVersionMask { #[derive(Debug, Clone)] pub struct GeneralResponse { pub id: u64, - result: bool, + pub result: bool, } impl fmt::Display for GeneralResponse { @@ -373,7 +373,7 @@ impl TryFrom<&Response> for GeneralResponse { #[derive(Debug, Clone)] pub struct Authorize { pub id: u64, - authorized: bool, + pub authorized: bool, pub prev_request_name: String, } @@ -400,7 +400,7 @@ impl Authorize { #[derive(Debug, Clone)] pub struct Submit { pub id: u64, - is_ok: bool, + pub is_ok: bool, } impl fmt::Display for Submit {