#[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 ==
.impl StructuralPartialEq for PackageGroupOriginRestrictionBuilder
Auto Trait Implementations§
impl Freeze for PackageGroupOriginRestrictionBuilder
impl RefUnwindSafe for PackageGroupOriginRestrictionBuilder
impl Send for PackageGroupOriginRestrictionBuilder
impl Sync for PackageGroupOriginRestrictionBuilder
impl Unpin for PackageGroupOriginRestrictionBuilder
impl UnwindSafe for PackageGroupOriginRestrictionBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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