Struct azure_devops_rust_api::hooks::models::NotificationsQuery
source · pub struct NotificationsQuery {
pub associated_subscriptions: Vec<Subscription>,
pub include_details: Option<bool>,
pub max_created_date: Option<OffsetDateTime>,
pub max_results: Option<i32>,
pub max_results_per_subscription: Option<i32>,
pub min_created_date: Option<OffsetDateTime>,
pub publisher_id: Option<String>,
pub results: Vec<Notification>,
pub result_type: Option<ResultType>,
pub status: Option<Status>,
pub subscription_ids: Vec<String>,
pub summary: Vec<NotificationSummary>,
}
Expand description
Defines a query for service hook notifications.
Fields§
§associated_subscriptions: Vec<Subscription>
The subscriptions associated with the notifications returned from the query
include_details: Option<bool>
If true, we will return all notification history for the query provided; otherwise, the summary is returned.
max_created_date: Option<OffsetDateTime>
Optional maximum date at which the notification was created
max_results: Option<i32>
Optional maximum number of overall results to include
max_results_per_subscription: Option<i32>
Optional maximum number of results for each subscription. Only takes effect when a list of subscription ids is supplied in the query.
min_created_date: Option<OffsetDateTime>
Optional minimum date at which the notification was created
publisher_id: Option<String>
Optional publisher id to restrict the results to
results: Vec<Notification>
Results from the query
result_type: Option<ResultType>
Optional notification result type to filter results to
status: Option<Status>
Optional notification status to filter results to
subscription_ids: Vec<String>
Optional list of subscription ids to restrict the results to
summary: Vec<NotificationSummary>
Summary of notifications - the count of each result type (success, fail, ..).
Implementations§
Trait Implementations§
source§impl Clone for NotificationsQuery
impl Clone for NotificationsQuery
source§fn clone(&self) -> NotificationsQuery
fn clone(&self) -> NotificationsQuery
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NotificationsQuery
impl Debug for NotificationsQuery
source§impl Default for NotificationsQuery
impl Default for NotificationsQuery
source§fn default() -> NotificationsQuery
fn default() -> NotificationsQuery
source§impl<'de> Deserialize<'de> for NotificationsQuery
impl<'de> Deserialize<'de> for NotificationsQuery
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>,
source§impl PartialEq for NotificationsQuery
impl PartialEq for NotificationsQuery
source§fn eq(&self, other: &NotificationsQuery) -> bool
fn eq(&self, other: &NotificationsQuery) -> bool
self
and other
values to be equal, and is used
by ==
.