pub struct AuthorizeAqav2Role {
pub token: u32,
pub role: AqaRole,
}Expand description
{"type":"authorizeAqav2Role","token","role"}: sent from a deployer’s
staking account to take an AQAv2 role for token (0 for USDC).
Activation then goes to a validator vote.
Fields§
§token: u32The token the role is for, by spot token index; 0 for USDC.
role: AqaRoleThe role taken.
Trait Implementations§
Source§impl Clone for AuthorizeAqav2Role
impl Clone for AuthorizeAqav2Role
impl Copy for AuthorizeAqav2Role
Source§impl Debug for AuthorizeAqav2Role
impl Debug for AuthorizeAqav2Role
impl Eq for AuthorizeAqav2Role
Source§impl L1Action for AuthorizeAqav2Role
impl L1Action for AuthorizeAqav2Role
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 AuthorizeAqav2Role
impl PartialEq for AuthorizeAqav2Role
impl StructuralPartialEq for AuthorizeAqav2Role
Auto Trait Implementations§
impl Forget for AuthorizeAqav2Role
impl Freeze for AuthorizeAqav2Role
impl Move for AuthorizeAqav2Role
impl RefUnwindSafe for AuthorizeAqav2Role
impl Send for AuthorizeAqav2Role
impl Sync for AuthorizeAqav2Role
impl Unpin for AuthorizeAqav2Role
impl UnsafeUnpin for AuthorizeAqav2Role
impl UnwindSafe for AuthorizeAqav2Role
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.