pub struct ExportService<'db> { /* private fields */ }Expand description
Read-only session rendering over the shared catalog database.
Implementations§
Source§impl<'db> ExportService<'db>
impl<'db> ExportService<'db>
Sourcepub const fn new(db: &'db Db) -> Self
pub const fn new(db: &'db Db) -> Self
Create an export service over an existing database connection.
Sourcepub fn render_full(
&self,
id_or_prefix: &str,
format: ExportFormat,
) -> Result<ExportDocument>
pub fn render_full( &self, id_or_prefix: &str, format: ExportFormat, ) -> Result<ExportDocument>
Resolve an exact session ID or unambiguous prefix and render its complete transcript.
The returned document is held in memory and performs no terminal or filesystem I/O. Resolution errors include candidate context for ambiguous prefixes.
§Errors
Returns an error when the identifier is missing or ambiguous, database access fails, or structured serialization fails.
Sourcepub fn publish_bundle(
&self,
filters: &SearchFilters,
plan: &ExportPublicationPlan,
) -> Result<ExportPublicationReceipt>
pub fn publish_bundle( &self, filters: &SearchFilters, plan: &ExportPublicationPlan, ) -> Result<ExportPublicationReceipt>
Select sessions and stream their rendered documents into one immutable bundle.
This retains no full-corpus transcript collection: memory is bounded by the selected
session metadata plus the largest individual rendered document.
Time and output bytes are proportional to the selected transcripts; filters.limit = 0
intentionally selects the complete filtered corpus.
Trait Implementations§
Source§impl<'db> Clone for ExportService<'db>
impl<'db> Clone for ExportService<'db>
impl<'db> Copy for ExportService<'db>
Auto Trait Implementations§
impl<'db> !RefUnwindSafe for ExportService<'db>
impl<'db> !Send for ExportService<'db>
impl<'db> !Sync for ExportService<'db>
impl<'db> !UnwindSafe for ExportService<'db>
impl<'db> Freeze for ExportService<'db>
impl<'db> Unpin for ExportService<'db>
impl<'db> UnsafeUnpin for ExportService<'db>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more