pub struct DeployPlugin { /* private fields */ }๐Deprecated since 0.0.58:
use ssg::deploy::DeployPlugin; this one is never registered by the pipeline
Expand description
Deployment plugin stub.
Logs the deployment target after a successful build. Extend with actual deployment logic for Vercel, Netlify, or Cloudflare.
ยงExample
use ssg::plugin::PluginManager;
use ssg::plugins::DeployPlugin;
let mut pm = PluginManager::new();
pm.register(DeployPlugin::new("production"));Superseded by crate::deploy::DeployPlugin, which is the implementation
the pipeline registers. This one was never wired into a build; it survived
as a second, divergent copy of the same idea.
Implementationsยง
Trait Implementationsยง
Sourceยงimpl Debug for DeployPlugin
impl Debug for DeployPlugin
Sourceยงimpl Plugin for DeployPlugin
impl Plugin for DeployPlugin
Sourceยงfn after_compile(&self, ctx: &PluginContext) -> Result<(), SsgError>
fn after_compile(&self, ctx: &PluginContext) -> Result<(), SsgError>
Called after site compilation completes. Read more
Sourceยงfn before_compile(&self, _ctx: &PluginContext) -> Result<(), SsgError>
fn before_compile(&self, _ctx: &PluginContext) -> Result<(), SsgError>
Called before site compilation begins. Read more
Sourceยงfn transform_html(
&self,
html: &str,
_path: &Path,
_ctx: &PluginContext,
) -> Result<String, SsgError>
fn transform_html( &self, html: &str, _path: &Path, _ctx: &PluginContext, ) -> Result<String, SsgError>
Per-file HTML transform hook โ called once per HTML file during
the fused transform pass. Read more
Sourceยงfn has_transform(&self) -> bool
fn has_transform(&self) -> bool
Returns
true if this plugin implements transform_html.
Override to true to opt in to the fused transform pass.Sourceยงfn needs_all_files(&self) -> bool
fn needs_all_files(&self) -> bool
Returns
true if this plugin must always observe the full
cache.html_files() list โ even during --incremental
rebuilds that only invalidated a handful of pages. Read moreAuto Trait Implementationsยง
impl Freeze for DeployPlugin
impl RefUnwindSafe for DeployPlugin
impl Send for DeployPlugin
impl Sync for DeployPlugin
impl Unpin for DeployPlugin
impl UnsafeUnpin for DeployPlugin
impl UnwindSafe for DeployPlugin
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
ยงimpl<T> Instrument for T
impl<T> Instrument for T
ยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
ยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more