pub struct ResponseParser;
Expand description
Response parser for handling different response formats
Implementations§
Source§impl ResponseParser
impl ResponseParser
Sourcepub fn parse_response(json_str: &str) -> Result<SearchResponse>
pub fn parse_response(json_str: &str) -> Result<SearchResponse>
Sourcepub fn validate_response(response: &SearchResponse) -> Result<()>
pub fn validate_response(response: &SearchResponse) -> Result<()>
Validates that a response has the expected structure
Auto Trait Implementations§
impl Freeze for ResponseParser
impl RefUnwindSafe for ResponseParser
impl Send for ResponseParser
impl Sync for ResponseParser
impl Unpin for ResponseParser
impl UnwindSafe for ResponseParser
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