pub struct RomanizeTextRequest {
pub contents: Option<Vec<String>>,
pub source_language_code: Option<String>,
}Expand description
The request message for synchronous romanization.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations romanize text projects (request)
- romanize text projects (request)
Fields§
§contents: Option<Vec<String>>Required. The content of the input in string format.
source_language_code: Option<String>Optional. The ISO-639 language code of the input text if known, for example, “hi” or “zh”. If the source language isn’t specified, the API attempts to identify the source language automatically and returns the source language for each content in the response.
Trait Implementations§
Source§impl Clone for RomanizeTextRequest
impl Clone for RomanizeTextRequest
Source§fn clone(&self) -> RomanizeTextRequest
fn clone(&self) -> RomanizeTextRequest
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 RomanizeTextRequest
impl Debug for RomanizeTextRequest
Source§impl Default for RomanizeTextRequest
impl Default for RomanizeTextRequest
Source§fn default() -> RomanizeTextRequest
fn default() -> RomanizeTextRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RomanizeTextRequest
impl<'de> Deserialize<'de> for RomanizeTextRequest
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 RomanizeTextRequest
impl Serialize for RomanizeTextRequest
impl RequestValue for RomanizeTextRequest
Auto Trait Implementations§
impl Freeze for RomanizeTextRequest
impl RefUnwindSafe for RomanizeTextRequest
impl Send for RomanizeTextRequest
impl Sync for RomanizeTextRequest
impl Unpin for RomanizeTextRequest
impl UnwindSafe for RomanizeTextRequest
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