Struct hubcaps::notifications::ThreadListOptionsBuilder
source · pub struct ThreadListOptionsBuilder(_);
Implementations
sourceimpl ThreadListOptionsBuilder
impl ThreadListOptionsBuilder
sourcepub fn all(&mut self, all: bool) -> &mut Self
pub fn all(&mut self, all: bool) -> &mut Self
if true
, show notifications marked as read. Default: false
sourcepub fn participating(&mut self, val: bool) -> &mut Self
pub fn participating(&mut self, val: bool) -> &mut Self
if true
, only shows notifications in which the user is directly participating or
mentioned. Default: false
sourcepub fn since<T>(&mut self, since: T) -> &mut Selfwhere
T: Into<String>,
pub fn since<T>(&mut self, since: T) -> &mut Selfwhere
T: Into<String>,
Only show notifications updated after the given time.
sourcepub fn before<T>(&mut self, before: T) -> &mut Selfwhere
T: Into<String>,
pub fn before<T>(&mut self, before: T) -> &mut Selfwhere
T: Into<String>,
Only show notifications updated before a given time.
pub fn build(&self) -> ThreadListOptions
Trait Implementations
sourceimpl Default for ThreadListOptionsBuilder
impl Default for ThreadListOptionsBuilder
sourcefn default() -> ThreadListOptionsBuilder
fn default() -> ThreadListOptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ThreadListOptionsBuilder
impl Send for ThreadListOptionsBuilder
impl Sync for ThreadListOptionsBuilder
impl Unpin for ThreadListOptionsBuilder
impl UnwindSafe for ThreadListOptionsBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more