#[non_exhaustive]pub struct PackageGroupOriginRestriction {
pub mode: Option<PackageGroupOriginRestrictionMode>,
pub effective_mode: Option<PackageGroupOriginRestrictionMode>,
pub inherited_from: Option<PackageGroupReference>,
pub repositories_count: Option<i64>,
}Expand description
Contains information about the configured restrictions of the origin controls of a package group.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mode: 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.
effective_mode: 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.
inherited_from: Option<PackageGroupReference>The parent package group that the package group origin restrictions are inherited from.
repositories_count: Option<i64>The number of repositories in the allowed repository list.
Implementations§
source§impl PackageGroupOriginRestriction
impl PackageGroupOriginRestriction
sourcepub fn mode(&self) -> Option<&PackageGroupOriginRestrictionMode>
pub fn 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) -> Option<&PackageGroupOriginRestrictionMode>
pub fn 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) -> Option<&PackageGroupReference>
pub fn inherited_from(&self) -> Option<&PackageGroupReference>
The parent package group that the package group origin restrictions are inherited from.
sourcepub fn repositories_count(&self) -> Option<i64>
pub fn repositories_count(&self) -> Option<i64>
The number of repositories in the allowed repository list.
source§impl PackageGroupOriginRestriction
impl PackageGroupOriginRestriction
sourcepub fn builder() -> PackageGroupOriginRestrictionBuilder
pub fn builder() -> PackageGroupOriginRestrictionBuilder
Creates a new builder-style object to manufacture PackageGroupOriginRestriction.
Trait Implementations§
source§impl Clone for PackageGroupOriginRestriction
impl Clone for PackageGroupOriginRestriction
source§fn clone(&self) -> PackageGroupOriginRestriction
fn clone(&self) -> PackageGroupOriginRestriction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for PackageGroupOriginRestriction
impl PartialEq for PackageGroupOriginRestriction
source§fn eq(&self, other: &PackageGroupOriginRestriction) -> bool
fn eq(&self, other: &PackageGroupOriginRestriction) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PackageGroupOriginRestriction
Auto Trait Implementations§
impl Freeze for PackageGroupOriginRestriction
impl RefUnwindSafe for PackageGroupOriginRestriction
impl Send for PackageGroupOriginRestriction
impl Sync for PackageGroupOriginRestriction
impl Unpin for PackageGroupOriginRestriction
impl UnwindSafe for PackageGroupOriginRestriction
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