Struct luminal_router::ServiceRouteBuilder [] [src]

pub struct ServiceRouteBuilder {
    pub router: Router,
}

Fluent builder, takes ownership of a Router while adding routes.

Call build to move ownership of the route back out.

Fields

Methods

impl ServiceRouteBuilder
[src]

[src]

Create a new instance with a Router with empty routes.

[src]

Add a service for Method::Get at the specified route.

[src]

Add a service for Method::Post at the specified route.

[src]

[src]

Call to gain/regain ownership of the Router.

Trait Implementations

Auto Trait Implementations