@@ -30,11 +30,11 @@ The following attributes are available for use in on the container attribute `#[
30
30
deriving ` ToParameters ` :
31
31
32
32
* ` names(...) ` Define comma separated list of names for unnamed fields of struct used as a path parameter.
33
- __ Only__ supported on __ unnamed structs__ .
33
+ __ Only__ supported on __ unnamed structs__ .
34
34
* ` style = ... ` Defines how all parameters are serialized by [ ` ParameterStyle ` ] [ style ] . Default
35
- values are based on _ ` parameter_in ` _ attribute.
35
+ values are based on _ ` parameter_in ` _ attribute.
36
36
* ` default_parameter_in = ... ` = Defines default where the parameters of this field are used with a value from
37
- [ ` parameter::ParameterIn ` ] [ in_enum ] . If this attribute is not supplied, then the default value is from query.
37
+ [ ` parameter::ParameterIn ` ] [ in_enum ] . If this attribute is not supplied, then the default value is from query.
38
38
* ` rename_all = ... ` Can be provided to alternatively to the serde's ` rename_all ` attribute. Effectively provides same functionality.
39
39
40
40
Use ` names ` to define name for single unnamed argument.
@@ -62,7 +62,7 @@ The following attributes are available for use in the `#[salvo(parameter(...))]`
62
62
* ` style = ... ` Defines how the parameter is serialized by [ ` ParameterStyle ` ] [ style ] . Default values are based on _ ` parameter_in ` _ attribute.
63
63
64
64
* ` parameter_in = ... ` = Defines where the parameters of this field are used with a value from
65
- [ ` parameter::ParameterIn ` ] [ in_enum ] . If this attribute is not supplied, then the default value is from query.
65
+ [ ` parameter::ParameterIn ` ] [ in_enum ] . If this attribute is not supplied, then the default value is from query.
66
66
67
67
* ` explode ` Defines whether new _ ` parameter=value ` _ pair is created for each parameter within _ ` object ` _ or _ ` array ` _ .
68
68
@@ -74,8 +74,8 @@ The following attributes are available for use in the `#[salvo(parameter(...))]`
74
74
* ` value_type = ... ` Can be used to override default type derived from type of the field used in OpenAPI spec.
75
75
This is useful in cases where the default type does not correspond to the actual type e.g. when
76
76
any third-party types are used which are not [ ` ToSchema ` ] [ to_schema ] s nor [ ` primitive ` types] [ primitive ] .
77
- Value can be any Rust type what normally could be used to serialize to JSON or custom type such as _ ` Object ` _ .
78
- _ ` Object ` _ will be rendered as generic OpenAPI object.
77
+ Value can be any Rust type what normally could be used to serialize to JSON or custom type such as _ ` Object ` _ .
78
+ _ ` Object ` _ will be rendered as generic OpenAPI object.
79
79
80
80
* ` inline ` If set, the schema for this field's type needs to be a [ ` ToSchema ` ] [ to_schema ] , and
81
81
the schema definition will be inlined.
@@ -93,7 +93,7 @@ The following attributes are available for use in the `#[salvo(parameter(...))]`
93
93
* ` nullable ` Defines property is nullable (note this is different to non-required).
94
94
95
95
* ` required = ... ` Can be used to enforce required status for the parameter. [ See
96
- rules] [ derive@ToParameters#field-nullability-and-required-rules ]
96
+ rules] [ derive@ToParameters#field-nullability-and-required-rules ]
97
97
98
98
* ` rename = ... ` Can be provided to alternatively to the serde's ` rename ` attribute. Effectively provides same functionality.
99
99
0 commit comments