pub trait SysvarId {
    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.

Implementors§