pub struct ApiReference<L: Language> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<L: Language> Plugin<L> for ApiReference<L>
impl<L: Language> Plugin<L> for ApiReference<L>
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.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 requires(&self) -> Vec<Requirement>
Auto Trait Implementations§
impl<L> Freeze for ApiReference<L>where
PhantomData<L>: Freeze,
impl<L> RefUnwindSafe for ApiReference<L>where
PhantomData<L>: RefUnwindSafe,
impl<L> Send for ApiReference<L>where
PhantomData<L>: Send,
impl<L> Sync for ApiReference<L>where
PhantomData<L>: Sync,
impl<L> Unpin for ApiReference<L>where
PhantomData<L>: Unpin,
impl<L> UnsafeUnpin for ApiReference<L>where
PhantomData<L>: UnsafeUnpin,
impl<L> UnwindSafe for ApiReference<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