pub struct TokenCreateEvent {Show 25 fields
pub bonding_curve: Address,
pub base_mint: Address,
pub base_decimals: u8,
pub base_supply: u64,
pub initial_virtual_base: u64,
pub initial_virtual_quote: u64,
pub initial_real_base: u64,
pub quote_mint: Address,
pub quote_decimals: u8,
pub coin_creator: Address,
pub creator_platform: String,
pub creator_id: String,
pub creator_fee_config: Address,
pub platform_config: Address,
pub name: String,
pub symbol: String,
pub uri: String,
pub partner: Address,
pub is_partner: bool,
pub creation_fee: u64,
pub virtual_base_reserves: u64,
pub virtual_quote_reserves: u64,
pub real_base_reserves: u64,
pub real_quote_reserves: u64,
pub timestamp: i64,
}Fields§
§bonding_curve: Address§base_mint: Address§base_decimals: u8§base_supply: u64§initial_virtual_base: u64§initial_virtual_quote: u64§initial_real_base: u64§quote_mint: Address§quote_decimals: u8§coin_creator: Address§creator_platform: String§creator_id: String§creator_fee_config: Address§platform_config: Address§name: String§symbol: String§uri: String§partner: Address§is_partner: bool§creation_fee: u64§virtual_base_reserves: u64§virtual_quote_reserves: u64§real_base_reserves: u64§real_quote_reserves: u64§timestamp: i64Implementations§
Source§impl TokenCreateEvent
impl TokenCreateEvent
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 TokenCreateEvent
impl BorshDeserialize for TokenCreateEvent
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 TokenCreateEvent
impl BorshSerialize for TokenCreateEvent
Source§impl Clone for TokenCreateEvent
impl Clone for TokenCreateEvent
Source§fn clone(&self) -> TokenCreateEvent
fn clone(&self) -> TokenCreateEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TokenCreateEvent
impl Debug for TokenCreateEvent
Source§impl<'de> Deserialize<'de> for TokenCreateEvent
impl<'de> Deserialize<'de> for TokenCreateEvent
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 TokenCreateEvent
Source§impl PartialEq for TokenCreateEvent
impl PartialEq for TokenCreateEvent
Source§impl Serialize for TokenCreateEvent
impl Serialize for TokenCreateEvent
impl StructuralPartialEq for TokenCreateEvent
Auto Trait Implementations§
impl Freeze for TokenCreateEvent
impl RefUnwindSafe for TokenCreateEvent
impl Send for TokenCreateEvent
impl Sync for TokenCreateEvent
impl Unpin for TokenCreateEvent
impl UnsafeUnpin for TokenCreateEvent
impl UnwindSafe for TokenCreateEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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