pub struct BridgeImportFailureArtifact {
pub schema_version: String,
pub source_envelope_id: String,
pub source_authority: String,
pub scope_namespace: String,
pub error_kind: String,
pub error_message: String,
pub failed_at: String,
}Expand description
First-class bridge import failure artifact for replayability and audit.
LIB-C005: Bridge failures must become replayable artifacts, not just logged errors. This artifact captures the envelope identity, error classification, and provenance required to diagnose and replay failed imports.
Fields§
§schema_version: StringStable schema version for this artifact family.
source_envelope_id: StringSource envelope ID that failed to import.
Source authority (e.g. “forge”).
scope_namespace: StringScope namespace of the attempted import.
error_kind: StringMachine-readable error kind (matches BridgeError::kind()).
error_message: StringHuman-readable error description.
failed_at: StringWhen the failure occurred.
Implementations§
Source§impl BridgeImportFailureArtifact
impl BridgeImportFailureArtifact
Sourcepub fn from_error(
error: &BridgeError,
source_envelope_id: &str,
source_authority: &str,
scope_namespace: &str,
) -> Self
pub fn from_error( error: &BridgeError, source_envelope_id: &str, source_authority: &str, scope_namespace: &str, ) -> Self
Constructs a failure artifact from a BridgeError and provenance context.
Trait Implementations§
Source§impl Clone for BridgeImportFailureArtifact
impl Clone for BridgeImportFailureArtifact
Source§fn clone(&self) -> BridgeImportFailureArtifact
fn clone(&self) -> BridgeImportFailureArtifact
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 BridgeImportFailureArtifact
impl Debug for BridgeImportFailureArtifact
Source§impl<'de> Deserialize<'de> for BridgeImportFailureArtifact
impl<'de> Deserialize<'de> for BridgeImportFailureArtifact
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for BridgeImportFailureArtifact
impl JsonSchema for BridgeImportFailureArtifact
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
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
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for BridgeImportFailureArtifact
impl RefUnwindSafe for BridgeImportFailureArtifact
impl Send for BridgeImportFailureArtifact
impl Sync for BridgeImportFailureArtifact
impl Unpin for BridgeImportFailureArtifact
impl UnsafeUnpin for BridgeImportFailureArtifact
impl UnwindSafe for BridgeImportFailureArtifact
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