Skip to main content

ProjectionImportBatchV1

Struct ProjectionImportBatchV1 

Source
pub struct ProjectionImportBatchV1 {
    pub source_envelope_id: EnvelopeId,
    pub schema_version: String,
    pub export_schema_version: Option<String>,
    pub content_digest: ContentDigest,
    pub source_authority: String,
    pub scope_key: ScopeKey,
    pub trace_ctx: Option<TraceCtx>,
    pub source_exported_at: String,
    pub transformed_at: String,
    pub records: Vec<ImportProjectionRecord>,
}
๐Ÿ‘ŽDeprecated since 0.2.0:

ProjectionImportBatchV1 is compatibility-only. Use ProjectionImportBatchV3 for the canonical bridge output.

Expand description

A projection import batch produced by the bridge.

This is the unit of atomicity for projection imports. All records are committed together or rolled back entirely.

Temporal provenance is intentionally split:

  • source_exported_at = when the source envelope was emitted
  • transformed_at = when the bridge produced this batch

The importing store assigns authoritative imported recorded_at when it commits the rows.

Phase status: migration-only Removal condition: remove when all consumers have migrated to ProjectionImportBatchV3

Fieldsยง

ยงsource_envelope_id: EnvelopeId
๐Ÿ‘ŽDeprecated since 0.2.0:

ProjectionImportBatchV1 is compatibility-only. Use ProjectionImportBatchV3 for the canonical bridge output.

Source envelope ID (for provenance).

ยงschema_version: String
๐Ÿ‘ŽDeprecated since 0.2.0:

ProjectionImportBatchV1 is compatibility-only. Use ProjectionImportBatchV3 for the canonical bridge output.

Import-side schema version this batch conforms to (I005).

For V1, the bridge emits the canonical import-side token projection_import_batch_v1. The source export schema version is preserved separately in export_schema_version.

ยงexport_schema_version: Option<String>
๐Ÿ‘ŽDeprecated since 0.2.0:

ProjectionImportBatchV1 is compatibility-only. Use ProjectionImportBatchV3 for the canonical bridge output.

The original export-side schema version from the source envelope.

Recorded for provenance; may differ from schema_version when the bridge maps across versions.

ยงcontent_digest: ContentDigest
๐Ÿ‘ŽDeprecated since 0.2.0:

ProjectionImportBatchV1 is compatibility-only. Use ProjectionImportBatchV3 for the canonical bridge output.

Content digest carried through from the source envelope.

ยงsource_authority: String
๐Ÿ‘ŽDeprecated since 0.2.0:

ProjectionImportBatchV1 is compatibility-only. Use ProjectionImportBatchV3 for the canonical bridge output.

Source authority (e.g. โ€œforgeโ€).

ยงscope_key: ScopeKey
๐Ÿ‘ŽDeprecated since 0.2.0:

ProjectionImportBatchV1 is compatibility-only. Use ProjectionImportBatchV3 for the canonical bridge output.

Target scope.

ยงtrace_ctx: Option<TraceCtx>
๐Ÿ‘ŽDeprecated since 0.2.0:

ProjectionImportBatchV1 is compatibility-only. Use ProjectionImportBatchV3 for the canonical bridge output.

Trace context carried through from the source.

ยงsource_exported_at: String
๐Ÿ‘ŽDeprecated since 0.2.0:

ProjectionImportBatchV1 is compatibility-only. Use ProjectionImportBatchV3 for the canonical bridge output.

When the source envelope was exported.

ยงtransformed_at: String
๐Ÿ‘ŽDeprecated since 0.2.0:

ProjectionImportBatchV1 is compatibility-only. Use ProjectionImportBatchV3 for the canonical bridge output.

When this batch was produced by the bridge.

ยงrecords: Vec<ImportProjectionRecord>
๐Ÿ‘ŽDeprecated since 0.2.0:

ProjectionImportBatchV1 is compatibility-only. Use ProjectionImportBatchV3 for the canonical bridge output.

The import records, ready for memory ingestion.

Trait Implementationsยง

Sourceยง

impl Clone for ProjectionImportBatchV1

Sourceยง

fn clone(&self) -> ProjectionImportBatchV1

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) ยท Sourceยง

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Sourceยง

impl Debug for ProjectionImportBatchV1

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Sourceยง

impl<'de> Deserialize<'de> for ProjectionImportBatchV1

Sourceยง

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Sourceยง

impl From<ProjectionImportBatchV1> for ProjectionImportBatchV2

Sourceยง

fn from(value: ProjectionImportBatchV1) -> Self

Converts to this type from the input type.
Sourceยง

impl From<ProjectionImportBatchV2> for ProjectionImportBatchV1

Sourceยง

fn from(value: ProjectionImportBatchV2) -> Self

Converts to this type from the input type.
Sourceยง

impl JsonSchema for ProjectionImportBatchV1

Sourceยง

fn schema_name() -> String

The name of the generated JSON Schema. Read more
Sourceยง

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Sourceยง

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Sourceยง

fn is_referenceable() -> bool

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
Sourceยง

impl Serialize for ProjectionImportBatchV1

Sourceยง

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementationsยง

Blanket Implementationsยง

Sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

Sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

Sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

Sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Sourceยง

impl<T> CloneToUninit for T
where T: Clone,

Sourceยง

unsafe fn clone_to_uninit(&self, dest: *mut u8)

๐Ÿ”ฌThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Sourceยง

impl<T> DynClone for T
where T: Clone,

Sourceยง

fn __clone_box(&self, _: Private) -> *mut ()

Sourceยง

impl<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

impl<T> Instrument for T

Sourceยง

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Sourceยง

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

Sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Sourceยง

impl<T> ToOwned for T
where T: Clone,

Sourceยง

type Owned = T

The resulting type after obtaining ownership.
Sourceยง

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Sourceยง

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Sourceยง

type Error = Infallible

The type returned in the event of a conversion error.
Sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Sourceยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Sourceยง

impl<T> WithSubscriber for T

Sourceยง

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Sourceยง

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Sourceยง

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,