pub struct DatabaseIntegration { /* private fields */ }Expand description
Database integration implementation
Implementations§
Trait Implementations§
Source§impl Debug for DatabaseIntegration
impl Debug for DatabaseIntegration
Source§impl ExternalIntegration for DatabaseIntegration
impl ExternalIntegration for DatabaseIntegration
Source§fn initialize(&mut self, config: &IntegrationConfig) -> SklResult<()>
fn initialize(&mut self, config: &IntegrationConfig) -> SklResult<()>
Initialize the integration
Source§fn health_check(&self) -> SklResult<HealthStatus>
fn health_check(&self) -> SklResult<HealthStatus>
Check if the integration is healthy
Source§fn send_data(&self, data: &IntegrationData) -> SklResult<IntegrationResponse>
fn send_data(&self, data: &IntegrationData) -> SklResult<IntegrationResponse>
Send data to the external service
Source§fn receive_data(
&self,
request: &IntegrationRequest,
) -> SklResult<IntegrationData>
fn receive_data( &self, request: &IntegrationRequest, ) -> SklResult<IntegrationData>
Receive data from the external service
Source§fn execute_operation(&self, operation: &Operation) -> SklResult<OperationResult>
fn execute_operation(&self, operation: &Operation) -> SklResult<OperationResult>
Execute a custom operation
Auto Trait Implementations§
impl Freeze for DatabaseIntegration
impl RefUnwindSafe for DatabaseIntegration
impl Send for DatabaseIntegration
impl Sync for DatabaseIntegration
impl Unpin for DatabaseIntegration
impl UnwindSafe for DatabaseIntegration
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
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