pub struct CommentThread {
pub id: Uuid,
pub workspace_id: Uuid,
pub object_id: Uuid,
pub created_by: Uuid,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub resolved_at: Option<DateTime<Utc>>,
pub resolved_by: Option<Uuid>,
pub retention_expires_at: Option<DateTime<Utc>>,
pub comments: Vec<Comment>,
pub comments_next_cursor: Option<String>,
}Expand description
A top-level discussion with a bounded page of comments.
Fields§
§id: UuidStable thread identifier.
workspace_id: UuidWorkspace security boundary.
object_id: UuidObject that owns this thread.
created_by: UuidUser who created the root comment.
created_at: DateTime<Utc>Creation timestamp.
updated_at: DateTime<Utc>Last thread activity timestamp.
resolved_at: Option<DateTime<Utc>>Resolution timestamp, when resolved.
resolved_by: Option<Uuid>User who most recently resolved the thread.
retention_expires_at: Option<DateTime<Utc>>Explicit boundary consumed by retention workers.
comments: Vec<Comment>Comments ordered by creation time, with the root first.
comments_next_cursor: Option<String>Opaque cursor for loading more comments in this thread.
Trait Implementations§
Source§impl Clone for CommentThread
impl Clone for CommentThread
Source§impl Debug for CommentThread
impl Debug for CommentThread
Source§impl<'de> Deserialize<'de> for CommentThread
impl<'de> Deserialize<'de> for CommentThread
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 CommentThread
Source§impl JsonSchema for CommentThread
impl JsonSchema for CommentThread
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 inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CommentThread
impl PartialEq for CommentThread
Source§impl Serialize for CommentThread
impl Serialize for CommentThread
impl StructuralPartialEq for CommentThread
Auto Trait Implementations§
impl Forget for CommentThread
impl Freeze for CommentThread
impl Move for CommentThread
impl RefUnwindSafe for CommentThread
impl Send for CommentThread
impl Sync for CommentThread
impl Unpin for CommentThread
impl UnsafeUnpin for CommentThread
impl UnwindSafe for CommentThread
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