MockSitemapsApi

Struct MockSitemapsApi 

Source
pub struct MockSitemapsApi { /* private fields */ }
Available on crate feature sitemaps_api only.

Implementations§

Source§

impl MockSitemapsApi

Source

pub fn checkpoint(&mut self)

Validate that all current expectations for all methods have been satisfied, and discard them.

Source

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

Source

pub fn expect_create_sitemap_event_subscription(&mut self) -> &mut Expectation

Create an Expectation for mocking the create_sitemap_event_subscription method

Source

pub fn expect_get_sitemap_by_name(&mut self) -> &mut Expectation

Create an Expectation for mocking the get_sitemap_by_name method

Source

pub fn expect_get_sitemap_events(&mut self) -> &mut Expectation

Create an Expectation for mocking the get_sitemap_events method

Source

pub fn expect_get_sitemap_events1(&mut self) -> &mut Expectation

Create an Expectation for mocking the get_sitemap_events1 method

Source

pub fn expect_get_sitemaps(&mut self) -> &mut Expectation

Create an Expectation for mocking the get_sitemaps method

Source

pub fn expect_poll_data_for_page(&mut self) -> &mut Expectation

Create an Expectation for mocking the poll_data_for_page method

Source

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

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for MockSitemapsApi

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

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,

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,

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,

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,

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,

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,

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,

GET /sitemaps/{sitemapname}/*

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Any for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Source§

fn type_name(&self) -> &'static str

Source§

impl<T> AnySync for T
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,