8000 Implement LoaderTrait for [&M] by Huliiiiii · Pull Request #2614 · SeaQL/sea-orm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Implement LoaderTrait for [&M] #2614

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

Huliiiiii
Copy link

PR Info

  • Closes
  • Dependencies:
  • Dependents:

New Features

  • Implement LoaderTrait for [&M], allows LoaderTrait methods to be called on Vec<&M>

Bug Fixes

Breaking Changes

Changes

@Huliiiiii
Copy link
Author
Huliiiiii commented May 30, 2025

Another way is

impl<T> ModelTrait for &T
where
T: ModelTrait

However, this is not safe enough to call the delete method. (But why is the delete method on ModelTrait?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0