pub struct MigrateEvent {
pub bonding_curve: Address,
pub base_mint: Address,
pub quote_mint: Address,
pub pool: Address,
pub coin_creator: Address,
pub creator_fee_config: Address,
pub platform_config: Address,
pub base_amount: u64,
pub quote_amount: u64,
pub real_quote_reserves: u64,
pub timestamp: i64,
}Fields§
§bonding_curve: Address§base_mint: Address§quote_mint: Address§pool: Address§coin_creator: Address§creator_fee_config: Address§platform_config: Address§base_amount: u64§quote_amount: u64§real_quote_reserves: u64§timestamp: i64Implementations§
Source§impl MigrateEvent
impl MigrateEvent
Sourcepub fn matches(program_id: &Address, data: &[u8]) -> bool
pub fn matches(program_id: &Address, data: &[u8]) -> bool
Anchor discriminators are derived from names alone, so identical bytes recur across programs and the bytes alone cannot tell this event from a foreign one.
Sourcepub fn try_parse(
program_id: &Address,
data: &[u8],
) -> Option<Result<Self, Error>>
pub fn try_parse( program_id: &Address, data: &[u8], ) -> Option<Result<Self, Error>>
None when Self::matches is false; Some(Err(_)) when it matches but the body fails
to deserialize. Use Option::transpose to propagate the failure with ?.
Trait Implementations§
Source§impl BorshDeserialize for MigrateEvent
impl BorshDeserialize for MigrateEvent
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for MigrateEvent
impl BorshSerialize for MigrateEvent
Source§impl Clone for MigrateEvent
impl Clone for MigrateEvent
Source§impl Debug for MigrateEvent
impl Debug for MigrateEvent
Source§impl<'de> Deserialize<'de> for MigrateEvent
impl<'de> Deserialize<'de> for MigrateEvent
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
impl Eq for MigrateEvent
Source§impl PartialEq for MigrateEvent
impl PartialEq for MigrateEvent
Source§impl Serialize for MigrateEvent
impl Serialize for MigrateEvent
impl StructuralPartialEq for MigrateEvent
Auto Trait Implementations§
impl Freeze for MigrateEvent
impl RefUnwindSafe for MigrateEvent
impl Send for MigrateEvent
impl Sync for MigrateEvent
impl Unpin for MigrateEvent
impl UnsafeUnpin for MigrateEvent
impl UnwindSafe for MigrateEvent
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