Enum dlc_manager::contract::ContractDescriptor
source · pub enum ContractDescriptor {
Enum(EnumDescriptor),
Numerical(NumericalDescriptor),
}Expand description
The descriptor of a contract.
Variants§
Enum(EnumDescriptor)
Case for enumeration outcome DLC.
Numerical(NumericalDescriptor)
Case for numerical outcome DLC.
Implementations§
source§impl ContractDescriptor
impl ContractDescriptor
sourcepub fn get_oracle_params(&self) -> Option<DifferenceParams>
pub fn get_oracle_params(&self) -> Option<DifferenceParams>
Get the parameters on allowed divergence between oracle if any.
Trait Implementations§
source§impl Clone for ContractDescriptor
impl Clone for ContractDescriptor
source§fn clone(&self) -> ContractDescriptor
fn clone(&self) -> ContractDescriptor
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 ContractDescriptor
impl Debug for ContractDescriptor
source§impl From<&ContractDescriptor> for SerContractDescriptor
impl From<&ContractDescriptor> for SerContractDescriptor
source§fn from(descriptor: &ContractDescriptor) -> SerContractDescriptor
fn from(descriptor: &ContractDescriptor) -> SerContractDescriptor
Converts to this type from the input type.