rename to smartpack n smartunpack

This commit is contained in:
2026-05-18 19:30:58 +07:00
parent cc95bc97d3
commit 396e0848da
21 changed files with 323 additions and 314 deletions

View File

@@ -1,4 +1,4 @@
use msghandler::{smartreceive, SmartreceiveOptions};
use msghandler::{smartunpack, smartunpackOptions};
fn main() {
// Simulated message JSON (received via any transport)
@@ -40,9 +40,9 @@ fn main() {
]
}"#;
let options = SmartreceiveOptions::default();
let options = smartunpackOptions::default();
match smartreceive(msg_json_str, &options) {
match smartunpack(msg_json_str, &options) {
Ok(envelope) => {
println!("=== Envelope Received ===");
println!("Correlation ID: {}", envelope.correlation_id);