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,
}Fields§
§repos: Vec<String>§package_managers: Option<Vec<String>>§native_package_manager: Option<String>§telemetry_enabled: bool§audit_log_enabled: bool§registry: Option<String>§default_registry: Option<Registry>§added_registries: Vec<Registry>§git_repos: Vec<String>§rollback_enabled: bool§policy: Policy§remote_policy: Option<RemotePolicyConfig>§jobs: Option<usize>§protect_db: bool§max_resolution_depth: Option<u8>§offline_mode: bool§pkg_dirs: Vec<String>§cache_mirrors: Vec<String>§versions: HashMap<String, String>§system_generations_limit: u32Trait 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>,
Deserialize this value from the given Serde deserializer. Read more
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,
Serialize this value into the given Serde serializer. Read more
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
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