Struct safecoin_account_decoder::UiAccount
source · pub struct UiAccount {
pub lamports: u64,
pub data: UiAccountData,
pub owner: String,
pub executable: bool,
pub rent_epoch: Epoch,
}
Expand description
A duplicate representation of an Account for pretty JSON serialization
Fields§
§lamports: u64
§data: UiAccountData
§owner: String
§executable: bool
§rent_epoch: Epoch
Implementations§
source§impl UiAccount
impl UiAccount
pub fn encode<T: ReadableAccount>( pubkey: &Pubkey, account: &T, encoding: UiAccountEncoding, additional_data: Option<AccountAdditionalData>, data_slice_config: Option<UiDataSliceConfig> ) -> Self
pub fn decode<T: WritableAccount>(&self) -> Option<T>
Trait Implementations§
source§impl<'de> Deserialize<'de> for UiAccount
impl<'de> Deserialize<'de> for UiAccount
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<UiAccount> for UiAccount
impl PartialEq<UiAccount> for UiAccount
impl Eq for UiAccount
impl StructuralEq for UiAccount
impl StructuralPartialEq for UiAccount
Auto Trait Implementations§
impl RefUnwindSafe for UiAccount
impl Send for UiAccount
impl Sync for UiAccount
impl Unpin for UiAccount
impl UnwindSafe for UiAccount
Blanket Implementations§
§impl<T> AbiEnumVisitor for Twhere
T: Serialize + AbiExample + ?Sized,
impl<T> AbiEnumVisitor for Twhere T: Serialize + AbiExample + ?Sized,
default fn visit_for_abi( &self, digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
§impl<T> AbiEnumVisitor for Twhere
T: Serialize + ?Sized,
impl<T> AbiEnumVisitor for Twhere T: Serialize + ?Sized,
default fn visit_for_abi( &self, _digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.