#[non_exhaustive]pub struct CustomVocabularyItemBuilder { /* private fields */ }Expand description
A builder for CustomVocabularyItem.
Implementations§
source§impl CustomVocabularyItemBuilder
impl CustomVocabularyItemBuilder
sourcepub fn item_id(self, input: impl Into<String>) -> Self
pub fn item_id(self, input: impl Into<String>) -> Self
The unique item identifer for the custom vocabulary item from the custom vocabulary list.
sourcepub fn set_item_id(self, input: Option<String>) -> Self
pub fn set_item_id(self, input: Option<String>) -> Self
The unique item identifer for the custom vocabulary item from the custom vocabulary list.
sourcepub fn phrase(self, input: impl Into<String>) -> Self
pub fn phrase(self, input: impl Into<String>) -> Self
The unique phrase for the 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 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 for the 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 for the 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 DisplayAs value for the 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 DisplayAs value for the custom vocabulary item from the custom vocabulary list.
sourcepub fn build(self) -> CustomVocabularyItem
pub fn build(self) -> CustomVocabularyItem
Consumes the builder and constructs a CustomVocabularyItem.
Trait Implementations§
source§impl Clone for CustomVocabularyItemBuilder
impl Clone for CustomVocabularyItemBuilder
source§fn clone(&self) -> CustomVocabularyItemBuilder
fn clone(&self) -> CustomVocabularyItemBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CustomVocabularyItemBuilder
impl Debug for CustomVocabularyItemBuilder
source§impl Default for CustomVocabularyItemBuilder
impl Default for CustomVocabularyItemBuilder
source§fn default() -> CustomVocabularyItemBuilder
fn default() -> CustomVocabularyItemBuilder
source§impl PartialEq<CustomVocabularyItemBuilder> for CustomVocabularyItemBuilder
impl PartialEq<CustomVocabularyItemBuilder> for CustomVocabularyItemBuilder
source§fn eq(&self, other: &CustomVocabularyItemBuilder) -> bool
fn eq(&self, other: &CustomVocabularyItemBuilder) -> bool
self and other values to be equal, and is used
by ==.