#[non_exhaustive]pub struct ServerFnArgs {
pub struct_name: Option<Ident>,
pub prefix: Option<LitStr>,
pub input: Option<Type>,
pub input_derive: Option<ExprTuple>,
pub output: Option<Type>,
pub fn_path: Option<LitStr>,
pub server: Option<Type>,
pub client: Option<Type>,
pub custom_wrapper: Option<Path>,
pub impl_from: Option<LitBool>,
pub impl_deref: Option<LitBool>,
pub protocol: Option<Type>,
/* private fields */
}Expand description
The arguments to the server macro.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.struct_name: Option<Ident>The name of the struct that will implement the server function trait and be submitted to inventory.
prefix: Option<LitStr>The prefix to use for the server function URL.
input: Option<Type>The input http encoding to use for the server function.
input_derive: Option<ExprTuple>Additional traits to derive on the input struct for the server function.
output: Option<Type>The output http encoding to use for the server function.
fn_path: Option<LitStr>The path to the server function crate.
server: Option<Type>The server type to use for the server function.
client: Option<Type>The client type to use for the server function.
custom_wrapper: Option<Path>The custom wrapper to use for the server function struct.
impl_from: Option<LitBool>If the generated input type should implement From the only field in the input
impl_deref: Option<LitBool>If the generated input type should implement Deref to the only field in the input
protocol: Option<Type>The protocol to use for the server function implementation.