pub struct ActivityRecord {
pub run: RunId,
pub source_sequence: u64,
pub kind: ActivityKind,
pub text: Option<String>,
pub truncated: bool,
pub text_digest: Option<String>,
pub observed_at: Option<DateTime<Utc>>,
pub recorded_by: ActorId,
pub recorded_at: DateTime<Utc>,
}Expand description
One recorded activity record.
Fields§
§run: RunIdThe run the activity belongs to.
source_sequence: u64The reporter’s sequence number within the run.
kind: ActivityKindWhat the record describes.
text: Option<String>Public text, within the size bound.
truncated: boolWhether the reported text was cut to the size bound.
text_digest: Option<String>SHA-256 of the whole reported text, in lowercase hex.
observed_at: Option<DateTime<Utc>>When the source says it happened.
recorded_by: ActorIdThe principal that reported it.
recorded_at: DateTime<Utc>When DPM received it, from DPM’s own clock; freshness is judged from this alone.
Trait Implementations§
Source§impl Clone for ActivityRecord
impl Clone for ActivityRecord
Source§impl Debug for ActivityRecord
impl Debug for ActivityRecord
Source§impl<'de> Deserialize<'de> for ActivityRecord
impl<'de> Deserialize<'de> for ActivityRecord
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 Eq for ActivityRecord
Source§impl PartialEq for ActivityRecord
impl PartialEq for ActivityRecord
Source§impl Serialize for ActivityRecord
impl Serialize for ActivityRecord
impl StructuralPartialEq for ActivityRecord
Auto Trait Implementations§
impl Freeze for ActivityRecord
impl RefUnwindSafe for ActivityRecord
impl Send for ActivityRecord
impl Sync for ActivityRecord
impl Unpin for ActivityRecord
impl UnsafeUnpin for ActivityRecord
impl UnwindSafe for ActivityRecord
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