#[repr(C)]pub struct AdminAccount {
pub type_account: u8,
pub list_admins: Vec<UserAdminStruct>,
}Fields§
§type_account: u8The type of account.
list_admins: Vec<UserAdminStruct>list_admins: : list of UserAdminStruct.
Trait Implementations§
Source§impl Clone for AdminAccount
impl Clone for AdminAccount
Source§fn clone(&self) -> AdminAccount
fn clone(&self) -> AdminAccount
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 AdminAccount
impl Debug for AdminAccount
Source§impl Default for AdminAccount
impl Default for AdminAccount
Source§fn default() -> AdminAccount
fn default() -> AdminAccount
Returns the “default value” for a type. Read more
Source§impl IsInitialized for AdminAccount
impl IsInitialized for AdminAccount
Source§fn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
Is initialized
Source§impl Pack for AdminAccount
impl Pack for AdminAccount
Source§fn get_packed_len() -> usize
fn get_packed_len() -> usize
Get the packed length
Source§fn unpack(input: &[u8]) -> Result<Self, ProgramError>where
Self: IsInitialized,
fn unpack(input: &[u8]) -> Result<Self, ProgramError>where
Self: IsInitialized,
Unpack from slice and check if initialized
Source§fn unpack_unchecked(input: &[u8]) -> Result<Self, ProgramError>
fn unpack_unchecked(input: &[u8]) -> Result<Self, ProgramError>
Unpack from slice without checking if initialized
Source§impl PartialEq for AdminAccount
impl PartialEq for AdminAccount
impl Sealed for AdminAccount
impl StructuralPartialEq for AdminAccount
Auto Trait Implementations§
impl Freeze for AdminAccount
impl RefUnwindSafe for AdminAccount
impl Send for AdminAccount
impl Sync for AdminAccount
impl Unpin for AdminAccount
impl UnwindSafe for AdminAccount
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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