pub struct Event {
pub id: Option<String>,
pub request_data: Option<RequestData>,
pub linked_events: Option<Vec<String>>,
pub subjects: Option<Vec<Option<Subjects>>>,
pub event_type: Option<EventType>,
pub timestamp: Option<String>,
pub company: Option<String>,
pub spoke: Option<String>,
pub initiator: Option<Initiator>,
pub event_reason: Option<EventReason>,
pub name: Option<String>,
}
Expand description
The event model for company activity.
Please note, the event type can be one of the following:
- EXTERNAL_ACCONT_CREATE
- EXTERNAL_ACCOUNT_INVITE
- EXTERNAL_ACCOUNT_DELETE
- EXTERNAL_ACCOUNT_SUSPEND
- EXTERNAL_ACCOUNT_PASSWORD_RESET
- EXTERNAL_GROUP_ADD
- EXTERNAL_GROUP_REMOVE
- EXTERNAL_GROUP_MEMBER_REMOVE
- EXTERNAL_GROUP_MEMBER_ADD
- EXTERNAL_SSO_GRANT
- EXTERNAL_SSO_REVOKE
- EXTERNAL_SSO_SIGNIN
- RPASS_ITEM_SHARED
- RPASS_ITEM_UNSHARED
- RPASS_ITEM_USED
- USER_LOGIN_SUCCESS
- USER_LOGIN_FAILED
- ACCOUNT_PASSWORD_RESET
- ACCOUNT_PASSWORD_CHANGED
- TWO_FACTOR_DEVICE_RESET
Fields§
§id: Option<String>
Unique identifier of the event.
request_data: Option<RequestData>
Geographic details from where the event was recorded.
linked_events: Option<Vec<String>>
An array of event identifiers that are linked to the event.
subjects: Option<Vec<Option<Subjects>>>
The list of objects of the event.
event_type: Option<EventType>
An ENUM value for the type of the event.
timestamp: Option<String>
Timestamp at which the event was recorded.
company: Option<String>
Unique identifier for the company.
spoke: Option<String>
Unique identifier for the external application for which the event was recorded. This will be Null for events that don’t correspond to an external appliction (e.g. Rippling system and RPass events).
initiator: Option<Initiator>
The actor of the event.
event_reason: Option<EventReason>
Reason for the event, tied to the type of eveent.
name: Option<String>
Display name for the event, tied to the type of 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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for Event
impl JsonSchema for Event
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreimpl StructuralPartialEq 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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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