pub struct RequestBuilder<TypedBuilderFields> { /* private fields */ }Expand description
Builder for Request instances.
See Request::builder() for more info.
Implementations§
Source§impl<__since_id, __until_id, __following, __mark_as_read, __include_types, __exclude_types> RequestBuilder<((), __since_id, __until_id, __following, __mark_as_read, __include_types, __exclude_types)>
impl<__since_id, __until_id, __following, __mark_as_read, __include_types, __exclude_types> RequestBuilder<((), __since_id, __until_id, __following, __mark_as_read, __include_types, __exclude_types)>
Source§impl<__limit, __until_id, __following, __mark_as_read, __include_types, __exclude_types> RequestBuilder<(__limit, (), __until_id, __following, __mark_as_read, __include_types, __exclude_types)>
impl<__limit, __until_id, __following, __mark_as_read, __include_types, __exclude_types> RequestBuilder<(__limit, (), __until_id, __following, __mark_as_read, __include_types, __exclude_types)>
pub fn since_id( self, since_id: Id<Notification>, ) -> RequestBuilder<(__limit, (Option<Id<Notification>>,), __until_id, __following, __mark_as_read, __include_types, __exclude_types)>
Source§impl<__limit, __since_id, __following, __mark_as_read, __include_types, __exclude_types> RequestBuilder<(__limit, __since_id, (), __following, __mark_as_read, __include_types, __exclude_types)>
impl<__limit, __since_id, __following, __mark_as_read, __include_types, __exclude_types> RequestBuilder<(__limit, __since_id, (), __following, __mark_as_read, __include_types, __exclude_types)>
pub fn until_id( self, until_id: Id<Notification>, ) -> RequestBuilder<(__limit, __since_id, (Option<Id<Notification>>,), __following, __mark_as_read, __include_types, __exclude_types)>
Source§impl<__limit, __since_id, __until_id, __mark_as_read, __include_types, __exclude_types> RequestBuilder<(__limit, __since_id, __until_id, (), __mark_as_read, __include_types, __exclude_types)>
impl<__limit, __since_id, __until_id, __mark_as_read, __include_types, __exclude_types> RequestBuilder<(__limit, __since_id, __until_id, (), __mark_as_read, __include_types, __exclude_types)>
Source§impl<__limit, __since_id, __until_id, __following, __include_types, __exclude_types> RequestBuilder<(__limit, __since_id, __until_id, __following, (), __include_types, __exclude_types)>
impl<__limit, __since_id, __until_id, __following, __include_types, __exclude_types> RequestBuilder<(__limit, __since_id, __until_id, __following, (), __include_types, __exclude_types)>
pub fn mark_as_read( self, mark_as_read: bool, ) -> RequestBuilder<(__limit, __since_id, __until_id, __following, (Option<bool>,), __include_types, __exclude_types)>
Source§impl<__limit, __since_id, __until_id, __following, __mark_as_read, __exclude_types> RequestBuilder<(__limit, __since_id, __until_id, __following, __mark_as_read, (), __exclude_types)>
impl<__limit, __since_id, __until_id, __following, __mark_as_read, __exclude_types> RequestBuilder<(__limit, __since_id, __until_id, __following, __mark_as_read, (), __exclude_types)>
pub fn include_types( self, include_types: HashSet<NotificationType>, ) -> RequestBuilder<(__limit, __since_id, __until_id, __following, __mark_as_read, (Option<HashSet<NotificationType>>,), __exclude_types)>
Source§impl<__limit, __since_id, __until_id, __following, __mark_as_read, __include_types> RequestBuilder<(__limit, __since_id, __until_id, __following, __mark_as_read, __include_types, ())>
impl<__limit, __since_id, __until_id, __following, __mark_as_read, __include_types> RequestBuilder<(__limit, __since_id, __until_id, __following, __mark_as_read, __include_types, ())>
pub fn exclude_types( self, exclude_types: HashSet<NotificationType>, ) -> RequestBuilder<(__limit, __since_id, __until_id, __following, __mark_as_read, __include_types, (Option<HashSet<NotificationType>>,))>
Source§impl<__limit: RequestBuilder_Optional<Option<u8>>, __since_id: RequestBuilder_Optional<Option<Id<Notification>>>, __until_id: RequestBuilder_Optional<Option<Id<Notification>>>, __following: RequestBuilder_Optional<Option<bool>>, __mark_as_read: RequestBuilder_Optional<Option<bool>>, __include_types: RequestBuilder_Optional<Option<HashSet<NotificationType>>>, __exclude_types: RequestBuilder_Optional<Option<HashSet<NotificationType>>>> RequestBuilder<(__limit, __since_id, __until_id, __following, __mark_as_read, __include_types, __exclude_types)>
impl<__limit: RequestBuilder_Optional<Option<u8>>, __since_id: RequestBuilder_Optional<Option<Id<Notification>>>, __until_id: RequestBuilder_Optional<Option<Id<Notification>>>, __following: RequestBuilder_Optional<Option<bool>>, __mark_as_read: RequestBuilder_Optional<Option<bool>>, __include_types: RequestBuilder_Optional<Option<HashSet<NotificationType>>>, __exclude_types: RequestBuilder_Optional<Option<HashSet<NotificationType>>>> RequestBuilder<(__limit, __since_id, __until_id, __following, __mark_as_read, __include_types, __exclude_types)>
Auto Trait Implementations§
impl<TypedBuilderFields> Freeze for RequestBuilder<TypedBuilderFields>where
TypedBuilderFields: Freeze,
impl<TypedBuilderFields> RefUnwindSafe for RequestBuilder<TypedBuilderFields>where
TypedBuilderFields: RefUnwindSafe,
impl<TypedBuilderFields> Send for RequestBuilder<TypedBuilderFields>where
TypedBuilderFields: Send,
impl<TypedBuilderFields> Sync for RequestBuilder<TypedBuilderFields>where
TypedBuilderFields: Sync,
impl<TypedBuilderFields> Unpin for RequestBuilder<TypedBuilderFields>where
TypedBuilderFields: Unpin,
impl<TypedBuilderFields> UnwindSafe for RequestBuilder<TypedBuilderFields>where
TypedBuilderFields: UnwindSafe,
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