pub struct DelegateOptions {
pub max_block_height: Option<u64>,
pub block_height_offset: Option<u64>,
pub nonce: Option<u64>,
}Expand description
Options for creating a delegate action (meta-transaction).
Fields§
§max_block_height: Option<u64>Explicit block height at which the delegate action expires.
If omitted, uses the current block height plus block_height_offset.
block_height_offset: Option<u64>Number of blocks after the current height when the delegate action should expire.
Defaults to 200 blocks if neither this nor max_block_height is provided.
nonce: Option<u64>Override nonce to use for the delegate action. If omitted, fetches from the access key and uses nonce + 1.
Implementations§
Source§impl DelegateOptions
impl DelegateOptions
Sourcepub fn with_offset(offset: u64) -> Self
pub fn with_offset(offset: u64) -> Self
Create options with a specific block height offset.
Sourcepub fn with_max_height(height: u64) -> Self
pub fn with_max_height(height: u64) -> Self
Create options with a specific max block height.
Trait Implementations§
Source§impl Clone for DelegateOptions
impl Clone for DelegateOptions
Source§fn clone(&self) -> DelegateOptions
fn clone(&self) -> DelegateOptions
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 DelegateOptions
impl Debug for DelegateOptions
Source§impl Default for DelegateOptions
impl Default for DelegateOptions
Source§fn default() -> DelegateOptions
fn default() -> DelegateOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DelegateOptions
impl RefUnwindSafe for DelegateOptions
impl Send for DelegateOptions
impl Sync for DelegateOptions
impl Unpin for DelegateOptions
impl UnsafeUnpin for DelegateOptions
impl UnwindSafe for DelegateOptions
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