Struct libretranslate::Query
source · pub struct Query<'a> {
pub url: &'a str,
pub text: &'a str,
pub source: Language,
pub target: Language,
}
Expand description
A struct created by a Translate
that can be translated using the translate method.
Fields§
§url: &'a str
§text: &'a str
§source: Language
§target: Language
Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Query<'a>
impl<'a> Send for Query<'a>
impl<'a> Sync for Query<'a>
impl<'a> Unpin for Query<'a>
impl<'a> UnwindSafe for Query<'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