[][src]Struct gcp_client::google::cloud::functions::v1beta2::EventTrigger

pub struct EventTrigger {
    pub event_type: String,
    pub resource: String,
    pub service: String,
    pub failure_policy: Option<FailurePolicy>,
}

Describes EventTrigger, used to request events be sent from another service.

Fields

event_type: String

event_type names contain the service that is sending an event and the kind of event that was fired. Must be of the form providers/*/eventTypes/* e.g. Directly handle a Message published to Google Cloud Pub/Sub providers/cloud.pubsub/eventTypes/topic.publish.

Handle an object changing in Google Cloud Storage: providers/cloud.storage/eventTypes/object.change

Handle a write to the Firebase Realtime Database: providers/google.firebase.database/eventTypes/ref.write

resource: String

Which instance of the source's service should send events. E.g. for Pub/Sub this would be a Pub/Sub topic at projects/*/topics/*. For Google Cloud Storage this would be a bucket at projects/*/buckets/*. For any source that only supports one instance per-project, this should be the name of the project (projects/*)

service: String

The hostname of the service that should be observed.

If no string is provided, the default service implementing the API will be used. For example, storage.googleapis.com is the default for all event types in the google.storage namespace.

failure_policy: Option<FailurePolicy>

Specifies policy for failed executions.

Trait Implementations

impl Clone for EventTrigger[src]

impl Debug for EventTrigger[src]

impl Default for EventTrigger[src]

impl Message for EventTrigger[src]

impl PartialEq<EventTrigger> for EventTrigger[src]

impl StructuralPartialEq for EventTrigger[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]