pub enum CyberMsg {
Show 15 variants
Cyberlink {
neuron: String,
links: Vec<Link>,
},
Investmint {
neuron: String,
amount: Coin,
resource: String,
length: u64,
},
CreateEnergyRoute {
source: String,
destination: String,
name: String,
},
EditEnergyRoute {
source: String,
destination: String,
value: Coin,
},
EditEnergyRouteName {
source: String,
destination: String,
name: String,
},
DeleteEnergyRoute {
source: String,
destination: String,
},
CreateThought {
program: String,
trigger: Trigger,
load: Load,
name: String,
particle: String,
},
ForgetThought {
program: String,
name: String,
},
ChangeThoughtInput {
program: String,
name: String,
input: String,
},
ChangeThoughtPeriod {
program: String,
name: String,
period: u64,
},
ChangeThoughtBlock {
program: String,
name: String,
block: u64,
},
CreatePool {
pool_creator_address: String,
pool_type_id: u32,
deposit_coins: Vec<Coin>,
},
DepositWithinBatch {
depositor_address: String,
pool_id: u64,
deposit_coins: Vec<Coin>,
},
WithdrawWithinBatch {
withdrawer_address: String,
pool_id: u64,
pool_coin: Coin,
},
SwapWithinBatch {
swap_requester_address: String,
pool_id: u64,
swap_type_id: u32,
offer_coin: Coin,
demand_coin_denom: String,
offer_coin_fee: Coin,
order_price: Decimal,
},
}
Variants
Cyberlink
Investmint
CreateEnergyRoute
EditEnergyRoute
EditEnergyRouteName
DeleteEnergyRoute
CreateThought
ForgetThought
ChangeThoughtInput
ChangeThoughtPeriod
ChangeThoughtBlock
CreatePool
DepositWithinBatch
WithdrawWithinBatch
SwapWithinBatch
Fields
swap_requester_address: String
pool_id: u64
swap_type_id: u32
offer_coin: Coin
demand_coin_denom: String
offer_coin_fee: Coin
order_price: Decimal
Trait Implementations
sourceimpl<'de> Deserialize<'de> for CyberMsg
impl<'de> Deserialize<'de> for CyberMsg
sourcefn 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
sourceimpl JsonSchema for CyberMsg
impl JsonSchema for CyberMsg
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn 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 more
sourceimpl PartialEq<CyberMsg> for CyberMsg
impl PartialEq<CyberMsg> for CyberMsg
impl StructuralPartialEq for CyberMsg
Auto Trait Implementations
impl RefUnwindSafe for CyberMsg
impl Send for CyberMsg
impl Sync for CyberMsg
impl Unpin for CyberMsg
impl UnwindSafe for CyberMsg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more