Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor ToReponse trait #460

Merged
merged 1 commit into from
Jan 26, 2023
Merged

Refactor ToReponse trait #460

merged 1 commit into from
Jan 26, 2023

Conversation

juhaku
Copy link
Owner

@juhaku juhaku commented Jan 26, 2023

Refactor ToResponse trait to match ToSchema with lifetime usage. Update documentation and tests.

pub trait ToResponse<'__r> {
    fn response() -> (&'__r str, openapi::RefOr<openapi::response::Response>);
}

Refactor `ToResponse` trait to match `ToSchema` with lifetime usage.
Update documentation and tests.
```rust
pub trait ToResponse<'__r> {
    fn response() -> (&'__r str, openapi::RefOr<openapi::response::Response>);
}
```
@juhaku juhaku merged commit d19aadf into master Jan 26, 2023
@juhaku juhaku deleted the refactor-to-response-trait branch January 26, 2023 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Released
Development

Successfully merging this pull request may close these issues.

1 participant