#[non_exhaustive]pub struct RegistryScanningConfigurationBuilder { /* private fields */ }
Expand description
A builder for RegistryScanningConfiguration
.
Implementations§
source§impl RegistryScanningConfigurationBuilder
impl RegistryScanningConfigurationBuilder
sourcepub fn scan_type(self, input: ScanType) -> Self
pub fn scan_type(self, input: ScanType) -> Self
The type of scanning configured for the registry.
sourcepub fn set_scan_type(self, input: Option<ScanType>) -> Self
pub fn set_scan_type(self, input: Option<ScanType>) -> Self
The type of scanning configured for the registry.
sourcepub fn get_scan_type(&self) -> &Option<ScanType>
pub fn get_scan_type(&self) -> &Option<ScanType>
The type of scanning configured for the registry.
sourcepub fn rules(self, input: RegistryScanningRule) -> Self
pub fn rules(self, input: RegistryScanningRule) -> Self
Appends an item to rules
.
To override the contents of this collection use set_rules
.
The scanning rules associated with the registry.
sourcepub fn set_rules(self, input: Option<Vec<RegistryScanningRule>>) -> Self
pub fn set_rules(self, input: Option<Vec<RegistryScanningRule>>) -> Self
The scanning rules associated with the registry.
sourcepub fn get_rules(&self) -> &Option<Vec<RegistryScanningRule>>
pub fn get_rules(&self) -> &Option<Vec<RegistryScanningRule>>
The scanning rules associated with the registry.
sourcepub fn build(self) -> RegistryScanningConfiguration
pub fn build(self) -> RegistryScanningConfiguration
Consumes the builder and constructs a RegistryScanningConfiguration
.
Trait Implementations§
source§impl Clone for RegistryScanningConfigurationBuilder
impl Clone for RegistryScanningConfigurationBuilder
source§fn clone(&self) -> RegistryScanningConfigurationBuilder
fn clone(&self) -> RegistryScanningConfigurationBuilder
Returns a copy 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 Default for RegistryScanningConfigurationBuilder
impl Default for RegistryScanningConfigurationBuilder
source§fn default() -> RegistryScanningConfigurationBuilder
fn default() -> RegistryScanningConfigurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for RegistryScanningConfigurationBuilder
impl PartialEq for RegistryScanningConfigurationBuilder
source§fn eq(&self, other: &RegistryScanningConfigurationBuilder) -> bool
fn eq(&self, other: &RegistryScanningConfigurationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RegistryScanningConfigurationBuilder
Auto Trait Implementations§
impl Freeze for RegistryScanningConfigurationBuilder
impl RefUnwindSafe for RegistryScanningConfigurationBuilder
impl Send for RegistryScanningConfigurationBuilder
impl Sync for RegistryScanningConfigurationBuilder
impl Unpin for RegistryScanningConfigurationBuilder
impl UnwindSafe for RegistryScanningConfigurationBuilder
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> 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 moreCreates a shared type from an unshared type.