pub enum TgradeSudoMsg<S = Empty> {
BeginBlock {
evidence: Vec<Evidence>,
},
EndBlock {},
EndWithValidatorUpdate {},
PrivilegeChange(PrivilegeChangeMsg),
Export {},
Import(S),
}Variants§
BeginBlock
This will be delivered every block if the contract is currently registered for Begin Block types based on subset of https://github.com/tendermint/tendermint/blob/v0.34.8/proto/tendermint/abci/types.proto#L81
Fields
EndBlock
This will be delivered every block if the contract is currently registered for End Block Block height and time is already in Env.
EndWithValidatorUpdate
This will be delivered after all end blockers if this is registered for ValidatorUpdates. If it sets Response.data, it must be a JSON-encoded ValidatorDiff, which will be used to change the validator set.
PrivilegeChange(PrivilegeChangeMsg)
Export
This will export contract state. Requires StateExporterImporter privilege.
Import(S)
This will import contract state. Requires StateExporterImporter privilege.
Trait Implementations§
Source§impl<S: Clone> Clone for TgradeSudoMsg<S>
impl<S: Clone> Clone for TgradeSudoMsg<S>
Source§fn clone(&self) -> TgradeSudoMsg<S>
fn clone(&self) -> TgradeSudoMsg<S>
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<S: Debug> Debug for TgradeSudoMsg<S>
impl<S: Debug> Debug for TgradeSudoMsg<S>
Source§impl<'de, S> Deserialize<'de> for TgradeSudoMsg<S>where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for TgradeSudoMsg<S>where
S: Deserialize<'de>,
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<S: JsonSchema> JsonSchema for TgradeSudoMsg<S>
impl<S: JsonSchema> JsonSchema for TgradeSudoMsg<S>
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl<S: PartialEq> PartialEq for TgradeSudoMsg<S>
impl<S: PartialEq> PartialEq for TgradeSudoMsg<S>
Source§impl<S> Serialize for TgradeSudoMsg<S>where
S: Serialize,
impl<S> Serialize for TgradeSudoMsg<S>where
S: Serialize,
impl<S: Eq> Eq for TgradeSudoMsg<S>
impl<S> StructuralPartialEq for TgradeSudoMsg<S>
Auto Trait Implementations§
impl<S> Freeze for TgradeSudoMsg<S>where
S: Freeze,
impl<S> RefUnwindSafe for TgradeSudoMsg<S>where
S: RefUnwindSafe,
impl<S> Send for TgradeSudoMsg<S>where
S: Send,
impl<S> Sync for TgradeSudoMsg<S>where
S: Sync,
impl<S> Unpin for TgradeSudoMsg<S>where
S: Unpin,
impl<S> UnwindSafe for TgradeSudoMsg<S>where
S: UnwindSafe,
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