pub struct Policy {Show 24 fields
pub repos_unoverridable: bool,
pub telemetry_enabled_unoverridable: bool,
pub audit_log_enabled_unoverridable: bool,
pub rollback_enabled_unoverridable: bool,
pub default_registry_unoverridable: bool,
pub added_registries_unoverridable: bool,
pub git_repos_unoverridable: bool,
pub allow_deny_lists_unoverridable: bool,
pub signature_enforcement_unoverridable: bool,
pub protect_db_unoverridable: bool,
pub max_resolution_depth_unoverridable: bool,
pub offline_mode_unoverridable: bool,
pub pkg_dirs_unoverridable: bool,
pub cache_mirrors_unoverridable: bool,
pub jobs_unoverridable: bool,
pub advisory_enforcement_unoverridable: bool,
pub system_generations_limit_unoverridable: bool,
pub allowed_licenses: Option<Vec<String>>,
pub denied_licenses: Option<Vec<String>>,
pub allowed_packages: Option<Vec<String>>,
pub denied_packages: Option<Vec<String>>,
pub allowed_repos: Option<Vec<String>>,
pub denied_repos: Option<Vec<String>>,
pub signature_enforcement: Option<SignatureEnforcementPolicy>,
}Expand description
Policy settings for enforcing constraints on Zoi’s operation.
Fields§
§repos_unoverridable: boolWhether repository settings are unoverridable.
telemetry_enabled_unoverridable: boolWhether telemetry settings are unoverridable.
audit_log_enabled_unoverridable: boolWhether audit logging settings are unoverridable.
rollback_enabled_unoverridable: boolWhether rollback settings are unoverridable.
default_registry_unoverridable: boolWhether default registry settings are unoverridable.
added_registries_unoverridable: boolWhether added registries settings are unoverridable.
git_repos_unoverridable: boolWhether Git repository settings are unoverridable.
allow_deny_lists_unoverridable: boolWhether allow/deny lists are unoverridable.
signature_enforcement_unoverridable: boolWhether signature enforcement settings are unoverridable.
protect_db_unoverridable: boolWhether database protection settings are unoverridable.
max_resolution_depth_unoverridable: boolWhether maximum resolution depth settings are unoverridable.
offline_mode_unoverridable: boolWhether offline mode settings are unoverridable.
pkg_dirs_unoverridable: boolWhether package directory settings are unoverridable.
cache_mirrors_unoverridable: boolWhether cache mirror settings are unoverridable.
jobs_unoverridable: boolWhether concurrent job settings are unoverridable.
advisory_enforcement_unoverridable: boolWhether security advisory enforcement settings are unoverridable.
system_generations_limit_unoverridable: boolWhether system generations limit settings are unoverridable.
allowed_licenses: Option<Vec<String>>List of allowed package licenses.
denied_licenses: Option<Vec<String>>List of denied package licenses.
allowed_packages: Option<Vec<String>>List of explicitly allowed packages.
denied_packages: Option<Vec<String>>List of explicitly denied packages.
allowed_repos: Option<Vec<String>>List of allowed repository URLs.
denied_repos: Option<Vec<String>>List of denied repository URLs.
signature_enforcement: Option<SignatureEnforcementPolicy>Policy for enforcing cryptographic signatures on packages.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Policy
impl<'de> Deserialize<'de> for Policy
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Policy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Policy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for Policy
impl Serialize for Policy
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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