Struct Path
pub struct Path<T>(/* private fields */);
Expand description
Extract typed data from request path segments.
Use PathConfig
to configure extraction option.
Unlike, HttpRequest::match_info
, this extractor will fully percent-decode dynamic segments,
including /
, %
, and +
.
§Examples
use actix_web::{get, web};
// extract path info from "/{name}/{count}/index.html" into tuple
// {name} - deserialize a String
// {count} - deserialize a u32
#[get("/{name}/{count}/index.html")]
async fn index(path: web::Path<(String, u32)>) -> String {
let (name, count) = path.into_inner();
format!("Welcome {}! {}", name, count)
}
Path segments also can be deserialized into any type that implements serde::Deserialize
.
Path segment labels will be matched with struct field names.
use actix_web::{get, web};
use serde::Deserialize;
#[derive(Deserialize)]
struct Info {
name: String,
}
// extract `Info` from a path using serde
#[get("/{name}")]
async fn index(info: web::Path<Info>) -> String {
format!("Welcome {}!", info.name)
}
Implementations§
§impl<T> Path<T>
impl<T> Path<T>
pub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Unwrap into inner T
value.
Trait Implementations§
§impl<A> Apiv2Schema for Path<(A,)>where
A: Apiv2Schema,
impl<A> Apiv2Schema for Path<(A,)>where
A: Apiv2Schema,
§fn name() -> Option<String>
fn name() -> Option<String>
Name of this schema. This is the name to which the definition of the object is mapped.
§fn description() -> &'static str
fn description() -> &'static str
Description of this schema. In case the trait is derived, uses the documentation on the type.
§fn raw_schema() -> DefaultSchemaRaw
fn raw_schema() -> DefaultSchemaRaw
Returns the raw schema for this object.
§fn schema_with_ref() -> DefaultSchemaRaw
fn schema_with_ref() -> DefaultSchemaRaw
Returns the schema with a reference (if this is an object). Read more
§fn security_scheme() -> Option<SecurityScheme>
fn security_scheme() -> Option<SecurityScheme>
Returns the security scheme for this object.
fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>
§impl<A, B> Apiv2Schema for Path<(A, B)>where
A: Apiv2Schema,
B: Apiv2Schema,
impl<A, B> Apiv2Schema for Path<(A, B)>where
A: Apiv2Schema,
B: Apiv2Schema,
§fn name() -> Option<String>
fn name() -> Option<String>
Name of this schema. This is the name to which the definition of the object is mapped.
§fn description() -> &'static str
fn description() -> &'static str
Description of this schema. In case the trait is derived, uses the documentation on the type.
§fn raw_schema() -> DefaultSchemaRaw
fn raw_schema() -> DefaultSchemaRaw
Returns the raw schema for this object.
§fn schema_with_ref() -> DefaultSchemaRaw
fn schema_with_ref() -> DefaultSchemaRaw
Returns the schema with a reference (if this is an object). Read more
§fn security_scheme() -> Option<SecurityScheme>
fn security_scheme() -> Option<SecurityScheme>
Returns the security scheme for this object.
fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>
§impl<A, B, C> Apiv2Schema for Path<(A, B, C)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
impl<A, B, C> Apiv2Schema for Path<(A, B, C)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
§fn name() -> Option<String>
fn name() -> Option<String>
Name of this schema. This is the name to which the definition of the object is mapped.
§fn description() -> &'static str
fn description() -> &'static str
Description of this schema. In case the trait is derived, uses the documentation on the type.
§fn raw_schema() -> DefaultSchemaRaw
fn raw_schema() -> DefaultSchemaRaw
Returns the raw schema for this object.
§fn schema_with_ref() -> DefaultSchemaRaw
fn schema_with_ref() -> DefaultSchemaRaw
Returns the schema with a reference (if this is an object). Read more
§fn security_scheme() -> Option<SecurityScheme>
fn security_scheme() -> Option<SecurityScheme>
Returns the security scheme for this object.
fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>
§impl<A, B, C, D> Apiv2Schema for Path<(A, B, C, D)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
impl<A, B, C, D> Apiv2Schema for Path<(A, B, C, D)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
§fn name() -> Option<String>
fn name() -> Option<String>
Name of this schema. This is the name to which the definition of the object is mapped.
§fn description() -> &'static str
fn description() -> &'static str
Description of this schema. In case the trait is derived, uses the documentation on the type.
§fn raw_schema() -> DefaultSchemaRaw
fn raw_schema() -> DefaultSchemaRaw
Returns the raw schema for this object.
§fn schema_with_ref() -> DefaultSchemaRaw
fn schema_with_ref() -> DefaultSchemaRaw
Returns the schema with a reference (if this is an object). Read more
§fn security_scheme() -> Option<SecurityScheme>
fn security_scheme() -> Option<SecurityScheme>
Returns the security scheme for this object.
fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>
§impl<A, B, C, D, E> Apiv2Schema for Path<(A, B, C, D, E)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
impl<A, B, C, D, E> Apiv2Schema for Path<(A, B, C, D, E)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
§fn name() -> Option<String>
fn name() -> Option<String>
Name of this schema. This is the name to which the definition of the object is mapped.
§fn description() -> &'static str
fn description() -> &'static str
Description of this schema. In case the trait is derived, uses the documentation on the type.
§fn raw_schema() -> DefaultSchemaRaw
fn raw_schema() -> DefaultSchemaRaw
Returns the raw schema for this object.
§fn schema_with_ref() -> DefaultSchemaRaw
fn schema_with_ref() -> DefaultSchemaRaw
Returns the schema with a reference (if this is an object). Read more
§fn security_scheme() -> Option<SecurityScheme>
fn security_scheme() -> Option<SecurityScheme>
Returns the security scheme for this object.
fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>
§impl<A, B, C, D, E, F> Apiv2Schema for Path<(A, B, C, D, E, F)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
impl<A, B, C, D, E, F> Apiv2Schema for Path<(A, B, C, D, E, F)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
§fn name() -> Option<String>
fn name() -> Option<String>
Name of this schema. This is the name to which the definition of the object is mapped.
§fn description() -> &'static str
fn description() -> &'static str
Description of this schema. In case the trait is derived, uses the documentation on the type.
§fn raw_schema() -> DefaultSchemaRaw
fn raw_schema() -> DefaultSchemaRaw
Returns the raw schema for this object.
§fn schema_with_ref() -> DefaultSchemaRaw
fn schema_with_ref() -> DefaultSchemaRaw
Returns the schema with a reference (if this is an object). Read more
§fn security_scheme() -> Option<SecurityScheme>
fn security_scheme() -> Option<SecurityScheme>
Returns the security scheme for this object.
fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>
§impl<A, B, C, D, E, F, G> Apiv2Schema for Path<(A, B, C, D, E, F, G)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
impl<A, B, C, D, E, F, G> Apiv2Schema for Path<(A, B, C, D, E, F, G)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
§fn name() -> Option<String>
fn name() -> Option<String>
Name of this schema. This is the name to which the definition of the object is mapped.
§fn description() -> &'static str
fn description() -> &'static str
Description of this schema. In case the trait is derived, uses the documentation on the type.
§fn raw_schema() -> DefaultSchemaRaw
fn raw_schema() -> DefaultSchemaRaw
Returns the raw schema for this object.
§fn schema_with_ref() -> DefaultSchemaRaw
fn schema_with_ref() -> DefaultSchemaRaw
Returns the schema with a reference (if this is an object). Read more
§fn security_scheme() -> Option<SecurityScheme>
fn security_scheme() -> Option<SecurityScheme>
Returns the security scheme for this object.
fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>
§impl<A, B, C, D, E, F, G, H> Apiv2Schema for Path<(A, B, C, D, E, F, G, H)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
H: Apiv2Schema,
impl<A, B, C, D, E, F, G, H> Apiv2Schema for Path<(A, B, C, D, E, F, G, H)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
H: Apiv2Schema,
§fn name() -> Option<String>
fn name() -> Option<String>
Name of this schema. This is the name to which the definition of the object is mapped.
§fn description() -> &'static str
fn description() -> &'static str
Description of this schema. In case the trait is derived, uses the documentation on the type.
§fn raw_schema() -> DefaultSchemaRaw
fn raw_schema() -> DefaultSchemaRaw
Returns the raw schema for this object.
§fn schema_with_ref() -> DefaultSchemaRaw
fn schema_with_ref() -> DefaultSchemaRaw
Returns the schema with a reference (if this is an object). Read more
§fn security_scheme() -> Option<SecurityScheme>
fn security_scheme() -> Option<SecurityScheme>
Returns the security scheme for this object.
fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>
§impl<A, B, C, D, E, F, G, H, I> Apiv2Schema for Path<(A, B, C, D, E, F, G, H, I)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
H: Apiv2Schema,
I: Apiv2Schema,
impl<A, B, C, D, E, F, G, H, I> Apiv2Schema for Path<(A, B, C, D, E, F, G, H, I)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
H: Apiv2Schema,
I: Apiv2Schema,
§fn name() -> Option<String>
fn name() -> Option<String>
Name of this schema. This is the name to which the definition of the object is mapped.
§fn description() -> &'static str
fn description() -> &'static str
Description of this schema. In case the trait is derived, uses the documentation on the type.
§fn raw_schema() -> DefaultSchemaRaw
fn raw_schema() -> DefaultSchemaRaw
Returns the raw schema for this object.
§fn schema_with_ref() -> DefaultSchemaRaw
fn schema_with_ref() -> DefaultSchemaRaw
Returns the schema with a reference (if this is an object). Read more
§fn security_scheme() -> Option<SecurityScheme>
fn security_scheme() -> Option<SecurityScheme>
Returns the security scheme for this object.
fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>
§impl<A, B, C, D, E, F, G, H, I, J> Apiv2Schema for Path<(A, B, C, D, E, F, G, H, I, J)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
H: Apiv2Schema,
I: Apiv2Schema,
J: Apiv2Schema,
impl<A, B, C, D, E, F, G, H, I, J> Apiv2Schema for Path<(A, B, C, D, E, F, G, H, I, J)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
H: Apiv2Schema,
I: Apiv2Schema,
J: Apiv2Schema,
§fn name() -> Option<String>
fn name() -> Option<String>
Name of this schema. This is the name to which the definition of the object is mapped.
§fn description() -> &'static str
fn description() -> &'static str
Description of this schema. In case the trait is derived, uses the documentation on the type.
§fn raw_schema() -> DefaultSchemaRaw
fn raw_schema() -> DefaultSchemaRaw
Returns the raw schema for this object.
§fn schema_with_ref() -> DefaultSchemaRaw
fn schema_with_ref() -> DefaultSchemaRaw
Returns the schema with a reference (if this is an object). Read more
§fn security_scheme() -> Option<SecurityScheme>
fn security_scheme() -> Option<SecurityScheme>
Returns the security scheme for this object.
fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>
§impl<A, B, C, D, E, F, G, H, I, J, K> Apiv2Schema for Path<(A, B, C, D, E, F, G, H, I, J, K)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
H: Apiv2Schema,
I: Apiv2Schema,
J: Apiv2Schema,
K: Apiv2Schema,
impl<A, B, C, D, E, F, G, H, I, J, K> Apiv2Schema for Path<(A, B, C, D, E, F, G, H, I, J, K)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
H: Apiv2Schema,
I: Apiv2Schema,
J: Apiv2Schema,
K: Apiv2Schema,
§fn name() -> Option<String>
fn name() -> Option<String>
Name of this schema. This is the name to which the definition of the object is mapped.
§fn description() -> &'static str
fn description() -> &'static str
Description of this schema. In case the trait is derived, uses the documentation on the type.
§fn raw_schema() -> DefaultSchemaRaw
fn raw_schema() -> DefaultSchemaRaw
Returns the raw schema for this object.
§fn schema_with_ref() -> DefaultSchemaRaw
fn schema_with_ref() -> DefaultSchemaRaw
Returns the schema with a reference (if this is an object). Read more
§fn security_scheme() -> Option<SecurityScheme>
fn security_scheme() -> Option<SecurityScheme>
Returns the security scheme for this object.
fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>
§impl<A, B, C, D, E, F, G, H, I, J, K, L> Apiv2Schema for Path<(A, B, C, D, E, F, G, H, I, J, K, L)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
H: Apiv2Schema,
I: Apiv2Schema,
J: Apiv2Schema,
K: Apiv2Schema,
L: Apiv2Schema,
impl<A, B, C, D, E, F, G, H, I, J, K, L> Apiv2Schema for Path<(A, B, C, D, E, F, G, H, I, J, K, L)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
H: Apiv2Schema,
I: Apiv2Schema,
J: Apiv2Schema,
K: Apiv2Schema,
L: Apiv2Schema,
§fn name() -> Option<String>
fn name() -> Option<String>
Name of this schema. This is the name to which the definition of the object is mapped.
§fn description() -> &'static str
fn description() -> &'static str
Description of this schema. In case the trait is derived, uses the documentation on the type.
§fn raw_schema() -> DefaultSchemaRaw
fn raw_schema() -> DefaultSchemaRaw
Returns the raw schema for this object.
§fn schema_with_ref() -> DefaultSchemaRaw
fn schema_with_ref() -> DefaultSchemaRaw
Returns the schema with a reference (if this is an object). Read more
§fn security_scheme() -> Option<SecurityScheme>
fn security_scheme() -> Option<SecurityScheme>
Returns the security scheme for this object.
fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>
§impl<A, B, C, D, E, F, G, H, I, J, K, L, M> Apiv2Schema for Path<(A, B, C, D, E, F, G, H, I, J, K, L, M)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
H: Apiv2Schema,
I: Apiv2Schema,
J: Apiv2Schema,
K: Apiv2Schema,
L: Apiv2Schema,
M: Apiv2Schema,
impl<A, B, C, D, E, F, G, H, I, J, K, L, M> Apiv2Schema for Path<(A, B, C, D, E, F, G, H, I, J, K, L, M)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
H: Apiv2Schema,
I: Apiv2Schema,
J: Apiv2Schema,
K: Apiv2Schema,
L: Apiv2Schema,
M: Apiv2Schema,
§fn name() -> Option<String>
fn name() -> Option<String>
Name of this schema. This is the name to which the definition of the object is mapped.
§fn description() -> &'static str
fn description() -> &'static str
Description of this schema. In case the trait is derived, uses the documentation on the type.
§fn raw_schema() -> DefaultSchemaRaw
fn raw_schema() -> DefaultSchemaRaw
Returns the raw schema for this object.
§fn schema_with_ref() -> DefaultSchemaRaw
fn schema_with_ref() -> DefaultSchemaRaw
Returns the schema with a reference (if this is an object). Read more
§fn security_scheme() -> Option<SecurityScheme>
fn security_scheme() -> Option<SecurityScheme>
Returns the security scheme for this object.
fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>
§impl<T> Apiv2Schema for Path<T>where
T: Apiv2Schema,
impl<T> Apiv2Schema for Path<T>where
T: Apiv2Schema,
§fn name() -> Option<String>
fn name() -> Option<String>
Name of this schema. This is the name to which the definition of the object is mapped.
§fn description() -> &'static str
fn description() -> &'static str
Description of this schema. In case the trait is derived, uses the documentation on the type.
§fn raw_schema() -> DefaultSchemaRaw
fn raw_schema() -> DefaultSchemaRaw
Returns the raw schema for this object.
§fn schema_with_ref() -> DefaultSchemaRaw
fn schema_with_ref() -> DefaultSchemaRaw
Returns the schema with a reference (if this is an object). Read more
§fn security_scheme() -> Option<SecurityScheme>
fn security_scheme() -> Option<SecurityScheme>
Returns the security scheme for this object.
fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>
§impl<T> FromRequest for Path<T>where
T: DeserializeOwned,
impl<T> FromRequest for Path<T>where
T: DeserializeOwned,
See here for example of usage as an extractor.
§type Future = Ready<Result<Path<T>, <Path<T> as FromRequest>::Error>>
type Future = Ready<Result<Path<T>, <Path<T> as FromRequest>::Error>>
Future that resolves to a
Self
. Read more§fn from_request(
req: &HttpRequest,
_: &mut Payload,
) -> <Path<T> as FromRequest>::Future
fn from_request( req: &HttpRequest, _: &mut Payload, ) -> <Path<T> as FromRequest>::Future
Create a
Self
from request parts asynchronously.§fn extract(req: &HttpRequest) -> Self::Future
fn extract(req: &HttpRequest) -> Self::Future
Create a
Self
from request head asynchronously. Read more§impl<A> OperationModifier for Path<(A,)>where
A: Apiv2Schema,
impl<A> OperationModifier for Path<(A,)>where
A: Apiv2Schema,
§fn update_parameter(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the parameters list in the given operation (if needed).
§fn update_response(
_op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the responses map in the given operation (if needed).
§fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
Update the definitions map (if needed).
§fn update_security(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the security map in the given operation (if needed).
§fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
Update the security definition map (if needed).
§impl<A, B> OperationModifier for Path<(A, B)>where
A: Apiv2Schema,
B: Apiv2Schema,
impl<A, B> OperationModifier for Path<(A, B)>where
A: Apiv2Schema,
B: Apiv2Schema,
§fn update_parameter(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the parameters list in the given operation (if needed).
§fn update_response(
_op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the responses map in the given operation (if needed).
§fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
Update the definitions map (if needed).
§fn update_security(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the security map in the given operation (if needed).
§fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
Update the security definition map (if needed).
§impl<A, B, C> OperationModifier for Path<(A, B, C)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
impl<A, B, C> OperationModifier for Path<(A, B, C)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
§fn update_parameter(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the parameters list in the given operation (if needed).
§fn update_response(
_op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the responses map in the given operation (if needed).
§fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
Update the definitions map (if needed).
§fn update_security(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the security map in the given operation (if needed).
§fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
Update the security definition map (if needed).
§impl<A, B, C, D> OperationModifier for Path<(A, B, C, D)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
impl<A, B, C, D> OperationModifier for Path<(A, B, C, D)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
§fn update_parameter(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the parameters list in the given operation (if needed).
§fn update_response(
_op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the responses map in the given operation (if needed).
§fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
Update the definitions map (if needed).
§fn update_security(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the security map in the given operation (if needed).
§fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
Update the security definition map (if needed).
§impl<A, B, C, D, E> OperationModifier for Path<(A, B, C, D, E)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
impl<A, B, C, D, E> OperationModifier for Path<(A, B, C, D, E)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
§fn update_parameter(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the parameters list in the given operation (if needed).
§fn update_response(
_op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the responses map in the given operation (if needed).
§fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
Update the definitions map (if needed).
§fn update_security(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the security map in the given operation (if needed).
§fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
Update the security definition map (if needed).
§impl<A, B, C, D, E, F> OperationModifier for Path<(A, B, C, D, E, F)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
impl<A, B, C, D, E, F> OperationModifier for Path<(A, B, C, D, E, F)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
§fn update_parameter(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the parameters list in the given operation (if needed).
§fn update_response(
_op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the responses map in the given operation (if needed).
§fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
Update the definitions map (if needed).
§fn update_security(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the security map in the given operation (if needed).
§fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
Update the security definition map (if needed).
§impl<A, B, C, D, E, F, G> OperationModifier for Path<(A, B, C, D, E, F, G)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
impl<A, B, C, D, E, F, G> OperationModifier for Path<(A, B, C, D, E, F, G)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
§fn update_parameter(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the parameters list in the given operation (if needed).
§fn update_response(
_op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the responses map in the given operation (if needed).
§fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
Update the definitions map (if needed).
§fn update_security(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the security map in the given operation (if needed).
§fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
Update the security definition map (if needed).
§impl<A, B, C, D, E, F, G, H> OperationModifier for Path<(A, B, C, D, E, F, G, H)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
H: Apiv2Schema,
impl<A, B, C, D, E, F, G, H> OperationModifier for Path<(A, B, C, D, E, F, G, H)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
H: Apiv2Schema,
§fn update_parameter(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the parameters list in the given operation (if needed).
§fn update_response(
_op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the responses map in the given operation (if needed).
§fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
Update the definitions map (if needed).
§fn update_security(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the security map in the given operation (if needed).
§fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
Update the security definition map (if needed).
§impl<A, B, C, D, E, F, G, H, I> OperationModifier for Path<(A, B, C, D, E, F, G, H, I)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
H: Apiv2Schema,
I: Apiv2Schema,
impl<A, B, C, D, E, F, G, H, I> OperationModifier for Path<(A, B, C, D, E, F, G, H, I)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
H: Apiv2Schema,
I: Apiv2Schema,
§fn update_parameter(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the parameters list in the given operation (if needed).
§fn update_response(
_op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the responses map in the given operation (if needed).
§fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
Update the definitions map (if needed).
§fn update_security(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the security map in the given operation (if needed).
§fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
Update the security definition map (if needed).
§impl<A, B, C, D, E, F, G, H, I, J> OperationModifier for Path<(A, B, C, D, E, F, G, H, I, J)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
H: Apiv2Schema,
I: Apiv2Schema,
J: Apiv2Schema,
impl<A, B, C, D, E, F, G, H, I, J> OperationModifier for Path<(A, B, C, D, E, F, G, H, I, J)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
H: Apiv2Schema,
I: Apiv2Schema,
J: Apiv2Schema,
§fn update_parameter(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the parameters list in the given operation (if needed).
§fn update_response(
_op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the responses map in the given operation (if needed).
§fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
Update the definitions map (if needed).
§fn update_security(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the security map in the given operation (if needed).
§fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
Update the security definition map (if needed).
§impl<A, B, C, D, E, F, G, H, I, J, K> OperationModifier for Path<(A, B, C, D, E, F, G, H, I, J, K)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
H: Apiv2Schema,
I: Apiv2Schema,
J: Apiv2Schema,
K: Apiv2Schema,
impl<A, B, C, D, E, F, G, H, I, J, K> OperationModifier for Path<(A, B, C, D, E, F, G, H, I, J, K)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
H: Apiv2Schema,
I: Apiv2Schema,
J: Apiv2Schema,
K: Apiv2Schema,
§fn update_parameter(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the parameters list in the given operation (if needed).
§fn update_response(
_op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the responses map in the given operation (if needed).
§fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
Update the definitions map (if needed).
§fn update_security(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the security map in the given operation (if needed).
§fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
Update the security definition map (if needed).
§impl<A, B, C, D, E, F, G, H, I, J, K, L> OperationModifier for Path<(A, B, C, D, E, F, G, H, I, J, K, L)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
H: Apiv2Schema,
I: Apiv2Schema,
J: Apiv2Schema,
K: Apiv2Schema,
L: Apiv2Schema,
impl<A, B, C, D, E, F, G, H, I, J, K, L> OperationModifier for Path<(A, B, C, D, E, F, G, H, I, J, K, L)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
H: Apiv2Schema,
I: Apiv2Schema,
J: Apiv2Schema,
K: Apiv2Schema,
L: Apiv2Schema,
§fn update_parameter(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the parameters list in the given operation (if needed).
§fn update_response(
_op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the responses map in the given operation (if needed).
§fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
Update the definitions map (if needed).
§fn update_security(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the security map in the given operation (if needed).
§fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
Update the security definition map (if needed).
§impl<A, B, C, D, E, F, G, H, I, J, K, L, M> OperationModifier for Path<(A, B, C, D, E, F, G, H, I, J, K, L, M)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
H: Apiv2Schema,
I: Apiv2Schema,
J: Apiv2Schema,
K: Apiv2Schema,
L: Apiv2Schema,
M: Apiv2Schema,
impl<A, B, C, D, E, F, G, H, I, J, K, L, M> OperationModifier for Path<(A, B, C, D, E, F, G, H, I, J, K, L, M)>where
A: Apiv2Schema,
B: Apiv2Schema,
C: Apiv2Schema,
D: Apiv2Schema,
E: Apiv2Schema,
F: Apiv2Schema,
G: Apiv2Schema,
H: Apiv2Schema,
I: Apiv2Schema,
J: Apiv2Schema,
K: Apiv2Schema,
L: Apiv2Schema,
M: Apiv2Schema,
§fn update_parameter(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the parameters list in the given operation (if needed).
§fn update_response(
_op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the responses map in the given operation (if needed).
§fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
Update the definitions map (if needed).
§fn update_security(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the security map in the given operation (if needed).
§fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
Update the security definition map (if needed).
§impl<T> OperationModifier for Path<T>where
T: Apiv2Schema,
impl<T> OperationModifier for Path<T>where
T: Apiv2Schema,
§fn update_parameter(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the parameters list in the given operation (if needed).
§fn update_definitions(_map: &mut BTreeMap<String, DefaultSchemaRaw>)
fn update_definitions(_map: &mut BTreeMap<String, DefaultSchemaRaw>)
Update the definitions map (if needed).
§fn update_response(
_op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the responses map in the given operation (if needed).
§fn update_security(
op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
)
fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
Update the security map in the given operation (if needed).
§fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
Update the security definition map (if needed).
§impl<T> Ord for Path<T>where
T: Ord,
impl<T> Ord for Path<T>where
T: Ord,
§impl<T> PartialOrd for Path<T>where
T: PartialOrd,
impl<T> PartialOrd for Path<T>where
T: PartialOrd,
impl<T> Eq for Path<T>where
T: Eq,
impl<T> StructuralPartialEq for Path<T>
Auto Trait Implementations§
impl<T> Freeze for Path<T>where
T: Freeze,
impl<T> RefUnwindSafe for Path<T>where
T: RefUnwindSafe,
impl<T> Send for Path<T>where
T: Send,
impl<T> Sync for Path<T>where
T: Sync,
impl<T> Unpin for Path<T>where
T: Unpin,
impl<T> UnwindSafe for Path<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.