#[non_exhaustive]pub struct PackageGroupOriginRestrictionBuilder { /* private fields */ }
Expand description
A builder for PackageGroupOriginRestriction
.
Implementations§
source§impl PackageGroupOriginRestrictionBuilder
impl PackageGroupOriginRestrictionBuilder
sourcepub fn mode(self, input: PackageGroupOriginRestrictionMode) -> Self
pub fn mode(self, input: PackageGroupOriginRestrictionMode) -> Self
The package group origin restriction setting. If the value of mode
is ALLOW
, ALLOW_SPECIFIC_REPOSITORIES
, or BLOCK
, then the value of effectiveMode
is the same. Otherwise, when the value is INHERIT
, then the value of effectiveMode
is the value of mode
of the first parent group which does not have a value of INHERIT
.
sourcepub fn set_mode(self, input: Option<PackageGroupOriginRestrictionMode>) -> Self
pub fn set_mode(self, input: Option<PackageGroupOriginRestrictionMode>) -> Self
The package group origin restriction setting. If the value of mode
is ALLOW
, ALLOW_SPECIFIC_REPOSITORIES
, or BLOCK
, then the value of effectiveMode
is the same. Otherwise, when the value is INHERIT
, then the value of effectiveMode
is the value of mode
of the first parent group which does not have a value of INHERIT
.
sourcepub fn get_mode(&self) -> &Option<PackageGroupOriginRestrictionMode>
pub fn get_mode(&self) -> &Option<PackageGroupOriginRestrictionMode>
The package group origin restriction setting. If the value of mode
is ALLOW
, ALLOW_SPECIFIC_REPOSITORIES
, or BLOCK
, then the value of effectiveMode
is the same. Otherwise, when the value is INHERIT
, then the value of effectiveMode
is the value of mode
of the first parent group which does not have a value of INHERIT
.
sourcepub fn effective_mode(self, input: PackageGroupOriginRestrictionMode) -> Self
pub fn effective_mode(self, input: PackageGroupOriginRestrictionMode) -> Self
The effective package group origin restriction setting. If the value of mode
is ALLOW
, ALLOW_SPECIFIC_REPOSITORIES
, or BLOCK
, then the value of effectiveMode
is the same. Otherwise, when the value of mode
is INHERIT
, then the value of effectiveMode
is the value of mode
of the first parent group which does not have a value of INHERIT
.
sourcepub fn set_effective_mode(
self,
input: Option<PackageGroupOriginRestrictionMode>
) -> Self
pub fn set_effective_mode( self, input: Option<PackageGroupOriginRestrictionMode> ) -> Self
The effective package group origin restriction setting. If the value of mode
is ALLOW
, ALLOW_SPECIFIC_REPOSITORIES
, or BLOCK
, then the value of effectiveMode
is the same. Otherwise, when the value of mode
is INHERIT
, then the value of effectiveMode
is the value of mode
of the first parent group which does not have a value of INHERIT
.
sourcepub fn get_effective_mode(&self) -> &Option<PackageGroupOriginRestrictionMode>
pub fn get_effective_mode(&self) -> &Option<PackageGroupOriginRestrictionMode>
The effective package group origin restriction setting. If the value of mode
is ALLOW
, ALLOW_SPECIFIC_REPOSITORIES
, or BLOCK
, then the value of effectiveMode
is the same. Otherwise, when the value of mode
is INHERIT
, then the value of effectiveMode
is the value of mode
of the first parent group which does not have a value of INHERIT
.
sourcepub fn inherited_from(self, input: PackageGroupReference) -> Self
pub fn inherited_from(self, input: PackageGroupReference) -> Self
The parent package group that the package group origin restrictions are inherited from.
sourcepub fn set_inherited_from(self, input: Option<PackageGroupReference>) -> Self
pub fn set_inherited_from(self, input: Option<PackageGroupReference>) -> Self
The parent package group that the package group origin restrictions are inherited from.
sourcepub fn get_inherited_from(&self) -> &Option<PackageGroupReference>
pub fn get_inherited_from(&self) -> &Option<PackageGroupReference>
The parent package group that the package group origin restrictions are inherited from.
sourcepub fn repositories_count(self, input: i64) -> Self
pub fn repositories_count(self, input: i64) -> Self
The number of repositories in the allowed repository list.
sourcepub fn set_repositories_count(self, input: Option<i64>) -> Self
pub fn set_repositories_count(self, input: Option<i64>) -> Self
The number of repositories in the allowed repository list.
sourcepub fn get_repositories_count(&self) -> &Option<i64>
pub fn get_repositories_count(&self) -> &Option<i64>
The number of repositories in the allowed repository list.
sourcepub fn build(self) -> PackageGroupOriginRestriction
pub fn build(self) -> PackageGroupOriginRestriction
Consumes the builder and constructs a PackageGroupOriginRestriction
.
Trait Implementations§
source§impl Clone for PackageGroupOriginRestrictionBuilder
impl Clone for PackageGroupOriginRestrictionBuilder
source§fn clone(&self) -> PackageGroupOriginRestrictionBuilder
fn clone(&self) -> PackageGroupOriginRestrictionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for PackageGroupOriginRestrictionBuilder
impl Default for PackageGroupOriginRestrictionBuilder
source§fn default() -> PackageGroupOriginRestrictionBuilder
fn default() -> PackageGroupOriginRestrictionBuilder
source§impl PartialEq for PackageGroupOriginRestrictionBuilder
impl PartialEq for PackageGroupOriginRestrictionBuilder
source§fn eq(&self, other: &PackageGroupOriginRestrictionBuilder) -> bool
fn eq(&self, other: &PackageGroupOriginRestrictionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.