pub struct ReplayBundle {Show 17 fields
pub schema: String,
pub decision_id: String,
pub scope: Scope,
pub created_at_ms: Timestamp,
pub expires_at_ms: Timestamp,
pub evaluation_time_ms: Timestamp,
pub plan_id: PlanId,
pub plan: RetentionItem,
pub descriptors: Vec<RetentionItem>,
pub calibrations: Vec<RetentionItem>,
pub snapshot_id: SnapshotId,
pub snapshot: RetentionItem,
pub run: RetentionItem,
pub capture: CaptureStatus,
pub supplies: Vec<SupplyEntry>,
pub sources: Option<Vec<RetentionItem>>,
pub acquisition_pages: Option<Vec<AcquisitionSupply>>,
}Fields§
§schema: String§decision_id: String§scope: Scope§created_at_ms: TimestampHost wall-clock times; copying a bundle resets neither.
expires_at_ms: Timestamp§evaluation_time_ms: TimestampThe domain time the decision was evaluated at.
plan_id: PlanId§plan: RetentionItem§descriptors: Vec<RetentionItem>Every descriptor the plan’s bindings name.
calibrations: Vec<RetentionItem>Every calibration artifact the plan binds.
snapshot_id: SnapshotId§snapshot: RetentionItem§run: RetentionItemThe delivered rustev.run/1 record; the expected judgment is in it.
capture: CaptureStatus§supplies: Vec<SupplyEntry>In actual supply order.
sources: Option<Vec<RetentionItem>>Replay 2: the source descriptors bound by the retained plan.
acquisition_pages: Option<Vec<AcquisitionSupply>>Replay 2: captured pages share the semantic supply sequence.
Implementations§
Source§impl ReplayBundle
impl ReplayBundle
Sourcepub fn items(&self) -> Vec<(ItemLocation, &RetentionItem)>
pub fn items(&self) -> Vec<(ItemLocation, &RetentionItem)>
Every retention item with its location, in document order.
Sourcepub fn check(&self, host_cap_ms: Option<u64>) -> Result<(), BundleError>
pub fn check(&self, host_cap_ms: Option<u64>) -> Result<(), BundleError>
Structural checks that need no resolved bytes: schema, decision id, lifetimes under the hard cap and an optional tighter host cap, item counts (at most 4096 each; the plan’s own request bound is checked at replay, once the plan is resolved), item roles, declared plan and snapshot identities, and the supply sequence. Applies to a typed bundle as well as a parsed one.
Trait Implementations§
Source§impl Clone for ReplayBundle
impl Clone for ReplayBundle
Source§impl Debug for ReplayBundle
impl Debug for ReplayBundle
Source§impl<'de> Deserialize<'de> for ReplayBundle
impl<'de> Deserialize<'de> for ReplayBundle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Document for ReplayBundle
impl Document for ReplayBundle
Source§const SCHEMA: &'static str = schema::REPLAY
const SCHEMA: &'static str = schema::REPLAY
Source§const LIMITS: ParseLimits = REPLAY_V1
const LIMITS: ParseLimits = REPLAY_V1
Source§fn parse(bytes: &[u8]) -> Result<Self, DocumentError>
fn parse(bytes: &[u8]) -> Result<Self, DocumentError>
Source§fn record_digest(&self) -> Result<ContentDigest, CanonicalError>
fn record_digest(&self) -> Result<ContentDigest, CanonicalError>
sha256(SCHEMA || 0x00 || record canonical bytes) (spec 004, 3.1.6).
Equal to the identity of an identified document.Source§fn record_canonical(&self) -> Result<Vec<u8>, CanonicalError>where
Self: PartialEq,
fn record_canonical(&self) -> Result<Vec<u8>, CanonicalError>where
Self: PartialEq,
impl Eq for ReplayBundle
Source§impl JsonSchema for ReplayBundle
impl JsonSchema for ReplayBundle
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more