pub struct Schema {
pub methods: HashMap<String, MethodDef>,
pub events: HashMap<String, EventDef>,
}Expand description
Schema (legacy, prefer InitSchema).
Fields§
§methods: HashMap<String, MethodDef>Map of method names to their definitions.
events: HashMap<String, EventDef>Map of event names to their definitions.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnwindSafe for Schema
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