pub struct NotificationsListParams {
pub filter: NotificationsFilter,
pub limit: u32,
pub cursor: Option<String>,
}Expand description
notifications.list params — paginated history of notifications
this user has received (per-user, scoped via OS SID).
Fields§
§filter: NotificationsFilterFilter: which subset of the user’s notifications to return.
Defaults to NotificationsFilter::Unread — the Client App
loads the unread bucket on first paint.
limit: u32Max number of entries to return. Clamped agent-side to a safe upper bound (currently 200) so a misbehaving client can’t ask for unbounded history. Defaults to 50.
cursor: Option<String>Continuation token from a prior response’s
NotificationsListResult::next_cursor. None on first
page.
Trait Implementations§
Source§impl Clone for NotificationsListParams
impl Clone for NotificationsListParams
Source§fn clone(&self) -> NotificationsListParams
fn clone(&self) -> NotificationsListParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NotificationsListParams
impl Debug for NotificationsListParams
Source§impl Default for NotificationsListParams
impl Default for NotificationsListParams
Source§impl<'de> Deserialize<'de> for NotificationsListParams
impl<'de> Deserialize<'de> for NotificationsListParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for NotificationsListParams
impl JsonSchema for NotificationsListParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for NotificationsListParams
impl RefUnwindSafe for NotificationsListParams
impl Send for NotificationsListParams
impl Sync for NotificationsListParams
impl Unpin for NotificationsListParams
impl UnsafeUnpin for NotificationsListParams
impl UnwindSafe for NotificationsListParams
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