pub struct TableTransform {
pub ordinal: usize,
pub mode: String,
pub path: Option<PathBuf>,
pub kept_rows: Option<usize>,
pub truncated_rows: Option<usize>,
pub summary_md: Option<String>,
pub fallback_reason: Option<String>,
pub fallback_from: Option<String>,
}Fields§
§ordinal: usize§mode: String§path: Option<PathBuf>§kept_rows: Option<usize>§truncated_rows: Option<usize>§summary_md: Option<String>Per-table summary body emitted by TablesMode::Summarize. Absent
for every other mode and for tables where the summarizer hook
returned an error (see fallback_reason).
fallback_reason: Option<String>Set in two cases: (1) the per-table summarizer hook failed
entirely — summary_md is None and the original markdown is
preserved verbatim; (2) the service fell back internally (e.g.
cloud→extractive) — summary_md is set to the fallback backend’s
output and fallback_from is set to the original backend name.
Mirrors SummarizerError::fallback_reason() strings.
fallback_from: Option<String>Backend name that the per-table summarizer fell back FROM, when
the service performed an internal fallback (e.g.
cloud→extractive). Set alongside summary_md (body has a
successfully-produced summary, from the fallback backend) AND
fallback_reason (why the primary failed). Distinct from the
total-failure case where summary_md is None and
fallback_from is None.
Trait Implementations§
Source§impl Clone for TableTransform
impl Clone for TableTransform
Source§fn clone(&self) -> TableTransform
fn clone(&self) -> TableTransform
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TableTransform
impl Debug for TableTransform
Source§impl<'de> Deserialize<'de> for TableTransform
impl<'de> Deserialize<'de> for TableTransform
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for TableTransform
impl RefUnwindSafe for TableTransform
impl Send for TableTransform
impl Sync for TableTransform
impl Unpin for TableTransform
impl UnsafeUnpin for TableTransform
impl UnwindSafe for TableTransform
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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