pub struct CustomPublisher {
pub command: String,
pub check: Option<String>,
pub cwd: Option<String>,
}Fields§
§command: String§check: Option<String>§cwd: Option<String>Trait Implementations§
Source§impl Publisher for CustomPublisher
impl Publisher for CustomPublisher
Source§fn check(&self, ctx: &PublishCtx<'_>) -> Result<PublishState, ReleaseError>
fn check(&self, ctx: &PublishCtx<'_>) -> Result<PublishState, ReleaseError>
Query the registry for the current state.
Source§fn run(&self, ctx: &PublishCtx<'_>) -> Result<(), ReleaseError>
fn run(&self, ctx: &PublishCtx<'_>) -> Result<(), ReleaseError>
Perform the publish. Callers must have checked
check() first;
a Completed result should short-circuit before calling run.Auto Trait Implementations§
impl Freeze for CustomPublisher
impl RefUnwindSafe for CustomPublisher
impl Send for CustomPublisher
impl Sync for CustomPublisher
impl Unpin for CustomPublisher
impl UnsafeUnpin for CustomPublisher
impl UnwindSafe for CustomPublisher
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