pub struct MsgraphMessageCreate { /* private fields */ }Expand description
Creates a Microsoft Graph draft message from JSON.
Implementations§
Source§impl MsgraphMessageCreate
impl MsgraphMessageCreate
Sourcepub fn new(
auth: &HttpAuthBearer,
user_id: &str,
folder: Option<&str>,
message: &MsgraphMessage,
) -> Result<Self, MsgraphSendError>
pub fn new( auth: &HttpAuthBearer, user_id: &str, folder: Option<&str>, message: &MsgraphMessage, ) -> Result<Self, MsgraphSendError>
Creates the draft in the Drafts folder, or in folder when given
(a folder id or a well-known name such as drafts).
Trait Implementations§
Source§impl MsgraphCoroutine for MsgraphMessageCreate
impl MsgraphCoroutine for MsgraphMessageCreate
Source§type Yield = MsgraphYield
type Yield = MsgraphYield
The I/O request type yielded while the coroutine progresses.
Source§type Return = Result<MsgraphSendOutput<MsgraphMessage>, MsgraphSendError>
type Return = Result<MsgraphSendOutput<MsgraphMessage>, MsgraphSendError>
The final value produced on completion.
Auto Trait Implementations§
impl Freeze for MsgraphMessageCreate
impl RefUnwindSafe for MsgraphMessageCreate
impl Send for MsgraphMessageCreate
impl Sync for MsgraphMessageCreate
impl Unpin for MsgraphMessageCreate
impl UnsafeUnpin for MsgraphMessageCreate
impl UnwindSafe for MsgraphMessageCreate
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