pub struct Context<Event> {
pub event: Event,
pub is_owner: bool,
}Expand description
Contrat execution context.
Fields§
§event: EventEvent that triggered the contract execution
is_owner: boolIs the sender of the event the owner of the contract
Trait Implementations§
Source§impl<'de, Event> Deserialize<'de> for Context<Event>where
Event: Deserialize<'de>,
impl<'de, Event> Deserialize<'de> for Context<Event>where
Event: 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
Auto Trait Implementations§
impl<Event> Freeze for Context<Event>where
Event: Freeze,
impl<Event> RefUnwindSafe for Context<Event>where
Event: RefUnwindSafe,
impl<Event> Send for Context<Event>where
Event: Send,
impl<Event> Sync for Context<Event>where
Event: Sync,
impl<Event> Unpin for Context<Event>where
Event: Unpin,
impl<Event> UnwindSafe for Context<Event>where
Event: 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