pub struct MockSitemapsApi { /* private fields */ }sitemaps_api only.Implementations§
Source§impl MockSitemapsApi
impl MockSitemapsApi
Sourcepub fn checkpoint(&mut self)
pub fn checkpoint(&mut self)
Validate that all current expectations for all methods have been satisfied, and discard them.
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new mock object with no expectations.
This method will not be generated if the real struct
already has a new method. However, it will be
generated if the struct implements a trait with a new
method. The trait’s new method can still be called
like <MockX as TraitY>::new
Source§impl MockSitemapsApi
impl MockSitemapsApi
Sourcepub fn expect_create_sitemap_event_subscription(&mut self) -> &mut Expectation
pub fn expect_create_sitemap_event_subscription(&mut self) -> &mut Expectation
Create an Expectation for mocking the create_sitemap_event_subscription method
Sourcepub fn expect_get_sitemap_by_name(&mut self) -> &mut Expectation
pub fn expect_get_sitemap_by_name(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_sitemap_by_name method
Sourcepub fn expect_get_sitemap_events(&mut self) -> &mut Expectation
pub fn expect_get_sitemap_events(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_sitemap_events method
Sourcepub fn expect_get_sitemap_events1(&mut self) -> &mut Expectation
pub fn expect_get_sitemap_events1(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_sitemap_events1 method
Sourcepub fn expect_get_sitemaps(&mut self) -> &mut Expectation
pub fn expect_get_sitemaps(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_sitemaps method
Sourcepub fn expect_poll_data_for_page(&mut self) -> &mut Expectation
pub fn expect_poll_data_for_page(&mut self) -> &mut Expectation
Create an Expectation for mocking the poll_data_for_page method
Sourcepub fn expect_poll_data_for_sitemap(&mut self) -> &mut Expectation
pub fn expect_poll_data_for_sitemap(&mut self) -> &mut Expectation
Create an Expectation for mocking the poll_data_for_sitemap method
Trait Implementations§
Source§impl Debug for MockSitemapsApi
impl Debug for MockSitemapsApi
Source§impl Default for MockSitemapsApi
impl Default for MockSitemapsApi
Source§impl SitemapsApi for MockSitemapsApi
impl SitemapsApi for MockSitemapsApi
Source§fn create_sitemap_event_subscription<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error<CreateSitemapEventSubscriptionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_sitemap_event_subscription<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error<CreateSitemapEventSubscriptionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
POST /sitemaps/events/subscribe
Source§fn get_sitemap_by_name<'sitemapname, 'accept_language, 'r_type, 'jsoncallback, 'include_hidden, 'life0, 'async_trait>(
&'life0 self,
sitemapname: &'sitemapname str,
accept_language: Option<&'accept_language str>,
type: Option<&'r_type str>,
jsoncallback: Option<&'jsoncallback str>,
include_hidden: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<SitemapDto, Error<GetSitemapByNameError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'sitemapname: 'async_trait,
'accept_language: 'async_trait,
'r_type: 'async_trait,
'jsoncallback: 'async_trait,
'include_hidden: 'async_trait,
'life0: 'async_trait,
fn get_sitemap_by_name<'sitemapname, 'accept_language, 'r_type, 'jsoncallback, 'include_hidden, 'life0, 'async_trait>(
&'life0 self,
sitemapname: &'sitemapname str,
accept_language: Option<&'accept_language str>,
type: Option<&'r_type str>,
jsoncallback: Option<&'jsoncallback str>,
include_hidden: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<SitemapDto, Error<GetSitemapByNameError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'sitemapname: 'async_trait,
'accept_language: 'async_trait,
'r_type: 'async_trait,
'jsoncallback: 'async_trait,
'include_hidden: 'async_trait,
'life0: 'async_trait,
GET /sitemaps/{sitemapname}
Source§fn get_sitemap_events<'subscriptionid, 'sitemap, 'life0, 'async_trait>(
&'life0 self,
subscriptionid: &'subscriptionid str,
sitemap: Option<&'sitemap str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetSitemapEventsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'subscriptionid: 'async_trait,
'sitemap: 'async_trait,
'life0: 'async_trait,
fn get_sitemap_events<'subscriptionid, 'sitemap, 'life0, 'async_trait>(
&'life0 self,
subscriptionid: &'subscriptionid str,
sitemap: Option<&'sitemap str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetSitemapEventsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'subscriptionid: 'async_trait,
'sitemap: 'async_trait,
'life0: 'async_trait,
GET /sitemaps/events/{subscriptionid}/*
Source§fn get_sitemap_events1<'subscriptionid, 'sitemap, 'pageid, 'life0, 'async_trait>(
&'life0 self,
subscriptionid: &'subscriptionid str,
sitemap: Option<&'sitemap str>,
pageid: Option<&'pageid str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetSitemapEvents1Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'subscriptionid: 'async_trait,
'sitemap: 'async_trait,
'pageid: 'async_trait,
'life0: 'async_trait,
fn get_sitemap_events1<'subscriptionid, 'sitemap, 'pageid, 'life0, 'async_trait>(
&'life0 self,
subscriptionid: &'subscriptionid str,
sitemap: Option<&'sitemap str>,
pageid: Option<&'pageid str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<GetSitemapEvents1Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'subscriptionid: 'async_trait,
'sitemap: 'async_trait,
'pageid: 'async_trait,
'life0: 'async_trait,
GET /sitemaps/events/{subscriptionid}
Source§fn get_sitemaps<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<SitemapDto>, Error<GetSitemapsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_sitemaps<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<SitemapDto>, Error<GetSitemapsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /sitemaps
Source§fn poll_data_for_page<'sitemapname, 'pageid, 'accept_language, 'subscriptionid, 'include_hidden, 'life0, 'async_trait>(
&'life0 self,
sitemapname: &'sitemapname str,
pageid: &'pageid str,
accept_language: Option<&'accept_language str>,
subscriptionid: Option<&'subscriptionid str>,
include_hidden: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<PageDto, Error<PollDataForPageError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'sitemapname: 'async_trait,
'pageid: 'async_trait,
'accept_language: 'async_trait,
'subscriptionid: 'async_trait,
'include_hidden: 'async_trait,
'life0: 'async_trait,
fn poll_data_for_page<'sitemapname, 'pageid, 'accept_language, 'subscriptionid, 'include_hidden, 'life0, 'async_trait>(
&'life0 self,
sitemapname: &'sitemapname str,
pageid: &'pageid str,
accept_language: Option<&'accept_language str>,
subscriptionid: Option<&'subscriptionid str>,
include_hidden: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<PageDto, Error<PollDataForPageError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'sitemapname: 'async_trait,
'pageid: 'async_trait,
'accept_language: 'async_trait,
'subscriptionid: 'async_trait,
'include_hidden: 'async_trait,
'life0: 'async_trait,
GET /sitemaps/{sitemapname}/{pageid}
Source§fn poll_data_for_sitemap<'sitemapname, 'accept_language, 'subscriptionid, 'include_hidden, 'life0, 'async_trait>(
&'life0 self,
sitemapname: &'sitemapname str,
accept_language: Option<&'accept_language str>,
subscriptionid: Option<&'subscriptionid str>,
include_hidden: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<SitemapDto, Error<PollDataForSitemapError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'sitemapname: 'async_trait,
'accept_language: 'async_trait,
'subscriptionid: 'async_trait,
'include_hidden: 'async_trait,
'life0: 'async_trait,
fn poll_data_for_sitemap<'sitemapname, 'accept_language, 'subscriptionid, 'include_hidden, 'life0, 'async_trait>(
&'life0 self,
sitemapname: &'sitemapname str,
accept_language: Option<&'accept_language str>,
subscriptionid: Option<&'subscriptionid str>,
include_hidden: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<SitemapDto, Error<PollDataForSitemapError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'sitemapname: 'async_trait,
'accept_language: 'async_trait,
'subscriptionid: 'async_trait,
'include_hidden: 'async_trait,
'life0: 'async_trait,
GET /sitemaps/{sitemapname}/*