Skip to content

proto(utils): add MessageModel & RepeatedMessageModel#2068

Merged
KKRainbow merged 3 commits intoEasyTier:mainfrom
ZnqbuZ:proto/message-model
Apr 15, 2026
Merged

proto(utils): add MessageModel & RepeatedMessageModel#2068
KKRainbow merged 3 commits intoEasyTier:mainfrom
ZnqbuZ:proto/message-model

Conversation

@ZnqbuZ
Copy link
Copy Markdown
Contributor

@ZnqbuZ ZnqbuZ commented Apr 6, 2026

Copilot AI review requested due to automatic review settings April 6, 2026 20:35
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds reusable Rust utilities to convert between prost-generated messages and domain “model” types, including a wrapper for repeated message fields.

Changes:

  • Introduces MessageModel marker trait to standardize Into<Message> + TryFrom<&Message> conversions.
  • Adds RepeatedMessageModel<Model> newtype wrapper with serde/iterator derives and conversion impls.
  • Exposes the new proto::utils module.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
easytier/src/proto/utils.rs Adds MessageModel and RepeatedMessageModel plus conversions between Vec<Message> and Vec<Model>.
easytier/src/proto/mod.rs Exports the new utils module.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread easytier/src/proto/utils.rs Outdated
Comment thread easytier/src/proto/utils.rs
Comment thread easytier/src/proto/utils.rs Outdated
Comment thread easytier/src/proto/utils.rs
@ZnqbuZ ZnqbuZ marked this pull request as draft April 8, 2026 14:31
@ZnqbuZ ZnqbuZ force-pushed the proto/message-model branch 3 times, most recently from 7943f5e to 549aff9 Compare April 12, 2026 14:22
@ZnqbuZ ZnqbuZ marked this pull request as ready for review April 12, 2026 14:22
@ZnqbuZ ZnqbuZ force-pushed the proto/message-model branch from 549aff9 to 0f54567 Compare April 14, 2026 09:46
@KKRainbow KKRainbow merged commit 82ca04a into EasyTier:main Apr 15, 2026
45 checks passed
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.

3 participants