pub struct Delegation {
pub sender: String,
pub delegate_to: String,
pub fee: Currency,
pub memo: Option<String>,
pub nonce: Option<u64>,
}Expand description
Parameters for sending a stake delegation transaction.
use mina_sdk::{Delegation, Currency};
let delegation = Delegation::sender("B62qsender...")
.to("B62qdelegate...")
.fee(Currency::from_nanomina(10_000_000))
.memo("staking");Fields§
§sender: String§delegate_to: String§fee: Currency§memo: Option<String>§nonce: Option<u64>Implementations§
Source§impl Delegation
impl Delegation
Trait Implementations§
Source§impl Clone for Delegation
impl Clone for Delegation
Source§fn clone(&self) -> Delegation
fn clone(&self) -> Delegation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Delegation
impl RefUnwindSafe for Delegation
impl Send for Delegation
impl Sync for Delegation
impl Unpin for Delegation
impl UnsafeUnpin for Delegation
impl UnwindSafe for Delegation
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