pub struct BatchResponseContent { /* private fields */ }
Implementations§
Source§impl BatchResponseContent
impl BatchResponseContent
pub fn status_code(&self) -> u16
pub fn request_id(&self) -> &ResponseRequestId
pub fn body(&self) -> &BatchResponseBody
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Checks if the response indicates success (status code 200)
Sourcepub fn success_body(&self) -> Option<&BatchSuccessResponseBody>
pub fn success_body(&self) -> Option<&BatchSuccessResponseBody>
Retrieves the success body if present
Sourcepub fn error_body(&self) -> Option<&BatchErrorResponseBody>
pub fn error_body(&self) -> Option<&BatchErrorResponseBody>
Retrieves the error body if present
Trait Implementations§
Source§impl Debug for BatchResponseContent
impl Debug for BatchResponseContent
Source§impl<'de> Deserialize<'de> for BatchResponseContent
impl<'de> Deserialize<'de> for BatchResponseContent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BatchResponseContent
impl RefUnwindSafe for BatchResponseContent
impl Send for BatchResponseContent
impl !Sync for BatchResponseContent
impl Unpin for BatchResponseContent
impl UnwindSafe for BatchResponseContent
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