pub struct ResolutionSourceEvidence<'a> { /* private fields */ }Expand description
External source bytes plus the exact trusted parser used to derive typed decision fields. This evidence is never serialized into a resolved plan.
Implementations§
Source§impl<'a> ResolutionSourceEvidence<'a>
impl<'a> ResolutionSourceEvidence<'a>
pub fn new( id: ResolutionArtifactId, source: ResolutionDecisionSource, provenance: ResolutionSourceProvenance, source_bytes: Vec<u8>, field_paths: BTreeSet<String>, parser: &'a dyn ResolutionSourceParser, ) -> Result<Self, VNextError>
Sourcepub fn validate(&self) -> Result<(), VNextError>
pub fn validate(&self) -> Result<(), VNextError>
Runs the same deterministic parser verification used when constructing or revalidating a resolved plan. Callers may use this for an explicit preflight, but plan validation never relies on a prior call.
pub fn id(&self) -> &ResolutionArtifactId
pub const fn source(&self) -> ResolutionDecisionSource
pub fn provenance(&self) -> &ResolutionSourceProvenance
pub fn locator(&self) -> &str
pub fn source_bytes(&self) -> &[u8] ⓘ
pub fn field_paths(&self) -> &BTreeSet<String>
Trait Implementations§
Source§impl<'a> Clone for ResolutionSourceEvidence<'a>
impl<'a> Clone for ResolutionSourceEvidence<'a>
Source§fn clone(&self) -> ResolutionSourceEvidence<'a>
fn clone(&self) -> ResolutionSourceEvidence<'a>
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 moreAuto Trait Implementations§
impl<'a> !RefUnwindSafe for ResolutionSourceEvidence<'a>
impl<'a> !UnwindSafe for ResolutionSourceEvidence<'a>
impl<'a> Freeze for ResolutionSourceEvidence<'a>
impl<'a> Send for ResolutionSourceEvidence<'a>
impl<'a> Sync for ResolutionSourceEvidence<'a>
impl<'a> Unpin for ResolutionSourceEvidence<'a>
impl<'a> UnsafeUnpin for ResolutionSourceEvidence<'a>
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