pub struct GraphQLEntityInstanceDefinition {
pub namespace: String,
pub type_name: String,
pub id: Uuid,
pub description: String,
pub properties: Vec<GraphQLPropertyInstance>,
pub extensions: Vec<GraphQLExtension>,
}
Expand description
Entity instances represents a typed object which contains properties.
The entity type defines the properties (name, data type and socket type).
In contrast to the entity type the entity instance stores values in its properties.
Fields§
§namespace: String
The namespace the entity type belongs to.
type_name: String
The name of the entity type.
id: Uuid
The unique identifier of the entity instance.
description: String
The description of the entity instance.
properties: Vec<GraphQLPropertyInstance>
The properties of then entity instance.
Each property is represented by its name (String) and it’s value. The value is a representation of a JSON. Therefore, the value can be boolean, number, string, array or an object. For more information about the data types please look at https://docs.serde.rs/serde_json/value/enum.Value.html
extensions: Vec<GraphQLExtension>
Entity instance specific extensions.
Trait Implementations§
Source§impl Clone for GraphQLEntityInstanceDefinition
impl Clone for GraphQLEntityInstanceDefinition
Source§fn clone(&self) -> GraphQLEntityInstanceDefinition
fn clone(&self) -> GraphQLEntityInstanceDefinition
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<'de> Deserialize<'de> for GraphQLEntityInstanceDefinition
impl<'de> Deserialize<'de> for GraphQLEntityInstanceDefinition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<GraphQLEntityInstanceDefinition> for EntityInstance
impl From<GraphQLEntityInstanceDefinition> for EntityInstance
Source§fn from(entity_instance: GraphQLEntityInstanceDefinition) -> Self
fn from(entity_instance: GraphQLEntityInstanceDefinition) -> Self
Converts to this type from the input type.
Source§impl InputType for GraphQLEntityInstanceDefinition
impl InputType for GraphQLEntityInstanceDefinition
Source§type RawValueType = GraphQLEntityInstanceDefinition
type RawValueType = GraphQLEntityInstanceDefinition
The raw type used for validator. Read more
Source§fn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
Source§fn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from
Value
. None represents undefined.Source§fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
impl InputObjectType for GraphQLEntityInstanceDefinition
Auto Trait Implementations§
impl Freeze for GraphQLEntityInstanceDefinition
impl RefUnwindSafe for GraphQLEntityInstanceDefinition
impl Send for GraphQLEntityInstanceDefinition
impl Sync for GraphQLEntityInstanceDefinition
impl Unpin for GraphQLEntityInstanceDefinition
impl UnwindSafe for GraphQLEntityInstanceDefinition
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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