pub struct HapiChecker { /* private fields */ }
Implementations§
Source§impl HapiChecker
impl HapiChecker
pub fn new(environment: HapiEnvironment) -> Self
pub fn max_risk(&mut self, risk: u8) -> &mut Self
pub fn ignore_category(&mut self, category: Category) -> &mut Self
pub fn get_hapi_address_seeds<'a>( &'a self, account: &'a Pubkey, ) -> [&'a [u8]; 4]
pub fn get_hapi_address(&self, account: &Pubkey) -> (Pubkey, u8)
pub fn check_address_risk( &self, address_info: &AccountInfo<'_>, payer_account: &Pubkey, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for HapiChecker
impl RefUnwindSafe for HapiChecker
impl Send for HapiChecker
impl Sync for HapiChecker
impl Unpin for HapiChecker
impl UnwindSafe for HapiChecker
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more