pub struct UpdateActionDataOptions {Show 15 fields
pub subject: Patch<String>,
pub reactions: Patch<String>,
pub comments: Patch<u32>,
pub comments_ts: Patch<Timestamp>,
pub reposts: Patch<u32>,
pub stat_at: Patch<Timestamp>,
pub status: Patch<char>,
pub visibility: Patch<char>,
pub x: Patch<Value>,
pub content: Patch<String>,
pub attachments: Patch<String>,
pub flags: Patch<String>,
pub sub_level: Patch<char>,
pub sub_typ: Patch<String>,
pub created_at: Patch<Timestamp>,
}Expand description
Options for updating action metadata
Fields§
§subject: Patch<String>§reactions: Patch<String>§comments: Patch<u32>Total comment count, federated as STAT c.
comments_ts: Patch<Timestamp>Last-comment timestamp (epoch seconds), federated as STAT ct.
reposts: Patch<u32>§stat_at: Patch<Timestamp>Watermark for inbound STAT mirror updates — see ActionData::stat_at.
status: Patch<char>§visibility: Patch<char>§x: Patch<Value>§content: Patch<String>§attachments: Patch<String>§flags: Patch<String>§sub_level: Patch<char>Reader’s W/T/M thread subscription level. Patch::Null clears it.
sub_typ: Patch<String>§created_at: Patch<Timestamp>Dual-purpose for actions in status R (draft) or S (scheduled): the
actions.created_at column holds the target publish instant, not the
row’s actual creation time. PATCH /actions, publish_draft, and
task::handle_create_action all rely on this overload. For any other
status, leave this Patch::Undefined — overwriting created_at on a
finalized (A) action would corrupt the timeline.
Implementations§
Source§impl UpdateActionDataOptions
impl UpdateActionDataOptions
Sourcepub fn affects_search_index(&self) -> bool
pub fn affects_search_index(&self) -> bool
Whether this patch touches a column the full-text index reads, and so
needs a search_index_action call afterwards. The hottest writes on this
table — reactions, comments, reposts, stat_at bumps from
REACT/CMNT/STAT hooks — set none of these and cost nothing.
Trait Implementations§
Source§impl Clone for UpdateActionDataOptions
impl Clone for UpdateActionDataOptions
Source§fn clone(&self) -> UpdateActionDataOptions
fn clone(&self) -> UpdateActionDataOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more