pub struct MsgraphAttachmentCreate { /* private fields */ }Expand description
Adds a file attachment to a Microsoft Graph message.
Implementations§
Source§impl MsgraphAttachmentCreate
impl MsgraphAttachmentCreate
Sourcepub fn new(
auth: &HttpAuthBearer,
user_id: &str,
message_id: &str,
name: &str,
content: &[u8],
content_type: Option<&str>,
) -> Result<Self, MsgraphSendError>
pub fn new( auth: &HttpAuthBearer, user_id: &str, message_id: &str, name: &str, content: &[u8], content_type: Option<&str>, ) -> Result<Self, MsgraphSendError>
Adds a fileAttachment named name carrying content, with
an optional MIME content_type.
The raw content bytes are base64-encoded into contentBytes,
as Graph requires.
Trait Implementations§
Source§impl MsgraphCoroutine for MsgraphAttachmentCreate
impl MsgraphCoroutine for MsgraphAttachmentCreate
Source§type Yield = MsgraphYield
type Yield = MsgraphYield
The I/O request type yielded while the coroutine progresses.
Source§type Return = Result<MsgraphSendOutput<MsgraphAttachment>, MsgraphSendError>
type Return = Result<MsgraphSendOutput<MsgraphAttachment>, MsgraphSendError>
The final value produced on completion.
Auto Trait Implementations§
impl Freeze for MsgraphAttachmentCreate
impl RefUnwindSafe for MsgraphAttachmentCreate
impl Send for MsgraphAttachmentCreate
impl Sync for MsgraphAttachmentCreate
impl Unpin for MsgraphAttachmentCreate
impl UnsafeUnpin for MsgraphAttachmentCreate
impl UnwindSafe for MsgraphAttachmentCreate
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