Skip to content

define trait for a arbitary struct #1949

Answered by robjtede
majidbl asked this question in Q&A
Discussion options

You must be logged in to vote

The closest you can do is implementing HttpServiceFactory for use in {App, Scope, Resource}::service.

Admittedly, the docs are scarce for this trait so I recommend looking at the docs for AppService and implementations for Resource and Scope for some guidance.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by robjtede
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants