pub struct Activity {
pub ts: DateTime<Utc>,
pub actor: String,
pub kind: String,
pub detail: String,
}Expand description
A recorded change to a ticket, shown in the activity timeline alongside
comments. Kept deliberately small and pre-classified so any front-end can
render a phrase from kind + detail without re-deriving it from diffs.
Fields§
§ts: DateTime<Utc>When it happened.
actor: StringWho did it (git Name <email> or agent ID).
kind: StringEvent kind: one of created, moved, renamed, edited, priority,
label-added, label-removed, assigned, unassigned, attached,
detached.
detail: StringEvent-specific detail (destination list, label, assignee, attachment
name, priority value). Empty when the kind alone says everything.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Activity
impl<'de> Deserialize<'de> for Activity
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
impl StructuralPartialEq for Activity
Auto Trait Implementations§
impl Freeze for Activity
impl RefUnwindSafe for Activity
impl Send for Activity
impl Sync for Activity
impl Unpin for Activity
impl UnsafeUnpin for Activity
impl UnwindSafe for Activity
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