pub struct ReserveRequestWeight { /* private fields */ }Expand description
reserveRequestWeight: {type, weight, destination}, the destination only when set. Buys
weight more requests at RESERVED_REQUEST_COST each, for the signer’s account or for
another account that already exists. An agent may sign it for its master.
Implementations§
Source§impl ReserveRequestWeight
impl ReserveRequestWeight
Sourcepub fn new(weight: u64) -> Result<ReserveRequestWeight, BadWeight>
pub fn new(weight: u64) -> Result<ReserveRequestWeight, BadWeight>
weight more requests for the account that signs.
Sourcepub const fn for_user(self, destination: Address) -> ReserveRequestWeight
pub const fn for_user(self, destination: Address) -> ReserveRequestWeight
For destination instead, paid by the account that signs.
Sourcepub const fn destination(&self) -> Option<Address>
pub const fn destination(&self) -> Option<Address>
The account the requests are for; None for the one that signs.
Trait Implementations§
Source§impl Clone for ReserveRequestWeight
impl Clone for ReserveRequestWeight
impl Copy for ReserveRequestWeight
Source§impl Debug for ReserveRequestWeight
impl Debug for ReserveRequestWeight
impl Eq for ReserveRequestWeight
Source§impl L1Action for ReserveRequestWeight
impl L1Action for ReserveRequestWeight
Source§fn action(&self) -> Map
fn action(&self) -> Map
The action’s keys and values in wire order, which is the hashed order.
Source§fn msgpack(&self) -> Vec<u8> ⓘ
fn msgpack(&self) -> Vec<u8> ⓘ
The action as msgpack bytes, the first part of the connection id’s hash.
Source§fn typed(
&self,
nonce: u64,
vault: Option<Address>,
network: Network,
) -> TypedStruct<'static>
fn typed( &self, nonce: u64, vault: Option<Address>, network: Network, ) -> TypedStruct<'static>
The phantom agent struct the key signs for this action.
Source§fn digest(
&self,
nonce: u64,
vault: Option<Address>,
network: Network,
) -> [u8; 32]
fn digest( &self, nonce: u64, vault: Option<Address>, network: Network, ) -> [u8; 32]
What the key signs for this action: the phantom agent’s digest under
Domain::EXCHANGE.Source§impl PartialEq for ReserveRequestWeight
impl PartialEq for ReserveRequestWeight
impl StructuralPartialEq for ReserveRequestWeight
Auto Trait Implementations§
impl Forget for ReserveRequestWeight
impl Freeze for ReserveRequestWeight
impl Move for ReserveRequestWeight
impl RefUnwindSafe for ReserveRequestWeight
impl Send for ReserveRequestWeight
impl Sync for ReserveRequestWeight
impl Unpin for ReserveRequestWeight
impl UnsafeUnpin for ReserveRequestWeight
impl UnwindSafe for ReserveRequestWeight
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.