pub struct EntityInstanceDefinition {
pub namespace: String,
pub type_name: String,
pub id: UUID,
pub description: String,
pub properties: Vec<PropertyInstanceDefinition>,
pub extensions: Vec<ExtensionDefinition>,
}
Fields§
§namespace: String
§type_name: String
§id: UUID
§description: String
§properties: Vec<PropertyInstanceDefinition>
§extensions: Vec<ExtensionDefinition>
Implementations§
Source§impl EntityInstanceDefinition
impl EntityInstanceDefinition
Sourcepub fn builder() -> EntityInstanceDefinitionBuilder<((), (), (), (), (), ())>
pub fn builder() -> EntityInstanceDefinitionBuilder<((), (), (), (), (), ())>
Create a builder for building EntityInstanceDefinition
.
On the builder, call .namespace(...)
, .type_name(...)
, .id(...)
, .description(...)
, .properties(...)
, .extensions(...)
to set the values of the fields.
Finally, call .build()
to create the instance of EntityInstanceDefinition
.
Trait Implementations§
Source§impl Debug for EntityInstanceDefinition
impl Debug for EntityInstanceDefinition
Source§impl From<EntityInstance> for EntityInstanceDefinition
impl From<EntityInstance> for EntityInstanceDefinition
Source§impl InputObject for EntityInstanceDefinition
impl InputObject for EntityInstanceDefinition
Source§type SchemaType = EntityInstanceDefinition
type SchemaType = EntityInstanceDefinition
The input object in the schema that this type represents.
Source§impl Serialize for EntityInstanceDefinition
impl Serialize for EntityInstanceDefinition
impl CoercesTo<EntityInstanceDefinition> for EntityInstanceDefinition
impl CoercesTo<Option<EntityInstanceDefinition>> for EntityInstanceDefinition
impl CoercesTo<Option<Option<EntityInstanceDefinition>>> for EntityInstanceDefinition
impl CoercesTo<Option<Vec<EntityInstanceDefinition>>> for EntityInstanceDefinition
impl CoercesTo<Option<Vec<Option<EntityInstanceDefinition>>>> for EntityInstanceDefinition
impl CoercesTo<Vec<EntityInstanceDefinition>> for EntityInstanceDefinition
impl CoercesTo<Vec<Vec<EntityInstanceDefinition>>> for EntityInstanceDefinition
Auto Trait Implementations§
impl Freeze for EntityInstanceDefinition
impl RefUnwindSafe for EntityInstanceDefinition
impl Send for EntityInstanceDefinition
impl Sync for EntityInstanceDefinition
impl Unpin for EntityInstanceDefinition
impl UnwindSafe for EntityInstanceDefinition
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more