Enum reproto_parser::ast::ServiceNested
[−]
[src]
pub enum ServiceNested<'input> { Endpoint { method: Option<Loc<&'input str>>, path: Option<Loc<PathSpec<'input>>>, comment: Vec<&'input str>, options: Vec<Loc<OptionDecl<'input>>>, children: Vec<ServiceNested<'input>>, }, Returns { comment: Vec<&'input str>, status: Option<Loc<RpNumber>>, produces: Option<Loc<String>>, ty: Option<Loc<Type>>, options: Vec<Loc<OptionDecl<'input>>>, }, Accepts { comment: Vec<&'input str>, accepts: Option<Loc<String>>, alias: Option<Loc<&'input str>>, ty: Option<Loc<Type>>, options: Vec<Loc<OptionDecl<'input>>>, }, }
Variants
Endpoint
Fields of Endpoint
method: Option<Loc<&'input str>> | |
path: Option<Loc<PathSpec<'input>>> | |
comment: Vec<&'input str> | |
options: Vec<Loc<OptionDecl<'input>>> | |
children: Vec<ServiceNested<'input>> |
Returns
Fields of Returns
comment: Vec<&'input str> | |
status: Option<Loc<RpNumber>> | |
produces: Option<Loc<String>> | |
ty: Option<Loc<Type>> | |
options: Vec<Loc<OptionDecl<'input>>> |
Accepts
Fields of Accepts
comment: Vec<&'input str> | |
accepts: Option<Loc<String>> | |
alias: Option<Loc<&'input str>> | |
ty: Option<Loc<Type>> | |
options: Vec<Loc<OptionDecl<'input>>> |
Methods
impl<'input> ServiceNested<'input>
[src]
fn is_terminus(&self) -> bool
[src]
Trait Implementations
impl<'input> Debug for ServiceNested<'input>
[src]
impl<'input> PartialEq for ServiceNested<'input>
[src]
fn eq(&self, __arg_0: &ServiceNested<'input>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ServiceNested<'input>) -> bool
[src]
This method tests for !=
.