Enum nois::ProxyExecuteMsg
source · pub enum ProxyExecuteMsg {
GetNextRandomness {
job_id: String,
},
GetRandomnessAfter {
after: Timestamp,
job_id: String,
},
}Variants§
GetNextRandomness
Fields
§
job_id: StringA job ID chosen by the caller.
Then length of this must not exceed MAX_JOB_ID_LEN.
Gets the next randomness.
GetRandomnessAfter
Fields
§
job_id: StringA job ID chosen by the caller.
Then length of this must not exceed MAX_JOB_ID_LEN.
Gets a randomness that is published after the provided timestamp.
For example you can request a randomness in e.g. 25 hours for a game round that runs for the upcoming 24 hours.
Working with this message is only inteded for advanced use cases.
You need to ensure in the calling app that no action can be performed
anymore once after is reached. You need to consider that the BFT blocktime
can be behind and add an appriate safety margin.
Trait Implementations§
source§impl Clone for ProxyExecuteMsg
impl Clone for ProxyExecuteMsg
source§fn clone(&self) -> ProxyExecuteMsg
fn clone(&self) -> ProxyExecuteMsg
Returns a copy 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 Debug for ProxyExecuteMsg
impl Debug for ProxyExecuteMsg
source§impl<'de> Deserialize<'de> for ProxyExecuteMsg
impl<'de> Deserialize<'de> for ProxyExecuteMsg
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 JsonSchema for ProxyExecuteMsg
impl JsonSchema for ProxyExecuteMsg
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§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 PartialEq<ProxyExecuteMsg> for ProxyExecuteMsg
impl PartialEq<ProxyExecuteMsg> for ProxyExecuteMsg
source§fn eq(&self, other: &ProxyExecuteMsg) -> bool
fn eq(&self, other: &ProxyExecuteMsg) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ProxyExecuteMsg
impl Serialize for ProxyExecuteMsg
impl StructuralPartialEq for ProxyExecuteMsg
Auto Trait Implementations§
impl RefUnwindSafe for ProxyExecuteMsg
impl Send for ProxyExecuteMsg
impl Sync for ProxyExecuteMsg
impl Unpin for ProxyExecuteMsg
impl UnwindSafe for ProxyExecuteMsg
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