pub struct EventTrigger {
pub event_type: String,
pub resource: String,
pub service: String,
pub failure_policy: Option<FailurePolicy>,
}
Expand description
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§
Source§impl Clone for EventTrigger
impl Clone for EventTrigger
Source§fn clone(&self) -> EventTrigger
fn clone(&self) -> EventTrigger
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for EventTrigger
impl Debug for EventTrigger
Source§impl Default for EventTrigger
impl Default for EventTrigger
Source§fn default() -> EventTrigger
fn default() -> EventTrigger
Source§impl Message for EventTrigger
impl Message for EventTrigger
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for EventTrigger
impl PartialEq for EventTrigger
impl StructuralPartialEq for EventTrigger
Auto Trait Implementations§
impl Freeze for EventTrigger
impl RefUnwindSafe for EventTrigger
impl Send for EventTrigger
impl Sync for EventTrigger
impl Unpin for EventTrigger
impl UnwindSafe for EventTrigger
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request