Struct jyve::request::notifications_list::NotificationsListRequest
source · pub struct NotificationsListRequest<'a> {
pub action_was_taken: Option<String>,
pub created_at_gte: Option<String>,
pub id: Option<f64>,
pub ordering: Option<String>,
pub page: Option<i64>,
pub page_size: Option<i64>,
pub should_hide: Option<String>,
pub updated_at_gte: Option<String>,
/* private fields */
}
Expand description
Create this with the associated client method.
That method takes required values as arguments. Set optional values using builder methods on this struct.
Fields§
§action_was_taken: Option<String>
§created_at_gte: Option<String>
§id: Option<f64>
§ordering: Option<String>
§page: Option<i64>
§page_size: Option<i64>
§should_hide: Option<String>
§updated_at_gte: Option<String>
Implementations§
source§impl<'a> NotificationsListRequest<'a>
impl<'a> NotificationsListRequest<'a>
pub async fn send(self) -> InMemoryResult<Vec<Notification>>
pub fn action_was_taken(self, action_was_taken: &str) -> Self
pub fn created_at_gte(self, created_at_gte: &str) -> Self
pub fn id(self, id: f64) -> Self
pub fn ordering(self, ordering: &str) -> Self
pub fn page(self, page: i64) -> Self
pub fn page_size(self, page_size: i64) -> Self
pub fn should_hide(self, should_hide: &str) -> Self
pub fn updated_at_gte(self, updated_at_gte: &str) -> Self
Trait Implementations§
source§impl<'a> Clone for NotificationsListRequest<'a>
impl<'a> Clone for NotificationsListRequest<'a>
source§fn clone(&self) -> NotificationsListRequest<'a>
fn clone(&self) -> NotificationsListRequest<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> IntoFuture for NotificationsListRequest<'a>
impl<'a> IntoFuture for NotificationsListRequest<'a>
§type Output = Result<Vec<Notification, Global>, Error<Response<InMemoryBody>>>
type Output = Result<Vec<Notification, Global>, Error<Response<InMemoryBody>>>
The output that the future will produce on completion.
§type IntoFuture = Pin<Box<dyn Future<Output = <NotificationsListRequest<'a> as IntoFuture>::Output> + Send + 'a, Global>>
type IntoFuture = Pin<Box<dyn Future<Output = <NotificationsListRequest<'a> as IntoFuture>::Output> + Send + 'a, Global>>
Which kind of future are we turning this into?
source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for NotificationsListRequest<'a>
impl<'a> Send for NotificationsListRequest<'a>
impl<'a> Sync for NotificationsListRequest<'a>
impl<'a> Unpin for NotificationsListRequest<'a>
impl<'a> !UnwindSafe for NotificationsListRequest<'a>
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