#[non_exhaustive]pub struct EntityDescriptionBuilder { /* private fields */ }
Expand description
A builder for EntityDescription
.
Implementations§
source§impl EntityDescriptionBuilder
impl EntityDescriptionBuilder
sourcepub fn type(self, input: EntityType) -> Self
pub fn type(self, input: EntityType) -> Self
The entity type.
sourcepub fn set_type(self, input: Option<EntityType>) -> Self
pub fn set_type(self, input: Option<EntityType>) -> Self
The entity type.
sourcepub fn get_type(&self) -> &Option<EntityType>
pub fn get_type(&self) -> &Option<EntityType>
The entity type.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The time at which the entity was created.
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The time at which the entity was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The time at which the entity was created.
sourcepub fn definition(self, input: DefinitionDocument) -> Self
pub fn definition(self, input: DefinitionDocument) -> Self
The definition document of the entity.
sourcepub fn set_definition(self, input: Option<DefinitionDocument>) -> Self
pub fn set_definition(self, input: Option<DefinitionDocument>) -> Self
The definition document of the entity.
sourcepub fn get_definition(&self) -> &Option<DefinitionDocument>
pub fn get_definition(&self) -> &Option<DefinitionDocument>
The definition document of the entity.
sourcepub fn build(self) -> EntityDescription
pub fn build(self) -> EntityDescription
Consumes the builder and constructs a EntityDescription
.
Trait Implementations§
source§impl Clone for EntityDescriptionBuilder
impl Clone for EntityDescriptionBuilder
source§fn clone(&self) -> EntityDescriptionBuilder
fn clone(&self) -> EntityDescriptionBuilder
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 EntityDescriptionBuilder
impl Debug for EntityDescriptionBuilder
source§impl Default for EntityDescriptionBuilder
impl Default for EntityDescriptionBuilder
source§fn default() -> EntityDescriptionBuilder
fn default() -> EntityDescriptionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for EntityDescriptionBuilder
impl PartialEq for EntityDescriptionBuilder
source§fn eq(&self, other: &EntityDescriptionBuilder) -> bool
fn eq(&self, other: &EntityDescriptionBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EntityDescriptionBuilder
Auto Trait Implementations§
impl RefUnwindSafe for EntityDescriptionBuilder
impl Send for EntityDescriptionBuilder
impl Sync for EntityDescriptionBuilder
impl Unpin for EntityDescriptionBuilder
impl UnwindSafe for EntityDescriptionBuilder
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.