pub struct MsgraphBatchRequest {
pub id: String,
pub method: String,
pub url: String,
pub headers: BTreeMap<String, String>,
pub body: Option<Value>,
pub depends_on: Vec<String>,
}Expand description
One request of a batch.
Fields§
§id: StringThe id correlating the request with its response, unique within the batch.
method: StringThe HTTP method.
url: StringThe URL relative to the API version, such as
/me/mailFolders/inbox.
headers: BTreeMap<String, String>The request headers, Content-Type being required with a body.
body: Option<Value>The JSON request body.
depends_on: Vec<String>The ids of the requests this one runs after.
Trait Implementations§
Source§impl Clone for MsgraphBatchRequest
impl Clone for MsgraphBatchRequest
Source§impl Debug for MsgraphBatchRequest
impl Debug for MsgraphBatchRequest
Source§impl Default for MsgraphBatchRequest
impl Default for MsgraphBatchRequest
Source§impl<'de> Deserialize<'de> for MsgraphBatchRequest
impl<'de> Deserialize<'de> for MsgraphBatchRequest
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 MsgraphBatchRequest
Source§impl PartialEq for MsgraphBatchRequest
impl PartialEq for MsgraphBatchRequest
Source§impl Serialize for MsgraphBatchRequest
impl Serialize for MsgraphBatchRequest
impl StructuralPartialEq for MsgraphBatchRequest
Auto Trait Implementations§
impl Freeze for MsgraphBatchRequest
impl RefUnwindSafe for MsgraphBatchRequest
impl Send for MsgraphBatchRequest
impl Sync for MsgraphBatchRequest
impl Unpin for MsgraphBatchRequest
impl UnsafeUnpin for MsgraphBatchRequest
impl UnwindSafe for MsgraphBatchRequest
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