pub struct IntelligenceRuntimeConfig {Show 13 fields
pub enabled: bool,
pub declined: bool,
pub accept_proprietary: bool,
pub staging: bool,
pub root: String,
pub manifest_sha256: String,
pub trust_key_hex: String,
pub channel_url: String,
pub channel_signature_url: String,
pub channel_root_key_hex: String,
pub license_configuration: String,
pub context_policy_apply: bool,
pub team_artifact_projects: Vec<TeamArtifactProject>,
}Expand description
Never merged from a project file, including trusted workspaces. A public signing key is not a credential; the package cannot provide its pin.
Fields§
§enabled: bool§declined: boolSwitched off with setup runtime deactivate, also before anything
was installed: setup, onboard, repair, bootstrap, harden and connect
never install or enable the runtime on their own. Only an explicit
setup runtime install (an activation) clears it.
Never written to config.toml: this section is deny_unknown_fields,
and 3.12.7 (a running daemon, a rollback) would refuse the whole file
and fall back to the defaults. The decline is the file
DECLINED_MARKER next to config.toml, which older versions
neither read nor rewrite; Self::with_recorded_decline merges it.
Still read from config.toml, so a configuration written by an early
3.12.8 build keeps loading.
accept_proprietary: bool§staging: bool§root: String§manifest_sha256: String§trust_key_hex: String§channel_url: String§channel_signature_url: String§channel_root_key_hex: String§license_configuration: StringExplicit user-global handoff to the private verifier, never project input.
context_policy_apply: boolNo effect: read-strategy policies are no longer learned by a runtime.
Kept so an existing config (deny_unknown_fields) still loads.
team_artifact_projects: Vec<TeamArtifactProject>The projects of this user that read shared team artifacts, each with its team identity. Empty by default: a project without an entry uses no artifact. Global-only like the rest of this section, so a repository cannot name itself. It carries no clearance: none is configurable here.
Implementations§
Source§impl IntelligenceRuntimeConfig
impl IntelligenceRuntimeConfig
Sourcepub fn deactivated(&self) -> bool
pub fn deactivated(&self) -> bool
Switched off with setup runtime deactivate, before or after an
install (an install accepted once and no longer enabled counts too).
Read from the configuration alone: whether the installed package
still verifies does not change the person’s choice.
Sourcepub fn with_recorded_decline(self) -> IntelligenceRuntimeConfig
pub fn with_recorded_decline(self) -> IntelligenceRuntimeConfig
This configuration with the decline recorded next to config.toml.
Sourcepub fn switch_off(&mut self)
pub fn switch_off(&mut self)
setup runtime deactivate: off, and kept off by setup.
Sourcepub fn activated(
previous: IntelligenceRuntimeConfig,
staging: bool,
root: String,
selected: &str,
trust_key_hex: &str,
) -> IntelligenceRuntimeConfig
pub fn activated( previous: IntelligenceRuntimeConfig, staging: bool, root: String, selected: &str, trust_key_hex: &str, ) -> IntelligenceRuntimeConfig
The configuration after an activation of selected (an explicit
install or activate): enabled, accepted and no longer switched off.
Trait Implementations§
Source§impl Clone for IntelligenceRuntimeConfig
impl Clone for IntelligenceRuntimeConfig
Source§fn clone(&self) -> IntelligenceRuntimeConfig
fn clone(&self) -> IntelligenceRuntimeConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IntelligenceRuntimeConfig
impl Debug for IntelligenceRuntimeConfig
Source§impl Default for IntelligenceRuntimeConfig
impl Default for IntelligenceRuntimeConfig
Source§fn default() -> IntelligenceRuntimeConfig
fn default() -> IntelligenceRuntimeConfig
Source§impl<'de> Deserialize<'de> for IntelligenceRuntimeConfigwhere
IntelligenceRuntimeConfig: Default,
impl<'de> Deserialize<'de> for IntelligenceRuntimeConfigwhere
IntelligenceRuntimeConfig: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<IntelligenceRuntimeConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<IntelligenceRuntimeConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for IntelligenceRuntimeConfig
Source§impl Serialize for IntelligenceRuntimeConfig
impl Serialize for IntelligenceRuntimeConfig
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,
impl StructuralPartialEq for IntelligenceRuntimeConfig
Auto Trait Implementations§
impl Forget for IntelligenceRuntimeConfig
impl Freeze for IntelligenceRuntimeConfigwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<TeamArtifactProject>: Freeze,
impl Move for IntelligenceRuntimeConfig
impl RefUnwindSafe for IntelligenceRuntimeConfig
impl Send for IntelligenceRuntimeConfigwhere
RawVecInner: Send,
impl Sync for IntelligenceRuntimeConfigwhere
RawVecInner: Sync,
impl Unpin for IntelligenceRuntimeConfig
impl UnsafeUnpin for IntelligenceRuntimeConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<TeamArtifactProject>: UnsafeUnpin,
impl UnwindSafe for IntelligenceRuntimeConfigwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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