Files
examples/echo-greeter/echo-service/src/main.rs

19 lines
263 B
Rust
Raw Normal View History

use fluence::marine;
2021-04-08 00:39:58 -05:00
#[marine]
2021-04-08 00:39:58 -05:00
pub struct Echo {
pub echo: String,
}
#[marine]
2021-04-08 00:39:58 -05:00
pub fn echo(inputs: Vec<String>) -> Vec<Echo> {
inputs
.iter()
.map(|s| Echo {
echo: s.to_string(),
})
.collect()
}
fn main() {}