#[repr(C)]pub struct CAccountInfo {
pub key: *const Pubkey,
pub lamports: *const u64,
pub data_len: u64,
pub data: *const u8,
pub owner: *const Pubkey,
pub rent_epoch: u64,
pub is_signer: bool,
pub is_writable: bool,
pub executable: bool,
}
Expand description
An AccountInfo`` as expected by
sol_invoke_signed_c`.
Fields§
§key: *const Pubkey
§lamports: *const u64
§data_len: u64
§data: *const u8
§owner: *const Pubkey
§rent_epoch: u64
§is_signer: bool
§is_writable: bool
§executable: bool
Trait Implementations§
Source§impl Clone for CAccountInfo
impl Clone for CAccountInfo
Source§fn clone(&self) -> CAccountInfo
fn clone(&self) -> CAccountInfo
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 From<&AccountInfo> for CAccountInfo
impl From<&AccountInfo> for CAccountInfo
Source§fn from(account: &AccountInfo) -> Self
fn from(account: &AccountInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CAccountInfo
impl RefUnwindSafe for CAccountInfo
impl !Send for CAccountInfo
impl !Sync for CAccountInfo
impl Unpin for CAccountInfo
impl UnwindSafe for CAccountInfo
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