#[non_exhaustive]pub struct RomanizeTextResponse {
pub romanizations: Vec<Romanization>,
/* private fields */
}Expand description
The response message for synchronous romanization.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.romanizations: Vec<Romanization>Text romanization responses.
This field has the same length as
contents.
Implementations§
Source§impl RomanizeTextResponse
impl RomanizeTextResponse
pub fn new() -> Self
Sourcepub fn set_romanizations<T, V>(self, v: T) -> Self
pub fn set_romanizations<T, V>(self, v: T) -> Self
Sets the value of romanizations.
§Example
ⓘ
use google_cloud_translation_v3::model::Romanization;
let x = RomanizeTextResponse::new()
.set_romanizations([
Romanization::default()/* use setters */,
Romanization::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for RomanizeTextResponse
impl Clone for RomanizeTextResponse
Source§fn clone(&self) -> RomanizeTextResponse
fn clone(&self) -> RomanizeTextResponse
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 RomanizeTextResponse
impl Debug for RomanizeTextResponse
Source§impl Default for RomanizeTextResponse
impl Default for RomanizeTextResponse
Source§fn default() -> RomanizeTextResponse
fn default() -> RomanizeTextResponse
Returns the “default value” for a type. Read more
Source§impl Message for RomanizeTextResponse
impl Message for RomanizeTextResponse
Source§impl PartialEq for RomanizeTextResponse
impl PartialEq for RomanizeTextResponse
impl StructuralPartialEq for RomanizeTextResponse
Auto Trait Implementations§
impl Freeze for RomanizeTextResponse
impl RefUnwindSafe for RomanizeTextResponse
impl Send for RomanizeTextResponse
impl Sync for RomanizeTextResponse
impl Unpin for RomanizeTextResponse
impl UnsafeUnpin for RomanizeTextResponse
impl UnwindSafe for RomanizeTextResponse
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