pub struct MsgraphBatchResponse {
pub id: String,
pub status: u16,
pub headers: BTreeMap<String, String>,
pub body: Option<Value>,
}Expand description
One response of a batch.
Fields§
§id: StringThe id of the request this response answers.
status: u16The HTTP status of the response.
headers: BTreeMap<String, String>The response headers.
body: Option<Value>The JSON response body, or the error envelope on failure.
Implementations§
Source§impl MsgraphBatchResponse
impl MsgraphBatchResponse
Sourcepub fn parse<T: DeserializeOwned>(self) -> Result<T, MsgraphSendError>
pub fn parse<T: DeserializeOwned>(self) -> Result<T, MsgraphSendError>
Parses the body of a 2xx response into T, or turns any other
status into MsgraphSendError::Api.
Trait Implementations§
Source§impl Clone for MsgraphBatchResponse
impl Clone for MsgraphBatchResponse
Source§impl Debug for MsgraphBatchResponse
impl Debug for MsgraphBatchResponse
Source§impl Default for MsgraphBatchResponse
impl Default for MsgraphBatchResponse
Source§impl<'de> Deserialize<'de> for MsgraphBatchResponse
impl<'de> Deserialize<'de> for MsgraphBatchResponse
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
impl Eq for MsgraphBatchResponse
Source§impl PartialEq for MsgraphBatchResponse
impl PartialEq for MsgraphBatchResponse
Source§impl Serialize for MsgraphBatchResponse
impl Serialize for MsgraphBatchResponse
impl StructuralPartialEq for MsgraphBatchResponse
Auto Trait Implementations§
impl Freeze for MsgraphBatchResponse
impl RefUnwindSafe for MsgraphBatchResponse
impl Send for MsgraphBatchResponse
impl Sync for MsgraphBatchResponse
impl Unpin for MsgraphBatchResponse
impl UnsafeUnpin for MsgraphBatchResponse
impl UnwindSafe for MsgraphBatchResponse
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