#[non_exhaustive]pub struct DataAccessEvent {
pub event_id: String,
pub principal_email: String,
pub operation: Operation,
pub event_time: Option<Timestamp>,
/* private fields */
}Expand description
Details about a data access attempt made by a principal not authorized under 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 access event.
principal_email: StringThe email address of the principal that accessed the data. The principal could be a user account, service account, Google group, or other.
operation: OperationThe operation performed by the principal to access the data.
event_time: Option<Timestamp>Timestamp of data access event.
Implementations§
Source§impl DataAccessEvent
impl DataAccessEvent
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 = DataAccessEvent::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
Sets the value of operation.
§Example
ⓘ
use google_cloud_securitycenter_v2::model::data_access_event::Operation;
let x0 = DataAccessEvent::new().set_operation(Operation::Read);
let x1 = DataAccessEvent::new().set_operation(Operation::Move);
let x2 = DataAccessEvent::new().set_operation(Operation::Copy);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 = DataAccessEvent::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 = DataAccessEvent::new().set_or_clear_event_time(Some(Timestamp::default()/* use setters */));
let x = DataAccessEvent::new().set_or_clear_event_time(None::<Timestamp>);Trait Implementations§
Source§impl Clone for DataAccessEvent
impl Clone for DataAccessEvent
Source§fn clone(&self) -> DataAccessEvent
fn clone(&self) -> DataAccessEvent
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 DataAccessEvent
impl Debug for DataAccessEvent
Source§impl Default for DataAccessEvent
impl Default for DataAccessEvent
Source§fn default() -> DataAccessEvent
fn default() -> DataAccessEvent
Returns the “default value” for a type. Read more
Source§impl Message for DataAccessEvent
impl Message for DataAccessEvent
Source§impl PartialEq for DataAccessEvent
impl PartialEq for DataAccessEvent
impl StructuralPartialEq for DataAccessEvent
Auto Trait Implementations§
impl Freeze for DataAccessEvent
impl RefUnwindSafe for DataAccessEvent
impl Send for DataAccessEvent
impl Sync for DataAccessEvent
impl Unpin for DataAccessEvent
impl UnwindSafe for DataAccessEvent
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