pub struct AdaptiveMtTranslateRequest {
pub content: Option<Vec<String>>,
pub dataset: Option<String>,
pub glossary_config: Option<GlossaryConfig>,
pub reference_sentence_config: Option<ReferenceSentenceConfig>,
}Expand description
The request for sending an AdaptiveMt translation query.
§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 adaptive mt translate projects (request)
Fields§
§content: Option<Vec<String>>Required. The content of the input in string format.
dataset: Option<String>Required. The resource name for the dataset to use for adaptive MT. projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}
glossary_config: Option<GlossaryConfig>Optional. Glossary to be applied. The glossary must be within the same region (have the same location-id) as the model, otherwise an INVALID_ARGUMENT (400) error is returned.
reference_sentence_config: Option<ReferenceSentenceConfig>Configuration for caller provided reference sentences.
Trait Implementations§
Source§impl Clone for AdaptiveMtTranslateRequest
impl Clone for AdaptiveMtTranslateRequest
Source§fn clone(&self) -> AdaptiveMtTranslateRequest
fn clone(&self) -> AdaptiveMtTranslateRequest
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 AdaptiveMtTranslateRequest
impl Debug for AdaptiveMtTranslateRequest
Source§impl Default for AdaptiveMtTranslateRequest
impl Default for AdaptiveMtTranslateRequest
Source§fn default() -> AdaptiveMtTranslateRequest
fn default() -> AdaptiveMtTranslateRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AdaptiveMtTranslateRequest
impl<'de> Deserialize<'de> for AdaptiveMtTranslateRequest
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
impl RequestValue for AdaptiveMtTranslateRequest
Auto Trait Implementations§
impl Freeze for AdaptiveMtTranslateRequest
impl RefUnwindSafe for AdaptiveMtTranslateRequest
impl Send for AdaptiveMtTranslateRequest
impl Sync for AdaptiveMtTranslateRequest
impl Unpin for AdaptiveMtTranslateRequest
impl UnwindSafe for AdaptiveMtTranslateRequest
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