pub struct MockSsoApi {
SsoApi_expectations: MockSsoApi_SsoApi,
}
Fields§
§SsoApi_expectations: MockSsoApi_SsoApi
Implementations§
Source§impl MockSsoApi
impl MockSsoApi
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 MockSsoApi
impl MockSsoApi
Sourcepub fn expect_external_callback(&mut self) -> &mut Expectation
pub fn expect_external_callback(&mut self) -> &mut Expectation
Create an Expectation
for mocking the external_callback
method
Sourcepub fn expect_external_challenge(&mut self) -> &mut Expectation
pub fn expect_external_challenge(&mut self) -> &mut Expectation
Create an Expectation
for mocking the external_challenge
method
Sourcepub fn expect_login(&mut self) -> &mut Expectation
pub fn expect_login(&mut self) -> &mut Expectation
Create an Expectation
for mocking the login
method
Sourcepub fn expect_pre_validate(&mut self) -> &mut Expectation
pub fn expect_pre_validate(&mut self) -> &mut Expectation
Create an Expectation
for mocking the pre_validate
method
Trait Implementations§
Source§impl Debug for MockSsoApi
impl Debug for MockSsoApi
Source§impl Default for MockSsoApi
impl Default for MockSsoApi
Source§impl SsoApi for MockSsoApi
impl SsoApi for MockSsoApi
Source§fn external_callback<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error<ExternalCallbackError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn external_callback<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error<ExternalCallbackError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /sso/ExternalCallback
Source§fn external_challenge<'a, 'life0, 'async_trait>(
&'life0 self,
domain_hint: Option<&'a str>,
return_url: Option<&'a str>,
user_identifier: Option<&'a str>,
sso_token: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<ExternalChallengeError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn external_challenge<'a, 'life0, 'async_trait>(
&'life0 self,
domain_hint: Option<&'a str>,
return_url: Option<&'a str>,
user_identifier: Option<&'a str>,
sso_token: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<ExternalChallengeError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /sso/ExternalChallenge
Auto Trait Implementations§
impl Freeze for MockSsoApi
impl RefUnwindSafe for MockSsoApi
impl Send for MockSsoApi
impl Sync for MockSsoApi
impl Unpin for MockSsoApi
impl UnwindSafe for MockSsoApi
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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