#[non_exhaustive]pub struct SemanticEntityTypeBuilder { /* private fields */ }Expand description
A builder for SemanticEntityType.
Implementations§
source§impl SemanticEntityTypeBuilder
impl SemanticEntityTypeBuilder
sourcepub fn set_type_name(self, input: Option<String>) -> Self
pub fn set_type_name(self, input: Option<String>) -> Self
The semantic entity type name.
sourcepub fn get_type_name(&self) -> &Option<String>
pub fn get_type_name(&self) -> &Option<String>
The semantic entity type name.
sourcepub fn sub_type_name(self, input: impl Into<String>) -> Self
pub fn sub_type_name(self, input: impl Into<String>) -> Self
The semantic entity sub type name.
sourcepub fn set_sub_type_name(self, input: Option<String>) -> Self
pub fn set_sub_type_name(self, input: Option<String>) -> Self
The semantic entity sub type name.
sourcepub fn get_sub_type_name(&self) -> &Option<String>
pub fn get_sub_type_name(&self) -> &Option<String>
The semantic entity sub type name.
sourcepub fn type_parameters(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn type_parameters(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to type_parameters.
To override the contents of this collection use set_type_parameters.
The semantic entity type parameters.
sourcepub fn set_type_parameters(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_type_parameters(self, input: Option<HashMap<String, String>>) -> Self
The semantic entity type parameters.
sourcepub fn get_type_parameters(&self) -> &Option<HashMap<String, String>>
pub fn get_type_parameters(&self) -> &Option<HashMap<String, String>>
The semantic entity type parameters.
sourcepub fn build(self) -> SemanticEntityType
pub fn build(self) -> SemanticEntityType
Consumes the builder and constructs a SemanticEntityType.
Trait Implementations§
source§impl Clone for SemanticEntityTypeBuilder
impl Clone for SemanticEntityTypeBuilder
source§fn clone(&self) -> SemanticEntityTypeBuilder
fn clone(&self) -> SemanticEntityTypeBuilder
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 Debug for SemanticEntityTypeBuilder
impl Debug for SemanticEntityTypeBuilder
source§impl Default for SemanticEntityTypeBuilder
impl Default for SemanticEntityTypeBuilder
source§fn default() -> SemanticEntityTypeBuilder
fn default() -> SemanticEntityTypeBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for SemanticEntityTypeBuilder
impl PartialEq for SemanticEntityTypeBuilder
source§fn eq(&self, other: &SemanticEntityTypeBuilder) -> bool
fn eq(&self, other: &SemanticEntityTypeBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SemanticEntityTypeBuilder
Auto Trait Implementations§
impl RefUnwindSafe for SemanticEntityTypeBuilder
impl Send for SemanticEntityTypeBuilder
impl Sync for SemanticEntityTypeBuilder
impl Unpin for SemanticEntityTypeBuilder
impl UnwindSafe for SemanticEntityTypeBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.