pub struct GraphQLRelationInstanceDefinition {
pub outbound_id: Uuid,
pub namespace: String,
pub type_name: String,
pub instance_id: String,
pub inbound_id: Uuid,
pub description: String,
pub properties: Vec<GraphQLPropertyInstance>,
pub extensions: Vec<GraphQLExtension>,
}
Expand description
Relation instances are edges from an outbound entity instance to an inbound entity instance.
The relation instance is of a relation type. The relation type defines the entity types of the outbound entity instance and the inbound entity instance. Furthermore, the relation type defines which properties (name, data type, socket type) a relation instance have to have.
In contrast to the relation type, the relation instance stores values/ documents in its properties.
Fields§
§outbound_id: Uuid
The id of the outbound vertex.
namespace: String
The namespace the relation type belongs to.
type_name: String
The name of the relation type.
instance_id: String
The instance id of the relation instance type.
inbound_id: Uuid
The id of the inbound vertex.
description: String
Textual description of the relation instance.
properties: Vec<GraphQLPropertyInstance>
The properties of then relation 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>
Relation instance specific extensions.
Trait Implementations§
Source§impl Clone for GraphQLRelationInstanceDefinition
impl Clone for GraphQLRelationInstanceDefinition
Source§fn clone(&self) -> GraphQLRelationInstanceDefinition
fn clone(&self) -> GraphQLRelationInstanceDefinition
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<'de> Deserialize<'de> for GraphQLRelationInstanceDefinition
impl<'de> Deserialize<'de> for GraphQLRelationInstanceDefinition
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>,
Source§impl From<GraphQLRelationInstanceDefinition> for RelationInstance
impl From<GraphQLRelationInstanceDefinition> for RelationInstance
Source§fn from(relation_instance: GraphQLRelationInstanceDefinition) -> Self
fn from(relation_instance: GraphQLRelationInstanceDefinition) -> Self
Source§impl InputType for GraphQLRelationInstanceDefinition
impl InputType for GraphQLRelationInstanceDefinition
Source§type RawValueType = GraphQLRelationInstanceDefinition
type RawValueType = GraphQLRelationInstanceDefinition
Source§fn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Source§fn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Value
. None represents undefined.Source§fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
§fn qualified_type_name() -> String
fn qualified_type_name() -> String
impl InputObjectType for GraphQLRelationInstanceDefinition
Auto Trait Implementations§
impl Freeze for GraphQLRelationInstanceDefinition
impl RefUnwindSafe for GraphQLRelationInstanceDefinition
impl Send for GraphQLRelationInstanceDefinition
impl Sync for GraphQLRelationInstanceDefinition
impl Unpin for GraphQLRelationInstanceDefinition
impl UnwindSafe for GraphQLRelationInstanceDefinition
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
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>
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>
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