mirror of
https://github.com/fluencelabs/examples
synced 2025-03-31 15:11:06 +00:00
update main
This commit is contained in:
parent
76dff0e24f
commit
ff3cd98cf4
18
par-greeter/echo-service/src/main.rs
Normal file
18
par-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() {}
|
Loading…
x
Reference in New Issue
Block a user