pub struct RecordV0 {
pub identity: Pubkey,
pub status: ErStatus,
pub block_time_ms: u16,
pub base_fee: u16,
pub features: FeaturesSet,
pub load_average: u32,
pub country_code: CountryCode,
pub addr: String,
}Expand description
Version 0 of ER domain registry record
Fields§
§identity: PubkeyIdentity of ER node (pubkey from its keypair)
status: ErStatusCurrent status of ER node
block_time_ms: u16Block time of given ER node in ms
base_fee: u16Base fee charged by ER node per transaction
features: FeaturesSetA bitmap of all possible combination of custom features that the ER node supports
load_average: u32An average value, which is acts as an indicator of how loaded the given ER node currently is
country_code: CountryCode3 digit country code, where ER node is deployed IBM spec was used as standard: https://www.ibm.com/docs/en/sia?topic=r-country-region-codes
addr: StringVariable length string representing FQDN
Trait Implementations§
Source§impl BorshDeserialize for RecordV0
impl BorshDeserialize for RecordV0
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for RecordV0
impl BorshSerialize for RecordV0
impl Eq for RecordV0
impl StructuralPartialEq for RecordV0
Auto Trait Implementations§
impl Freeze for RecordV0
impl RefUnwindSafe for RecordV0
impl Send for RecordV0
impl Sync for RecordV0
impl Unpin for RecordV0
impl UnwindSafe for RecordV0
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