#[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 ==.