#[repr(u8)]pub enum Role {
Manager = 0,
SolverAuthority = 1,
ReclaimAuthority = 2,
SettlementOwnedOrderAuthority = 3,
}Expand description
A transferable authority stored in the state PDA.
The discriminant is the wire value carried by the authority-transfer
instruction (see transfer_authority).
Variants§
Manager = 0
The account authorized to transfer roles. It is the highest authority: it may transfer any role.
SolverAuthority = 1
The account authorized to add and remove solvers.
ReclaimAuthority = 2
The account authorized to close buffer accounts and reclaim their rent, choosing where that rent goes.
SettlementOwnedOrderAuthority = 3
The account authorized to place orders that sell the protocol’s own buffer balances (e.g., fee withdrawals). It chooses the destination, the bought token, and the price of those orders. It may also withdraw the native SOL buffer’s lamports above rent.
Implementations§
Trait Implementations§
impl Copy for Role
impl Eq for Role
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnsafeUnpin for Role
impl UnwindSafe for Role
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