redfish_codegen/models/event_service/v1_10_0/
sse_filter_properties_supported.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The set of properties that are supported in the `$filter` query parameter for the ServerSentEventUri.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct SSEFilterPropertiesSupported {
9    /// An indication of whether the service supports filtering by the EventFormatType property.
10    #[serde(rename = "EventFormatType")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub event_format_type: Option<bool>,
13    /// An indication of whether the service supports filtering by the EventTypes property.
14    #[serde(rename = "EventType")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub event_type: Option<bool>,
17    /// An indication of whether the service supports filtering by the MessageIds property.
18    #[serde(rename = "MessageId")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub message_id: Option<bool>,
21    /// An indication of whether the service supports filtering by the MetricReportDefinitions property.
22    #[serde(rename = "MetricReportDefinition")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub metric_report_definition: Option<bool>,
25    /// An indication of whether the service supports filtering by the OriginResources property.
26    #[serde(rename = "OriginResource")]
27    #[serde(default, skip_serializing_if = "Option::is_none")]
28    pub origin_resource: Option<bool>,
29    /// An indication of whether the service supports filtering by the RegistryPrefixes property.
30    #[serde(rename = "RegistryPrefix")]
31    #[serde(default, skip_serializing_if = "Option::is_none")]
32    pub registry_prefix: Option<bool>,
33    /// An indication of whether the service supports filtering by the ResourceTypes property.
34    #[serde(rename = "ResourceType")]
35    #[serde(default, skip_serializing_if = "Option::is_none")]
36    pub resource_type: Option<bool>,
37    /// An indication of whether the service supports filtering by the SubordinateResources property.
38    #[serde(rename = "SubordinateResources")]
39    #[serde(default, skip_serializing_if = "Option::is_none")]
40    pub subordinate_resources: Option<bool>,
41}
42
43impl crate::Metadata<'static> for SSEFilterPropertiesSupported {
44    const JSON_SCHEMA: &'static str = "EventService.v1_10_0.json";
45}