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