pub struct EngineImportAdviceV2 { /* private fields */ }Expand description
Standalone producer envelope for document-level V2 import advice.
Implementations§
Source§impl EngineImportAdviceV2
impl EngineImportAdviceV2
Sourcepub fn supports_profile(profile: &EngineProfileV2) -> bool
pub fn supports_profile(profile: &EngineProfileV2) -> bool
Whether an engine-local profile record has the exact frozen V2 advice tuple and import-setting fact token.
Sourcepub fn from_source(
tool: ToolInfo,
source: &LoadedSource,
profile: &ResolvedProfileSettingsV2,
) -> Result<Self, EngineImportAdviceError>
pub fn from_source( tool: ToolInfo, source: &LoadedSource, profile: &ResolvedProfileSettingsV2, ) -> Result<Self, EngineImportAdviceError>
Construct V2 advice from one resolved profile and the same loaded source.
The source is never reopened or reparsed. Profile/settings and all provenance are projected from the supplied same-load values.
Sourcepub const fn identity(&self) -> &EngineImportAdviceIdentityV2
pub const fn identity(&self) -> &EngineImportAdviceIdentityV2
Canonical V2 advice identity.
Sourcepub const fn prediction_provenance(&self) -> &PredictionProvenanceV4
pub const fn prediction_provenance(&self) -> &PredictionProvenanceV4
Same-load V4 provenance.
Sourcepub const fn basis(&self) -> &EnginePredictionBasisV4
pub const fn basis(&self) -> &EnginePredictionBasisV4
Canonical prediction basis.
Sourcepub const fn projection(&self) -> Option<&EngineImportAdviceProjectionV2>
pub const fn projection(&self) -> Option<&EngineImportAdviceProjectionV2>
Exact native importer projection, when available.
Sourcepub const fn state(&self) -> EngineImportAdviceStateV2
pub const fn state(&self) -> EngineImportAdviceStateV2
Advice lifecycle state.
Sourcepub const fn refusal_reason(&self) -> Option<EngineImportAdviceRefusalReasonV2>
pub const fn refusal_reason(&self) -> Option<EngineImportAdviceRefusalReasonV2>
Typed refusal reason, when refused.
Trait Implementations§
Source§impl Clone for EngineImportAdviceV2
impl Clone for EngineImportAdviceV2
Source§fn clone(&self) -> EngineImportAdviceV2
fn clone(&self) -> EngineImportAdviceV2
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EngineImportAdviceV2
impl Debug for EngineImportAdviceV2
Auto Trait Implementations§
impl Freeze for EngineImportAdviceV2
impl RefUnwindSafe for EngineImportAdviceV2
impl Send for EngineImportAdviceV2
impl Sync for EngineImportAdviceV2
impl Unpin for EngineImportAdviceV2
impl UnsafeUnpin for EngineImportAdviceV2
impl UnwindSafe for EngineImportAdviceV2
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