pub struct StakeAction {
pub public_key: PublicKey,
pub stake: String,
}
Expand description
An action which stakes signer_id tokens and setup’s validator public key
JSON schema
{
"description": "An action which stakes signer_id tokens and setup's validator public key",
"type": "object",
"required": [
"public_key",
"stake"
],
"properties": {
"public_key": {
"description": "Validator key which will be used to sign transactions on behalf of signer_id",
"allOf": [
{
"$ref": "#/components/schemas/PublicKey"
}
]
},
"stake": {
"description": "Amount of tokens to stake.",
"type": "string"
}
}
}
Fields§
§public_key: PublicKey
Validator key which will be used to sign transactions on behalf of signer_id
stake: String
Amount of tokens to stake.
Trait Implementations§
Source§impl Clone for StakeAction
impl Clone for StakeAction
Source§fn clone(&self) -> StakeAction
fn clone(&self) -> StakeAction
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 StakeAction
impl Debug for StakeAction
Source§impl<'de> Deserialize<'de> for StakeAction
impl<'de> Deserialize<'de> for StakeAction
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<&StakeAction> for StakeAction
impl From<&StakeAction> for StakeAction
Source§fn from(value: &StakeAction) -> Self
fn from(value: &StakeAction) -> Self
Converts to this type from the input type.
Source§impl From<StakeAction> for Action
impl From<StakeAction> for Action
Source§fn from(value: StakeAction) -> Self
fn from(value: StakeAction) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StakeAction
impl RefUnwindSafe for StakeAction
impl Send for StakeAction
impl Sync for StakeAction
impl Unpin for StakeAction
impl UnwindSafe for StakeAction
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