#[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<RegistryScanningConfigurationBuilder> for RegistryScanningConfigurationBuilder
impl PartialEq<RegistryScanningConfigurationBuilder> 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 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