pub struct ShadowDatabaseInput {
pub auto: Option<bool>,
pub url: Option<String>,
pub reset: Option<ShadowResetMode>,
pub docker: Option<ShadowDockerInput>,
}Fields§
§auto: Option<bool>§url: Option<String>§reset: Option<ShadowResetMode>How an external url shadow is brought back to its baseline between
runs. Ignored for Docker-managed shadows (always branched).
docker: Option<ShadowDockerInput>Implementations§
Source§impl ShadowDatabaseInput
impl ShadowDatabaseInput
Sourcepub fn merge_with(self, other: ShadowDatabaseInput) -> ShadowDatabaseInput
pub fn merge_with(self, other: ShadowDatabaseInput) -> ShadowDatabaseInput
An overlay replaces the shadow mode (auto / url / docker) wholesale,
but when both layers are docker mode the overlay only replaces the
fields it sets — hand-maintained fields like environment or
container_name survive a re-init that re-answers docker mode.
Trait Implementations§
Source§impl Clone for ShadowDatabaseInput
impl Clone for ShadowDatabaseInput
Source§fn clone(&self) -> ShadowDatabaseInput
fn clone(&self) -> ShadowDatabaseInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ShadowDatabaseInput
impl Debug for ShadowDatabaseInput
Source§impl Default for ShadowDatabaseInput
impl Default for ShadowDatabaseInput
Source§fn default() -> ShadowDatabaseInput
fn default() -> ShadowDatabaseInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ShadowDatabaseInput
impl<'de> Deserialize<'de> for ShadowDatabaseInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ShadowDatabaseInput
impl PartialEq for ShadowDatabaseInput
Source§fn eq(&self, other: &ShadowDatabaseInput) -> bool
fn eq(&self, other: &ShadowDatabaseInput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ShadowDatabaseInput
impl Serialize for ShadowDatabaseInput
impl StructuralPartialEq for ShadowDatabaseInput
Auto Trait Implementations§
impl Freeze for ShadowDatabaseInput
impl RefUnwindSafe for ShadowDatabaseInput
impl Send for ShadowDatabaseInput
impl Sync for ShadowDatabaseInput
impl Unpin for ShadowDatabaseInput
impl UnsafeUnpin for ShadowDatabaseInput
impl UnwindSafe for ShadowDatabaseInput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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<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