nori/builder/path_builder

Builder for constructing PathItem objects with a fluent API.

Types

Builder for creating PathItem objects.

pub opaque type PathBuilder

Values

pub fn build(builder: PathBuilder) -> operation.PathItem

Builds the path item.

pub fn delete(
  builder: PathBuilder,
  op: operation.Operation,
) -> PathBuilder

Sets the DELETE operation.

pub fn description(
  builder: PathBuilder,
  d: String,
) -> PathBuilder

Sets the description.

pub fn get(
  builder: PathBuilder,
  op: operation.Operation,
) -> PathBuilder

Sets the GET operation.

pub fn head(
  builder: PathBuilder,
  op: operation.Operation,
) -> PathBuilder

Sets the HEAD operation.

pub fn new() -> PathBuilder

Creates a new path builder.

pub fn options(
  builder: PathBuilder,
  op: operation.Operation,
) -> PathBuilder

Sets the OPTIONS operation.

pub fn parameter(
  builder: PathBuilder,
  param: parameter.Parameter,
) -> PathBuilder

Adds a parameter.

pub fn parameter_ref(
  builder: PathBuilder,
  ref: String,
) -> PathBuilder

Adds a parameter reference.

pub fn patch(
  builder: PathBuilder,
  op: operation.Operation,
) -> PathBuilder

Sets the PATCH operation.

pub fn post(
  builder: PathBuilder,
  op: operation.Operation,
) -> PathBuilder

Sets the POST operation.

pub fn put(
  builder: PathBuilder,
  op: operation.Operation,
) -> PathBuilder

Sets the PUT operation.

pub fn server(
  builder: PathBuilder,
  s: server.Server,
) -> PathBuilder

Adds a server.

pub fn summary(builder: PathBuilder, s: String) -> PathBuilder

Sets the summary.

pub fn trace(
  builder: PathBuilder,
  op: operation.Operation,
) -> PathBuilder

Sets the TRACE operation.

Search Document