Skip to content

supporting repositories #140

@rsfunc

Description

@rsfunc

Context:

Let

struct EntityTask {
    description: String,
}

#[cgp_component(GetEntityTasks)]
trait SupportsGetEntityTasks {
    async fn get_entity_tasks(&self) -> Vec<EntityTask>;
}

then I would like to define multiple tasks provider for this, and somehow have super component that could call all implementations and return all tasks...

I have the feeling it should be similar as in https://contextgeneric.dev/blog/extensible-datatypes-part-2/

Could you give some pointers if it is already doable with the current code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions