#[non_exhaustive]pub struct GetMonitorNotificationRulesOptionalParams {
pub page: Option<i32>,
pub per_page: Option<i32>,
pub sort: Option<String>,
pub filters: Option<String>,
pub include: Option<String>,
}
Expand description
GetMonitorNotificationRulesOptionalParams is a struct for passing parameters to the method MonitorsAPI::get_monitor_notification_rules
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.page: Option<i32>
The page to start paginating from. If page
is not specified, the argument defaults to the first page.
per_page: Option<i32>
The number of rules to return per page. If per_page
is not specified, the argument defaults to 100.
sort: Option<String>
String for sort order, composed of field and sort order separated by a colon, for example name:asc
. Supported sort directions: asc
, desc
. Supported fields: name
, created_at
.
filters: Option<String>
JSON-encoded filter object. Supported keys:
text
: Free-text query matched against rule name, tags, and recipients.tags
: Array of strings. Return rules that have any of these tags.recipients
: Array of strings. Return rules that have any of these recipients.
include: Option<String>
Comma-separated list of resource paths for related resources to include in the response. Supported resource
path is created_by
.
Implementations§
Source§impl GetMonitorNotificationRulesOptionalParams
impl GetMonitorNotificationRulesOptionalParams
Sourcepub fn page(self, value: i32) -> Self
pub fn page(self, value: i32) -> Self
The page to start paginating from. If page
is not specified, the argument defaults to the first page.
Sourcepub fn per_page(self, value: i32) -> Self
pub fn per_page(self, value: i32) -> Self
The number of rules to return per page. If per_page
is not specified, the argument defaults to 100.
Sourcepub fn sort(self, value: String) -> Self
pub fn sort(self, value: String) -> Self
String for sort order, composed of field and sort order separated by a colon, for example name:asc
. Supported sort directions: asc
, desc
. Supported fields: name
, created_at
.
Sourcepub fn filters(self, value: String) -> Self
pub fn filters(self, value: String) -> Self
JSON-encoded filter object. Supported keys:
text
: Free-text query matched against rule name, tags, and recipients.tags
: Array of strings. Return rules that have any of these tags.recipients
: Array of strings. Return rules that have any of these recipients.
Trait Implementations§
Source§impl Clone for GetMonitorNotificationRulesOptionalParams
impl Clone for GetMonitorNotificationRulesOptionalParams
Source§fn clone(&self) -> GetMonitorNotificationRulesOptionalParams
fn clone(&self) -> GetMonitorNotificationRulesOptionalParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more