pub struct DiscordStreamingParser { /* private fields */ }Expand description
Streaming parser for Discord exports.
Optimized for JSONL format where each line is a separate message. Also handles standard JSON format by falling back to object-by-object parsing.
Implementations§
Source§impl DiscordStreamingParser
impl DiscordStreamingParser
Sourcepub fn with_config(config: StreamingConfig) -> Self
pub fn with_config(config: StreamingConfig) -> Self
Creates a new streaming parser with custom configuration.
Trait Implementations§
Source§impl Default for DiscordStreamingParser
impl Default for DiscordStreamingParser
Source§impl StreamingParser for DiscordStreamingParser
impl StreamingParser for DiscordStreamingParser
Source§fn stream(
&self,
file_path: &str,
) -> Result<Box<dyn MessageIterator>, ChatpackError>
fn stream( &self, file_path: &str, ) -> Result<Box<dyn MessageIterator>, ChatpackError>
Opens a file and returns an iterator over messages. Read more
Source§fn recommended_buffer_size(&self) -> usize
fn recommended_buffer_size(&self) -> usize
Returns the recommended buffer size for this parser. Read more
Source§fn supports_progress(&self) -> bool
fn supports_progress(&self) -> bool
Returns
true if this parser supports progress reporting.Auto Trait Implementations§
impl Freeze for DiscordStreamingParser
impl RefUnwindSafe for DiscordStreamingParser
impl Send for DiscordStreamingParser
impl Sync for DiscordStreamingParser
impl Unpin for DiscordStreamingParser
impl UnwindSafe for DiscordStreamingParser
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