pub enum ProtocolProgramV1 {
ProgramSpec {
program_id: String,
program_spec_hash: HashId<ProgramSpec>,
program_release_hash: Option<HashId<ProgramRelease>>,
},
Builtin {
builtin: BuiltinProgram,
},
}Variants§
ProgramSpec
A program with a pinned ProgramSpec. Templates resolve against it.
Builtin
A runtime program whose instructions trusted Rust builds itself.
Fields
§
builtin: BuiltinProgramTrait Implementations§
Source§impl Clone for ProtocolProgramV1
impl Clone for ProtocolProgramV1
Source§impl Debug for ProtocolProgramV1
impl Debug for ProtocolProgramV1
Source§impl<'de> Deserialize<'de> for ProtocolProgramV1
impl<'de> Deserialize<'de> for ProtocolProgramV1
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 ProtocolProgramV1
Source§impl PartialEq for ProtocolProgramV1
impl PartialEq for ProtocolProgramV1
Source§impl Serialize for ProtocolProgramV1
impl Serialize for ProtocolProgramV1
impl StructuralPartialEq for ProtocolProgramV1
Auto Trait Implementations§
impl Freeze for ProtocolProgramV1
impl RefUnwindSafe for ProtocolProgramV1
impl Send for ProtocolProgramV1
impl Sync for ProtocolProgramV1
impl Unpin for ProtocolProgramV1
impl UnsafeUnpin for ProtocolProgramV1
impl UnwindSafe for ProtocolProgramV1
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