pub struct SaveTranslation<'a> {
pub job_id: &'a str,
pub segment_id: &'a str,
pub translated_text: &'a str,
pub blocks: &'a [BlockTranslation],
pub provider: &'a str,
pub model: &'a str,
pub prompt_version: &'a str,
pub input_tokens: Option<u64>,
pub input_cached_tokens: Option<u64>,
pub output_tokens: Option<u64>,
pub tokens_estimated: bool,
}Fields§
§job_id: &'a str§segment_id: &'a str§translated_text: &'a str§blocks: &'a [BlockTranslation]§provider: &'a str§model: &'a str§prompt_version: &'a str§input_tokens: Option<u64>§input_cached_tokens: Option<u64>§output_tokens: Option<u64>§tokens_estimated: boolTrait Implementations§
Source§impl<'a> Clone for SaveTranslation<'a>
impl<'a> Clone for SaveTranslation<'a>
Source§fn clone(&self) -> SaveTranslation<'a>
fn clone(&self) -> SaveTranslation<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for SaveTranslation<'a>
Auto Trait Implementations§
impl<'a> Freeze for SaveTranslation<'a>
impl<'a> RefUnwindSafe for SaveTranslation<'a>
impl<'a> Send for SaveTranslation<'a>
impl<'a> Sync for SaveTranslation<'a>
impl<'a> Unpin for SaveTranslation<'a>
impl<'a> UnsafeUnpin for SaveTranslation<'a>
impl<'a> UnwindSafe for SaveTranslation<'a>
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