pub struct SolanaProgram {
pub name: String,
pub path: PathBuf,
pub manifest_path: PathBuf,
}Expand description
A confirmed Solana program (has crate-type = [“cdylib”])
Fields§
§name: String§path: PathBuf§manifest_path: PathBufImplementations§
Source§impl SolanaProgram
impl SolanaProgram
Sourcepub fn env_var_name(&self) -> String
pub fn env_var_name(&self) -> String
Generate environment variable name for this program e.g., “token_manager” → “PROGRAM_TOKEN_MANAGER_ELF_MAGIC_PATH”
Sourcepub fn constant_name(&self) -> String
pub fn constant_name(&self) -> String
Generate constant name for this program e.g., “token_manager” → “TOKEN_MANAGER_ELF”
Trait Implementations§
Source§impl Clone for SolanaProgram
impl Clone for SolanaProgram
Source§fn clone(&self) -> SolanaProgram
fn clone(&self) -> SolanaProgram
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SolanaProgram
impl Debug for SolanaProgram
Auto Trait Implementations§
impl Freeze for SolanaProgram
impl RefUnwindSafe for SolanaProgram
impl Send for SolanaProgram
impl Sync for SolanaProgram
impl Unpin for SolanaProgram
impl UnwindSafe for SolanaProgram
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