pub struct ReconnaissanceSnapshot { /* private fields */ }Expand description
One validated finite snapshot plus deterministic lookup indexes.
Implementations§
Source§impl ReconnaissanceSnapshot
impl ReconnaissanceSnapshot
Sourcepub fn parse_json(bytes: &[u8]) -> Result<Self, ReconnaissanceSnapshotError>
pub fn parse_json(bytes: &[u8]) -> Result<Self, ReconnaissanceSnapshotError>
Parses one complete strict V1 JSON document from exact local bytes.
Sourcepub const fn policy(&self) -> &'static str
pub const fn policy(&self) -> &'static str
Returns the stable parser and interpretation policy.
Sourcepub fn snapshot_id(&self) -> &str
pub fn snapshot_id(&self) -> &str
Returns the operator-declared snapshot identifier.
Sourcepub fn snapshot_revision(&self) -> &str
pub fn snapshot_revision(&self) -> &str
Returns the operator-declared snapshot revision.
Sourcepub const fn audit(&self) -> &ReconnaissanceSnapshotAudit
pub const fn audit(&self) -> &ReconnaissanceSnapshotAudit
Returns the value-free strict-import audit.
Sourcepub const fn input(&self) -> &ReconnaissanceSnapshotInputIdentity
pub const fn input(&self) -> &ReconnaissanceSnapshotInputIdentity
Returns the exact-input identity.
Sourcepub fn sources(&self) -> &[ReconnaissanceSource]
pub fn sources(&self) -> &[ReconnaissanceSource]
Returns unverified source declarations in input order.
Sourcepub fn records(&self) -> &[ReconnaissanceRecord]
pub fn records(&self) -> &[ReconnaissanceRecord]
Returns source-qualified hypothesis records in input order.
Sourcepub fn hypotheses(&self) -> &[ReconnaissanceHypothesis] ⓘ
pub fn hypotheses(&self) -> &[ReconnaissanceHypothesis] ⓘ
Returns the same records through their explicit hypothesis alias.
Sourcepub fn source(&self, source_id: &str) -> Option<&ReconnaissanceSource>
pub fn source(&self, source_id: &str) -> Option<&ReconnaissanceSource>
Looks up one declared source by its exact snapshot-local identifier.
Sourcepub fn record(&self, record_id: &str) -> Option<&ReconnaissanceRecord>
pub fn record(&self, record_id: &str) -> Option<&ReconnaissanceRecord>
Looks up one hypothesis record by its exact snapshot-local identifier.
Sourcepub const fn source_count(&self) -> usize
pub const fn source_count(&self) -> usize
Returns the number of declared sources.
Sourcepub const fn record_count(&self) -> usize
pub const fn record_count(&self) -> usize
Returns the number of hypothesis records.
Sourcepub const fn source_association_count(&self) -> usize
pub const fn source_association_count(&self) -> usize
Returns the total number of resolved record-to-source associations.
Sourcepub const fn prepared_index_bytes(&self) -> usize
pub const fn prepared_index_bytes(&self) -> usize
Returns conservative bytes charged to the prepared lookup indexes.
Sourcepub const fn external_activity(&self) -> ReconnaissanceExternalActivity
pub const fn external_activity(&self) -> ReconnaissanceExternalActivity
Returns the fixed no-network/no-archive activity facts.
Sourcepub const fn claim_limit(&self) -> ReconnaissanceClaimLimit
pub const fn claim_limit(&self) -> ReconnaissanceClaimLimit
Returns the fixed hypothesis-only interpretation boundary.
Trait Implementations§
Source§impl Clone for ReconnaissanceSnapshot
impl Clone for ReconnaissanceSnapshot
Source§fn clone(&self) -> ReconnaissanceSnapshot
fn clone(&self) -> ReconnaissanceSnapshot
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 ReconnaissanceSnapshot
impl Debug for ReconnaissanceSnapshot
impl Eq for ReconnaissanceSnapshot
Source§impl PartialEq for ReconnaissanceSnapshot
impl PartialEq for ReconnaissanceSnapshot
impl StructuralPartialEq for ReconnaissanceSnapshot
Auto Trait Implementations§
impl Freeze for ReconnaissanceSnapshot
impl RefUnwindSafe for ReconnaissanceSnapshot
impl Send for ReconnaissanceSnapshot
impl Sync for ReconnaissanceSnapshot
impl Unpin for ReconnaissanceSnapshot
impl UnsafeUnpin for ReconnaissanceSnapshot
impl UnwindSafe for ReconnaissanceSnapshot
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.