pub struct GraphQLFlowInstanceDefinition {
pub id: Uuid,
pub namespace: String,
pub type_name: String,
pub name: String,
pub description: String,
pub entity_instances: Vec<GraphQLEntityInstanceDefinition>,
pub relation_instances: Vec<GraphQLRelationInstanceDefinition>,
}
Expand description
Represents a flow with entity instances and relation instances.
The entity type of the flow and the entity types of each provided entity instance must exist. The relation types of each provided relation instance must exist.
Fields§
§id: Uuid
The id of the flow corresponds to the id of the wrapper entity instance
This means the vector of entity instances must contain an instance with the id of the flow.
namespace: String
The namespace the entity type belongs to.
type_name: String
The name of the entity type.
name: String
The name of the flow.
description: String
Textual description of the flow.
entity_instances: Vec<GraphQLEntityInstanceDefinition>
The entity instances which are contained in this flow.
It can’t have a default because the wrapper entity instance must be present in the list of entities.
relation_instances: Vec<GraphQLRelationInstanceDefinition>
The relation instances which are contained in this flow.
Trait Implementations§
Source§impl Clone for GraphQLFlowInstanceDefinition
impl Clone for GraphQLFlowInstanceDefinition
Source§fn clone(&self) -> GraphQLFlowInstanceDefinition
fn clone(&self) -> GraphQLFlowInstanceDefinition
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 GraphQLFlowInstanceDefinition
impl<'de> Deserialize<'de> for GraphQLFlowInstanceDefinition
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<GraphQLFlowInstanceDefinition> for FlowInstance
impl From<GraphQLFlowInstanceDefinition> for FlowInstance
Source§fn from(flow: GraphQLFlowInstanceDefinition) -> Self
fn from(flow: GraphQLFlowInstanceDefinition) -> Self
Converts to this type from the input type.
Source§impl InputType for GraphQLFlowInstanceDefinition
impl InputType for GraphQLFlowInstanceDefinition
Source§type RawValueType = GraphQLFlowInstanceDefinition
type RawValueType = GraphQLFlowInstanceDefinition
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 GraphQLFlowInstanceDefinition
Auto Trait Implementations§
impl Freeze for GraphQLFlowInstanceDefinition
impl RefUnwindSafe for GraphQLFlowInstanceDefinition
impl Send for GraphQLFlowInstanceDefinition
impl Sync for GraphQLFlowInstanceDefinition
impl Unpin for GraphQLFlowInstanceDefinition
impl UnwindSafe for GraphQLFlowInstanceDefinition
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