Skip to main content

RunConfigSnapshot

Struct RunConfigSnapshot 

Source
pub struct RunConfigSnapshot {
Show 32 fields pub input_path: PathBuf, pub input_snapshot_path: Option<PathBuf>, pub input_sha256: Option<String>, pub output_path: PathBuf, pub events_path: Option<PathBuf>, pub report_json_path: Option<PathBuf>, pub report_markdown_path: Option<PathBuf>, pub source_language: Option<String>, pub target_language: String, pub provider: String, pub model: String, pub base_url: Option<String>, pub api_key_env: Option<String>, pub profile: TranslationProfile, pub provider_preset: Option<ProviderPreset>, pub prompt_version: String, pub cache_namespace: String, pub book_id: Option<String>, pub series_id: Option<String>, pub glossary_budget_tokens: usize, pub glossary_format: GlossaryFormat, pub prompt_extra: Option<String>, pub glossary_fingerprint: String, pub glossary_terms: Vec<GlossaryTerm>, pub context_window: usize, pub context_budget_tokens: usize, pub context_scope: ContextScope, pub style_fingerprint: String, pub style_rendered_block: String, pub entities_fingerprint: String, pub entities_rendered_block: String, pub settings: ResolvedRunSettingsSnapshot,
}

Fields§

§input_path: PathBuf§input_snapshot_path: Option<PathBuf>§input_sha256: Option<String>§output_path: PathBuf§events_path: Option<PathBuf>§report_json_path: Option<PathBuf>§report_markdown_path: Option<PathBuf>§source_language: Option<String>§target_language: String§provider: String§model: String§base_url: Option<String>§api_key_env: Option<String>§profile: TranslationProfile§provider_preset: Option<ProviderPreset>§prompt_version: String§cache_namespace: String§book_id: Option<String>§series_id: Option<String>§glossary_budget_tokens: usize§glossary_format: GlossaryFormat§prompt_extra: Option<String>§glossary_fingerprint: String§glossary_terms: Vec<GlossaryTerm>§context_window: usize§context_budget_tokens: usize§context_scope: ContextScope§style_fingerprint: String

SHA-256 of the merged style sheet’s normalized JSON form. Stable for users without --style (fingerprint of None).

§style_rendered_block: String

Pre-rendered style guide block — captured so resume reproduces the exact prompt the original run sent, even if the source TOML files have moved or been edited.

§entities_fingerprint: String

SHA-256 of the merged entity set. Same opt-in stance as style_fingerprint: empty rendered block means the cache namespace ignores this field.

§entities_rendered_block: String

Pre-rendered entity grammatical-agreement block.

§settings: ResolvedRunSettingsSnapshot

Trait Implementations§

Source§

impl Clone for RunConfigSnapshot

Source§

fn clone(&self) -> RunConfigSnapshot

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RunConfigSnapshot

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for RunConfigSnapshot

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for RunConfigSnapshot

Source§

impl PartialEq for RunConfigSnapshot

Source§

fn eq(&self, other: &RunConfigSnapshot) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for RunConfigSnapshot

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for RunConfigSnapshot

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.