pub struct RestAdapter { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Adapter for RestAdapter
impl Adapter for RestAdapter
fn init(&mut self, config: &Config) -> Result<()>
fn create_record<'life0, 'async_trait>(
&'life0 self,
resource: Resource,
) -> Pin<Box<dyn Future<Output = Result<Resource>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_record<'life0, 'life1, 'async_trait>(
&'life0 self,
resource: &'life1 Resource,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn find_record<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
resource_type: &'life1 str,
id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Resource>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn query<'life0, 'life1, 'async_trait>(
&'life0 self,
_resource_type: &'life1 str,
_query: Value,
) -> Pin<Box<dyn Future<Output = Result<Vec<Resource>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn query_record<'life0, 'life1, 'async_trait>(
&'life0 self,
_resource_type: &'life1 str,
_query: Value,
_options: QueryRecordOptions,
) -> Pin<Box<dyn Future<Output = Result<Option<Resource>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_record<'life0, 'async_trait>(
&'life0 self,
resource: Resource,
) -> Pin<Box<dyn Future<Output = Result<Resource>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl Default for RestAdapter
impl Default for RestAdapter
Source§fn default() -> RestAdapter
fn default() -> RestAdapter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RestAdapter
impl RefUnwindSafe for RestAdapter
impl Send for RestAdapter
impl Sync for RestAdapter
impl Unpin for RestAdapter
impl UnsafeUnpin for RestAdapter
impl UnwindSafe for RestAdapter
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