Struct libretranslate::Translation
source · pub struct Translation {
pub url: String,
pub source: Language,
pub target: Language,
pub input: String,
pub output: String,
}
Expand description
Data that is output by the translate
function.
Fields§
§url: String
§source: Language
§target: Language
§input: String
§output: String
Trait Implementations§
source§impl Clone for Translation
impl Clone for Translation
source§fn clone(&self) -> Translation
fn clone(&self) -> Translation
Returns a copy 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 Debug for Translation
impl Debug for Translation
source§impl Hash for Translation
impl Hash for Translation
source§impl PartialEq<Translation> for Translation
impl PartialEq<Translation> for Translation
source§fn eq(&self, other: &Translation) -> bool
fn eq(&self, other: &Translation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Translation
Auto Trait Implementations§
impl RefUnwindSafe for Translation
impl Send for Translation
impl Sync for Translation
impl Unpin for Translation
impl UnwindSafe for Translation
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