pub struct AccountInfo {
pub account_id: AccountId,
pub amount: String,
pub public_key: PublicKey,
}Expand description
Account info for validators
JSON schema
{
"description": "Account info for validators",
"type": "object",
"required": [
"account_id",
"amount",
"public_key"
],
"properties": {
"account_id": {
"$ref": "#/components/schemas/AccountId"
},
"amount": {
"type": "string"
},
"public_key": {
"$ref": "#/components/schemas/PublicKey"
}
}
}Fields§
§account_id: AccountId§amount: String§public_key: PublicKeyTrait Implementations§
Source§impl Clone for AccountInfo
impl Clone for AccountInfo
Source§fn clone(&self) -> AccountInfo
fn clone(&self) -> AccountInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AccountInfo
impl Debug for AccountInfo
Source§impl<'de> Deserialize<'de> for AccountInfo
impl<'de> Deserialize<'de> for AccountInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccountInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccountInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&AccountInfo> for AccountInfo
impl From<&AccountInfo> for AccountInfo
Source§fn from(value: &AccountInfo) -> AccountInfo
fn from(value: &AccountInfo) -> AccountInfo
Converts to this type from the input type.
Source§impl Serialize for AccountInfo
impl Serialize for AccountInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for AccountInfo
impl RefUnwindSafe for AccountInfo
impl Send for AccountInfo
impl Sync for AccountInfo
impl Unpin for AccountInfo
impl UnwindSafe for AccountInfo
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