pub struct Romanization {
pub detected_language_code: Option<String>,
pub romanized_text: Option<String>,
}Expand description
A single romanization response.
This type is not used in any activity, and only used as part of another schema.
Fields§
§detected_language_code: Option<String>The ISO-639 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language does not occur and this field is empty.
romanized_text: Option<String>Romanized text. If an error occurs during romanization, this field might be excluded from the response.
Trait Implementations§
Source§impl Clone for Romanization
impl Clone for Romanization
Source§fn clone(&self) -> Romanization
fn clone(&self) -> Romanization
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 Debug for Romanization
impl Debug for Romanization
Source§impl Default for Romanization
impl Default for Romanization
Source§fn default() -> Romanization
fn default() -> Romanization
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Romanization
impl<'de> Deserialize<'de> for Romanization
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 Serialize for Romanization
impl Serialize for Romanization
impl Part for Romanization
Auto Trait Implementations§
impl Freeze for Romanization
impl RefUnwindSafe for Romanization
impl Send for Romanization
impl Sync for Romanization
impl Unpin for Romanization
impl UnwindSafe for Romanization
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