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: PublicKeyValidator key which will be used to sign transactions on behalf of signer_id
stake: StringAmount 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§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 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<StakeAction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StakeAction, <__D as Deserializer<'de>>::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) -> StakeAction
fn from(value: &StakeAction) -> StakeAction
Converts to this type from the input type.
Source§impl From<StakeAction> for Action
impl From<StakeAction> for Action
Source§fn from(value: StakeAction) -> Action
fn from(value: StakeAction) -> Action
Converts to this type from the input type.
Source§impl Serialize for StakeAction
impl Serialize for StakeAction
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 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