pub struct RehearsalConfig {
pub enabled: bool,
pub registry: Option<String>,
}Expand description
Rehearsal registry configuration.
When enabled, Shipper will (in a future PR under #97)
run phase-2 proof before live dispatch: publish packaged artifacts to
the named alternate registry, run install/smoke checks, and only then
allow the live cargo publish to crates.io (or the target registry).
§Example .shipper.toml
[rehearsal]
enabled = true
registry = "kellnr-local" # name must match an entry in [[registries]]Fields§
§enabled: boolIf true, rehearsal runs before live dispatch. Default false
(opt-in until the phase-2 execution PR lands).
registry: Option<String>Name of the registry (declared under [[registries]]) to use for
rehearsal. Must differ from the live target registry.
Trait Implementations§
Source§impl Clone for RehearsalConfig
impl Clone for RehearsalConfig
Source§fn clone(&self) -> RehearsalConfig
fn clone(&self) -> RehearsalConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RehearsalConfig
impl Debug for RehearsalConfig
Source§impl Default for RehearsalConfig
impl Default for RehearsalConfig
Source§fn default() -> RehearsalConfig
fn default() -> RehearsalConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RehearsalConfig
impl<'de> Deserialize<'de> for RehearsalConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RehearsalConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RehearsalConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RehearsalConfig
impl Serialize for RehearsalConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for RehearsalConfig
impl RefUnwindSafe for RehearsalConfig
impl Send for RehearsalConfig
impl Sync for RehearsalConfig
impl Unpin for RehearsalConfig
impl UnsafeUnpin for RehearsalConfig
impl UnwindSafe for RehearsalConfig
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