pub struct DiffOptionsBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> DiffOptionsBuilder<S>
impl<S: State> DiffOptionsBuilder<S>
Sourcepub fn build(self) -> DiffOptionswhere
S: IsComplete,
pub fn build(self) -> DiffOptionswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn secrets(self, value: SecretMode) -> DiffOptionsBuilder<SetSecrets<S>>where
S::Secrets: IsUnset,
pub fn secrets(self, value: SecretMode) -> DiffOptionsBuilder<SetSecrets<S>>where
S::Secrets: IsUnset,
Sourcepub fn maybe_secrets(
self,
value: Option<SecretMode>,
) -> DiffOptionsBuilder<SetSecrets<S>>where
S::Secrets: IsUnset,
pub fn maybe_secrets(
self,
value: Option<SecretMode>,
) -> DiffOptionsBuilder<SetSecrets<S>>where
S::Secrets: IsUnset,
Sourcepub fn context(self, value: usize) -> DiffOptionsBuilder<SetContext<S>>where
S::Context: IsUnset,
pub fn context(self, value: usize) -> DiffOptionsBuilder<SetContext<S>>where
S::Context: IsUnset,
Sourcepub fn maybe_context(
self,
value: Option<usize>,
) -> DiffOptionsBuilder<SetContext<S>>where
S::Context: IsUnset,
pub fn maybe_context(
self,
value: Option<usize>,
) -> DiffOptionsBuilder<SetContext<S>>where
S::Context: IsUnset,
Sourcepub fn strip_trailing_cr(
self,
value: bool,
) -> DiffOptionsBuilder<SetStripTrailingCr<S>>where
S::StripTrailingCr: IsUnset,
pub fn strip_trailing_cr(
self,
value: bool,
) -> DiffOptionsBuilder<SetStripTrailingCr<S>>where
S::StripTrailingCr: IsUnset,
Sourcepub fn maybe_strip_trailing_cr(
self,
value: Option<bool>,
) -> DiffOptionsBuilder<SetStripTrailingCr<S>>where
S::StripTrailingCr: IsUnset,
pub fn maybe_strip_trailing_cr(
self,
value: Option<bool>,
) -> DiffOptionsBuilder<SetStripTrailingCr<S>>where
S::StripTrailingCr: IsUnset,
Sourcepub fn normalize_manifests(
self,
value: bool,
) -> DiffOptionsBuilder<SetNormalizeManifests<S>>where
S::NormalizeManifests: IsUnset,
pub fn normalize_manifests(
self,
value: bool,
) -> DiffOptionsBuilder<SetNormalizeManifests<S>>where
S::NormalizeManifests: IsUnset,
Sourcepub fn maybe_normalize_manifests(
self,
value: Option<bool>,
) -> DiffOptionsBuilder<SetNormalizeManifests<S>>where
S::NormalizeManifests: IsUnset,
pub fn maybe_normalize_manifests(
self,
value: Option<bool>,
) -> DiffOptionsBuilder<SetNormalizeManifests<S>>where
S::NormalizeManifests: IsUnset,
Sourcepub fn no_hooks(self, value: bool) -> DiffOptionsBuilder<SetNoHooks<S>>where
S::NoHooks: IsUnset,
pub fn no_hooks(self, value: bool) -> DiffOptionsBuilder<SetNoHooks<S>>where
S::NoHooks: IsUnset,
Sourcepub fn maybe_no_hooks(
self,
value: Option<bool>,
) -> DiffOptionsBuilder<SetNoHooks<S>>where
S::NoHooks: IsUnset,
pub fn maybe_no_hooks(
self,
value: Option<bool>,
) -> DiffOptionsBuilder<SetNoHooks<S>>where
S::NoHooks: IsUnset,
Sourcepub fn include_tests(
self,
value: bool,
) -> DiffOptionsBuilder<SetIncludeTests<S>>where
S::IncludeTests: IsUnset,
pub fn include_tests(
self,
value: bool,
) -> DiffOptionsBuilder<SetIncludeTests<S>>where
S::IncludeTests: IsUnset,
Sourcepub fn maybe_include_tests(
self,
value: Option<bool>,
) -> DiffOptionsBuilder<SetIncludeTests<S>>where
S::IncludeTests: IsUnset,
pub fn maybe_include_tests(
self,
value: Option<bool>,
) -> DiffOptionsBuilder<SetIncludeTests<S>>where
S::IncludeTests: IsUnset,
Source§impl<S: State> DiffOptionsBuilder<S>where
S::Secrets: IsUnset,
impl<S: State> DiffOptionsBuilder<S>where
S::Secrets: IsUnset,
Sourcepub fn mask_secrets(
self,
mask: impl Fn(&MaskedValue<'_>) -> String + Send + Sync + 'static,
) -> DiffOptionsBuilder<SetSecrets<S>>
pub fn mask_secrets( self, mask: impl Fn(&MaskedValue<'_>) -> String + Send + Sync + 'static, ) -> DiffOptionsBuilder<SetSecrets<S>>
Masks Secret values with mask: sets DiffOptions::secrets to
SecretMode::Mask. The closure receives plaintext, see SecretMasker.
Source§impl<S: State> DiffOptionsBuilder<S>
impl<S: State> DiffOptionsBuilder<S>
Sourcepub fn suppress(
self,
items: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn suppress( self, items: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Replaces every value of the repeated flag --suppress: the kinds whose content is hidden.
Sourcepub fn suppress_kind(self, item: impl Into<String>) -> Self
pub fn suppress_kind(self, item: impl Into<String>) -> Self
Adds one value of the repeated flag --suppress: the kinds whose content is hidden.
Auto Trait Implementations§
impl<S = Empty> !RefUnwindSafe for DiffOptionsBuilder<S>
impl<S = Empty> !UnwindSafe for DiffOptionsBuilder<S>
impl<S> Forget for DiffOptionsBuilder<S>
impl<S> Freeze for DiffOptionsBuilder<S>where
PhantomData<(fn() -> S, fn() -> PhantomData<DiffOptions>)>: Freeze,
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
*const ArcInner<dyn Fn(&MaskedValue<'_>) -> String + Sync + Send> is !null: Freeze,
PhantomData<ArcInner<dyn Fn(&MaskedValue<'_>) -> String + Sync + Send>>: Freeze,
impl<S> Move for DiffOptionsBuilder<S>
impl<S> Send for DiffOptionsBuilder<S>
impl<S> Sync for DiffOptionsBuilder<S>
impl<S> Unpin for DiffOptionsBuilder<S>
impl<S> UnsafeUnpin for DiffOptionsBuilder<S>where
PhantomData<(fn() -> S, fn() -> PhantomData<DiffOptions>)>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const ArcInner<dyn Fn(&MaskedValue<'_>) -> String + Sync + Send> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Fn(&MaskedValue<'_>) -> String + Sync + Send>>: UnsafeUnpin,
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> 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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more