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

Fields of Endpoint

Fields of Returns

Fields of Accepts

Methods

impl<'input> ServiceNested<'input>
[src]

[src]

Trait Implementations

impl<'input> Debug for ServiceNested<'input>
[src]

[src]

Formats the value using the given formatter.

impl<'input> PartialEq for ServiceNested<'input>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'input> Eq for ServiceNested<'input>
[src]