#[non_exhaustive]pub struct DataFlowEvent {
pub event_id: String,
pub principal_email: String,
pub operation: Operation,
pub violated_location: String,
pub event_time: Option<Timestamp>,
/* private fields */
}Expand description
Details about a data flow event, in which either the data is moved to or is accessed from a non-compliant geo-location, as defined in the applicable data security policy.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.event_id: StringUnique identifier for data flow event.
principal_email: StringThe email address of the principal that initiated the data flow event. The principal could be a user account, service account, Google group, or other.
operation: OperationThe operation performed by the principal for the data flow event.
violated_location: StringNon-compliant location of the principal or the data destination.
event_time: Option<Timestamp>Timestamp of data flow event.
Implementations§
Source§impl DataFlowEvent
impl DataFlowEvent
pub fn new() -> Self
Sourcepub fn set_event_id<T: Into<String>>(self, v: T) -> Self
pub fn set_event_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_principal_email<T: Into<String>>(self, v: T) -> Self
pub fn set_principal_email<T: Into<String>>(self, v: T) -> Self
Sets the value of principal_email.
§Example
ⓘ
let x = DataFlowEvent::new().set_principal_email("example");Sourcepub fn set_operation<T: Into<Operation>>(self, v: T) -> Self
pub fn set_operation<T: Into<Operation>>(self, v: T) -> Self
Sourcepub fn set_violated_location<T: Into<String>>(self, v: T) -> Self
pub fn set_violated_location<T: Into<String>>(self, v: T) -> Self
Sets the value of violated_location.
§Example
ⓘ
let x = DataFlowEvent::new().set_violated_location("example");Sourcepub fn set_event_time<T>(self, v: T) -> Self
pub fn set_event_time<T>(self, v: T) -> Self
Sets the value of event_time.
§Example
ⓘ
use wkt::Timestamp;
let x = DataFlowEvent::new().set_event_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_event_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_event_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of event_time.
§Example
ⓘ
use wkt::Timestamp;
let x = DataFlowEvent::new().set_or_clear_event_time(Some(Timestamp::default()/* use setters */));
let x = DataFlowEvent::new().set_or_clear_event_time(None::<Timestamp>);Trait Implementations§
Source§impl Clone for DataFlowEvent
impl Clone for DataFlowEvent
Source§fn clone(&self) -> DataFlowEvent
fn clone(&self) -> DataFlowEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DataFlowEvent
impl Debug for DataFlowEvent
Source§impl Default for DataFlowEvent
impl Default for DataFlowEvent
Source§fn default() -> DataFlowEvent
fn default() -> DataFlowEvent
Returns the “default value” for a type. Read more
Source§impl Message for DataFlowEvent
impl Message for DataFlowEvent
Source§impl PartialEq for DataFlowEvent
impl PartialEq for DataFlowEvent
impl StructuralPartialEq for DataFlowEvent
Auto Trait Implementations§
impl Freeze for DataFlowEvent
impl RefUnwindSafe for DataFlowEvent
impl Send for DataFlowEvent
impl Sync for DataFlowEvent
impl Unpin for DataFlowEvent
impl UnwindSafe for DataFlowEvent
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
Mutably borrows from an owned value. Read more