mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-29 07:38:47 +00:00
19 lines
338 B
Rust
19 lines
338 B
Rust
use proxmox_api_macro::api;
|
|
|
|
use failure::Error;
|
|
|
|
#[api(
|
|
input: {
|
|
properties: {
|
|
message: {
|
|
description: "The message to print",
|
|
}
|
|
}
|
|
}
|
|
)]
|
|
/// Print the given message.
|
|
pub fn hello(message: String) -> Result<(), Error> {
|
|
println!("Hello there. {}", message);
|
|
Ok(())
|
|
}
|