pub struct Event {
pub additional_event_types: Option<Vec<String>>,
pub event_time_millis: Option<u64>,
pub from_user_deletion: Option<bool>,
pub move_: Option<Move>,
pub permission_changes: Option<Vec<PermissionChange>>,
pub primary_event_type: Option<String>,
pub rename: Option<Rename>,
pub target: Option<Target>,
pub user: Option<User>,
}Expand description
Represents the changes associated with an action taken by a user.
This type is not used in any activity, and only used as part of another schema.
Fields§
§additional_event_types: Option<Vec<String>>Additional event types. Some events may have multiple types when multiple actions are part of a single event. For example, creating a document, renaming it, and sharing it may be part of a single file-creation event.
event_time_millis: Option<u64>The time at which the event occurred formatted as Unix time in milliseconds.
from_user_deletion: Option<bool>Whether this event is caused by a user being deleted.
move_: Option<Move>Extra information for move type events, such as changes in an object’s parents.
permission_changes: Option<Vec<PermissionChange>>Extra information for permissionChange type events, such as the user or group the new permission applies to.
primary_event_type: Option<String>The main type of event that occurred.
rename: Option<Rename>Extra information for rename type events, such as the old and new names.
target: Option<Target>Information specific to the Target object modified by the event.
user: Option<User>Represents the user responsible for the event.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more