pub struct IntegrationEventBuilder { /* private fields */ }Expand description
Builder for IntegrationEvent entity
Provides a fluent API for constructing IntegrationEvent instances. System fields (id, metadata, timestamps) are auto-initialized.
Implementations§
Source§impl IntegrationEventBuilder
impl IntegrationEventBuilder
Sourcepub fn connector_id(self, value: Uuid) -> Self
pub fn connector_id(self, value: Uuid) -> Self
Set the connector_id field (required)
Sourcepub fn event_type(self, value: String) -> Self
pub fn event_type(self, value: String) -> Self
Set the event_type field (required)
Sourcepub fn external_id(self, value: String) -> Self
pub fn external_id(self, value: String) -> Self
Set the external_id field (required)
Sourcepub fn business_key(self, value: String) -> Self
pub fn business_key(self, value: String) -> Self
Set the business_key field (required)
Sourcepub fn status(self, value: IntegrationStatus) -> Self
pub fn status(self, value: IntegrationStatus) -> Self
Set the status field (default: IntegrationStatus::default())
Sourcepub fn mapped_ref_type(self, value: String) -> Self
pub fn mapped_ref_type(self, value: String) -> Self
Set the mapped_ref_type field (optional)
Sourcepub fn mapped_ref_id(self, value: Uuid) -> Self
pub fn mapped_ref_id(self, value: Uuid) -> Self
Set the mapped_ref_id field (optional)
Sourcepub fn error_detail(self, value: String) -> Self
pub fn error_detail(self, value: String) -> Self
Set the error_detail field (optional)
Sourcepub fn build(self) -> Result<IntegrationEvent, String>
pub fn build(self) -> Result<IntegrationEvent, String>
Build the IntegrationEvent entity
Returns Err if any required field without a default is missing.
Trait Implementations§
Source§impl Clone for IntegrationEventBuilder
impl Clone for IntegrationEventBuilder
Source§impl Debug for IntegrationEventBuilder
impl Debug for IntegrationEventBuilder
Auto Trait Implementations§
impl Freeze for IntegrationEventBuilder
impl RefUnwindSafe for IntegrationEventBuilder
impl Send for IntegrationEventBuilder
impl Sync for IntegrationEventBuilder
impl Unpin for IntegrationEventBuilder
impl UnsafeUnpin for IntegrationEventBuilder
impl UnwindSafe for IntegrationEventBuilder
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,
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