FlowMutationObjectFactory

Trait FlowMutationObjectFactory 

Source
pub trait FlowMutationObjectFactory:
    Send
    + Sync
    + Lifecycle {
    // Required methods
    fn create_mutation_objects(&self) -> Vec<Object>;
    fn create_mutation_object(&self, flow_type: FlowType) -> Object;
    fn create_update_field(&self, flow_type: &FlowType) -> Option<Field>;
    fn create_trigger_field(&self, flow_type: &FlowType) -> Option<Field>;
    fn create_delete_field(&self) -> Field;
}

Required Methods§

Source

fn create_mutation_objects(&self) -> Vec<Object>

Creates the mutation objects for all flow types.

Source

fn create_mutation_object(&self, flow_type: FlowType) -> Object

Create the mutation object for the given flow type.

Source

fn create_update_field(&self, flow_type: &FlowType) -> Option<Field>

Creates the update field of the mutation object for the given flow type.

Source

fn create_trigger_field(&self, flow_type: &FlowType) -> Option<Field>

Creates the trigger field of the mutation object for the given flow type.

Source

fn create_delete_field(&self) -> Field

Creates the delete field of the mutation object for the given flow type.

Trait Implementations§

Source§

impl Injectable for dyn FlowMutationObjectFactory + Sync + Send

Implementors§