Struct Activity

Source
pub struct Activity {
Show 35 fields pub id: ID, pub uuid: UUID, pub activity_type: ActivityType, pub created_in: ActivityCreatedIn, pub message: Option<String>, pub is_bulk: bool, pub bulk_rowcount: Option<u64>, pub changed_data: ElementChange, pub changed_data_element_id: Option<ID>, pub workspace_id: Option<ID>, pub workspace_short_id: Option<ShortId>, pub workspace_uuid: Option<UUID>, pub workspace_name: Option<String>, pub workspace_deprecated_at: Option<DateTime<Utc>>, pub parent_uuid: Option<UUID>, pub list_id: Option<ID>, pub list_short_id: Option<ShortId>, pub list_uuid: Option<UUID>, pub list_name: Option<String>, pub list_deprecated_at: Option<DateTime<Utc>>, pub list_entry_id: Option<ID>, pub list_entry_uuid: Option<UUID>, pub list_entry_name: Option<String>, pub list_entry_description: Option<String>, pub list_entry_deprecated_at: Option<DateTime<Utc>>, pub element_name: Option<String>, pub created_at: DateTime<Utc>, pub updated_at: DateTime<Utc>, pub deprecated_at: Option<DateTime<Utc>>, pub user_id: ID, pub user_display_name: String, pub user_full_name: String, pub user_username: String, pub user_initials: String, pub user_is_image_preferred: bool,
}
Expand description

Activity report

Fields§

§id: ID

activity id

§uuid: UUID

activity uuid

§activity_type: ActivityType

Activity type

§created_in: ActivityCreatedIn

object type

§message: Option<String>

message - only used if activity type is Comment

§is_bulk: bool

whether activity is bulk action

§bulk_rowcount: Option<u64>

if is_bulk, this field holds number of units affected by bulk action

§changed_data: ElementChange

object describing what changed through this activity.

§changed_data_element_id: Option<ID>

element id of changed data

§workspace_id: Option<ID>

id of activity’s subject, if it is a workspace

§workspace_short_id: Option<ShortId>

short id of activity’s subject, if it is a workspace

§workspace_uuid: Option<UUID>

uuid of activity’s subject, if it is a workspace

§workspace_name: Option<String>

name of activity’s subject, if it’s a workspace

§workspace_deprecated_at: Option<DateTime<Utc>>

date activity’s subject was deprecated, if it is a workspace

§parent_uuid: Option<UUID>
§list_id: Option<ID>

id of activity’s subject, if it is a list

§list_short_id: Option<ShortId>

short id of activity’s subject, if it is a list

§list_uuid: Option<UUID>

uuid of activity’s subject, if it is a list

§list_name: Option<String>

name of activity’s subject, if it is a list

§list_deprecated_at: Option<DateTime<Utc>>

date list deprecated

§list_entry_id: Option<ID>

id of activity’s subject, if it is a list entry

§list_entry_uuid: Option<UUID>

uuid of activity’s subject, if it is a list entry

§list_entry_name: Option<String>

name of activity’s subject, if it is a list entry

§list_entry_description: Option<String>

description of activity’s subject, if it is a list entry

§list_entry_deprecated_at: Option<DateTime<Utc>>

date at which activity’s subject was deprecated, if it is a list entry

§element_name: Option<String>

Name of field updated. Can be None if activity is a Comment

§created_at: DateTime<Utc>

date activity created

§updated_at: DateTime<Utc>

date activity updated

§deprecated_at: Option<DateTime<Utc>>

date activity deprecated

§user_id: ID

user id this actiity belongs to

§user_display_name: String

display name of activity’s subject, if it is a user

§user_full_name: String

full name of activity’s subject, if it is a user

§user_username: String

username of activity’s subject, if it is a user

§user_initials: String

user initials of the activity’s subject, if it is a user

§user_is_image_preferred: bool

user image preference setting of the activity’s subject, if it is a user

Trait Implementations§

Source§

impl Debug for Activity

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Activity

Source§

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 ZKObjectID for Activity

Source§

fn get_id(&self) -> ID

Returns the zenkit-assigned ID (positive int)
Source§

fn get_uuid(&self) -> &UUID

Returns the zenkit-assigned uuid

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,