pub enum Reaction {
Menu(Value),
Session(bool, String),
Created(Amount, ExtendedAddress, Program),
Saved(bool),
Bound(Vec<Transaction>),
}
Expand description
A response to a client request
Variants§
Menu(Value)
Send over a menu of available contracts / their arguments
Session(bool, String)
sendthe Session ID
Created(Amount, ExtendedAddress, Program)
Send the program created
Saved(bool)
if the save request completed successfully
Bound(Vec<Transaction>)
respond to Bind request with the transactions created
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Reaction
impl<'de> Deserialize<'de> for Reaction
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
Auto Trait Implementations§
impl !Freeze for Reaction
impl RefUnwindSafe for Reaction
impl Send for Reaction
impl Sync for Reaction
impl Unpin for Reaction
impl UnwindSafe for Reaction
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