pub struct MockJwtService<C>where
C: Serialize + DeserializeOwned,{ /* private fields */ }Implementations§
Source§impl<C> MockJwtService<C>where
C: Serialize + DeserializeOwned,
impl<C> MockJwtService<C>where
C: Serialize + DeserializeOwned,
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<C> MockJwtService<C>where
C: Serialize + DeserializeOwned,
impl<C> MockJwtService<C>where
C: Serialize + DeserializeOwned,
Sourcepub fn expect_encode(&mut self) -> &mut Expectation<C>
pub fn expect_encode(&mut self) -> &mut Expectation<C>
Create an Expectation for mocking the encode method
Sourcepub fn expect_decode(&mut self) -> &mut Expectation<C>
pub fn expect_decode(&mut self) -> &mut Expectation<C>
Create an Expectation for mocking the decode method
Trait Implementations§
Source§impl<C> Debug for MockJwtService<C>where
C: Serialize + DeserializeOwned,
impl<C> Debug for MockJwtService<C>where
C: Serialize + DeserializeOwned,
Source§impl<C> Default for MockJwtService<C>where
C: Serialize + DeserializeOwned,
impl<C> Default for MockJwtService<C>where
C: Serialize + DeserializeOwned,
Source§impl<C> JwtService<C> for MockJwtService<C>where
C: Serialize + DeserializeOwned,
impl<C> JwtService<C> for MockJwtService<C>where
C: Serialize + DeserializeOwned,
Auto Trait Implementations§
impl<C> Freeze for MockJwtService<C>
impl<C> RefUnwindSafe for MockJwtService<C>where
C: RefUnwindSafe,
impl<C> Send for MockJwtService<C>where
C: Send,
impl<C> Sync for MockJwtService<C>where
C: Sync,
impl<C> Unpin for MockJwtService<C>where
C: Unpin,
impl<C> UnsafeUnpin for MockJwtService<C>
impl<C> UnwindSafe for MockJwtService<C>where
C: UnwindSafe,
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