Struct dim_extern_api::mock::MockProvider
source · pub struct MockProvider;
Trait Implementations§
source§impl Clone for MockProvider
impl Clone for MockProvider
source§fn clone(&self) -> MockProvider
fn clone(&self) -> MockProvider
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MockProvider
impl Debug for MockProvider
source§impl ExternalQuery for MockProvider
impl ExternalQuery for MockProvider
source§fn search<'life0, 'life1, 'async_trait>(
&'life0 self,
title: &'life1 str,
__arg2: Option<i32>
) -> Pin<Box<dyn Future<Output = Result<Vec<ExternalMedia>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn search<'life0, 'life1, 'async_trait>(
&'life0 self,
title: &'life1 str,
__arg2: Option<i32>
) -> Pin<Box<dyn Future<Output = Result<Vec<ExternalMedia>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Search by title and year. This must return a Vec of
ExternalMedia
sorted by the search
score.source§fn search_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
_: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<ExternalMedia>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn search_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
_: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<ExternalMedia>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Search by external id. This must return a singular
ExternalMedia
which has the id passed
in.source§fn cast<'life0, 'life1, 'async_trait>(
&'life0 self,
_: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Vec<ExternalActor>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn cast<'life0, 'life1, 'async_trait>(
&'life0 self,
_: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Vec<ExternalActor>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get all actors for a media by external id. Actors must be ordered in order of importance.