pub struct MiningWorkerDetailResponse {
pub code: i64,
pub data: Vec<MiningWorkerDetailResponseDataItem>,
pub msg: String,
}
Expand description
MiningWorkerDetailResponse
JSON schema
{
"type": "object",
"required": [
"code",
"data",
"msg"
],
"properties": {
"code": {
"examples": [
0
],
"type": "integer",
"format": "int64"
},
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"hashrateDatas",
"type",
"workerName"
],
"properties": {
"hashrateDatas": {
"type": "array",
"items": {
"type": "object",
"required": [
"hashrate",
"reject",
"time"
],
"properties": {
"hashrate": {
"examples": [
"0"
],
"type": "string"
},
"reject": {
"description": "Rejection Rate",
"examples": [
0
],
"type": "integer",
"format": "int64"
},
"time": {
"examples": [
1587902400000
],
"type": "integer",
"format": "int64"
}
}
}
},
"type": {
"description": "Type of hourly hashrate",
"examples": [
"H_hashrate"
],
"type": "string"
},
"workerName": {
"description": "Mining Account name",
"examples": [
"bhdc1.16A10404B"
],
"type": "string"
}
}
}
},
"msg": {
"examples": [
""
],
"type": "string"
}
}
}
Fields§
§code: i64
§data: Vec<MiningWorkerDetailResponseDataItem>
§msg: String
Trait Implementations§
Source§impl Clone for MiningWorkerDetailResponse
impl Clone for MiningWorkerDetailResponse
Source§fn clone(&self) -> MiningWorkerDetailResponse
fn clone(&self) -> MiningWorkerDetailResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MiningWorkerDetailResponse
impl Debug for MiningWorkerDetailResponse
Source§impl<'de> Deserialize<'de> for MiningWorkerDetailResponse
impl<'de> Deserialize<'de> for MiningWorkerDetailResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&MiningWorkerDetailResponse> for MiningWorkerDetailResponse
impl From<&MiningWorkerDetailResponse> for MiningWorkerDetailResponse
Source§fn from(value: &MiningWorkerDetailResponse) -> Self
fn from(value: &MiningWorkerDetailResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MiningWorkerDetailResponse
impl RefUnwindSafe for MiningWorkerDetailResponse
impl Send for MiningWorkerDetailResponse
impl Sync for MiningWorkerDetailResponse
impl Unpin for MiningWorkerDetailResponse
impl UnwindSafe for MiningWorkerDetailResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more