pub struct ProgramSafetyReport {
pub program_id: Pubkey,
pub is_verified: bool,
pub has_upgrade_authority: bool,
pub upgrade_authority: Option<Pubkey>,
pub is_frozen: bool,
pub risk_level: ProgramRiskLevel,
pub warnings: Vec<ProgramWarning>,
pub blocklisted: bool,
pub blocklist_reason: Option<String>,
}Expand description
Program safety report.
Fields§
§program_id: PubkeyProgram ID analyzed.
is_verified: boolWhether the program is verified (on known safe list).
Whether the program has an upgrade authority.
The upgrade authority if present.
is_frozen: boolWhether the program is frozen (no upgrade authority).
risk_level: ProgramRiskLevelOverall risk level.
warnings: Vec<ProgramWarning>Specific warnings.
blocklisted: boolWhether the program is blocklisted.
blocklist_reason: Option<String>Reason for blocklisting if applicable.
Trait Implementations§
Source§impl Clone for ProgramSafetyReport
impl Clone for ProgramSafetyReport
Source§fn clone(&self) -> ProgramSafetyReport
fn clone(&self) -> ProgramSafetyReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProgramSafetyReport
impl RefUnwindSafe for ProgramSafetyReport
impl Send for ProgramSafetyReport
impl Sync for ProgramSafetyReport
impl Unpin for ProgramSafetyReport
impl UnsafeUnpin for ProgramSafetyReport
impl UnwindSafe for ProgramSafetyReport
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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