Struct devol_accounts_kit::accounts::root::root_account::RootAccount
source · #[repr(C)]pub struct RootAccount {
pub header: AccountHeader,
pub wallet_address: Pubkey,
pub kyc_provider: Pubkey,
pub mints_address: Pubkey,
pub instruments_address: Pubkey,
pub workers_address: Pubkey,
pub clients_count: u32,
pub fee_payer: OpenAccountFeePayer,
pub max_light_volume: u64,
}Fields§
§header: AccountHeader§wallet_address: Pubkey§kyc_provider: Pubkey§mints_address: Pubkey§instruments_address: Pubkey§workers_address: Pubkey§clients_count: u32§fee_payer: OpenAccountFeePayer§max_light_volume: u64Trait Implementations§
source§impl Clone for RootAccount
impl Clone for RootAccount
source§fn clone(&self) -> RootAccount
fn clone(&self) -> RootAccount
Returns a copy 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 DevolAccount for RootAccount
impl DevolAccount for RootAccount
fn expected_size() -> usize
fn expected_tag() -> u8
fn expected_version() -> u32
fn check_root( _: AccountTag, _: &AccountHeader, _: &Pubkey ) -> Result<(), DvlError>
fn account_header<'a>(data: Ref<'_, &mut [u8]>) -> &'a AccountHeader
fn check_basic( account_info: &AccountInfo<'_>, root_addr: &Pubkey, program_id: &Pubkey ) -> Result<(), DvlError>
fn check_size( tag: AccountTag, account_data: Ref<'_, &mut [u8]> ) -> Result<(), DvlError>
fn check_tag_and_version( tag: AccountTag, header: &AccountHeader ) -> Result<(), DvlError>
fn check_program_id( tag: AccountTag, account_info: &AccountInfo<'_>, program_id: &Pubkey ) -> Result<(), DvlError>
source§fn from_account_info_basic<'a>(
account_info: &'a AccountInfo<'_>,
root_addr: &Pubkey,
program_id: &Pubkey
) -> Result<&'a Self, DvlError>where
Self: Sized,
fn from_account_info_basic<'a>(
account_info: &'a AccountInfo<'_>,
root_addr: &Pubkey,
program_id: &Pubkey
) -> Result<&'a Self, DvlError>where
Self: Sized,
Transforms
AccountInfo into a reference of Self for on-chain use without the intent to modify the data.source§fn from_account_info_mut_basic<'a>(
account_info: &'a AccountInfo<'_>,
root_addr: &Pubkey,
program_id: &Pubkey
) -> Result<&'a mut Self, DvlError>where
Self: Sized,
fn from_account_info_mut_basic<'a>(
account_info: &'a AccountInfo<'_>,
root_addr: &Pubkey,
program_id: &Pubkey
) -> Result<&'a mut Self, DvlError>where
Self: Sized,
Transforms
AccountInfo into a mutable reference of Self for on-chain use with the intent to modify the data.
Ensures the account is marked as writable.source§impl DevolRegularAccount for RootAccount
impl DevolRegularAccount for RootAccount
fn check_all( account_info: &AccountInfo<'_>, root_addr: &Pubkey, program_id: &Pubkey ) -> Result<(), DvlError>
source§fn from_account_info<'a>(
account_info: &'a AccountInfo<'_>,
root_addr: &Pubkey,
program_id: &Pubkey
) -> Result<&'a Self, DvlError>where
Self: Sized,
fn from_account_info<'a>(
account_info: &'a AccountInfo<'_>,
root_addr: &Pubkey,
program_id: &Pubkey
) -> Result<&'a Self, DvlError>where
Self: Sized,
Transforms
AccountInfo into a reference of Self for on-chain use without the intent to modify the data.source§fn from_account_info_mut<'a>(
account_info: &'a AccountInfo<'_>,
root_addr: &Pubkey,
program_id: &Pubkey
) -> Result<&'a mut Self, DvlError>where
Self: Sized,
fn from_account_info_mut<'a>(
account_info: &'a AccountInfo<'_>,
root_addr: &Pubkey,
program_id: &Pubkey
) -> Result<&'a mut Self, DvlError>where
Self: Sized,
Transforms
AccountInfo into a mutable reference of Self for on-chain use with the intent to modify the data.
Ensures the account is marked as writable.source§impl DvlReadable for RootAccount
impl DvlReadable for RootAccount
type DvlReadParams<'a> = ()
fn get_public_key<'a, 'life0, 'life1, 'async_trait>(
dvl_client: &'life0 DvlClient,
_params: &'life1 Self::DvlReadParams<'a>
) -> Pin<Box<dyn Future<Output = Result<Box<Pubkey>, Box<dyn Error>>> + Send + 'async_trait>>where
Self: Sized + 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn read<'a, 'life0, 'life1, 'async_trait>(
dvl_client: &'life0 DvlClient,
params: &'life1 Self::DvlReadParams<'a>
) -> Pin<Box<dyn Future<Output = Result<Box<Self>, Box<dyn Error>>> + Send + 'async_trait>>where
Self: Sized + 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn read_by_public_key<'life0, 'life1, 'async_trait>(
client: &'life0 DvlClient,
public_key: &'life1 Pubkey
) -> Pin<Box<dyn Future<Output = Result<Box<Self>, Box<dyn Error>>> + Send + 'async_trait>>where
Self: Sized + DevolAccount + Copy + Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
impl Copy for RootAccount
Auto Trait Implementations§
impl Freeze for RootAccount
impl RefUnwindSafe for RootAccount
impl Send for RootAccount
impl Sync for RootAccount
impl Unpin for RootAccount
impl UnwindSafe for RootAccount
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more