pub struct MockServer { /* private fields */ }Expand description
Mock server that serves generated data based on OpenAPI specifications
Implementations§
Source§impl MockServer
impl MockServer
Sourcepub fn new(config: MockServerConfig) -> Result<Self>
pub fn new(config: MockServerConfig) -> Result<Self>
Create a new mock server
Sourcepub fn endpoints_match(pattern: &str, request: &str) -> bool
pub fn endpoints_match(pattern: &str, request: &str) -> bool
Check if two endpoints match (handles path parameters)
TODO: Integrate into route matching system when advanced path parameter matching is implemented
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MockServer
impl RefUnwindSafe for MockServer
impl Send for MockServer
impl Sync for MockServer
impl Unpin for MockServer
impl UnwindSafe for MockServer
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