#[non_exhaustive]pub struct EventType {
pub type: String,
pub description: String,
pub filtering_attributes: Vec<FilteringAttribute>,
pub event_schema_uri: String,
/* private fields */
}Expand description
A representation of the event type resource.
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.type: StringOutput only. The full name of the event type (for example, “google.cloud.storage.object.v1.finalized”). In the form of {provider-specific-prefix}.{resource}.{version}.{verb}. Types MUST be versioned and event schemas are guaranteed to remain backward compatible within one version. Note that event type versions and API versions do not need to match.
description: StringOutput only. Human friendly description of what the event type is about. For example “Bucket created in Cloud Storage”.
filtering_attributes: Vec<FilteringAttribute>Output only. Filtering attributes for the event type.
event_schema_uri: StringOutput only. URI for the event schema.
For example
https://github.com/googleapis/google-cloudevents/blob/master/proto/google/events/cloud/storage/v1/events.proto
Implementations§
Source§impl EventType
impl EventType
pub fn new() -> Self
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Sourcepub fn set_filtering_attributes<T, V>(self, v: T) -> Self
pub fn set_filtering_attributes<T, V>(self, v: T) -> Self
Sets the value of filtering_attributes.
Sourcepub fn set_event_schema_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_event_schema_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of event_schema_uri.