#[non_exhaustive]pub struct ExportContext {
pub plugin_name: Option<&'static str>,
pub commands: Vec<Function>,
pub error_handling: ErrorHandlingMode,
pub events: BTreeMap<&'static str, DataType>,
pub type_map: TypeMap,
pub constants: HashMap<Cow<'static, str>, Value>,
}Expand description
The context of what needs to be exported. Used when implementing LanguageExt.
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.plugin_name: Option<&'static str>§commands: Vec<Function>§error_handling: ErrorHandlingMode§events: BTreeMap<&'static str, DataType>§type_map: TypeMap§constants: HashMap<Cow<'static, str>, Value>Trait Implementations§
Source§impl Clone for ExportContext
impl Clone for ExportContext
Source§fn clone(&self) -> ExportContext
fn clone(&self) -> ExportContext
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 moreAuto Trait Implementations§
impl Freeze for ExportContext
impl RefUnwindSafe for ExportContext
impl Send for ExportContext
impl Sync for ExportContext
impl Unpin for ExportContext
impl UnwindSafe for ExportContext
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