ComponentMutationObjectFactory

Trait ComponentMutationObjectFactory 

Source
pub trait ComponentMutationObjectFactory:
    Send
    + Sync
    + Lifecycle {
    // Required methods
    fn create_mutation_objects(&self) -> Vec<Object>;
    fn create_mutation_object(&self, component: Component) -> Object;
    fn create_update_field(&self, component: &Component) -> Option<Field>;
}

Required Methods§

Source

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

Creates the mutation objects for all components.

Source

fn create_mutation_object(&self, component: Component) -> Object

Creates the mutation object for the given component.

Source

fn create_update_field(&self, component: &Component) -> Option<Field>

Creates the update field for the given component.

Trait Implementations§

Implementors§