pub enum OnchainEffect {
RegisterContractWithConstructor(RegisterContractEffect),
RegisterContract(RegisterContractEffect),
DeleteContract(ContractName),
UpdateContractProgramId(ContractName, ProgramId),
UpdateTimeoutWindow(ContractName, TimeoutWindow),
}Expand description
Enum for various side-effects blobs can have on the chain. This is implemented as an enum for easier forward compatibility.
Variants§
RegisterContractWithConstructor(RegisterContractEffect)
RegisterContractWithConstructor means that we expect the next blob from the contract to be a placeholder containing the constructor_metadata
RegisterContract(RegisterContractEffect)
RegisterContract means that we expect the contract’s next blob to be a real blob that will get proven
DeleteContract(ContractName)
UpdateContractProgramId(ContractName, ProgramId)
UpdateTimeoutWindow(ContractName, TimeoutWindow)
Trait Implementations§
Source§impl BorshDeserialize for OnchainEffect
impl BorshDeserialize for OnchainEffect
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for OnchainEffect
impl BorshSerialize for OnchainEffect
Source§impl Clone for OnchainEffect
impl Clone for OnchainEffect
Source§fn clone(&self) -> OnchainEffect
fn clone(&self) -> OnchainEffect
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for OnchainEffect
impl ComposeSchema for OnchainEffect
Source§impl Debug for OnchainEffect
impl Debug for OnchainEffect
Source§impl<'de> Deserialize<'de> for OnchainEffect
impl<'de> Deserialize<'de> for OnchainEffect
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
Source§impl EnumExt for OnchainEffect
impl EnumExt for OnchainEffect
Source§impl Hashed<OnchainEffectHash> for OnchainEffect
Available on crate feature full only.
impl Hashed<OnchainEffectHash> for OnchainEffect
Available on crate feature
full only.fn hashed(&self) -> OnchainEffectHash
Source§impl PartialEq for OnchainEffect
impl PartialEq for OnchainEffect
Source§impl Serialize for OnchainEffect
impl Serialize for OnchainEffect
Source§impl ToSchema for OnchainEffect
impl ToSchema for OnchainEffect
impl Eq for OnchainEffect
impl StructuralPartialEq for OnchainEffect
Auto Trait Implementations§
impl Freeze for OnchainEffect
impl RefUnwindSafe for OnchainEffect
impl Send for OnchainEffect
impl Sync for OnchainEffect
impl Unpin for OnchainEffect
impl UnsafeUnpin for OnchainEffect
impl UnwindSafe for OnchainEffect
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.