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: PublicKey
Trait 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§fn clone_from(&mut self, source: &Self)
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<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<&AccountInfo> for AccountInfo
impl From<&AccountInfo> for AccountInfo
Source§fn from(value: &AccountInfo) -> Self
fn from(value: &AccountInfo) -> Self
Converts to this type from the input type.
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