pub struct MarkstreamPlugin;Expand description
Installs the markstream assets in an Autumn app.
use autumn_plugin_markstream::MarkstreamPlugin;
autumn_web::app()
.plugin(MarkstreamPlugin::new())
.run()
.await;Then put markstream_head in the page head
and render Markdown with Markstream.
Implementations§
Trait Implementations§
Source§impl Clone for MarkstreamPlugin
impl Clone for MarkstreamPlugin
impl Copy for MarkstreamPlugin
Source§impl Debug for MarkstreamPlugin
impl Debug for MarkstreamPlugin
Source§impl Default for MarkstreamPlugin
impl Default for MarkstreamPlugin
Source§impl Plugin for MarkstreamPlugin
impl Plugin for MarkstreamPlugin
Source§fn name(&self) -> Cow<'static, str>
fn name(&self) -> Cow<'static, str>
Stable identifier used for duplicate-registration detection. Read more
Source§fn build(self, app: AppBuilder) -> AppBuilder
fn build(self, app: AppBuilder) -> AppBuilder
Apply this plugin’s configuration to the builder. Read more
Auto Trait Implementations§
impl Forget for MarkstreamPlugin
impl Freeze for MarkstreamPlugin
impl RefUnwindSafe for MarkstreamPlugin
impl Send for MarkstreamPlugin
impl Sync for MarkstreamPlugin
impl Unpin for MarkstreamPlugin
impl UnsafeUnpin for MarkstreamPlugin
impl UnwindSafe for MarkstreamPlugin
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<P> Plugins for Pwhere
P: Plugin,
impl<P> Plugins for Pwhere
P: Plugin,
Source§fn apply(self, app: AppBuilder) -> AppBuilder
fn apply(self, app: AppBuilder) -> AppBuilder
Apply every plugin in this bundle to the builder, in declaration order.
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Scoped for T
impl<T> Scoped for T
Source§fn scope(ctx: &PolicyContext) -> ScopeQuery<'_, Self>
fn scope(ctx: &PolicyContext) -> ScopeQuery<'_, Self>
Open a deferred
ScopeQuery for this type. Resolves the
registered scope at .load() time, not here.