Skip to content

Rust::com Method Rust APIs design and Example usage - #777

Closed
bharatGoswami8 wants to merge 10 commits into
eclipse-score:mainfrom
bharatGoswami8:Rust_Method_APIs_design
Closed

Rust::com Method Rust APIs design and Example usage#777
bharatGoswami8 wants to merge 10 commits into
eclipse-score:mainfrom
bharatGoswami8:Rust_Method_APIs_design

Conversation

@bharatGoswami8

@bharatGoswami8 bharatGoswami8 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

edit -

Since the Field and Method changes are related, and the Field implementation also uses the Method interface while both share the same macro for the interface and type-state pattern, I believe it would be better to review the overall design in a single PR. This will help ensure that any suggestions or feedback can be addressed more effectively and consistently across both implementations.
Therefore, I am closing this PR. Please review the PR - #818


  • Created Method APIs design interface and example of usage.
  • Updated supporting macro like interface macro.
  • Runtime side created impl block.

#579

* Created Method related interface traits
* Updated Interface macro
* created method related macro
* For generating type state pattern for method and field
* Validating offer API call
* Added impl block for method interface
* Added impl block for method interface traits
* Added method api usage in example app
@bharatGoswami8
bharatGoswami8 force-pushed the Rust_Method_APIs_design branch from c8642b5 to 7137981 Compare July 27, 2026 09:36
@bharatGoswami8
bharatGoswami8 force-pushed the Rust_Method_APIs_design branch 4 times, most recently from cb6768b to e7aa085 Compare July 27, 2026 11:13
@bharatGoswami8
bharatGoswami8 force-pushed the Rust_Method_APIs_design branch from e7aa085 to 8171ac4 Compare July 27, 2026 11:28
* Updated concept crate documentation
* Updated interface macro document
* Update type state macro document
@bharatGoswami8
bharatGoswami8 force-pushed the Rust_Method_APIs_design branch 3 times, most recently from 7923efe to a1955f2 Compare July 28, 2026 03:30
* Updated return value to MethodReturnSample
@bharatGoswami8
bharatGoswami8 force-pushed the Rust_Method_APIs_design branch 2 times, most recently from c9d7b8a to 26f69b6 Compare July 28, 2026 04:56
* Added design markdown file and diagrams
@bharatGoswami8
bharatGoswami8 force-pushed the Rust_Method_APIs_design branch from 26f69b6 to 36d892c Compare July 28, 2026 05:11
@bharatGoswami8
bharatGoswami8 force-pushed the Rust_Method_APIs_design branch 2 times, most recently from 068d0df to 5fe9e39 Compare July 28, 2026 10:02
Comment thread score/mw/com/impl/rust/com-api/com-api-runtime-lola/method.rs
@bharatGoswami8
bharatGoswami8 force-pushed the Rust_Method_APIs_design branch 4 times, most recently from 8a72901 to 9152d05 Compare July 28, 2026 10:55
* Added MethodReturnSample for returning value at consumer side
* MethodInArgPtr trait added for argument type
@bharatGoswami8
bharatGoswami8 force-pushed the Rust_Method_APIs_design branch from 9152d05 to 394cc7a Compare July 28, 2026 11:23
@bharatGoswami8
bharatGoswami8 marked this pull request as ready for review July 28, 2026 11:24
@bharatGoswami8 bharatGoswami8 moved this from Backlog to In Progress in COM - Communication FT Jul 29, 2026
@bharatGoswami8

Copy link
Copy Markdown
Contributor Author

#818

One combine PR created for Field and Method, and Field is using Method interface also both share same macro for interface and type-state pattern so i feel we should review on one PR both design so that suggestion or feedback can be address in better way.

closing this PR.

Please review mentioned PR.

@github-project-automation github-project-automation Bot moved this from In Progress to Done in COM - Communication FT Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants