Skip to main content

CheckOwner

Trait CheckOwner 

Source
pub trait CheckOwner {
    // Required method
    fn owned_by(program_id: &Address) -> bool;
}
Expand description

Trait to check whether a program ID is a valid owner.

Required Methods§

Source

fn owned_by(program_id: &Address) -> bool

Returns true if the given program ID is an allowed owner.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§