pub trait ComponentDeserialize: Sized {
// Required method
fn from_account_info(account: &AccountInfo<'_>) -> Result<Self>;
}Expand description
Allows to deserialize a component AccountInfo into a struct.
Required Methods§
Sourcefn from_account_info(account: &AccountInfo<'_>) -> Result<Self>
fn from_account_info(account: &AccountInfo<'_>) -> Result<Self>
Deserializes an AccountInfo into a Self.
Account.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.