#[non_exhaustive]pub struct ImageScanningConfigurationBuilder { /* private fields */ }
Expand description
A builder for ImageScanningConfiguration
.
Implementations§
source§impl ImageScanningConfigurationBuilder
impl ImageScanningConfigurationBuilder
sourcepub fn scan_on_push(self, input: bool) -> Self
pub fn scan_on_push(self, input: bool) -> Self
The setting that determines whether images are scanned after being pushed to a repository. If set to true
, images will be scanned after being pushed. If this parameter is not specified, it will default to false
and images will not be scanned unless a scan is manually started with the API_StartImageScan API.
sourcepub fn set_scan_on_push(self, input: Option<bool>) -> Self
pub fn set_scan_on_push(self, input: Option<bool>) -> Self
The setting that determines whether images are scanned after being pushed to a repository. If set to true
, images will be scanned after being pushed. If this parameter is not specified, it will default to false
and images will not be scanned unless a scan is manually started with the API_StartImageScan API.
sourcepub fn get_scan_on_push(&self) -> &Option<bool>
pub fn get_scan_on_push(&self) -> &Option<bool>
The setting that determines whether images are scanned after being pushed to a repository. If set to true
, images will be scanned after being pushed. If this parameter is not specified, it will default to false
and images will not be scanned unless a scan is manually started with the API_StartImageScan API.
sourcepub fn build(self) -> ImageScanningConfiguration
pub fn build(self) -> ImageScanningConfiguration
Consumes the builder and constructs a ImageScanningConfiguration
.
Trait Implementations§
source§impl Clone for ImageScanningConfigurationBuilder
impl Clone for ImageScanningConfigurationBuilder
source§fn clone(&self) -> ImageScanningConfigurationBuilder
fn clone(&self) -> ImageScanningConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ImageScanningConfigurationBuilder
impl Default for ImageScanningConfigurationBuilder
source§fn default() -> ImageScanningConfigurationBuilder
fn default() -> ImageScanningConfigurationBuilder
source§impl PartialEq for ImageScanningConfigurationBuilder
impl PartialEq for ImageScanningConfigurationBuilder
source§fn eq(&self, other: &ImageScanningConfigurationBuilder) -> bool
fn eq(&self, other: &ImageScanningConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ImageScanningConfigurationBuilder
Auto Trait Implementations§
impl Freeze for ImageScanningConfigurationBuilder
impl RefUnwindSafe for ImageScanningConfigurationBuilder
impl Send for ImageScanningConfigurationBuilder
impl Sync for ImageScanningConfigurationBuilder
impl Unpin for ImageScanningConfigurationBuilder
impl UnwindSafe for ImageScanningConfigurationBuilder
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
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>
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>
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