spherenet-program-whitelist-client 0.2.2

A generated Rust library for the Program Whitelist program
Documentation
//! This code was AUTOGENERATED using the codama library.
//! Please DO NOT EDIT THIS FILE, instead use visitors
//! to add features, then rerun codama to update it.
//!
//! <https://github.com/codama-idl/codama>
//!

use num_derive::FromPrimitive;
use thiserror::Error;

#[derive(Clone, Debug, Eq, Error, FromPrimitive, PartialEq)]
pub enum SpherenetProgramWhitelistProgramError {
    /// 60456 - No pending authority
    #[error("No pending authority")]
    NoPendingAuthority = 0xEC28,
}

impl From<SpherenetProgramWhitelistProgramError> for solana_program_error::ProgramError {
    fn from(e: SpherenetProgramWhitelistProgramError) -> Self {
        solana_program_error::ProgramError::Custom(e as u32)
    }
}