Struct google_api_proto::google::analytics::admin::v1alpha::EventCreateRule
source · pub struct EventCreateRule {
pub name: String,
pub destination_event: String,
pub event_conditions: Vec<MatchingCondition>,
pub source_copy_parameters: bool,
pub parameter_mutations: Vec<ParameterMutation>,
}
Expand description
An Event Create Rule defines conditions that will trigger the creation of an entirely new event based upon matched criteria of a source event. Additional mutations of the parameters from the source event can be defined.
Unlike Event Edit rules, Event Creation Rules have no defined order. They will all be run independently.
Event Edit and Event Create rules can’t be used to modify an event created from an Event Create rule.
Fields§
§name: String
Output only. Resource name for this EventCreateRule resource. Format: properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}
destination_event: String
Required. The name of the new event to be created.
This value must:
- be less than 40 characters
- consist only of letters, digits or _ (underscores)
- start with a letter
event_conditions: Vec<MatchingCondition>
Required. Must have at least one condition, and can have up to 10 max. Conditions on the source event must match for this rule to be applied.
source_copy_parameters: bool
If true, the source parameters are copied to the new event. If false, or unset, all non-internal parameters are not copied from the source event. Parameter mutations are applied after the parameters have been copied.
parameter_mutations: Vec<ParameterMutation>
Parameter mutations define parameter behavior on the new event, and are applied in order. A maximum of 20 mutations can be applied.
Trait Implementations§
source§impl Clone for EventCreateRule
impl Clone for EventCreateRule
source§fn clone(&self) -> EventCreateRule
fn clone(&self) -> EventCreateRule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EventCreateRule
impl Debug for EventCreateRule
source§impl Default for EventCreateRule
impl Default for EventCreateRule
source§impl Message for EventCreateRule
impl Message for EventCreateRule
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for EventCreateRule
impl PartialEq for EventCreateRule
source§fn eq(&self, other: &EventCreateRule) -> bool
fn eq(&self, other: &EventCreateRule) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EventCreateRule
Auto Trait Implementations§
impl Freeze for EventCreateRule
impl RefUnwindSafe for EventCreateRule
impl Send for EventCreateRule
impl Sync for EventCreateRule
impl Unpin for EventCreateRule
impl UnwindSafe for EventCreateRule
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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