pub struct Metadata<L: Language> { /* private fields */ }Trait Implementations§
Source§impl<L: Language> Plugin<L> for Metadata<L>
impl<L: Language> Plugin<L> for Metadata<L>
Source§fn supports_native_input(&self) -> bool
fn supports_native_input(&self) -> bool
Opt in when this plugin reads protocol contracts instead of the legacy HTTP context.
Native generation skips packages containing HTTP-only plugins before loading sources.
fn kind(&self) -> &'static str
fn meta(&self) -> &Meta
fn provides(&self) -> Vec<Provision>
fn generate(&self, cx: &mut PluginContext<'_, L>) -> Result<()>
Source§fn phase(&self) -> PluginPhase
fn phase(&self) -> PluginPhase
Selects the plugin lifecycle phase. The default honors
Self::enforce
so a post plugin only needs to override that shorthand.fn requires(&self) -> Vec<Requirement>
Auto Trait Implementations§
impl<L> Freeze for Metadata<L>where
PhantomData<L>: Freeze,
impl<L> RefUnwindSafe for Metadata<L>where
PhantomData<L>: RefUnwindSafe,
impl<L> Send for Metadata<L>where
PhantomData<L>: Send,
impl<L> Sync for Metadata<L>where
PhantomData<L>: Sync,
impl<L> Unpin for Metadata<L>where
PhantomData<L>: Unpin,
impl<L> UnsafeUnpin for Metadata<L>where
PhantomData<L>: UnsafeUnpin,
impl<L> UnwindSafe for Metadata<L>where
PhantomData<L>: UnwindSafe,
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