Struct mpl_testing_utils::utils::ExternalPrice
source · [−]Fields
keypair: Keypairprice_mint: KeypairImplementations
sourceimpl ExternalPrice
impl ExternalPrice
pub fn new() -> Self
pub async fn get_data(
&self,
context: &mut ProgramTestContext
) -> ExternalPriceAccount
pub async fn update(
&self,
context: &mut ProgramTestContext,
price_per_share: u64,
price_mint: &Pubkey,
allowed_to_combine: bool
) -> Result<(), BanksClientError>
pub async fn create(
&self,
context: &mut ProgramTestContext
) -> Result<(), BanksClientError>
Trait Implementations
sourceimpl Debug for ExternalPrice
impl Debug for ExternalPrice
Auto Trait Implementations
impl RefUnwindSafe for ExternalPrice
impl Send for ExternalPrice
impl Sync for ExternalPrice
impl Unpin for ExternalPrice
impl UnwindSafe for ExternalPrice
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more