[−][src]Trait new_home_application::communication::client_argument_parser::ClientArgumentParser
Interface for the argument parser, used to parse and validates the received JSON arguments against the applications definitions
Required methods
fn parse(
&self,
method_arguments: Vec<MethodArgument>,
arguments: &Value
) -> Result<MethodArguments, ParserError>
&self,
method_arguments: Vec<MethodArgument>,
arguments: &Value
) -> Result<MethodArguments, ParserError>
Parses the arguments into a MethodArguments
object
Returns the MethodArguments
on success which can be empty or filled with the given,
required arguments
Will return a ParserError
when no arguments are given from the request, not matching the
required type of object Error will only be thrown if arguments are defined by the called
method
Implementors
impl ClientArgumentParser for ClientArgumentParserImpl
[src]
fn parse(
&self,
method_arguments: Vec<MethodArgument>,
arguments: &Value
) -> Result<MethodArguments, ParserError>
[src]
&self,
method_arguments: Vec<MethodArgument>,
arguments: &Value
) -> Result<MethodArguments, ParserError>