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§
- Thread
Block - A single tweet block within a thread.
- Thread
Blocks Payload - Versioned wrapper for serializing thread blocks to the database.
Enums§
- Thread
Block Error - 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.