#[non_exhaustive]pub struct NewCustomVocabularyItemBuilder { /* private fields */ }Expand description
A builder for NewCustomVocabularyItem.
Implementations§
source§impl NewCustomVocabularyItemBuilder
impl NewCustomVocabularyItemBuilder
sourcepub fn phrase(self, input: impl Into<String>) -> Self
pub fn phrase(self, input: impl Into<String>) -> Self
The unique phrase for the new custom vocabulary item from the custom vocabulary list.
sourcepub fn set_phrase(self, input: Option<String>) -> Self
pub fn set_phrase(self, input: Option<String>) -> Self
The unique phrase for the new custom vocabulary item from the custom vocabulary list.
sourcepub fn weight(self, input: i32) -> Self
pub fn weight(self, input: i32) -> Self
The weight assigned to the new custom vocabulary item from the custom vocabulary list.
sourcepub fn set_weight(self, input: Option<i32>) -> Self
pub fn set_weight(self, input: Option<i32>) -> Self
The weight assigned to the new custom vocabulary item from the custom vocabulary list.
sourcepub fn display_as(self, input: impl Into<String>) -> Self
pub fn display_as(self, input: impl Into<String>) -> Self
The display as value assigned to the new custom vocabulary item from the custom vocabulary list.
sourcepub fn set_display_as(self, input: Option<String>) -> Self
pub fn set_display_as(self, input: Option<String>) -> Self
The display as value assigned to the new custom vocabulary item from the custom vocabulary list.
sourcepub fn build(self) -> NewCustomVocabularyItem
pub fn build(self) -> NewCustomVocabularyItem
Consumes the builder and constructs a NewCustomVocabularyItem.
Trait Implementations§
source§impl Clone for NewCustomVocabularyItemBuilder
impl Clone for NewCustomVocabularyItemBuilder
source§fn clone(&self) -> NewCustomVocabularyItemBuilder
fn clone(&self) -> NewCustomVocabularyItemBuilder
Returns a copy 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 Default for NewCustomVocabularyItemBuilder
impl Default for NewCustomVocabularyItemBuilder
source§fn default() -> NewCustomVocabularyItemBuilder
fn default() -> NewCustomVocabularyItemBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<NewCustomVocabularyItemBuilder> for NewCustomVocabularyItemBuilder
impl PartialEq<NewCustomVocabularyItemBuilder> for NewCustomVocabularyItemBuilder
source§fn eq(&self, other: &NewCustomVocabularyItemBuilder) -> bool
fn eq(&self, other: &NewCustomVocabularyItemBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.