pub struct ReferenceSentenceConfig {
pub reference_sentence_pair_lists: Option<Vec<ReferenceSentencePairList>>,
pub source_language_code: Option<String>,
pub target_language_code: Option<String>,
}Expand description
Message of caller-provided reference configuration.
This type is not used in any activity, and only used as part of another schema.
Fields§
§reference_sentence_pair_lists: Option<Vec<ReferenceSentencePairList>>Reference sentences pair lists. Each list will be used as the references to translate the sentence under “content” field at the corresponding index. Length of the list is required to be equal to the length of “content” field.
source_language_code: Option<String>Source language code.
target_language_code: Option<String>Target language code.
Trait Implementations§
Source§impl Clone for ReferenceSentenceConfig
impl Clone for ReferenceSentenceConfig
Source§fn clone(&self) -> ReferenceSentenceConfig
fn clone(&self) -> ReferenceSentenceConfig
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 ReferenceSentenceConfig
impl Debug for ReferenceSentenceConfig
Source§impl Default for ReferenceSentenceConfig
impl Default for ReferenceSentenceConfig
Source§fn default() -> ReferenceSentenceConfig
fn default() -> ReferenceSentenceConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReferenceSentenceConfig
impl<'de> Deserialize<'de> for ReferenceSentenceConfig
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 ReferenceSentenceConfig
impl Serialize for ReferenceSentenceConfig
impl Part for ReferenceSentenceConfig
Auto Trait Implementations§
impl Freeze for ReferenceSentenceConfig
impl RefUnwindSafe for ReferenceSentenceConfig
impl Send for ReferenceSentenceConfig
impl Sync for ReferenceSentenceConfig
impl Unpin for ReferenceSentenceConfig
impl UnwindSafe for ReferenceSentenceConfig
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