#[non_exhaustive]pub struct GateContext<'a> {
pub skill_id: &'a str,
pub params: &'a Value,
pub output: &'a Value,
}Expand description
What a gate sees: the skill id, the invocation params and the output the handler produced.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.skill_id: &'a str§params: &'a Value§output: &'a ValueTrait Implementations§
Source§impl<'a> Clone for GateContext<'a>
impl<'a> Clone for GateContext<'a>
impl<'a> Copy for GateContext<'a>
Auto Trait Implementations§
impl<'a> Forget for GateContext<'a>
impl<'a> Freeze for GateContext<'a>
impl<'a> Move for GateContext<'a>
impl<'a> RefUnwindSafe for GateContext<'a>
impl<'a> Send for GateContext<'a>
impl<'a> Sync for GateContext<'a>
impl<'a> Unpin for GateContext<'a>
impl<'a> UnsafeUnpin for GateContext<'a>
impl<'a> UnwindSafe for GateContext<'a>
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