pub struct Translation<'a> {
pub text: String,
pub src: &'a str,
pub src_lang: &'a Lang,
pub target_lang: &'a Lang,
}Expand description
Encapsulates a translated text and its source and target languages.
Fields§
§text: String§src: &'a str§src_lang: &'a Lang§target_lang: &'a LangTrait Implementations§
Source§impl<'a> Clone for Translation<'a>
impl<'a> Clone for Translation<'a>
Source§fn clone(&self) -> Translation<'a>
fn clone(&self) -> Translation<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for Translation<'a>
impl<'a> Debug for Translation<'a>
Source§impl<'a> PartialEq for Translation<'a>
impl<'a> PartialEq for Translation<'a>
impl<'a> StructuralPartialEq for Translation<'a>
Auto Trait Implementations§
impl<'a> Freeze for Translation<'a>
impl<'a> RefUnwindSafe for Translation<'a>
impl<'a> Send for Translation<'a>
impl<'a> Sync for Translation<'a>
impl<'a> Unpin for Translation<'a>
impl<'a> UnwindSafe for Translation<'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