solana_sdk::sysvar

Trait SysvarId

source
pub trait SysvarId {
    // Required methods
    fn id() -> Pubkey;
    fn check_id(pubkey: &Pubkey) -> bool;
}
Expand description

A type that holds sysvar data and has an associated sysvar Pubkey.

Required Methods§

source

fn id() -> Pubkey

The Pubkey of the sysvar.

source

fn check_id(pubkey: &Pubkey) -> bool

Returns true if the given pubkey is the program ID.

Object Safety§

This trait is not object safe.

Implementors§