Skip to main content

HasTokenVariant

Trait HasTokenVariant 

Source
pub trait HasTokenVariant {
    // Required method
    fn is_packed_token(&self) -> bool;
}
Expand description

Trait for account variants that can be checked for token or PDA type.

Required Methods§

Source

fn is_packed_token(&self) -> bool

Returns true if this variant represents a token account (PackedTokenData).

Implementors§