pub struct RestApiIntegration { /* private fields */ }Expand description
REST API integration implementation
Implementations§
Trait Implementations§
Source§impl Debug for RestApiIntegration
impl Debug for RestApiIntegration
Source§impl ExternalIntegration for RestApiIntegration
impl ExternalIntegration for RestApiIntegration
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 RestApiIntegration
impl RefUnwindSafe for RestApiIntegration
impl Send for RestApiIntegration
impl Sync for RestApiIntegration
impl Unpin for RestApiIntegration
impl UnwindSafe for RestApiIntegration
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