pub struct MapRequest {
pub company_id: Uuid,
pub connector_kind: String,
pub event_type: String,
pub external_id: String,
pub idempotency_key: String,
pub payload: Value,
}Expand description
A request to map a parsed inbound event into an internal action.
Fields§
§company_id: UuidLegacy tenancy twin (ADR-0029): the module itself is tenant-agnostic — its tables carry no company column and the composing service’s tenancy decorator owns org scoping. The field stays because the TARGET modules on the far side of this port (payment, selling, banking) may still be company-fenced; the caller names the owning company and an unknown or stale value fails closed at the target, never here.
connector_kind: String§event_type: String§external_id: String§idempotency_key: StringStable per-event key (the integration event id) — the target forwards it so a re-map of a stranded event can’t create a duplicate internal record.
payload: ValueTrait Implementations§
Source§impl Clone for MapRequest
impl Clone for MapRequest
Source§impl Debug for MapRequest
impl Debug for MapRequest
Source§impl<'de> Deserialize<'de> for MapRequest
impl<'de> Deserialize<'de> for MapRequest
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 PartialEq for MapRequest
impl PartialEq for MapRequest
Source§impl Serialize for MapRequest
impl Serialize for MapRequest
impl StructuralPartialEq for MapRequest
Auto Trait Implementations§
impl Freeze for MapRequest
impl RefUnwindSafe for MapRequest
impl Send for MapRequest
impl Sync for MapRequest
impl Unpin for MapRequest
impl UnsafeUnpin for MapRequest
impl UnwindSafe for MapRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more