Skip to main content

Module thread

Module thread 

Source
Expand description

Thread block types and validation for structured thread composition.

Provides the ThreadBlock struct for representing individual tweets within a thread, along with validation and storage serialization.

Structs§

ThreadBlock
A single tweet block within a thread.
ThreadBlocksPayload
Versioned wrapper for serializing thread blocks to the database.

Enums§

ThreadBlockError
Validation errors for thread block payloads.

Constants§

MAX_MEDIA_PER_BLOCK
Maximum number of media attachments per block.

Functions§

deserialize_blocks_from_content
Attempt to deserialize thread blocks from stored content.
serialize_blocks_for_storage
Serialize thread blocks to the versioned JSON format for database storage.
validate_thread_blocks
Validate a slice of thread blocks.