pub struct SpecDescriptor {
pub spec_id: SpecId,
pub display_name: &'static str,
pub metadata: DeclaredSpecMetadata,
pub handler_factory: fn(HandlerParams<'_>) -> Result<Box<dyn SpecHandler>, EngineError>,
}Expand description
Per-spec registration record held by the engine-content catalog.
Fields§
§spec_id: SpecId§display_name: &'static str§metadata: DeclaredSpecMetadata§handler_factory: fn(HandlerParams<'_>) -> Result<Box<dyn SpecHandler>, EngineError>Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpecDescriptor
impl RefUnwindSafe for SpecDescriptor
impl Send for SpecDescriptor
impl Sync for SpecDescriptor
impl Unpin for SpecDescriptor
impl UnsafeUnpin for SpecDescriptor
impl UnwindSafe for SpecDescriptor
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