[][src]Struct misskey_api::endpoint::i::notifications::RequestBuilder

#[must_use]pub struct RequestBuilder<TypedBuilderFields> { /* fields omitted */ }

Builder for Request instances.

See Request::builder() for more info.

Implementations

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)>[src]

pub fn limit(
    self,
    limit: u8
) -> RequestBuilder<((Option<u8>,), __since_id, __until_id, __following, __mark_as_read, __include_types, __exclude_types)>
[src]

impl<__limit, __until_id, __following, __mark_as_read, __include_types, __exclude_types> RequestBuilder<(__limit, (), __until_id, __following, __mark_as_read, __include_types, __exclude_types)>[src]

pub fn since_id(
    self,
    since_id: Id<Notification>
) -> RequestBuilder<(__limit, (Option<Id<Notification>>,), __until_id, __following, __mark_as_read, __include_types, __exclude_types)>
[src]

impl<__limit, __since_id, __following, __mark_as_read, __include_types, __exclude_types> RequestBuilder<(__limit, __since_id, (), __following, __mark_as_read, __include_types, __exclude_types)>[src]

pub fn until_id(
    self,
    until_id: Id<Notification>
) -> RequestBuilder<(__limit, __since_id, (Option<Id<Notification>>,), __following, __mark_as_read, __include_types, __exclude_types)>
[src]

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)>[src]

pub fn following(
    self,
    following: bool
) -> RequestBuilder<(__limit, __since_id, __until_id, (Option<bool>,), __mark_as_read, __include_types, __exclude_types)>
[src]

impl<__limit, __since_id, __until_id, __following, __include_types, __exclude_types> RequestBuilder<(__limit, __since_id, __until_id, __following, (), __include_types, __exclude_types)>[src]

pub fn mark_as_read(
    self,
    mark_as_read: bool
) -> RequestBuilder<(__limit, __since_id, __until_id, __following, (Option<bool>,), __include_types, __exclude_types)>
[src]

impl<__limit, __since_id, __until_id, __following, __mark_as_read, __exclude_types> RequestBuilder<(__limit, __since_id, __until_id, __following, __mark_as_read, (), __exclude_types)>[src]

pub fn include_types(
    self,
    include_types: HashSet<NotificationType>
) -> RequestBuilder<(__limit, __since_id, __until_id, __following, __mark_as_read, (Option<HashSet<NotificationType>>,), __exclude_types)>
[src]

impl<__limit, __since_id, __until_id, __following, __mark_as_read, __include_types> RequestBuilder<(__limit, __since_id, __until_id, __following, __mark_as_read, __include_types, ())>[src]

pub fn exclude_types(
    self,
    exclude_types: HashSet<NotificationType>
) -> RequestBuilder<(__limit, __since_id, __until_id, __following, __mark_as_read, __include_types, (Option<HashSet<NotificationType>>,))>
[src]

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)>[src]

pub fn build(self) -> Request[src]

Finalise the builder and create its Request instance

Auto Trait Implementations

impl<TypedBuilderFields> RefUnwindSafe for RequestBuilder<TypedBuilderFields> where
    TypedBuilderFields: RefUnwindSafe
[src]

impl<TypedBuilderFields> Send for RequestBuilder<TypedBuilderFields> where
    TypedBuilderFields: Send
[src]

impl<TypedBuilderFields> Sync for RequestBuilder<TypedBuilderFields> where
    TypedBuilderFields: Sync
[src]

impl<TypedBuilderFields> Unpin for RequestBuilder<TypedBuilderFields> where
    TypedBuilderFields: Unpin
[src]

impl<TypedBuilderFields> UnwindSafe for RequestBuilder<TypedBuilderFields> where
    TypedBuilderFields: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.