pub struct LinkBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<S: State> LinkBuilder<S>
impl<S: State> LinkBuilder<S>
Sourcepub fn operation_ref(
self,
value: impl Into<String>,
) -> LinkBuilder<SetOperationRef<S>>where
S::OperationRef: IsUnset,
pub fn operation_ref(
self,
value: impl Into<String>,
) -> LinkBuilder<SetOperationRef<S>>where
S::OperationRef: IsUnset,
Optional (Some / Option setters). Default: ""
.
A relative or absolute URI reference to an OAS operation. This field is
mutually exclusive of the operation_id
field, and must point to an Operation
Object.
Relative operation_ref
values may be used to locate an existing Operation
Object in the OpenAPI definition. See the rules for resolving Relative
References.
Sourcepub fn maybe_operation_ref(
self,
value: Option<impl Into<String>>,
) -> LinkBuilder<SetOperationRef<S>>where
S::OperationRef: IsUnset,
pub fn maybe_operation_ref(
self,
value: Option<impl Into<String>>,
) -> LinkBuilder<SetOperationRef<S>>where
S::OperationRef: IsUnset,
Optional (Some / Option setters). Default: ""
.
A relative or absolute URI reference to an OAS operation. This field is
mutually exclusive of the operation_id
field, and must point to an Operation
Object.
Relative operation_ref
values may be used to locate an existing Operation
Object in the OpenAPI definition. See the rules for resolving Relative
References.
Sourcepub fn operation_id(
self,
value: impl Into<String>,
) -> LinkBuilder<SetOperationId<S>>where
S::OperationId: IsUnset,
pub fn operation_id(
self,
value: impl Into<String>,
) -> LinkBuilder<SetOperationId<S>>where
S::OperationId: IsUnset,
Sourcepub fn maybe_operation_id(
self,
value: Option<impl Into<String>>,
) -> LinkBuilder<SetOperationId<S>>where
S::OperationId: IsUnset,
pub fn maybe_operation_id(
self,
value: Option<impl Into<String>>,
) -> LinkBuilder<SetOperationId<S>>where
S::OperationId: IsUnset,
Sourcepub fn request_body(
self,
value: impl Into<Value>,
) -> LinkBuilder<SetRequestBody<S>>where
S::RequestBody: IsUnset,
pub fn request_body(
self,
value: impl Into<Value>,
) -> LinkBuilder<SetRequestBody<S>>where
S::RequestBody: IsUnset,
Optional (Some / Option setters).
A literal value or an expression to be used as request body when operation is called.
Sourcepub fn maybe_request_body(
self,
value: Option<impl Into<Value>>,
) -> LinkBuilder<SetRequestBody<S>>where
S::RequestBody: IsUnset,
pub fn maybe_request_body(
self,
value: Option<impl Into<Value>>,
) -> LinkBuilder<SetRequestBody<S>>where
S::RequestBody: IsUnset,
Optional (Some / Option setters).
A literal value or an expression to be used as request body when operation is called.
Sourcepub fn description(
self,
value: impl Into<String>,
) -> LinkBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn description(
self,
value: impl Into<String>,
) -> LinkBuilder<SetDescription<S>>where
S::Description: IsUnset,
Sourcepub fn maybe_description(
self,
value: Option<impl Into<String>>,
) -> LinkBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn maybe_description(
self,
value: Option<impl Into<String>>,
) -> LinkBuilder<SetDescription<S>>where
S::Description: IsUnset,
Sourcepub fn server(self, value: impl Into<Server>) -> LinkBuilder<SetServer<S>>where
S::Server: IsUnset,
pub fn server(self, value: impl Into<Server>) -> LinkBuilder<SetServer<S>>where
S::Server: IsUnset,
Sourcepub fn maybe_server(
self,
value: Option<impl Into<Server>>,
) -> LinkBuilder<SetServer<S>>where
S::Server: IsUnset,
pub fn maybe_server(
self,
value: Option<impl Into<Server>>,
) -> LinkBuilder<SetServer<S>>where
S::Server: IsUnset,
Sourcepub fn extensions(
self,
value: impl Into<Extensions>,
) -> LinkBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
pub fn extensions(
self,
value: impl Into<Extensions>,
) -> LinkBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
Sourcepub fn maybe_extensions(
self,
value: Option<impl Into<Extensions>>,
) -> LinkBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
pub fn maybe_extensions(
self,
value: Option<impl Into<Extensions>>,
) -> LinkBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
Source§impl<S: State> LinkBuilder<S>
impl<S: State> LinkBuilder<S>
Sourcepub fn parameters<N: Into<String>, V: Into<Value>>(
self,
items: impl IntoIterator<Item = (N, V)>,
) -> Self
pub fn parameters<N: Into<String>, V: Into<Value>>( self, items: impl IntoIterator<Item = (N, V)>, ) -> Self
Add parameters to be passed to Operation upon execution.