mirror of
https://github.com/fluencelabs/examples
synced 2025-06-28 01:01:34 +00:00
rename par-greeter
This commit is contained in:
18
echo-greeter/echo-service/src/main.rs
Normal file
18
echo-greeter/echo-service/src/main.rs
Normal file
@ -0,0 +1,18 @@
|
||||
use fluence::fce;
|
||||
|
||||
#[fce]
|
||||
pub struct Echo {
|
||||
pub echo: String,
|
||||
}
|
||||
|
||||
#[fce]
|
||||
pub fn echo(inputs: Vec<String>) -> Vec<Echo> {
|
||||
inputs
|
||||
.iter()
|
||||
.map(|s| Echo {
|
||||
echo: s.to_string(),
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
|
||||
fn main() {}
|
Reference in New Issue
Block a user