pub struct Config {Show 20 fields
pub repos: Vec<String>,
pub package_managers: Option<Vec<String>>,
pub native_package_manager: Option<String>,
pub telemetry_enabled: bool,
pub audit_log_enabled: bool,
pub registry: Option<String>,
pub default_registry: Option<Registry>,
pub added_registries: Vec<Registry>,
pub git_repos: Vec<String>,
pub rollback_enabled: bool,
pub policy: Policy,
pub remote_policy: Option<RemotePolicyConfig>,
pub jobs: Option<usize>,
pub protect_db: bool,
pub max_resolution_depth: Option<u8>,
pub offline_mode: bool,
pub pkg_dirs: Vec<String>,
pub cache_mirrors: Vec<String>,
pub versions: HashMap<String, String>,
pub system_generations_limit: u32,
}Expand description
The global Zoi configuration.
Fields§
§repos: Vec<String>The list of repository tiers enabled globally.
package_managers: Option<Vec<String>>The list of supported package managers.
native_package_manager: Option<String>The primary native package manager for the system.
telemetry_enabled: boolWhether telemetry collection is enabled.
audit_log_enabled: boolWhether audit logging is enabled.
registry: Option<String>The handle of the primary registry.
default_registry: Option<Registry>The default registry configuration.
added_registries: Vec<Registry>The list of additional registries.
git_repos: Vec<String>The list of third-party Git repositories to include in resolution.
rollback_enabled: boolWhether rollback functionality is enabled.
policy: PolicyThe local policy configuration.
remote_policy: Option<RemotePolicyConfig>The remote policy configuration.
jobs: Option<usize>The maximum number of concurrent jobs to use for builds and downloads.
protect_db: boolWhether to protect the Zoi database from unauthorized modifications.
max_resolution_depth: Option<u8>The maximum depth for recursive dependency resolution.
offline_mode: boolWhether Zoi should operate in offline mode.
pkg_dirs: Vec<String>The list of directories where packages are stored.
cache_mirrors: Vec<String>The list of mirror URLs for the package cache.
versions: HashMap<String, String>A map of package names to pinned versions.
system_generations_limit: u32The maximum number of system generations to keep for rollbacks.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Config, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Config, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for Config
impl Serialize for Config
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 Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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