pub struct RpcValidatorResponse {
pub current_fishermen: Vec<ValidatorStakeView>,
pub current_proposals: Vec<ValidatorStakeView>,
pub current_validators: Vec<CurrentEpochValidatorInfo>,
pub epoch_height: u64,
pub epoch_start_height: u64,
pub next_fishermen: Vec<ValidatorStakeView>,
pub next_validators: Vec<NextEpochValidatorInfo>,
pub prev_epoch_kickout: Vec<ValidatorKickoutView>,
}
Expand description
Information about this epoch validators and next epoch validators
JSON schema
{
"description": "Information about this epoch validators and next epoch validators",
"type": "object",
"required": [
"current_fishermen",
"current_proposals",
"current_validators",
"epoch_height",
"epoch_start_height",
"next_fishermen",
"next_validators",
"prev_epoch_kickout"
],
"properties": {
"current_fishermen": {
"description": "Fishermen for the current epoch",
"type": "array",
"items": {
"$ref": "#/components/schemas/ValidatorStakeView"
}
},
"current_proposals": {
"description": "Proposals in the current epoch",
"type": "array",
"items": {
"$ref": "#/components/schemas/ValidatorStakeView"
}
},
"current_validators": {
"description": "Validators for the current epoch",
"type": "array",
"items": {
"$ref": "#/components/schemas/CurrentEpochValidatorInfo"
}
},
"epoch_height": {
"description": "Epoch height",
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"epoch_start_height": {
"description": "Epoch start block height",
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"next_fishermen": {
"description": "Fishermen for the next epoch",
"type": "array",
"items": {
"$ref": "#/components/schemas/ValidatorStakeView"
}
},
"next_validators": {
"description": "Validators for the next epoch",
"type": "array",
"items": {
"$ref": "#/components/schemas/NextEpochValidatorInfo"
}
},
"prev_epoch_kickout": {
"description": "Kickout in the previous epoch",
"type": "array",
"items": {
"$ref": "#/components/schemas/ValidatorKickoutView"
}
}
}
}
Fields§
§current_fishermen: Vec<ValidatorStakeView>
Fishermen for the current epoch
current_proposals: Vec<ValidatorStakeView>
Proposals in the current epoch
current_validators: Vec<CurrentEpochValidatorInfo>
Validators for the current epoch
epoch_height: u64
Epoch height
epoch_start_height: u64
Epoch start block height
next_fishermen: Vec<ValidatorStakeView>
Fishermen for the next epoch
next_validators: Vec<NextEpochValidatorInfo>
Validators for the next epoch
prev_epoch_kickout: Vec<ValidatorKickoutView>
Kickout in the previous epoch
Trait Implementations§
Source§impl Clone for RpcValidatorResponse
impl Clone for RpcValidatorResponse
Source§fn clone(&self) -> RpcValidatorResponse
fn clone(&self) -> RpcValidatorResponse
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 RpcValidatorResponse
impl Debug for RpcValidatorResponse
Source§impl<'de> Deserialize<'de> for RpcValidatorResponse
impl<'de> Deserialize<'de> for RpcValidatorResponse
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<&RpcValidatorResponse> for RpcValidatorResponse
impl From<&RpcValidatorResponse> for RpcValidatorResponse
Source§fn from(value: &RpcValidatorResponse) -> Self
fn from(value: &RpcValidatorResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcValidatorResponse
impl RefUnwindSafe for RpcValidatorResponse
impl Send for RpcValidatorResponse
impl Sync for RpcValidatorResponse
impl Unpin for RpcValidatorResponse
impl UnwindSafe for RpcValidatorResponse
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