JavaScript is disabled, refresh for a better experience. ambee/giterated

ambee/giterated

Git repository hosting, collaboration, and discovery for the Fediverse.

More restructuring

Amber - ⁨1⁩ year ago

parent: tbd commit: ⁨10b7b7c

⁨giterated-runtime/src/plugin/initialization.rs⁩ - ⁨740⁩ bytes
Raw
1 use std::collections::HashMap;
2
3 use giterated_abi::callback::{
4 operation::OperationHandlerCallback, setting::SettingGetterCallback,
5 value::ValueGetterCallback, CallbackPtr,
6 };
7 use giterated_core::types::TypeMetadata;
8 use giterated_models::{
9 object::ObjectOperationPair, settings::ObjectSettingPair, value::ObjectValuePair,
10 };
11
12 #[derive(Default)]
13 pub struct PluginInitializationState {
14 pub type_metadata: TypeMetadata,
15 pub operation_handlers:
16 HashMap<ObjectOperationPair<'static>, CallbackPtr<OperationHandlerCallback>>,
17 pub value_getters: HashMap<ObjectValuePair<'static>, CallbackPtr<ValueGetterCallback>>,
18 pub setting_getters: HashMap<ObjectSettingPair<'static>, CallbackPtr<SettingGetterCallback>>,
19 }
20