MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / into_model

Method into_model

examples/tonic_example/api/src/lib.rs:23–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

21
22impl Post {
23 fn into_model(self) -> post::Model {
24 post::Model {
25 id: self.id,
26 title: self.title,
27 text: self.content,
28 }
29 }
30}
31
32#[derive(Default)]

Callers 2

add_postMethod · 0.45
update_postMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected