pub struct MsgraphEventsList { /* private fields */ }Expand description
Lists the Microsoft Graph events of a calendar.
Implementations§
Source§impl MsgraphEventsList
impl MsgraphEventsList
Sourcepub fn new(
auth: &HttpAuthBearer,
user_id: &str,
calendar: Option<&str>,
params: &MsgraphEventsListParams<'_>,
) -> Result<Self, MsgraphSendError>
pub fn new( auth: &HttpAuthBearer, user_id: &str, calendar: Option<&str>, params: &MsgraphEventsListParams<'_>, ) -> Result<Self, MsgraphSendError>
Lists the events of the default calendar, or of calendar when
given (a calendar id).
Sourcepub fn from_link(
auth: &HttpAuthBearer,
link: &str,
) -> Result<Self, MsgraphSendError>
pub fn from_link( auth: &HttpAuthBearer, link: &str, ) -> Result<Self, MsgraphSendError>
Continues a listing from an @odata.nextLink, sent as-is.
Sourcepub fn max_page_size(self, size: u32) -> Self
pub fn max_page_size(self, size: u32) -> Self
Asks Graph for at most size items per page
(Prefer: odata.maxpagesize={size}), see
MsgraphSend::max_page_size. Graph keeps no memory of it
across pages: chain it on every page request, the ones built
from an @odata.nextLink included.
Trait Implementations§
Source§impl MsgraphCoroutine for MsgraphEventsList
impl MsgraphCoroutine for MsgraphEventsList
Source§type Yield = MsgraphYield
type Yield = MsgraphYield
The I/O request type yielded while the coroutine progresses.
Source§type Return = Result<MsgraphSendOutput<MsgraphEventsListResponse>, MsgraphSendError>
type Return = Result<MsgraphSendOutput<MsgraphEventsListResponse>, MsgraphSendError>
The final value produced on completion.
Auto Trait Implementations§
impl Freeze for MsgraphEventsList
impl RefUnwindSafe for MsgraphEventsList
impl Send for MsgraphEventsList
impl Sync for MsgraphEventsList
impl Unpin for MsgraphEventsList
impl UnsafeUnpin for MsgraphEventsList
impl UnwindSafe for MsgraphEventsList
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