DataConnectTransport

Trait DataConnectTransport 

Source
pub trait DataConnectTransport: Send + Sync {
    // Required methods
    fn invoke_query<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        operation: &'life1 str,
        variables: &'life2 Value,
    ) -> Pin<Box<dyn Future<Output = DataConnectResult<Value>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn invoke_mutation<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        operation: &'life1 str,
        variables: &'life2 Value,
    ) -> Pin<Box<dyn Future<Output = DataConnectResult<Value>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn use_emulator(&self, options: TransportOptions);
    fn set_generated_sdk(&self, enabled: bool);
    fn set_caller_sdk_type(&self, caller: CallerSdkType);
}

Required Methods§

Source

fn invoke_query<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, operation: &'life1 str, variables: &'life2 Value, ) -> Pin<Box<dyn Future<Output = DataConnectResult<Value>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn invoke_mutation<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, operation: &'life1 str, variables: &'life2 Value, ) -> Pin<Box<dyn Future<Output = DataConnectResult<Value>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn use_emulator(&self, options: TransportOptions)

Source

fn set_generated_sdk(&self, enabled: bool)

Source

fn set_caller_sdk_type(&self, caller: CallerSdkType)

Implementors§