pub struct CongestionInfoView {
pub allowed_shard: u16,
pub buffered_receipts_gas: String,
pub delayed_receipts_gas: String,
pub receipt_bytes: u64,
}Expand description
Stores the congestion level of a shard. More info about congestion here
JSON schema
{
"description": "Stores the congestion level of a shard. More info about congestion [here](https://near.github.io/nearcore/architecture/how/receipt-congestion.html?highlight=congestion#receipt-congestion)",
"type": "object",
"required": [
"allowed_shard",
"buffered_receipts_gas",
"delayed_receipts_gas",
"receipt_bytes"
],
"properties": {
"allowed_shard": {
"type": "integer",
"format": "uint16",
"maximum": 65535.0,
"minimum": 0.0
},
"buffered_receipts_gas": {
"type": "string"
},
"delayed_receipts_gas": {
"type": "string"
},
"receipt_bytes": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}Fields§
§allowed_shard: u16§buffered_receipts_gas: String§delayed_receipts_gas: String§receipt_bytes: u64Trait Implementations§
Source§impl Clone for CongestionInfoView
impl Clone for CongestionInfoView
Source§fn clone(&self) -> CongestionInfoView
fn clone(&self) -> CongestionInfoView
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 CongestionInfoView
impl Debug for CongestionInfoView
Source§impl<'de> Deserialize<'de> for CongestionInfoView
impl<'de> Deserialize<'de> for CongestionInfoView
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<&CongestionInfoView> for CongestionInfoView
impl From<&CongestionInfoView> for CongestionInfoView
Source§fn from(value: &CongestionInfoView) -> Self
fn from(value: &CongestionInfoView) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CongestionInfoView
impl RefUnwindSafe for CongestionInfoView
impl Send for CongestionInfoView
impl Sync for CongestionInfoView
impl Unpin for CongestionInfoView
impl UnwindSafe for CongestionInfoView
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