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>,
}Fields§
§repos_unoverridable: bool§telemetry_enabled_unoverridable: bool§audit_log_enabled_unoverridable: bool§rollback_enabled_unoverridable: bool§default_registry_unoverridable: bool§added_registries_unoverridable: bool§git_repos_unoverridable: bool§allow_deny_lists_unoverridable: bool§signature_enforcement_unoverridable: bool§protect_db_unoverridable: bool§max_resolution_depth_unoverridable: bool§offline_mode_unoverridable: bool§pkg_dirs_unoverridable: bool§cache_mirrors_unoverridable: bool§jobs_unoverridable: bool§advisory_enforcement_unoverridable: bool§system_generations_limit_unoverridable: bool§allowed_licenses: Option<Vec<String>>§denied_licenses: Option<Vec<String>>§allowed_packages: Option<Vec<String>>§denied_packages: Option<Vec<String>>§allowed_repos: Option<Vec<String>>§denied_repos: Option<Vec<String>>§signature_enforcement: Option<SignatureEnforcementPolicy>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>,
Deserialize this value from the given Serde deserializer. Read more
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,
Serialize this value into the given Serde serializer. Read more
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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