pub struct RestTransport { /* private fields */ }Implementations§
Source§impl RestTransport
impl RestTransport
pub fn new( options: DataConnectOptions, api_key: Option<String>, app_id: Option<String>, token_provider: Arc<dyn RequestTokenProvider>, ) -> DataConnectResult<Self>
Trait Implementations§
Source§impl DataConnectTransport for RestTransport
impl DataConnectTransport for RestTransport
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)
Auto Trait Implementations§
impl !Freeze for RestTransport
impl !RefUnwindSafe for RestTransport
impl Send for RestTransport
impl Sync for RestTransport
impl Unpin for RestTransport
impl !UnwindSafe for RestTransport
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