pub enum StackProgramSource {
Registry {
registry: String,
version: String,
},
Idl {
idl: String,
},
}Expand description
Where a program’s IDL comes from in the generated Stack Source.
Variants§
Registry
A public registry slug with an exact (=1.2.3) or range (^1.2,
~1.2) version requirement.
Idl
A local IDL file, relative to the Stack Source file.
Implementations§
Source§impl StackProgramSource
impl StackProgramSource
Sourcepub fn default_memo() -> Self
pub fn default_memo() -> Self
The default SPL Memo program source of the full profile.
Trait Implementations§
Source§impl Clone for StackProgramSource
impl Clone for StackProgramSource
Source§impl Debug for StackProgramSource
impl Debug for StackProgramSource
Source§impl<'de> Deserialize<'de> for StackProgramSource
impl<'de> Deserialize<'de> for StackProgramSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StackProgramSource
Source§impl PartialEq for StackProgramSource
impl PartialEq for StackProgramSource
Source§impl Serialize for StackProgramSource
impl Serialize for StackProgramSource
impl StructuralPartialEq for StackProgramSource
Auto Trait Implementations§
impl Freeze for StackProgramSource
impl RefUnwindSafe for StackProgramSource
impl Send for StackProgramSource
impl Sync for StackProgramSource
impl Unpin for StackProgramSource
impl UnsafeUnpin for StackProgramSource
impl UnwindSafe for StackProgramSource
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