From fdbca791fe4490d2dc3290f228aa0e641f82f629 Mon Sep 17 00:00:00 2001 From: tiagolobocastro Date: Fri, 16 Aug 2024 08:46:20 +0000 Subject: [PATCH] deploy: 972ef4fa3a54b68c67bdb6169ecbf70615fe8fbb --- actix-headers.html | 2 +- actix-operation-meta.html | 2 +- actix-plugin.html | 2 +- actix-schema-defaults.html | 2 +- actix-security.html | 2 +- actix-status-codes.html | 2 +- build-script.html | 2 +- cli.html | 2 +- compile-checks.html | 2 +- help.html | 2 +- index.html | 2 +- paperclip/actix/attr.api_v2_errors.html | 2 +- .../actix/attr.api_v2_errors_overlay.html | 2 +- paperclip/actix/attr.api_v2_operation.html | 2 +- paperclip/actix/attr.delete.html | 4 +- paperclip/actix/attr.get.html | 4 +- paperclip/actix/attr.head.html | 4 +- paperclip/actix/attr.patch.html | 4 +- paperclip/actix/attr.post.html | 4 +- paperclip/actix/attr.put.html | 4 +- paperclip/actix/derive.Apiv2Header.html | 2 +- paperclip/actix/derive.Apiv2Schema.html | 2 +- paperclip/actix/derive.Apiv2Security.html | 2 +- paperclip/actix/index.html | 12 +- paperclip/actix/struct.AcceptedJson.html | 30 +- paperclip/actix/struct.App.html | 16 +- paperclip/actix/struct.CreatedJson.html | 30 +- .../actix/struct.HttpResponseWrapper.html | 12 +- paperclip/actix/struct.NoContent.html | 18 +- paperclip/actix/struct.ResponderWrapper.html | 20 +- paperclip/actix/struct.ResponseWrapper.html | 26 +- paperclip/actix/trait.Mountable.html | 2 +- paperclip/actix/trait.OpenApiExt.html | 2 +- paperclip/actix/trait.OperationModifier.html | 48 +- paperclip/actix/web/fn.block.html | 2 +- paperclip/actix/web/fn.delete.html | 2 +- paperclip/actix/web/fn.get.html | 2 +- paperclip/actix/web/fn.head.html | 2 +- paperclip/actix/web/fn.method.html | 2 +- paperclip/actix/web/fn.options.html | 2 +- paperclip/actix/web/fn.patch.html | 2 +- paperclip/actix/web/fn.post.html | 2 +- paperclip/actix/web/fn.put.html | 2 +- paperclip/actix/web/fn.resource.html | 2 +- paperclip/actix/web/fn.scope.html | 2 +- paperclip/actix/web/fn.service.html | 2 +- paperclip/actix/web/fn.to.html | 2 +- paperclip/actix/web/index.html | 4 +- paperclip/actix/web/struct.Bytes.html | 626 ++++---- paperclip/actix/web/struct.BytesMut.html | 1268 +++++++++-------- paperclip/actix/web/struct.Data.html | 42 +- paperclip/actix/web/struct.Form.html | 60 +- paperclip/actix/web/struct.FormConfig.html | 18 +- paperclip/actix/web/struct.HttpRequest.html | 24 +- paperclip/actix/web/struct.HttpResponse.html | 16 +- paperclip/actix/web/struct.Json.html | 42 +- paperclip/actix/web/struct.JsonConfig.html | 18 +- paperclip/actix/web/struct.Path.html | 184 +-- paperclip/actix/web/struct.PathConfig.html | 18 +- paperclip/actix/web/struct.Payload.html | 16 +- paperclip/actix/web/struct.PayloadConfig.html | 18 +- paperclip/actix/web/struct.Query.html | 56 +- paperclip/actix/web/struct.QueryConfig.html | 18 +- paperclip/actix/web/struct.ReqData.html | 22 +- paperclip/actix/web/struct.Resource.html | 12 +- paperclip/actix/web/struct.Route.html | 12 +- paperclip/actix/web/struct.Scope.html | 12 +- paperclip/actix/web/struct.ServiceConfig.html | 12 +- paperclip/all.html | 2 +- paperclip/attr.api_v2_schema.html | 2 +- paperclip/enum.PaperClipError.html | 20 +- paperclip/index.html | 4 +- paperclip/type.PaperClipResult.html | 2 +- paperclip/util/fn.ready.html | 2 +- paperclip/util/index.html | 2 +- paperclip/util/struct.Ready.html | 16 +- paperclip/v2/codegen/enum.EmitMode.html | 23 +- paperclip/v2/codegen/enum.EmittedUnit.html | 12 +- paperclip/v2/codegen/index.html | 4 +- .../codegen/object/enum.ObjectContainer.html | 18 +- .../v2/codegen/object/fn.to_pascal_case.html | 2 +- .../v2/codegen/object/fn.to_snake_case.html | 2 +- paperclip/v2/codegen/object/index.html | 4 +- .../v2/codegen/object/struct.ApiObject.html | 20 +- .../object/struct.ApiObjectBuilderImpl.html | 16 +- .../codegen/object/struct.ApiObjectImpl.html | 16 +- .../v2/codegen/object/struct.ObjectField.html | 18 +- .../codegen/object/struct.ObjectVariant.html | 22 +- .../codegen/object/struct.OpRequirement.html | 18 +- .../v2/codegen/object/struct.Parameter.html | 18 +- .../v2/codegen/object/struct.PathOps.html | 18 +- .../v2/codegen/object/struct.Response.html | 20 +- paperclip/v2/codegen/struct.CrateMeta.html | 18 +- .../v2/codegen/struct.DefaultEmitter.html | 14 +- paperclip/v2/codegen/struct.EmitterState.html | 18 +- paperclip/v2/codegen/trait.Emitter.html | 6 +- paperclip/v2/fn.from_reader.html | 4 +- paperclip/v2/im/index.html | 2 +- paperclip/v2/index.html | 6 +- .../v2/models/enum.CollectionFormat.html | 46 +- paperclip/v2/models/enum.DataType.html | 35 +- paperclip/v2/models/enum.DataTypeFormat.html | 33 +- paperclip/v2/models/enum.Either.html | 44 +- paperclip/v2/models/enum.HttpMethod.html | 48 +- .../v2/models/enum.OperationProtocol.html | 46 +- paperclip/v2/models/enum.ParameterIn.html | 48 +- paperclip/v2/models/enum.Resolvable.html | 38 +- paperclip/v2/models/enum.SpecFormat.html | 23 +- paperclip/v2/models/enum.Version.html | 35 +- paperclip/v2/models/index.html | 8 +- paperclip/v2/models/static.JSON_CODER.html | 2 +- paperclip/v2/models/static.JSON_MIME.html | 2 +- paperclip/v2/models/static.YAML_CODER.html | 2 +- paperclip/v2/models/static.YAML_MIME.html | 2 +- paperclip/v2/models/struct.Api.html | 56 +- paperclip/v2/models/struct.Coder.html | 30 +- paperclip/v2/models/struct.Coders.html | 52 +- paperclip/v2/models/struct.Contact.html | 30 +- paperclip/v2/models/struct.DefaultSchema.html | 38 +- .../v2/models/struct.DefaultSchemaRaw.html | 36 +- paperclip/v2/models/struct.ExternalDocs.html | 30 +- paperclip/v2/models/struct.Header.html | 34 +- paperclip/v2/models/struct.Info.html | 34 +- paperclip/v2/models/struct.Items.html | 35 +- paperclip/v2/models/struct.License.html | 30 +- paperclip/v2/models/struct.MediaRange.html | 44 +- paperclip/v2/models/struct.Operation.html | 42 +- paperclip/v2/models/struct.Parameter.html | 49 +- paperclip/v2/models/struct.PathItem.html | 42 +- paperclip/v2/models/struct.Reference.html | 33 +- paperclip/v2/models/struct.Response.html | 38 +- .../v2/models/struct.SecurityScheme.html | 30 +- paperclip/v2/models/struct.Tag.html | 30 +- paperclip/v2/models/type.DefaultApiRaw.html | 12 +- .../v2/models/type.DefaultOperationRaw.html | 2 +- .../v2/models/type.DefaultParameterRaw.html | 8 +- .../v2/models/type.DefaultPathItemRaw.html | 2 +- .../v2/models/type.DefaultResponseRaw.html | 2 +- paperclip/v2/models/type.ResolvableApi.html | 12 +- .../v2/models/type.ResolvableOperation.html | 2 +- .../v2/models/type.ResolvableParameter.html | 2 +- .../v2/models/type.ResolvablePathItem.html | 2 +- .../v2/models/type.ResolvableResponse.html | 2 +- paperclip/v2/schema/index.html | 10 +- paperclip/v2/schema/trait.Apiv2Errors.html | 6 +- paperclip/v2/schema/trait.Apiv2Operation.html | 12 +- paperclip/v2/schema/trait.Apiv2Schema.html | 148 +- paperclip/v2/schema/trait.Schema.html | 6 +- paperclip/v2/schema/trait.TypedData.html | 10 +- paperclip/v2/struct.DefaultSchema.html | 38 +- paperclip/v2/trait.Schema.html | 6 +- paperclip/v2/type.ResolvableApi.html | 12 +- paperclip_actix/all.html | 2 +- paperclip_actix/app/index.html | 2 +- paperclip_actix/app/struct.App.html | 14 +- paperclip_actix/app/trait.OpenApiExt.html | 2 +- paperclip_actix/attr.api_v2_errors.html | 2 +- .../attr.api_v2_errors_overlay.html | 2 +- paperclip_actix/attr.api_v2_operation.html | 2 +- paperclip_actix/attr.delete.html | 4 +- paperclip_actix/attr.get.html | 4 +- paperclip_actix/attr.head.html | 4 +- paperclip_actix/attr.patch.html | 4 +- paperclip_actix/attr.post.html | 4 +- paperclip_actix/attr.put.html | 4 +- paperclip_actix/derive.Apiv2Header.html | 2 +- paperclip_actix/derive.Apiv2Schema.html | 2 +- paperclip_actix/derive.Apiv2Security.html | 2 +- paperclip_actix/index.html | 8 +- paperclip_actix/trait.Mountable.html | 2 +- paperclip_actix/web/fn.block.html | 2 +- paperclip_actix/web/fn.delete.html | 2 +- paperclip_actix/web/fn.get.html | 2 +- paperclip_actix/web/fn.head.html | 2 +- paperclip_actix/web/fn.method.html | 2 +- paperclip_actix/web/fn.options.html | 2 +- paperclip_actix/web/fn.patch.html | 2 +- paperclip_actix/web/fn.post.html | 2 +- paperclip_actix/web/fn.put.html | 2 +- paperclip_actix/web/fn.resource.html | 2 +- paperclip_actix/web/fn.scope.html | 2 +- paperclip_actix/web/fn.service.html | 2 +- paperclip_actix/web/fn.to.html | 2 +- paperclip_actix/web/index.html | 4 +- paperclip_actix/web/struct.Bytes.html | 622 ++++---- paperclip_actix/web/struct.BytesMut.html | 1266 ++++++++-------- paperclip_actix/web/struct.Data.html | 38 +- paperclip_actix/web/struct.Form.html | 48 +- paperclip_actix/web/struct.FormConfig.html | 16 +- paperclip_actix/web/struct.HttpRequest.html | 22 +- paperclip_actix/web/struct.HttpResponse.html | 12 +- paperclip_actix/web/struct.Json.html | 30 +- paperclip_actix/web/struct.JsonConfig.html | 16 +- paperclip_actix/web/struct.Path.html | 176 +-- paperclip_actix/web/struct.PathConfig.html | 16 +- paperclip_actix/web/struct.Payload.html | 12 +- paperclip_actix/web/struct.PayloadConfig.html | 16 +- paperclip_actix/web/struct.Query.html | 44 +- paperclip_actix/web/struct.QueryConfig.html | 16 +- paperclip_actix/web/struct.ReqData.html | 18 +- paperclip_actix/web/struct.Resource.html | 10 +- paperclip_actix/web/struct.Route.html | 10 +- paperclip_actix/web/struct.Scope.html | 10 +- paperclip_actix/web/struct.ServiceConfig.html | 18 +- paperclip_core/all.html | 2 +- paperclip_core/enum.ValidationError.html | 14 +- paperclip_core/im/index.html | 2 +- paperclip_core/index.html | 4 +- paperclip_core/util/fn.ready.html | 2 +- paperclip_core/util/index.html | 2 +- paperclip_core/util/struct.Ready.html | 14 +- paperclip_core/v2/attr.api_v2_errors.html | 2 +- .../v2/attr.api_v2_errors_overlay.html | 2 +- paperclip_core/v2/attr.api_v2_operation.html | 2 +- .../v2/attr.api_v2_schema_struct.html | 2 +- paperclip_core/v2/attr.delete.html | 4 +- paperclip_core/v2/attr.get.html | 4 +- paperclip_core/v2/attr.head.html | 4 +- paperclip_core/v2/attr.patch.html | 4 +- paperclip_core/v2/attr.post.html | 4 +- paperclip_core/v2/attr.put.html | 4 +- paperclip_core/v2/derive.Apiv2Header.html | 2 +- paperclip_core/v2/derive.Apiv2Schema.html | 2 +- paperclip_core/v2/derive.Apiv2Security.html | 2 +- paperclip_core/v2/index.html | 12 +- .../v2/models/enum.CollectionFormat.html | 40 +- paperclip_core/v2/models/enum.DataType.html | 29 +- .../v2/models/enum.DataTypeFormat.html | 27 +- paperclip_core/v2/models/enum.Either.html | 34 +- paperclip_core/v2/models/enum.HttpMethod.html | 42 +- .../v2/models/enum.OperationProtocol.html | 40 +- .../v2/models/enum.ParameterIn.html | 42 +- paperclip_core/v2/models/enum.Resolvable.html | 30 +- paperclip_core/v2/models/enum.SpecFormat.html | 21 +- paperclip_core/v2/models/enum.Version.html | 29 +- paperclip_core/v2/models/index.html | 8 +- .../v2/models/static.JSON_CODER.html | 2 +- .../v2/models/static.JSON_MIME.html | 2 +- .../v2/models/static.YAML_CODER.html | 2 +- .../v2/models/static.YAML_MIME.html | 2 +- paperclip_core/v2/models/struct.Api.html | 48 +- paperclip_core/v2/models/struct.Coder.html | 24 +- paperclip_core/v2/models/struct.Coders.html | 46 +- paperclip_core/v2/models/struct.Contact.html | 24 +- .../v2/models/struct.DefaultSchema.html | 32 +- .../v2/models/struct.DefaultSchemaRaw.html | 30 +- .../v2/models/struct.ExternalDocs.html | 24 +- paperclip_core/v2/models/struct.Header.html | 28 +- paperclip_core/v2/models/struct.Info.html | 28 +- paperclip_core/v2/models/struct.Items.html | 29 +- paperclip_core/v2/models/struct.License.html | 24 +- .../v2/models/struct.MediaRange.html | 38 +- .../v2/models/struct.Operation.html | 34 +- .../v2/models/struct.Parameter.html | 39 +- paperclip_core/v2/models/struct.PathItem.html | 34 +- .../v2/models/struct.Reference.html | 27 +- paperclip_core/v2/models/struct.Response.html | 30 +- .../v2/models/struct.SecurityScheme.html | 24 +- paperclip_core/v2/models/struct.Tag.html | 24 +- .../v2/models/type.DefaultApiRaw.html | 12 +- .../v2/models/type.DefaultOperationRaw.html | 2 +- .../v2/models/type.DefaultParameterRaw.html | 8 +- .../v2/models/type.DefaultPathItemRaw.html | 2 +- .../v2/models/type.DefaultResponseRaw.html | 2 +- .../v2/models/type.ResolvableApi.html | 12 +- .../v2/models/type.ResolvableOperation.html | 2 +- .../v2/models/type.ResolvableParameter.html | 2 +- .../v2/models/type.ResolvablePathItem.html | 2 +- .../v2/models/type.ResolvableResponse.html | 2 +- paperclip_core/v2/schema/index.html | 10 +- .../v2/schema/trait.Apiv2Errors.html | 4 +- .../v2/schema/trait.Apiv2Operation.html | 12 +- .../v2/schema/trait.Apiv2Schema.html | 22 +- paperclip_core/v2/schema/trait.Schema.html | 6 +- paperclip_core/v2/schema/trait.TypedData.html | 4 +- paperclip_core/v2/struct.AcceptedJson.html | 24 +- paperclip_core/v2/struct.CreatedJson.html | 24 +- .../v2/struct.HttpResponseWrapper.html | 10 +- paperclip_core/v2/struct.NoContent.html | 14 +- .../v2/struct.ResponderWrapper.html | 12 +- paperclip_core/v2/struct.ResponseWrapper.html | 20 +- .../v2/trait.OperationModifier.html | 40 +- paperclip_core/v3/fn.openapiv2_to_v3.html | 2 +- paperclip_core/v3/index.html | 4 +- paperclip_macros/all.html | 2 +- paperclip_macros/attr.api_v2_errors.html | 2 +- .../attr.api_v2_errors_overlay.html | 2 +- paperclip_macros/attr.api_v2_operation.html | 2 +- .../attr.api_v2_schema_struct.html | 2 +- paperclip_macros/attr.delete.html | 4 +- paperclip_macros/attr.get.html | 4 +- paperclip_macros/attr.head.html | 4 +- paperclip_macros/attr.patch.html | 4 +- paperclip_macros/attr.post.html | 4 +- paperclip_macros/attr.put.html | 4 +- paperclip_macros/derive.Apiv2Header.html | 2 +- paperclip_macros/derive.Apiv2Schema.html | 2 +- paperclip_macros/derive.Apiv2Security.html | 2 +- paperclip_macros/index.html | 10 +- search-index.js | 6 +- search.desc/paperclip/paperclip-desc-0-.js | 2 +- .../paperclip_actix-desc-0-.js | 2 +- settings.html | 2 +- src/paperclip/error.rs.html | 2 +- .../out/template.rs.html | 2 +- src/paperclip/lib.rs.html | 2 +- src/paperclip/v2/codegen/author.rs.html | 2 +- src/paperclip/v2/codegen/emitter.rs.html | 2 +- src/paperclip/v2/codegen/impls.rs.html | 2 +- src/paperclip/v2/codegen/mod.rs.html | 2 +- src/paperclip/v2/codegen/object.rs.html | 2 +- src/paperclip/v2/codegen/state.rs.html | 2 +- src/paperclip/v2/mod.rs.html | 2 +- src/paperclip_actix/app.rs.html | 2 +- src/paperclip_actix/lib.rs.html | 2 +- src/paperclip_actix/web.rs.html | 2 +- src/paperclip_core/error.rs.html | 2 +- src/paperclip_core/im.rs.html | 2 +- src/paperclip_core/lib.rs.html | 2 +- src/paperclip_core/util.rs.html | 2 +- src/paperclip_core/v2/actix.rs.html | 10 +- src/paperclip_core/v2/extensions.rs.html | 2 +- src/paperclip_core/v2/mod.rs.html | 2 +- src/paperclip_core/v2/models.rs.html | 2 +- src/paperclip_core/v2/resolver.rs.html | 2 +- src/paperclip_core/v2/schema.rs.html | 58 +- src/paperclip_core/v3/contact.rs.html | 2 +- .../v3/external_documentation.rs.html | 2 +- src/paperclip_core/v3/header.rs.html | 2 +- src/paperclip_core/v3/info.rs.html | 2 +- src/paperclip_core/v3/license.rs.html | 2 +- src/paperclip_core/v3/mod.rs.html | 2 +- src/paperclip_core/v3/openapi.rs.html | 2 +- src/paperclip_core/v3/operation.rs.html | 2 +- src/paperclip_core/v3/parameter.rs.html | 2 +- src/paperclip_core/v3/paths.rs.html | 2 +- src/paperclip_core/v3/reference.rs.html | 2 +- src/paperclip_core/v3/request_body.rs.html | 2 +- src/paperclip_core/v3/response.rs.html | 2 +- src/paperclip_core/v3/schema.rs.html | 2 +- src/paperclip_core/v3/security_scheme.rs.html | 2 +- src/paperclip_core/v3/tag.rs.html | 2 +- src/paperclip_macros/actix.rs.html | 2 +- src/paperclip_macros/core.rs.html | 2 +- src/paperclip_macros/lib.rs.html | 2 +- static.files/main-20a3ad099b048cf2.js | 11 - static.files/main-cb0df477c2d67d00.js | 11 + static.files/noscript-3b12f09e550e0385.css | 1 + static.files/noscript-df360f571f6edeae.css | 1 - static.files/rustdoc-b25d77b18a16a9a4.css | 47 + static.files/rustdoc-dd39b87e5fcfba68.css | 46 - ...b170c82e.js => search-ef54e092fea9c776.js} | 2 +- .../response/responder/trait.Responder.js | 2 +- trait.impl/core/convert/trait.From.js | 2 +- trait.impl/core/fmt/trait.Debug.js | 2 +- trait.impl/core/fmt/trait.Display.js | 2 +- trait.impl/serde/de/trait.Deserialize.js | 2 +- trait.impl/serde/ser/trait.Serialize.js | 2 +- type.impl/alloc/sync/struct.Arc.js | 4 +- type.impl/core/result/enum.Result.js | 2 +- type.impl/paperclip/v2/models/struct.Api.js | 2 +- .../paperclip/v2/models/struct.Operation.js | 2 +- .../paperclip/v2/models/struct.Parameter.js | 2 +- .../paperclip/v2/models/struct.PathItem.js | 2 +- .../paperclip/v2/models/struct.Response.js | 2 +- .../paperclip_core/v2/models/struct.Api.js | 2 +- .../v2/models/struct.Operation.js | 2 +- .../v2/models/struct.Parameter.js | 2 +- .../v2/models/struct.PathItem.js | 2 +- .../v2/models/struct.Response.js | 2 +- 370 files changed, 4546 insertions(+), 4180 deletions(-) delete mode 100644 static.files/main-20a3ad099b048cf2.js create mode 100644 static.files/main-cb0df477c2d67d00.js create mode 100644 static.files/noscript-3b12f09e550e0385.css delete mode 100644 static.files/noscript-df360f571f6edeae.css create mode 100644 static.files/rustdoc-b25d77b18a16a9a4.css delete mode 100644 static.files/rustdoc-dd39b87e5fcfba68.css rename static.files/{search-0fe7219eb170c82e.js => search-ef54e092fea9c776.js} (76%) diff --git a/actix-headers.html b/actix-headers.html index 7e30e6465..8d2aa2647 100644 --- a/actix-headers.html +++ b/actix-headers.html @@ -357,7 +357,7 @@

No results matching " var gitbook = gitbook || []; gitbook.push(function() { - gitbook.page.hasChanged({"page":{"title":"Defining headers","level":"1.4.4","depth":2,"next":{"title":"Setting schema defaults","level":"1.4.5","depth":2,"path":"actix-schema-defaults.md","ref":"actix-schema-defaults.md","articles":[]},"previous":{"title":"Defining security","level":"1.4.3","depth":2,"path":"actix-security.md","ref":"actix-security.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"actix-headers.md","mtime":"2024-06-28T12:40:00.630Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-06-28T12:41:45.084Z"},"basePath":".","book":{"language":""}}); + gitbook.page.hasChanged({"page":{"title":"Defining headers","level":"1.4.4","depth":2,"next":{"title":"Setting schema defaults","level":"1.4.5","depth":2,"path":"actix-schema-defaults.md","ref":"actix-schema-defaults.md","articles":[]},"previous":{"title":"Defining security","level":"1.4.3","depth":2,"path":"actix-security.md","ref":"actix-security.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"actix-headers.md","mtime":"2024-08-16T08:44:50.199Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-08-16T08:46:17.323Z"},"basePath":".","book":{"language":""}}); }); diff --git a/actix-operation-meta.html b/actix-operation-meta.html index e43d8824f..157e1dafd 100644 --- a/actix-operation-meta.html +++ b/actix-operation-meta.html @@ -343,7 +343,7 @@

No results matching " var gitbook = gitbook || []; gitbook.push(function() { - gitbook.page.hasChanged({"page":{"title":"Adding operation metadata","level":"1.4.1","depth":2,"next":{"title":"Defining additional HTTP status codes","level":"1.4.2","depth":2,"path":"actix-status-codes.md","ref":"actix-status-codes.md","articles":[]},"previous":{"title":"Actix-web plugin","level":"1.4","depth":1,"path":"actix-plugin.md","ref":"actix-plugin.md","articles":[{"title":"Adding operation metadata","level":"1.4.1","depth":2,"path":"actix-operation-meta.md","ref":"actix-operation-meta.md","articles":[]},{"title":"Defining additional HTTP status codes","level":"1.4.2","depth":2,"path":"actix-status-codes.md","ref":"actix-status-codes.md","articles":[]},{"title":"Defining security","level":"1.4.3","depth":2,"path":"actix-security.md","ref":"actix-security.md","articles":[]},{"title":"Defining headers","level":"1.4.4","depth":2,"path":"actix-headers.md","ref":"actix-headers.md","articles":[]},{"title":"Setting schema defaults","level":"1.4.5","depth":2,"path":"actix-schema-defaults.md","ref":"actix-schema-defaults.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"actix-operation-meta.md","mtime":"2024-06-28T12:40:00.630Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-06-28T12:41:45.084Z"},"basePath":".","book":{"language":""}}); + gitbook.page.hasChanged({"page":{"title":"Adding operation metadata","level":"1.4.1","depth":2,"next":{"title":"Defining additional HTTP status codes","level":"1.4.2","depth":2,"path":"actix-status-codes.md","ref":"actix-status-codes.md","articles":[]},"previous":{"title":"Actix-web plugin","level":"1.4","depth":1,"path":"actix-plugin.md","ref":"actix-plugin.md","articles":[{"title":"Adding operation metadata","level":"1.4.1","depth":2,"path":"actix-operation-meta.md","ref":"actix-operation-meta.md","articles":[]},{"title":"Defining additional HTTP status codes","level":"1.4.2","depth":2,"path":"actix-status-codes.md","ref":"actix-status-codes.md","articles":[]},{"title":"Defining security","level":"1.4.3","depth":2,"path":"actix-security.md","ref":"actix-security.md","articles":[]},{"title":"Defining headers","level":"1.4.4","depth":2,"path":"actix-headers.md","ref":"actix-headers.md","articles":[]},{"title":"Setting schema defaults","level":"1.4.5","depth":2,"path":"actix-schema-defaults.md","ref":"actix-schema-defaults.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"actix-operation-meta.md","mtime":"2024-08-16T08:44:50.199Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-08-16T08:46:17.323Z"},"basePath":".","book":{"language":""}}); }); diff --git a/actix-plugin.html b/actix-plugin.html index d924a3caa..377360c9e 100644 --- a/actix-plugin.html +++ b/actix-plugin.html @@ -513,7 +513,7 @@

No results matching " var gitbook = gitbook || []; gitbook.push(function() { - gitbook.page.hasChanged({"page":{"title":"Actix-web plugin","level":"1.4","depth":1,"next":{"title":"Adding operation metadata","level":"1.4.1","depth":2,"path":"actix-operation-meta.md","ref":"actix-operation-meta.md","articles":[]},"previous":{"title":"Compile-time checks","level":"1.3.1","depth":2,"path":"compile-checks.md","ref":"compile-checks.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"actix-plugin.md","mtime":"2024-06-28T12:40:00.630Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-06-28T12:41:45.084Z"},"basePath":".","book":{"language":""}}); + gitbook.page.hasChanged({"page":{"title":"Actix-web plugin","level":"1.4","depth":1,"next":{"title":"Adding operation metadata","level":"1.4.1","depth":2,"path":"actix-operation-meta.md","ref":"actix-operation-meta.md","articles":[]},"previous":{"title":"Compile-time checks","level":"1.3.1","depth":2,"path":"compile-checks.md","ref":"compile-checks.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"actix-plugin.md","mtime":"2024-08-16T08:44:50.199Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-08-16T08:46:17.323Z"},"basePath":".","book":{"language":""}}); }); diff --git a/actix-schema-defaults.html b/actix-schema-defaults.html index 9980976b3..00e4512be 100644 --- a/actix-schema-defaults.html +++ b/actix-schema-defaults.html @@ -347,7 +347,7 @@

No results matching " var gitbook = gitbook || []; gitbook.push(function() { - gitbook.page.hasChanged({"page":{"title":"Setting schema defaults","level":"1.4.5","depth":2,"previous":{"title":"Defining headers","level":"1.4.4","depth":2,"path":"actix-headers.md","ref":"actix-headers.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"actix-schema-defaults.md","mtime":"2024-06-28T12:40:00.630Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-06-28T12:41:45.084Z"},"basePath":".","book":{"language":""}}); + gitbook.page.hasChanged({"page":{"title":"Setting schema defaults","level":"1.4.5","depth":2,"previous":{"title":"Defining headers","level":"1.4.4","depth":2,"path":"actix-headers.md","ref":"actix-headers.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"actix-schema-defaults.md","mtime":"2024-08-16T08:44:50.199Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-08-16T08:46:17.323Z"},"basePath":".","book":{"language":""}}); }); diff --git a/actix-security.html b/actix-security.html index fefc27ec1..a09be5151 100644 --- a/actix-security.html +++ b/actix-security.html @@ -355,7 +355,7 @@

No results matching " var gitbook = gitbook || []; gitbook.push(function() { - gitbook.page.hasChanged({"page":{"title":"Defining security","level":"1.4.3","depth":2,"next":{"title":"Defining headers","level":"1.4.4","depth":2,"path":"actix-headers.md","ref":"actix-headers.md","articles":[]},"previous":{"title":"Defining additional HTTP status codes","level":"1.4.2","depth":2,"path":"actix-status-codes.md","ref":"actix-status-codes.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"actix-security.md","mtime":"2024-06-28T12:40:00.630Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-06-28T12:41:45.084Z"},"basePath":".","book":{"language":""}}); + gitbook.page.hasChanged({"page":{"title":"Defining security","level":"1.4.3","depth":2,"next":{"title":"Defining headers","level":"1.4.4","depth":2,"path":"actix-headers.md","ref":"actix-headers.md","articles":[]},"previous":{"title":"Defining additional HTTP status codes","level":"1.4.2","depth":2,"path":"actix-status-codes.md","ref":"actix-status-codes.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"actix-security.md","mtime":"2024-08-16T08:44:50.199Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-08-16T08:46:17.323Z"},"basePath":".","book":{"language":""}}); }); diff --git a/actix-status-codes.html b/actix-status-codes.html index 277528e4c..0f713cbc1 100644 --- a/actix-status-codes.html +++ b/actix-status-codes.html @@ -357,7 +357,7 @@

No results matching " var gitbook = gitbook || []; gitbook.push(function() { - gitbook.page.hasChanged({"page":{"title":"Defining additional HTTP status codes","level":"1.4.2","depth":2,"next":{"title":"Defining security","level":"1.4.3","depth":2,"path":"actix-security.md","ref":"actix-security.md","articles":[]},"previous":{"title":"Adding operation metadata","level":"1.4.1","depth":2,"path":"actix-operation-meta.md","ref":"actix-operation-meta.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"actix-status-codes.md","mtime":"2024-06-28T12:40:00.630Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-06-28T12:41:45.084Z"},"basePath":".","book":{"language":""}}); + gitbook.page.hasChanged({"page":{"title":"Defining additional HTTP status codes","level":"1.4.2","depth":2,"next":{"title":"Defining security","level":"1.4.3","depth":2,"path":"actix-security.md","ref":"actix-security.md","articles":[]},"previous":{"title":"Adding operation metadata","level":"1.4.1","depth":2,"path":"actix-operation-meta.md","ref":"actix-operation-meta.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"actix-status-codes.md","mtime":"2024-08-16T08:44:50.199Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-08-16T08:46:17.323Z"},"basePath":".","book":{"language":""}}); }); diff --git a/build-script.html b/build-script.html index 1f423815f..c594603d9 100644 --- a/build-script.html +++ b/build-script.html @@ -412,7 +412,7 @@

No results matching " var gitbook = gitbook || []; gitbook.push(function() { - gitbook.page.hasChanged({"page":{"title":"Build script","level":"1.3","depth":1,"next":{"title":"Compile-time checks","level":"1.3.1","depth":2,"path":"compile-checks.md","ref":"compile-checks.md","articles":[]},"previous":{"title":"CLI","level":"1.2","depth":1,"path":"cli.md","ref":"cli.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"build-script.md","mtime":"2024-06-28T12:40:00.630Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-06-28T12:41:45.084Z"},"basePath":".","book":{"language":""}}); + gitbook.page.hasChanged({"page":{"title":"Build script","level":"1.3","depth":1,"next":{"title":"Compile-time checks","level":"1.3.1","depth":2,"path":"compile-checks.md","ref":"compile-checks.md","articles":[]},"previous":{"title":"CLI","level":"1.2","depth":1,"path":"cli.md","ref":"cli.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"build-script.md","mtime":"2024-08-16T08:44:50.199Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-08-16T08:46:17.323Z"},"basePath":".","book":{"language":""}}); }); diff --git a/cli.html b/cli.html index 593d8adb6..200c7f67b 100644 --- a/cli.html +++ b/cli.html @@ -390,7 +390,7 @@

No results matching " var gitbook = gitbook || []; gitbook.push(function() { - gitbook.page.hasChanged({"page":{"title":"CLI","level":"1.2","depth":1,"next":{"title":"Build script","level":"1.3","depth":1,"path":"build-script.md","ref":"build-script.md","articles":[{"title":"Compile-time checks","level":"1.3.1","depth":2,"path":"compile-checks.md","ref":"compile-checks.md","articles":[]}]},"previous":{"title":"Overview","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"cli.md","mtime":"2024-06-28T12:40:00.630Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-06-28T12:41:45.084Z"},"basePath":".","book":{"language":""}}); + gitbook.page.hasChanged({"page":{"title":"CLI","level":"1.2","depth":1,"next":{"title":"Build script","level":"1.3","depth":1,"path":"build-script.md","ref":"build-script.md","articles":[{"title":"Compile-time checks","level":"1.3.1","depth":2,"path":"compile-checks.md","ref":"compile-checks.md","articles":[]}]},"previous":{"title":"Overview","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"cli.md","mtime":"2024-08-16T08:44:50.199Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-08-16T08:46:17.323Z"},"basePath":".","book":{"language":""}}); }); diff --git a/compile-checks.html b/compile-checks.html index f9696b63c..fcf07db8a 100644 --- a/compile-checks.html +++ b/compile-checks.html @@ -355,7 +355,7 @@

No results matching " var gitbook = gitbook || []; gitbook.push(function() { - gitbook.page.hasChanged({"page":{"title":"Compile-time checks","level":"1.3.1","depth":2,"next":{"title":"Actix-web plugin","level":"1.4","depth":1,"path":"actix-plugin.md","ref":"actix-plugin.md","articles":[{"title":"Adding operation metadata","level":"1.4.1","depth":2,"path":"actix-operation-meta.md","ref":"actix-operation-meta.md","articles":[]},{"title":"Defining additional HTTP status codes","level":"1.4.2","depth":2,"path":"actix-status-codes.md","ref":"actix-status-codes.md","articles":[]},{"title":"Defining security","level":"1.4.3","depth":2,"path":"actix-security.md","ref":"actix-security.md","articles":[]},{"title":"Defining headers","level":"1.4.4","depth":2,"path":"actix-headers.md","ref":"actix-headers.md","articles":[]},{"title":"Setting schema defaults","level":"1.4.5","depth":2,"path":"actix-schema-defaults.md","ref":"actix-schema-defaults.md","articles":[]}]},"previous":{"title":"Build script","level":"1.3","depth":1,"path":"build-script.md","ref":"build-script.md","articles":[{"title":"Compile-time checks","level":"1.3.1","depth":2,"path":"compile-checks.md","ref":"compile-checks.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"compile-checks.md","mtime":"2024-06-28T12:40:00.630Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-06-28T12:41:45.084Z"},"basePath":".","book":{"language":""}}); + gitbook.page.hasChanged({"page":{"title":"Compile-time checks","level":"1.3.1","depth":2,"next":{"title":"Actix-web plugin","level":"1.4","depth":1,"path":"actix-plugin.md","ref":"actix-plugin.md","articles":[{"title":"Adding operation metadata","level":"1.4.1","depth":2,"path":"actix-operation-meta.md","ref":"actix-operation-meta.md","articles":[]},{"title":"Defining additional HTTP status codes","level":"1.4.2","depth":2,"path":"actix-status-codes.md","ref":"actix-status-codes.md","articles":[]},{"title":"Defining security","level":"1.4.3","depth":2,"path":"actix-security.md","ref":"actix-security.md","articles":[]},{"title":"Defining headers","level":"1.4.4","depth":2,"path":"actix-headers.md","ref":"actix-headers.md","articles":[]},{"title":"Setting schema defaults","level":"1.4.5","depth":2,"path":"actix-schema-defaults.md","ref":"actix-schema-defaults.md","articles":[]}]},"previous":{"title":"Build script","level":"1.3","depth":1,"path":"build-script.md","ref":"build-script.md","articles":[{"title":"Compile-time checks","level":"1.3.1","depth":2,"path":"compile-checks.md","ref":"compile-checks.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"compile-checks.md","mtime":"2024-08-16T08:44:50.199Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-08-16T08:46:17.323Z"},"basePath":".","book":{"language":""}}); }); diff --git a/help.html b/help.html index 5dc3824cc..a569e0329 100644 --- a/help.html +++ b/help.html @@ -1 +1 @@ -Help

Rustdoc help

Back
\ No newline at end of file +Help

Rustdoc help

Back
\ No newline at end of file diff --git a/index.html b/index.html index 448f826f8..bb825aee6 100644 --- a/index.html +++ b/index.html @@ -329,7 +329,7 @@

No results matching " var gitbook = gitbook || []; gitbook.push(function() { - gitbook.page.hasChanged({"page":{"title":"Overview","level":"1.1","depth":1,"next":{"title":"CLI","level":"1.2","depth":1,"path":"cli.md","ref":"cli.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"README.md","mtime":"2024-06-28T12:40:00.630Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-06-28T12:41:45.084Z"},"basePath":".","book":{"language":""}}); + gitbook.page.hasChanged({"page":{"title":"Overview","level":"1.1","depth":1,"next":{"title":"CLI","level":"1.2","depth":1,"path":"cli.md","ref":"cli.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"README.md","mtime":"2024-08-16T08:44:50.199Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-08-16T08:46:17.323Z"},"basePath":".","book":{"language":""}}); }); diff --git a/paperclip/actix/attr.api_v2_errors.html b/paperclip/actix/attr.api_v2_errors.html index 1496b2d74..7947ab134 100644 --- a/paperclip/actix/attr.api_v2_errors.html +++ b/paperclip/actix/attr.api_v2_errors.html @@ -1,3 +1,3 @@ -api_v2_errors in paperclip::actix - Rust

Attribute Macro paperclip::actix::api_v2_errors

source ·
#[api_v2_errors]
Expand description

Marker attribute for indicating that the marked object can represent non-2xx (error) +api_v2_errors in paperclip::actix - Rust

Attribute Macro paperclip::actix::api_v2_errors

source ·
#[api_v2_errors]
Expand description

Marker attribute for indicating that the marked object can represent non-2xx (error) status codes with optional descriptions.

\ No newline at end of file diff --git a/paperclip/actix/attr.api_v2_errors_overlay.html b/paperclip/actix/attr.api_v2_errors_overlay.html index c93e02a1b..da974f608 100644 --- a/paperclip/actix/attr.api_v2_errors_overlay.html +++ b/paperclip/actix/attr.api_v2_errors_overlay.html @@ -1,3 +1,3 @@ -api_v2_errors_overlay in paperclip::actix - Rust

Attribute Macro paperclip::actix::api_v2_errors_overlay

source ·
#[api_v2_errors_overlay]
Expand description

Marker attribute for indicating that the marked object can filter error responses from the +api_v2_errors_overlay in paperclip::actix - Rust

Attribute Macro paperclip::actix::api_v2_errors_overlay

source ·
#[api_v2_errors_overlay]
Expand description

Marker attribute for indicating that the marked object can filter error responses from the the #[api_v2_errors] macro.

\ No newline at end of file diff --git a/paperclip/actix/attr.api_v2_operation.html b/paperclip/actix/attr.api_v2_operation.html index 502a5c357..c5ee02ca7 100644 --- a/paperclip/actix/attr.api_v2_operation.html +++ b/paperclip/actix/attr.api_v2_operation.html @@ -1,2 +1,2 @@ -api_v2_operation in paperclip::actix - Rust

Attribute Macro paperclip::actix::api_v2_operation

source ·
#[api_v2_operation]
Expand description

Marker attribute for indicating that a function is an OpenAPI v2 compatible operation.

+api_v2_operation in paperclip::actix - Rust

Attribute Macro paperclip::actix::api_v2_operation

source ·
#[api_v2_operation]
Expand description

Marker attribute for indicating that a function is an OpenAPI v2 compatible operation.

\ No newline at end of file diff --git a/paperclip/actix/attr.delete.html b/paperclip/actix/attr.delete.html index bd3abf9a8..ef0f2d7cd 100644 --- a/paperclip/actix/attr.delete.html +++ b/paperclip/actix/attr.delete.html @@ -1,10 +1,10 @@ -delete in paperclip::actix - Rust

Attribute Macro paperclip::actix::delete

source ·
#[delete]
Expand description

Creates route handler with paperclip::actix::web::Resource. +delete in paperclip::actix - Rust

Attribute Macro paperclip::actix::delete

source ·
#[delete]
Expand description

Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.

§Syntax

#[delete("path"[, attributes])]
 

§Attributes

    -
  • "path" - Raw literal string with path for which to register handler.
  • +
  • "path" - Raw literal string with path for which to register handler.

§Example

/// use paperclip::actix::web::Json; diff --git a/paperclip/actix/attr.get.html b/paperclip/actix/attr.get.html index fc6e85f99..cadf62545 100644 --- a/paperclip/actix/attr.get.html +++ b/paperclip/actix/attr.get.html @@ -1,10 +1,10 @@ -get in paperclip::actix - Rust

Attribute Macro paperclip::actix::get

source ·
#[get]
Expand description

Creates route handler with paperclip::actix::web::Resource. +get in paperclip::actix - Rust

Attribute Macro paperclip::actix::get

source ·
#[get]
Expand description

Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.

§Syntax

#[get("path"[, attributes])]
 

§Attributes

    -
  • "path" - Raw literal string with path for which to register handler.
  • +
  • "path" - Raw literal string with path for which to register handler.

§Example

/// use paperclip::actix::web::Json; diff --git a/paperclip/actix/attr.head.html b/paperclip/actix/attr.head.html index c5e9d2030..07a053957 100644 --- a/paperclip/actix/attr.head.html +++ b/paperclip/actix/attr.head.html @@ -1,10 +1,10 @@ -head in paperclip::actix - Rust

Attribute Macro paperclip::actix::head

source ·
#[head]
Expand description

Creates route handler with paperclip::actix::web::Resource. +head in paperclip::actix - Rust

Attribute Macro paperclip::actix::head

source ·
#[head]
Expand description

Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.

§Syntax

#[head("path"[, attributes])]
 

§Attributes

    -
  • "path" - Raw literal string with path for which to register handler.
  • +
  • "path" - Raw literal string with path for which to register handler.

§Example

/// use paperclip::actix::web::Json; diff --git a/paperclip/actix/attr.patch.html b/paperclip/actix/attr.patch.html index d64be4c30..51e6bd099 100644 --- a/paperclip/actix/attr.patch.html +++ b/paperclip/actix/attr.patch.html @@ -1,10 +1,10 @@ -patch in paperclip::actix - Rust

Attribute Macro paperclip::actix::patch

source ·
#[patch]
Expand description

Creates route handler with paperclip::actix::web::Resource. +patch in paperclip::actix - Rust

Attribute Macro paperclip::actix::patch

source ·
#[patch]
Expand description

Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.

§Syntax

#[patch("path"[, attributes])]
 

§Attributes

    -
  • "path" - Raw literal string with path for which to register handler.
  • +
  • "path" - Raw literal string with path for which to register handler.

§Example

/// use paperclip::actix::web::Json; diff --git a/paperclip/actix/attr.post.html b/paperclip/actix/attr.post.html index f0bb86b5c..9ff498b61 100644 --- a/paperclip/actix/attr.post.html +++ b/paperclip/actix/attr.post.html @@ -1,10 +1,10 @@ -post in paperclip::actix - Rust

Attribute Macro paperclip::actix::post

source ·
#[post]
Expand description

Creates route handler with paperclip::actix::web::Resource. +post in paperclip::actix - Rust

Attribute Macro paperclip::actix::post

source ·
#[post]
Expand description

Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.

§Syntax

#[post("path"[, attributes])]
 

§Attributes

    -
  • "path" - Raw literal string with path for which to register handler.
  • +
  • "path" - Raw literal string with path for which to register handler.

§Example

/// use paperclip::actix::web::Json; diff --git a/paperclip/actix/attr.put.html b/paperclip/actix/attr.put.html index 08584de4b..7b4ba774a 100644 --- a/paperclip/actix/attr.put.html +++ b/paperclip/actix/attr.put.html @@ -1,10 +1,10 @@ -put in paperclip::actix - Rust

Attribute Macro paperclip::actix::put

source ·
#[put]
Expand description

Creates route handler with paperclip::actix::web::Resource. +put in paperclip::actix - Rust

Attribute Macro paperclip::actix::put

source ·
#[put]
Expand description

Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.

§Syntax

#[put("path"[, attributes])]
 

§Attributes

    -
  • "path" - Raw literal string with path for which to register handler.
  • +
  • "path" - Raw literal string with path for which to register handler.

§Example

/// use paperclip::actix::web::Json; diff --git a/paperclip/actix/derive.Apiv2Header.html b/paperclip/actix/derive.Apiv2Header.html index 9dfdbc9fe..134d70961 100644 --- a/paperclip/actix/derive.Apiv2Header.html +++ b/paperclip/actix/derive.Apiv2Header.html @@ -1,4 +1,4 @@ -Apiv2Header in paperclip::actix - Rust

Derive Macro paperclip::actix::Apiv2Header

source ·
#[derive(Apiv2Header)]
+Apiv2Header in paperclip::actix - Rust

Derive Macro paperclip::actix::Apiv2Header

source ·
#[derive(Apiv2Header)]
 {
     // Attributes available to this derive:
     #[openapi]
diff --git a/paperclip/actix/derive.Apiv2Schema.html b/paperclip/actix/derive.Apiv2Schema.html
index 5c1d7e0c5..acf7c2635 100644
--- a/paperclip/actix/derive.Apiv2Schema.html
+++ b/paperclip/actix/derive.Apiv2Schema.html
@@ -1,4 +1,4 @@
-Apiv2Schema in paperclip::actix - Rust

Derive Macro paperclip::actix::Apiv2Schema

source ·
#[derive(Apiv2Schema)]
+Apiv2Schema in paperclip::actix - Rust

Derive Macro paperclip::actix::Apiv2Schema

source ·
#[derive(Apiv2Schema)]
 {
     // Attributes available to this derive:
     #[openapi]
diff --git a/paperclip/actix/derive.Apiv2Security.html b/paperclip/actix/derive.Apiv2Security.html
index 1c8f5457a..df9108c97 100644
--- a/paperclip/actix/derive.Apiv2Security.html
+++ b/paperclip/actix/derive.Apiv2Security.html
@@ -1,4 +1,4 @@
-Apiv2Security in paperclip::actix - Rust

Derive Macro paperclip::actix::Apiv2Security

source ·
#[derive(Apiv2Security)]
+Apiv2Security in paperclip::actix - Rust

Derive Macro paperclip::actix::Apiv2Security

source ·
#[derive(Apiv2Security)]
 {
     // Attributes available to this derive:
     #[openapi]
diff --git a/paperclip/actix/index.html b/paperclip/actix/index.html
index 7b078b725..76202949a 100644
--- a/paperclip/actix/index.html
+++ b/paperclip/actix/index.html
@@ -1,8 +1,8 @@
-paperclip::actix - Rust

Module paperclip::actix

source ·
Expand description

Plugin types, traits and macros for actix-web framework.

-

Modules§

Structs§

Traits§

  • Indicates that this thingmabob has a path and a bunch of definitions and operations.
  • Extension trait for actix-web applications.
  • Actix-specific trait for indicating that this entity can modify an operation -and/or update the global map of definitions.

Attribute Macros§

  • Marker attribute for indicating that the marked object can represent non-2xx (error) -status codes with optional descriptions.
  • Marker attribute for indicating that the marked object can filter error responses from the -the #[api_v2_errors] macro.
  • Marker attribute for indicating that a function is an OpenAPI v2 compatible operation.
  • Creates route handler with paperclip::actix::web::Resource. +paperclip::actix - Rust

    Module paperclip::actix

    source ·
    Expand description

    Plugin types, traits and macros for actix-web framework.

    +

    Modules§

    Structs§

    Traits§

    • Indicates that this thingmabob has a path and a bunch of definitions and operations.
    • Extension trait for actix-web applications.
    • Actix-specific trait for indicating that this entity can modify an operation +and/or update the global map of definitions.

    Attribute Macros§

    • Marker attribute for indicating that the marked object can represent non-2xx (error) +status codes with optional descriptions.
    • Marker attribute for indicating that the marked object can filter error responses from the +the #[api_v2_errors] macro.
    • Marker attribute for indicating that a function is an OpenAPI v2 compatible operation.
    • Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.
    • Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the @@ -14,4 +14,4 @@ In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.
    • Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the -trait actix_web::Responder.

    Derive Macros§

    • Derive attribute for indicating that a type is an OpenAPI v2 compatible header parameter.
    • Derive attribute for indicating that a type is an OpenAPI v2 compatible definition.
    • Marker attribute for indicating that an object forbids public access to operation (for example AccessToken).
    \ No newline at end of file +trait actix_web::Responder.

Derive Macros§

  • Derive attribute for indicating that a type is an OpenAPI v2 compatible header parameter.
  • Derive attribute for indicating that a type is an OpenAPI v2 compatible definition.
  • Marker attribute for indicating that an object forbids public access to operation (for example AccessToken).
\ No newline at end of file diff --git a/paperclip/actix/struct.AcceptedJson.html b/paperclip/actix/struct.AcceptedJson.html index 95092968a..bccab3942 100644 --- a/paperclip/actix/struct.AcceptedJson.html +++ b/paperclip/actix/struct.AcceptedJson.html @@ -1,27 +1,27 @@ -AcceptedJson in paperclip::actix - Rust

Struct paperclip::actix::AcceptedJson

source ·
pub struct AcceptedJson<T>(pub T)
+AcceptedJson in paperclip::actix - Rust

Struct paperclip::actix::AcceptedJson

source ·
pub struct AcceptedJson<T>(pub T)
 where
-    T: Serialize + Apiv2Schema;

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T> Apiv2Schema for AcceptedJson<T>
where - T: Serialize + Apiv2Schema,

source§

fn name() -> Option<String>

Name of this schema. This is the name to which the definition of the object is mapped.
source§

fn raw_schema() -> DefaultSchemaRaw

Returns the raw schema for this object.
source§

fn description() -> &'static str

Description of this schema. In case the trait is derived, uses the documentation on the type.
source§

fn required() -> bool

Indicates the requirement of this schema.
source§

fn schema_with_ref() -> DefaultSchemaRaw

Returns the schema with a reference (if this is an object). Read more
source§

fn security_scheme() -> Option<SecurityScheme>

Returns the security scheme for this object.
source§

fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

source§

impl<T> Debug for AcceptedJson<T>
where - T: Debug + Serialize + Apiv2Schema,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> Display for AcceptedJson<T>
where - T: Display + Serialize + Apiv2Schema,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> OperationModifier for AcceptedJson<T>
where - T: Serialize + Apiv2Schema,

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T> Apiv2Schema for AcceptedJson<T>
where + T: Serialize + Apiv2Schema,

source§

fn name() -> Option<String>

Name of this schema. This is the name to which the definition of the object is mapped.
source§

fn raw_schema() -> DefaultSchemaRaw

Returns the raw schema for this object.
source§

fn description() -> &'static str

Description of this schema. In case the trait is derived, uses the documentation on the type.
source§

fn required() -> bool

Indicates the requirement of this schema.
source§

fn schema_with_ref() -> DefaultSchemaRaw

Returns the schema with a reference (if this is an object). Read more
source§

fn security_scheme() -> Option<SecurityScheme>

Returns the security scheme for this object.
source§

fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

source§

impl<T> Debug for AcceptedJson<T>
where + T: Debug + Serialize + Apiv2Schema,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> Display for AcceptedJson<T>
where + T: Display + Serialize + Apiv2Schema,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> OperationModifier for AcceptedJson<T>
where + T: Serialize + Apiv2Schema,

source§

fn update_response( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )

Update the responses map in the given operation (if needed).
source§

fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )

Update the parameters list in the given operation (if needed).
source§

fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

Update the definitions map (if needed).
source§

fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

Update the security map in the given operation (if needed).
source§

fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

Update the security definition map (if needed).
source§

impl<T> Responder for AcceptedJson<T>
where - T: Serialize + Apiv2Schema,

§

type Body = BoxBody

source§

fn respond_to(self, _: &HttpRequest) -> HttpResponse

Convert self to HttpResponse.
§

fn customize(self) -> CustomizeResponder<Self>
where +)

Update the security map in the given operation (if needed).
source§

fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

Update the security definition map (if needed).
source§

impl<T> Responder for AcceptedJson<T>
where + T: Serialize + Apiv2Schema,

§

type Body = BoxBody

source§

fn respond_to(self, _: &HttpRequest) -> HttpResponse

Convert self to HttpResponse.
§

fn customize(self) -> CustomizeResponder<Self>
where Self: Sized,

Wraps responder to allow alteration of its response. Read more

Auto Trait Implementations§

§

impl<T> Freeze for AcceptedJson<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for AcceptedJson<T>
where T: RefUnwindSafe,

§

impl<T> Send for AcceptedJson<T>
where T: Send,

§

impl<T> Sync for AcceptedJson<T>
where T: Sync,

§

impl<T> Unpin for AcceptedJson<T>
where T: Unpin,

§

impl<T> UnwindSafe for AcceptedJson<T>
where - T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where - T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where - T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where @@ -32,11 +32,11 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where +otherwise. Read more

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where diff --git a/paperclip/actix/struct.App.html b/paperclip/actix/struct.App.html index 6a9ae32a1..3e72ce509 100644 --- a/paperclip/actix/struct.App.html +++ b/paperclip/actix/struct.App.html @@ -1,4 +1,4 @@ -App in paperclip::actix - Rust

Struct paperclip::actix::App

source ·
pub struct App<T> { /* private fields */ }
Expand description

Wrapper for actix_web::App.

+App in paperclip::actix - Rust

Struct paperclip::actix::App

source ·
pub struct App<T> { /* private fields */ }
Expand description

Wrapper for actix_web::App.

Implementations§

source§

impl<T> App<T>
where T: ServiceFactory<ServiceRequest, Config = (), Error = Error, InitError = ()>,

source

pub fn data_factory<F, Out, D, E>(self, data: F) -> App<T>
where F: Fn() -> Out + 'static, @@ -46,13 +46,13 @@ recorded by the wrapper and serves them in the given path as a JSON.

source

pub fn with_raw_json_spec<F>(self, call: F) -> App<T>
where - F: FnMut(App<T>, Value) -> App<T>,

Calls the given function with App and JSON Value representing your API + F: FnMut(App<T>, Value) -> App<T>,

Calls the given function with App and JSON Value representing your API specification built until now.

NOTE: Unlike with_json_spec_at, this only has the API spec built until this function call. Any route handler added after this call won’t affect the spec. So, it’s important to call this function after adding all route handlers.

source

pub fn with_raw_json_spec_v3<F>(self, call: F) -> App<T>
where - F: FnMut(App<T>, Value) -> App<T>,

Calls the given function with App and JSON Value representing your API + F: FnMut(App<T>, Value) -> App<T>,

Calls the given function with App and JSON Value representing your API v2 specification built until now which is converted to v3.

NOTE: Unlike with_json_spec_at, this only has the API spec built until this function call. Any route handler added after this call won’t affect the @@ -66,10 +66,10 @@ So, it’s important to call this function after adding all route handlers.

Auto Trait Implementations§

§

impl<T> Freeze for App<T>
where T: Freeze,

§

impl<T> !RefUnwindSafe for App<T>

§

impl<T> !Send for App<T>

§

impl<T> !Sync for App<T>

§

impl<T> Unpin for App<T>
where - T: Unpin,

§

impl<T> !UnwindSafe for App<T>

Blanket Implementations§

source§

impl<T> Any for T
where - T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where - T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: Unpin,

§

impl<T> !UnwindSafe for App<T>

Blanket Implementations§

source§

impl<T> Any for T
where + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where @@ -80,7 +80,7 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where diff --git a/paperclip/actix/struct.CreatedJson.html b/paperclip/actix/struct.CreatedJson.html index 8e922b3c0..c2e5c7394 100644 --- a/paperclip/actix/struct.CreatedJson.html +++ b/paperclip/actix/struct.CreatedJson.html @@ -1,27 +1,27 @@ -CreatedJson in paperclip::actix - Rust

Struct paperclip::actix::CreatedJson

source ·
pub struct CreatedJson<T>(pub T)
+CreatedJson in paperclip::actix - Rust

Struct paperclip::actix::CreatedJson

source ·
pub struct CreatedJson<T>(pub T)
 where
-    T: Serialize + Apiv2Schema;

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T> Apiv2Schema for CreatedJson<T>
where - T: Serialize + Apiv2Schema,

source§

fn name() -> Option<String>

Name of this schema. This is the name to which the definition of the object is mapped.
source§

fn raw_schema() -> DefaultSchemaRaw

Returns the raw schema for this object.
source§

fn description() -> &'static str

Description of this schema. In case the trait is derived, uses the documentation on the type.
source§

fn required() -> bool

Indicates the requirement of this schema.
source§

fn schema_with_ref() -> DefaultSchemaRaw

Returns the schema with a reference (if this is an object). Read more
source§

fn security_scheme() -> Option<SecurityScheme>

Returns the security scheme for this object.
source§

fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

source§

impl<T> Debug for CreatedJson<T>
where - T: Debug + Serialize + Apiv2Schema,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> Display for CreatedJson<T>
where - T: Display + Serialize + Apiv2Schema,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> OperationModifier for CreatedJson<T>
where - T: Serialize + Apiv2Schema,

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T> Apiv2Schema for CreatedJson<T>
where + T: Serialize + Apiv2Schema,

source§

fn name() -> Option<String>

Name of this schema. This is the name to which the definition of the object is mapped.
source§

fn raw_schema() -> DefaultSchemaRaw

Returns the raw schema for this object.
source§

fn description() -> &'static str

Description of this schema. In case the trait is derived, uses the documentation on the type.
source§

fn required() -> bool

Indicates the requirement of this schema.
source§

fn schema_with_ref() -> DefaultSchemaRaw

Returns the schema with a reference (if this is an object). Read more
source§

fn security_scheme() -> Option<SecurityScheme>

Returns the security scheme for this object.
source§

fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

source§

impl<T> Debug for CreatedJson<T>
where + T: Debug + Serialize + Apiv2Schema,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> Display for CreatedJson<T>
where + T: Display + Serialize + Apiv2Schema,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> OperationModifier for CreatedJson<T>
where + T: Serialize + Apiv2Schema,

source§

fn update_response( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )

Update the responses map in the given operation (if needed).
source§

fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )

Update the parameters list in the given operation (if needed).
source§

fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

Update the definitions map (if needed).
source§

fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

Update the security map in the given operation (if needed).
source§

fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

Update the security definition map (if needed).
source§

impl<T> Responder for CreatedJson<T>
where - T: Serialize + Apiv2Schema,

§

type Body = BoxBody

source§

fn respond_to(self, _: &HttpRequest) -> HttpResponse

Convert self to HttpResponse.
§

fn customize(self) -> CustomizeResponder<Self>
where +)

Update the security map in the given operation (if needed).
source§

fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

Update the security definition map (if needed).
source§

impl<T> Responder for CreatedJson<T>
where + T: Serialize + Apiv2Schema,

§

type Body = BoxBody

source§

fn respond_to(self, _: &HttpRequest) -> HttpResponse

Convert self to HttpResponse.
§

fn customize(self) -> CustomizeResponder<Self>
where Self: Sized,

Wraps responder to allow alteration of its response. Read more

Auto Trait Implementations§

§

impl<T> Freeze for CreatedJson<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for CreatedJson<T>
where T: RefUnwindSafe,

§

impl<T> Send for CreatedJson<T>
where T: Send,

§

impl<T> Sync for CreatedJson<T>
where T: Sync,

§

impl<T> Unpin for CreatedJson<T>
where T: Unpin,

§

impl<T> UnwindSafe for CreatedJson<T>
where - T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where - T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where - T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where @@ -32,11 +32,11 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where +otherwise. Read more

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where diff --git a/paperclip/actix/struct.HttpResponseWrapper.html b/paperclip/actix/struct.HttpResponseWrapper.html index 29dba3ef4..d2ec4f55f 100644 --- a/paperclip/actix/struct.HttpResponseWrapper.html +++ b/paperclip/actix/struct.HttpResponseWrapper.html @@ -1,4 +1,4 @@ -HttpResponseWrapper in paperclip::actix - Rust

Struct paperclip::actix::HttpResponseWrapper

source ·
pub struct HttpResponseWrapper(pub HttpResponse);
Expand description

Workaround for possibility to directly return HttpResponse from closure handler.

+HttpResponseWrapper in paperclip::actix - Rust

Struct paperclip::actix::HttpResponseWrapper

source ·
pub struct HttpResponseWrapper(pub HttpResponse);
Expand description

Workaround for possibility to directly return HttpResponse from closure handler.

This is needed after actix removed impl Future from HttpResponse: https://github.com/actix/actix-web/pull/2601

Example:

@@ -14,10 +14,10 @@ self, req: &HttpRequest, ) -> HttpResponse<<HttpResponseWrapper as Responder>::Body>

Convert self to HttpResponse.
§

fn customize(self) -> CustomizeResponder<Self>
where - Self: Sized,

Wraps responder to allow alteration of its response. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where - T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where - T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ Self: Sized,

Wraps responder to allow alteration of its response. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where @@ -28,7 +28,7 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where diff --git a/paperclip/actix/struct.NoContent.html b/paperclip/actix/struct.NoContent.html index 1700be4e6..4bd4a1bc8 100644 --- a/paperclip/actix/struct.NoContent.html +++ b/paperclip/actix/struct.NoContent.html @@ -1,14 +1,14 @@ -NoContent in paperclip::actix - Rust

Struct paperclip::actix::NoContent

source ·
pub struct NoContent;

Trait Implementations§

source§

impl Apiv2Schema for NoContent

source§

fn name() -> Option<String>

Name of this schema. This is the name to which the definition of the object is mapped.
source§

fn description() -> &'static str

Description of this schema. In case the trait is derived, uses the documentation on the type.
source§

fn required() -> bool

Indicates the requirement of this schema.
source§

fn raw_schema() -> DefaultSchemaRaw

Returns the raw schema for this object.
source§

fn schema_with_ref() -> DefaultSchemaRaw

Returns the schema with a reference (if this is an object). Read more
source§

fn security_scheme() -> Option<SecurityScheme>

Returns the security scheme for this object.
source§

fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

source§

impl Debug for NoContent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for NoContent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl OperationModifier for NoContent

source§

fn update_response( +NoContent in paperclip::actix - Rust

Struct paperclip::actix::NoContent

source ·
pub struct NoContent;

Trait Implementations§

source§

impl Apiv2Schema for NoContent

source§

fn name() -> Option<String>

Name of this schema. This is the name to which the definition of the object is mapped.
source§

fn description() -> &'static str

Description of this schema. In case the trait is derived, uses the documentation on the type.
source§

fn required() -> bool

Indicates the requirement of this schema.
source§

fn raw_schema() -> DefaultSchemaRaw

Returns the raw schema for this object.
source§

fn schema_with_ref() -> DefaultSchemaRaw

Returns the schema with a reference (if this is an object). Read more
source§

fn security_scheme() -> Option<SecurityScheme>

Returns the security scheme for this object.
source§

fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

source§

impl Debug for NoContent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for NoContent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl OperationModifier for NoContent

source§

fn update_response( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )

Update the responses map in the given operation (if needed).
source§

fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )

Update the parameters list in the given operation (if needed).
source§

fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

Update the definitions map (if needed).
source§

fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

Update the security map in the given operation (if needed).
source§

fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

Update the security definition map (if needed).
source§

impl Responder for NoContent

§

type Body = BoxBody

source§

fn respond_to(self, _: &HttpRequest) -> HttpResponse

Convert self to HttpResponse.
§

fn customize(self) -> CustomizeResponder<Self>
where - Self: Sized,

Wraps responder to allow alteration of its response. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where - T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where - T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+)

Update the security map in the given operation (if needed).
source§

fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

Update the security definition map (if needed).
source§

impl Responder for NoContent

§

type Body = BoxBody

source§

fn respond_to(self, _: &HttpRequest) -> HttpResponse

Convert self to HttpResponse.
§

fn customize(self) -> CustomizeResponder<Self>
where + Self: Sized,

Wraps responder to allow alteration of its response. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where @@ -19,11 +19,11 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for T
where - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where +otherwise. Read more

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where diff --git a/paperclip/actix/struct.ResponderWrapper.html b/paperclip/actix/struct.ResponderWrapper.html index 1d5e7c748..5f457a376 100644 --- a/paperclip/actix/struct.ResponderWrapper.html +++ b/paperclip/actix/struct.ResponderWrapper.html @@ -1,14 +1,14 @@ -ResponderWrapper in paperclip::actix - Rust

Struct paperclip::actix::ResponderWrapper

source ·
pub struct ResponderWrapper<T>(pub T);
Expand description

Wrapper for wrapping over impl Responder thingies (to avoid breakage).

-

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T> Apiv2Schema for ResponderWrapper<T>
where - T: Responder,

source§

fn name() -> Option<String>

Name of this schema. This is the name to which the definition of the object is mapped.
source§

fn description() -> &'static str

Description of this schema. In case the trait is derived, uses the documentation on the type.
source§

fn required() -> bool

Indicates the requirement of this schema.
source§

fn raw_schema() -> DefaultSchemaRaw

Returns the raw schema for this object.
source§

fn schema_with_ref() -> DefaultSchemaRaw

Returns the schema with a reference (if this is an object). Read more
source§

fn security_scheme() -> Option<SecurityScheme>

Returns the security scheme for this object.
source§

fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

source§

impl<T> OperationModifier for ResponderWrapper<T>
where +ResponderWrapper in paperclip::actix - Rust

Struct paperclip::actix::ResponderWrapper

source ·
pub struct ResponderWrapper<T>(pub T);
Expand description

Wrapper for wrapping over impl Responder thingies (to avoid breakage).

+

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T> Apiv2Schema for ResponderWrapper<T>
where + T: Responder,

source§

fn name() -> Option<String>

Name of this schema. This is the name to which the definition of the object is mapped.
source§

fn description() -> &'static str

Description of this schema. In case the trait is derived, uses the documentation on the type.
source§

fn required() -> bool

Indicates the requirement of this schema.
source§

fn raw_schema() -> DefaultSchemaRaw

Returns the raw schema for this object.
source§

fn schema_with_ref() -> DefaultSchemaRaw

Returns the schema with a reference (if this is an object). Read more
source§

fn security_scheme() -> Option<SecurityScheme>

Returns the security scheme for this object.
source§

fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

source§

impl<T> OperationModifier for ResponderWrapper<T>
where T: Responder,

source§

fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )

Update the parameters list in the given operation (if needed).
source§

fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )

Update the responses map in the given operation (if needed).
source§

fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

Update the definitions map (if needed).
source§

fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

Update the security map in the given operation (if needed).
source§

fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

Update the security definition map (if needed).
source§

impl<T> Responder for ResponderWrapper<T>
where - T: Responder,

§

type Body = <T as Responder>::Body

source§

fn respond_to( +)

Update the security map in the given operation (if needed).
source§

fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

Update the security definition map (if needed).
source§

impl<T> Responder for ResponderWrapper<T>
where + T: Responder,

§

type Body = <T as Responder>::Body

source§

fn respond_to( self, req: &HttpRequest, ) -> HttpResponse<<ResponderWrapper<T> as Responder>::Body>

Convert self to HttpResponse.
§

fn customize(self) -> CustomizeResponder<Self>
where @@ -18,10 +18,10 @@ T: Send,

§

impl<T> Sync for ResponderWrapper<T>
where T: Sync,

§

impl<T> Unpin for ResponderWrapper<T>
where T: Unpin,

§

impl<T> UnwindSafe for ResponderWrapper<T>
where - T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where - T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where - T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where @@ -32,7 +32,7 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where diff --git a/paperclip/actix/struct.ResponseWrapper.html b/paperclip/actix/struct.ResponseWrapper.html index 34afdf6b9..2d0f097ca 100644 --- a/paperclip/actix/struct.ResponseWrapper.html +++ b/paperclip/actix/struct.ResponseWrapper.html @@ -1,22 +1,22 @@ -ResponseWrapper in paperclip::actix - Rust

Struct paperclip::actix::ResponseWrapper

source ·
pub struct ResponseWrapper<T, H> {
+ResponseWrapper in paperclip::actix - Rust

Struct paperclip::actix::ResponseWrapper

source ·
pub struct ResponseWrapper<T, H> {
     pub responder: T,
     pub operations: H,
-}

Fields§

§responder: T§operations: H

Trait Implementations§

source§

impl<F, T, H> Apiv2Operation for ResponseWrapper<F, H>
where +}

Fields§

§responder: T§operations: H

Trait Implementations§

source§

impl<F, T, H> Apiv2Operation for ResponseWrapper<F, H>
where F: Future<Output = T>, T: OperationModifier + Responder, - H: Apiv2Operation,

source§

fn operation() -> Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>

Returns the definition for this operation.
source§

fn security_definitions() -> BTreeMap<String, SecurityScheme>

Returns a map of security definitions that will be merged globally.
source§

fn definitions() -> BTreeMap<String, DefaultSchemaRaw>

Returns the definitions used by this operation.
source§

fn is_visible() -> bool

source§

impl<F, T, H> Future for ResponseWrapper<F, H>
where + H: Apiv2Operation,

source§

fn operation() -> Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>

Returns the definition for this operation.
source§

fn security_definitions() -> BTreeMap<String, SecurityScheme>

Returns a map of security definitions that will be merged globally.
source§

fn definitions() -> BTreeMap<String, DefaultSchemaRaw>

Returns the definitions used by this operation.
source§

fn is_visible() -> bool

source§

impl<F, T, H> Future for ResponseWrapper<F, H>
where F: Future<Output = T>, T: OperationModifier + Responder, - H: Apiv2Operation,

§

type Output = T

The type of value produced on completion.
source§

fn poll( + H: Apiv2Operation,

§

type Output = T

The type of value produced on completion.
source§

fn poll( self: Pin<&mut ResponseWrapper<F, H>>, ctx: &mut Context<'_>, -) -> Poll<<ResponseWrapper<F, H> as Future>::Output>

Attempt to resolve the future to a final value, registering -the current task for wakeup if the value is not yet available. Read more
source§

impl<T, H> Responder for ResponseWrapper<T, H>
where - T: Responder,

§

type Body = <T as Responder>::Body

source§

fn respond_to( +) -> Poll<<ResponseWrapper<F, H> as Future>::Output>

Attempts to resolve the future to a final value, registering +the current task for wakeup if the value is not yet available. Read more
source§

impl<T, H> Responder for ResponseWrapper<T, H>
where + T: Responder,

§

type Body = <T as Responder>::Body

source§

fn respond_to( self, req: &HttpRequest, ) -> HttpResponse<<ResponseWrapper<T, H> as Responder>::Body>

Convert self to HttpResponse.
§

fn customize(self) -> CustomizeResponder<Self>
where - Self: Sized,

Wraps responder to allow alteration of its response. Read more
source§

impl<'__pin, T, H> Unpin for ResponseWrapper<T, H>
where + Self: Sized,

Wraps responder to allow alteration of its response. Read more
source§

impl<'__pin, T, H> Unpin for ResponseWrapper<T, H>
where __Origin<'__pin, T, H>: Unpin,

Auto Trait Implementations§

§

impl<T, H> Freeze for ResponseWrapper<T, H>
where T: Freeze, H: Freeze,

§

impl<T, H> RefUnwindSafe for ResponseWrapper<T, H>
where @@ -27,10 +27,10 @@ T: Sync, H: Sync,

§

impl<T, H> UnwindSafe for ResponseWrapper<T, H>
where T: UnwindSafe, - H: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where - T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where - T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ H: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FutureExt for T
where T: Future + ?Sized,

§

fn map<U, F>(self, f: F) -> Map<Self, F>
where F: FnOnce(Self::Output) -> U, @@ -85,7 +85,7 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<F> IntoFuture for F
where diff --git a/paperclip/actix/trait.Mountable.html b/paperclip/actix/trait.Mountable.html index 3e483bdf1..a50efa806 100644 --- a/paperclip/actix/trait.Mountable.html +++ b/paperclip/actix/trait.Mountable.html @@ -1,4 +1,4 @@ -Mountable in paperclip::actix - Rust

Trait paperclip::actix::Mountable

source ·
pub trait Mountable {
+Mountable in paperclip::actix - Rust

Trait paperclip::actix::Mountable

source ·
pub trait Mountable {
     // Required methods
     fn path(&self) -> &str;
     fn operations(
diff --git a/paperclip/actix/trait.OpenApiExt.html b/paperclip/actix/trait.OpenApiExt.html
index df0cbd5dc..83caccc1a 100644
--- a/paperclip/actix/trait.OpenApiExt.html
+++ b/paperclip/actix/trait.OpenApiExt.html
@@ -1,4 +1,4 @@
-OpenApiExt in paperclip::actix - Rust

Trait paperclip::actix::OpenApiExt

source ·
pub trait OpenApiExt<T> {
+OpenApiExt in paperclip::actix - Rust

Trait paperclip::actix::OpenApiExt

source ·
pub trait OpenApiExt<T> {
     type Wrapper;
 
     // Required methods
diff --git a/paperclip/actix/trait.OperationModifier.html b/paperclip/actix/trait.OperationModifier.html
index ec039ab64..db7788067 100644
--- a/paperclip/actix/trait.OperationModifier.html
+++ b/paperclip/actix/trait.OperationModifier.html
@@ -1,4 +1,4 @@
-OperationModifier in paperclip::actix - Rust

Trait paperclip::actix::OperationModifier

source ·
pub trait OperationModifier: Sized + Apiv2Schema {
+OperationModifier in paperclip::actix - Rust

Trait paperclip::actix::OperationModifier

source ·
pub trait OperationModifier: Sized + Apiv2Schema {
     // Provided methods
     fn update_parameter(
         op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
@@ -24,7 +24,7 @@
     op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,
 )

Update the security map in the given operation (if needed).

source

fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

Update the security definition map (if needed).

-

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl OperationModifier for bool

source§

impl OperationModifier for char

source§

impl OperationModifier for f32

source§

impl OperationModifier for f64

source§

impl OperationModifier for i8

source§

impl OperationModifier for i16

source§

impl OperationModifier for i32

source§

impl OperationModifier for i64

source§

impl OperationModifier for i128

source§

impl OperationModifier for isize

source§

impl OperationModifier for u8

source§

impl OperationModifier for u16

source§

impl OperationModifier for u32

source§

impl OperationModifier for u64

source§

impl OperationModifier for u128

source§

impl OperationModifier for usize

source§

impl OperationModifier for String

source§

impl OperationModifier for NaiveDateTime

source§

impl OperationModifier for Url

source§

impl OperationModifier for Uuid

source§

impl OperationModifier for Uuid

source§

impl OperationModifier for Response<BoxBody>

source§

impl<'a> OperationModifier for &'a str

source§

impl<'a, T> OperationModifier for &'a [T]
where +

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl OperationModifier for bool

source§

impl OperationModifier for char

source§

impl OperationModifier for f32

source§

impl OperationModifier for f64

source§

impl OperationModifier for i8

source§

impl OperationModifier for i16

source§

impl OperationModifier for i32

source§

impl OperationModifier for i64

source§

impl OperationModifier for i128

source§

impl OperationModifier for isize

source§

impl OperationModifier for u8

source§

impl OperationModifier for u16

source§

impl OperationModifier for u32

source§

impl OperationModifier for u64

source§

impl OperationModifier for u128

source§

impl OperationModifier for usize

source§

impl OperationModifier for String

source§

impl OperationModifier for NaiveDateTime

source§

impl OperationModifier for Url

source§

impl OperationModifier for Uuid

source§

impl OperationModifier for Uuid

source§

impl OperationModifier for Response<BoxBody>

source§

impl<'a> OperationModifier for &'a str

source§

impl<'a, T> OperationModifier for &'a [T]

source§

impl<T> OperationModifier for Option<T>

source§

impl<T> OperationModifier for DateTime<T>
where +)

source§

fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

source§

impl<T> OperationModifier for DateTime<T>
where T: TimeZone,

source§

impl<T, E> OperationModifier for Result<T, E>

Implementors§

Implementors§

source§

impl OperationModifier for NoContent

source§

impl OperationModifier for Bytes

source§

impl OperationModifier for HttpRequest

source§

impl OperationModifier for HttpResponse

source§

impl OperationModifier for Payload

source§

impl<A> OperationModifier for Path<(A,)>
where + A: Apiv2Schema,

source§

impl<A, B> OperationModifier for Path<(A, B)>
where A: Apiv2Schema, - B: Apiv2Schema,

source§

impl<A, B, C> OperationModifier for Path<(A, B, C)>
where + B: Apiv2Schema,

source§

impl<A, B, C> OperationModifier for Path<(A, B, C)>
where A: Apiv2Schema, B: Apiv2Schema, - C: Apiv2Schema,

source§

impl<A, B, C, D> OperationModifier for Path<(A, B, C, D)>
where + C: Apiv2Schema,

source§

impl<A, B, C, D> OperationModifier for Path<(A, B, C, D)>

source§

impl<A, B, C, D, E> OperationModifier for Path<(A, B, C, D, E)>
where + D: Apiv2Schema,

source§

impl<A, B, C, D, E> OperationModifier for Path<(A, B, C, D, E)>

source§

impl<A, B, C, D, E, F> OperationModifier for Path<(A, B, C, D, E, F)>
where + E: Apiv2Schema,

source§

impl<A, B, C, D, E, F> OperationModifier for Path<(A, B, C, D, E, F)>

source§

impl<A, B, C, D, E, F, G> OperationModifier for Path<(A, B, C, D, E, F, G)>
where + F: Apiv2Schema,

source§

impl<A, B, C, D, E, F, G> OperationModifier for Path<(A, B, C, D, E, F, G)>

source§

impl<A, B, C, D, E, F, G, H> OperationModifier for Path<(A, B, C, D, E, F, G, H)>
where + G: Apiv2Schema,

source§

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, @@ -75,7 +75,7 @@ E: Apiv2Schema, F: Apiv2Schema, G: Apiv2Schema, - H: Apiv2Schema,

source§

impl<A, B, C, D, E, F, G, H, I> OperationModifier for Path<(A, B, C, D, E, F, G, H, I)>
where + H: Apiv2Schema,

source§

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, @@ -84,7 +84,7 @@ F: Apiv2Schema, G: Apiv2Schema, H: Apiv2Schema, - I: Apiv2Schema,

source§

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 + I: Apiv2Schema,

source§

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, @@ -94,7 +94,7 @@ G: Apiv2Schema, H: Apiv2Schema, I: Apiv2Schema, - J: Apiv2Schema,

source§

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 + J: Apiv2Schema,

source§

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, @@ -105,7 +105,7 @@ H: Apiv2Schema, I: Apiv2Schema, J: Apiv2Schema, - K: Apiv2Schema,

source§

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 + K: Apiv2Schema,

source§

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, @@ -117,7 +117,7 @@ I: Apiv2Schema, J: Apiv2Schema, K: Apiv2Schema, - L: Apiv2Schema,

source§

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 + L: Apiv2Schema,

source§

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, @@ -130,12 +130,12 @@ J: Apiv2Schema, K: Apiv2Schema, L: Apiv2Schema, - M: Apiv2Schema,

source§

impl<T> OperationModifier for AcceptedJson<T>
where - T: Serialize + Apiv2Schema,

source§

impl<T> OperationModifier for CreatedJson<T>
where - T: Serialize + Apiv2Schema,

source§

impl<T> OperationModifier for ResponderWrapper<T>
where - T: Responder,

source§

impl<T> OperationModifier for Data<T>

source§

impl<T> OperationModifier for Form<T>
where - T: Apiv2Schema,

source§

impl<T> OperationModifier for Json<T>
where - T: Apiv2Schema,

source§

impl<T> OperationModifier for Path<T>
where - T: Apiv2Schema,

source§

impl<T> OperationModifier for Query<T>
where + M: Apiv2Schema,

source§

impl<T> OperationModifier for AcceptedJson<T>
where + T: Serialize + Apiv2Schema,

source§

impl<T> OperationModifier for CreatedJson<T>
where + T: Serialize + Apiv2Schema,

source§

impl<T> OperationModifier for ResponderWrapper<T>
where + T: Responder,

source§

impl<T> OperationModifier for Data<T>

source§

impl<T> OperationModifier for Form<T>
where + T: Apiv2Schema,

source§

impl<T> OperationModifier for Json<T>
where + T: Apiv2Schema,

source§

impl<T> OperationModifier for Path<T>
where + T: Apiv2Schema,

source§

impl<T> OperationModifier for Query<T>
where T: Apiv2Schema,

source§

impl<T> OperationModifier for ReqData<T>
where - T: Clone,

\ No newline at end of file + T: Clone, \ No newline at end of file diff --git a/paperclip/actix/web/fn.block.html b/paperclip/actix/web/fn.block.html index 84c0c71bd..1b47254fb 100644 --- a/paperclip/actix/web/fn.block.html +++ b/paperclip/actix/web/fn.block.html @@ -1,4 +1,4 @@ -block in paperclip::actix::web - Rust

Function paperclip::actix::web::block

pub fn block<F, R>(f: F) -> impl Future<Output = Result<R, BlockingError>>
where +block in paperclip::actix::web - Rust

Function paperclip::actix::web::block

pub fn block<F, R>(f: F) -> impl Future<Output = Result<R, BlockingError>>
where F: FnOnce() -> R + Send + 'static, R: Send + 'static,
Expand description

Executes blocking function on a thread pool, returns future that resolves to result of the function execution.

diff --git a/paperclip/actix/web/fn.delete.html b/paperclip/actix/web/fn.delete.html index dac02d33e..3570e4579 100644 --- a/paperclip/actix/web/fn.delete.html +++ b/paperclip/actix/web/fn.delete.html @@ -1,2 +1,2 @@ -delete in paperclip::actix::web - Rust

Function paperclip::actix::web::delete

source ·
pub fn delete() -> Route
Expand description

Wrapper for actix_web::web::delete.

+delete in paperclip::actix::web - Rust

Function paperclip::actix::web::delete

source ·
pub fn delete() -> Route
Expand description
\ No newline at end of file diff --git a/paperclip/actix/web/fn.get.html b/paperclip/actix/web/fn.get.html index 079bf3c64..3d1e48c5e 100644 --- a/paperclip/actix/web/fn.get.html +++ b/paperclip/actix/web/fn.get.html @@ -1,2 +1,2 @@ -get in paperclip::actix::web - Rust

Function paperclip::actix::web::get

source ·
pub fn get() -> Route
Expand description

Wrapper for actix_web::web::get.

+get in paperclip::actix::web - Rust

Function paperclip::actix::web::get

source ·
pub fn get() -> Route
Expand description

Wrapper for actix_web::web::get.

\ No newline at end of file diff --git a/paperclip/actix/web/fn.head.html b/paperclip/actix/web/fn.head.html index 5208d10ee..86e6a40f7 100644 --- a/paperclip/actix/web/fn.head.html +++ b/paperclip/actix/web/fn.head.html @@ -1,2 +1,2 @@ -head in paperclip::actix::web - Rust

Function paperclip::actix::web::head

source ·
pub fn head() -> Route
Expand description

Wrapper for actix_web::web::head.

+head in paperclip::actix::web - Rust

Function paperclip::actix::web::head

source ·
pub fn head() -> Route
Expand description

Wrapper for actix_web::web::head.

\ No newline at end of file diff --git a/paperclip/actix/web/fn.method.html b/paperclip/actix/web/fn.method.html index d897a04f1..2a2b40fc1 100644 --- a/paperclip/actix/web/fn.method.html +++ b/paperclip/actix/web/fn.method.html @@ -1,2 +1,2 @@ -method in paperclip::actix::web - Rust

Function paperclip::actix::web::method

source ·
pub fn method(method: Method) -> Route
Expand description

Wrapper for actix_web::web::method.

+method in paperclip::actix::web - Rust

Function paperclip::actix::web::method

source ·
pub fn method(method: Method) -> Route
Expand description
\ No newline at end of file diff --git a/paperclip/actix/web/fn.options.html b/paperclip/actix/web/fn.options.html index 1311ff0f4..72eab94db 100644 --- a/paperclip/actix/web/fn.options.html +++ b/paperclip/actix/web/fn.options.html @@ -1,2 +1,2 @@ -options in paperclip::actix::web - Rust

Function paperclip::actix::web::options

source ·
pub fn options() -> Route
Expand description

Wrapper for actix_web::web::options.

+options in paperclip::actix::web - Rust

Function paperclip::actix::web::options

source ·
pub fn options() -> Route
Expand description
\ No newline at end of file diff --git a/paperclip/actix/web/fn.patch.html b/paperclip/actix/web/fn.patch.html index 13bcb7c62..6377ec682 100644 --- a/paperclip/actix/web/fn.patch.html +++ b/paperclip/actix/web/fn.patch.html @@ -1,2 +1,2 @@ -patch in paperclip::actix::web - Rust

Function paperclip::actix::web::patch

source ·
pub fn patch() -> Route
Expand description

Wrapper for actix_web::web::patch.

+patch in paperclip::actix::web - Rust

Function paperclip::actix::web::patch

source ·
pub fn patch() -> Route
Expand description

Wrapper for actix_web::web::patch.

\ No newline at end of file diff --git a/paperclip/actix/web/fn.post.html b/paperclip/actix/web/fn.post.html index 408bc257e..e07f58b35 100644 --- a/paperclip/actix/web/fn.post.html +++ b/paperclip/actix/web/fn.post.html @@ -1,2 +1,2 @@ -post in paperclip::actix::web - Rust

Function paperclip::actix::web::post

source ·
pub fn post() -> Route
Expand description

Wrapper for actix_web::web::post.

+post in paperclip::actix::web - Rust

Function paperclip::actix::web::post

source ·
pub fn post() -> Route
Expand description

Wrapper for actix_web::web::post.

\ No newline at end of file diff --git a/paperclip/actix/web/fn.put.html b/paperclip/actix/web/fn.put.html index 45be75e41..e00713742 100644 --- a/paperclip/actix/web/fn.put.html +++ b/paperclip/actix/web/fn.put.html @@ -1,2 +1,2 @@ -put in paperclip::actix::web - Rust

Function paperclip::actix::web::put

source ·
pub fn put() -> Route
Expand description

Wrapper for actix_web::web::put.

+put in paperclip::actix::web - Rust

Function paperclip::actix::web::put

source ·
pub fn put() -> Route
Expand description

Wrapper for actix_web::web::put.

\ No newline at end of file diff --git a/paperclip/actix/web/fn.resource.html b/paperclip/actix/web/fn.resource.html index a600bc3fe..c976d77f6 100644 --- a/paperclip/actix/web/fn.resource.html +++ b/paperclip/actix/web/fn.resource.html @@ -1,2 +1,2 @@ -resource in paperclip::actix::web - Rust

Function paperclip::actix::web::resource

source ·
pub fn resource(path: &str) -> Resource
Expand description

Wrapper for actix_web::web::resource.

+resource in paperclip::actix::web - Rust

Function paperclip::actix::web::resource

source ·
pub fn resource(path: &str) -> Resource
Expand description
\ No newline at end of file diff --git a/paperclip/actix/web/fn.scope.html b/paperclip/actix/web/fn.scope.html index 86628453c..f75e7ca8f 100644 --- a/paperclip/actix/web/fn.scope.html +++ b/paperclip/actix/web/fn.scope.html @@ -1,2 +1,2 @@ -scope in paperclip::actix::web - Rust

Function paperclip::actix::web::scope

source ·
pub fn scope(path: &str) -> Scope
Expand description

Wrapper for actix_web::web::scope.

+scope in paperclip::actix::web - Rust

Function paperclip::actix::web::scope

source ·
pub fn scope(path: &str) -> Scope
Expand description

Wrapper for actix_web::web::scope.

\ No newline at end of file diff --git a/paperclip/actix/web/fn.service.html b/paperclip/actix/web/fn.service.html index 35d7fa754..3b98339ac 100644 --- a/paperclip/actix/web/fn.service.html +++ b/paperclip/actix/web/fn.service.html @@ -1,4 +1,4 @@ -service in paperclip::actix::web - Rust

Function paperclip::actix::web::service

pub fn service<T>(path: T) -> WebService
where +service in paperclip::actix::web - Rust

Function paperclip::actix::web::service

pub fn service<T>(path: T) -> WebService
where T: IntoPatterns,
Expand description

Creates a raw service for a specific path.

use actix_web::{dev, web, guard, App, Error, HttpResponse};
diff --git a/paperclip/actix/web/fn.to.html b/paperclip/actix/web/fn.to.html
index df09a93c3..8ecb5aeb3 100644
--- a/paperclip/actix/web/fn.to.html
+++ b/paperclip/actix/web/fn.to.html
@@ -1,4 +1,4 @@
-to in paperclip::actix::web - Rust

Function paperclip::actix::web::to

pub fn to<F, Args>(handler: F) -> Route
where +to in paperclip::actix::web - Rust

Function paperclip::actix::web::to

pub fn to<F, Args>(handler: F) -> Route
where F: Handler<Args>, Args: FromRequest + 'static, <F as Handler<Args>>::Output: Responder + 'static,
Expand description

Creates a new any-method route with handler.

diff --git a/paperclip/actix/web/index.html b/paperclip/actix/web/index.html index f254240f1..b3a576753 100644 --- a/paperclip/actix/web/index.html +++ b/paperclip/actix/web/index.html @@ -1,3 +1,3 @@ -paperclip::actix::web - Rust

Module paperclip::actix::web

source ·
Expand description

Proxy module for actix_web::web.

-

Structs§

Functions§

-

Methods from Deref<Target = [u8]>§

source

pub fn as_str(&self) -> &str

🔬This is a nightly-only experimental API. (ascii_char)

Views this slice of ASCII characters as a UTF-8 str.

-
source

pub fn as_bytes(&self) -> &[u8]

🔬This is a nightly-only experimental API. (ascii_char)

Views this slice of ASCII characters as a slice of u8 bytes.

-
1.79.0 · source

pub fn utf8_chunks(&self) -> Utf8Chunks<'_>

Creates an iterator over the contiguous valid UTF-8 ranges of this -slice, and the non-UTF-8 fragments in between.

+

pub fn try_into_mut(self) -> Result<BytesMut, Bytes>

Try to convert self into BytesMut.

+

If self is unique for the entire original buffer, this will succeed +and return a BytesMut with the contents of self without copying. +If self is not unique for the entire original buffer, this will fail +and return self.

§Examples
-

This function formats arbitrary but mostly-UTF-8 bytes into Rust source -code in the form of a C-string literal (c"...").

+
use bytes::{Bytes, BytesMut};
 
-
use std::fmt::Write as _;
-
-pub fn cstr_literal(bytes: &[u8]) -> String {
-    let mut repr = String::new();
-    repr.push_str("c\"");
-    for chunk in bytes.utf8_chunks() {
-        for ch in chunk.valid().chars() {
-            // Escapes \0, \t, \r, \n, \\, \', \", and uses \u{...} for non-printable characters.
-            write!(repr, "{}", ch.escape_debug()).unwrap();
-        }
-        for byte in chunk.invalid() {
-            write!(repr, "\\x{:02X}", byte).unwrap();
-        }
-    }
-    repr.push('"');
-    repr
-}
-
-fn main() {
-    let lit = cstr_literal(b"\xferris the \xf0\x9f\xa6\x80\x07");
-    let expected = stringify!(c"\xFErris the 🦀\u{7}");
-    assert_eq!(lit, expected);
-}
-
1.23.0 · source

pub fn is_ascii(&self) -> bool

Checks if all bytes in this slice are within the ASCII range.

-
source

pub fn as_ascii(&self) -> Option<&[AsciiChar]>

🔬This is a nightly-only experimental API. (ascii_char)

If this slice is_ascii, returns it as a slice of +let bytes = Bytes::from(b"hello".to_vec()); +assert_eq!(bytes.try_into_mut(), Ok(BytesMut::from(&b"hello"[..])));

+

Methods from Deref<Target = [u8]>§

source

pub fn as_str(&self) -> &str

🔬This is a nightly-only experimental API. (ascii_char)

Views this slice of ASCII characters as a UTF-8 str.

+
source

pub fn as_bytes(&self) -> &[u8]

🔬This is a nightly-only experimental API. (ascii_char)

Views this slice of ASCII characters as a slice of u8 bytes.

+
1.23.0 · source

pub fn is_ascii(&self) -> bool

Checks if all bytes in this slice are within the ASCII range.

+
source

pub fn as_ascii(&self) -> Option<&[AsciiChar]>

🔬This is a nightly-only experimental API. (ascii_char)

If this slice is_ascii, returns it as a slice of ASCII characters, otherwise returns None.

-
source

pub unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar]

🔬This is a nightly-only experimental API. (ascii_char)

Converts this slice of bytes into a slice of ASCII characters, +

source

pub unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar]

🔬This is a nightly-only experimental API. (ascii_char)

Converts this slice of bytes into a slice of ASCII characters, without checking whether they’re valid.

§Safety

Every byte in the slice must be in 0..=127, or else this is UB.

-
1.23.0 · source

pub fn eq_ignore_ascii_case(&self, other: &[u8]) -> bool

Checks that two slices are an ASCII case-insensitive match.

+
1.23.0 · source

pub fn eq_ignore_ascii_case(&self, other: &[u8]) -> bool

Checks that two slices are an ASCII case-insensitive match.

Same as to_ascii_lowercase(a) == to_ascii_lowercase(b), but without allocating and copying temporaries.

-
1.60.0 · source

pub fn escape_ascii(&self) -> EscapeAscii<'_>

Returns an iterator that produces an escaped version of this slice, +

1.60.0 · source

pub fn escape_ascii(&self) -> EscapeAscii<'_>

Returns an iterator that produces an escaped version of this slice, treating it as an ASCII string.

§Examples

 let s = b"0\t\r\n'\"\\\x9d";
 let escaped = s.escape_ascii().to_string();
 assert_eq!(escaped, "0\\t\\r\\n\\'\\\"\\\\\\x9d");
-
1.80.0 · source

pub fn trim_ascii_start(&self) -> &[u8]

Returns a byte slice with leading ASCII whitespace bytes removed.

+
1.80.0 · source

pub fn trim_ascii_start(&self) -> &[u8]

Returns a byte slice with leading ASCII whitespace bytes removed.

‘Whitespace’ refers to the definition used by u8::is_ascii_whitespace.

§Examples
assert_eq!(b" \t hello world\n".trim_ascii_start(), b"hello world\n");
 assert_eq!(b"  ".trim_ascii_start(), b"");
 assert_eq!(b"".trim_ascii_start(), b"");
-
1.80.0 · source

pub fn trim_ascii_end(&self) -> &[u8]

Returns a byte slice with trailing ASCII whitespace bytes removed.

+
1.80.0 · source

pub fn trim_ascii_end(&self) -> &[u8]

Returns a byte slice with trailing ASCII whitespace bytes removed.

‘Whitespace’ refers to the definition used by u8::is_ascii_whitespace.

§Examples
assert_eq!(b"\r hello world\n ".trim_ascii_end(), b"\r hello world");
 assert_eq!(b"  ".trim_ascii_end(), b"");
 assert_eq!(b"".trim_ascii_end(), b"");
-
1.80.0 · source

pub fn trim_ascii(&self) -> &[u8]

Returns a byte slice with leading and trailing ASCII whitespace bytes +

1.80.0 · source

pub fn trim_ascii(&self) -> &[u8]

Returns a byte slice with leading and trailing ASCII whitespace bytes removed.

‘Whitespace’ refers to the definition used by u8::is_ascii_whitespace.

@@ -254,69 +235,50 @@
§Examples
assert_eq!(b"\r hello world\n ".trim_ascii(), b"hello world");
 assert_eq!(b"  ".trim_ascii(), b"");
 assert_eq!(b"".trim_ascii(), b"");
-
1.80.0 · source

pub fn as_flattened(&self) -> &[T]

Takes a &[[T; N]], and flattens it to a &[T].

-
§Panics
-

This panics if the length of the resulting slice would overflow a usize.

-

This is only possible when flattening a slice of arrays of zero-sized -types, and thus tends to be irrelevant in practice. If -size_of::<T>() > 0, this will never panic.

+
1.0.0 · source

pub fn len(&self) -> usize

Returns the number of elements in the slice.

§Examples
-
assert_eq!([[1, 2, 3], [4, 5, 6]].as_flattened(), &[1, 2, 3, 4, 5, 6]);
-
-assert_eq!(
-    [[1, 2, 3], [4, 5, 6]].as_flattened(),
-    [[1, 2], [3, 4], [5, 6]].as_flattened(),
-);
-
-let slice_of_empty_arrays: &[[i32; 0]] = &[[], [], [], [], []];
-assert!(slice_of_empty_arrays.as_flattened().is_empty());
-
-let empty_slice_of_arrays: &[[u32; 10]] = &[];
-assert!(empty_slice_of_arrays.as_flattened().is_empty());
-
1.0.0 · source

pub fn len(&self) -> usize

Returns the number of elements in the slice.

-
§Examples
let a = [1, 2, 3];
 assert_eq!(a.len(), 3);
-
1.0.0 · source

pub fn is_empty(&self) -> bool

Returns true if the slice has a length of 0.

-
§Examples
+
1.0.0 · source

pub fn is_empty(&self) -> bool

Returns true if the slice has a length of 0.

+
§Examples
let a = [1, 2, 3];
 assert!(!a.is_empty());
 
 let b: &[i32] = &[];
 assert!(b.is_empty());
-
1.0.0 · source

pub fn first(&self) -> Option<&T>

Returns the first element of the slice, or None if it is empty.

-
§Examples
+
1.0.0 · source

pub fn first(&self) -> Option<&T>

Returns the first element of the slice, or None if it is empty.

+
§Examples
let v = [10, 40, 30];
 assert_eq!(Some(&10), v.first());
 
 let w: &[i32] = &[];
 assert_eq!(None, w.first());
-
1.5.0 · source

pub fn split_first(&self) -> Option<(&T, &[T])>

Returns the first and all the rest of the elements of the slice, or None if it is empty.

-
§Examples
+
1.5.0 · source

pub fn split_first(&self) -> Option<(&T, &[T])>

Returns the first and all the rest of the elements of the slice, or None if it is empty.

+
§Examples
let x = &[0, 1, 2];
 
 if let Some((first, elements)) = x.split_first() {
     assert_eq!(first, &0);
     assert_eq!(elements, &[1, 2]);
 }
-
1.5.0 · source

pub fn split_last(&self) -> Option<(&T, &[T])>

Returns the last and all the rest of the elements of the slice, or None if it is empty.

-
§Examples
+
1.5.0 · source

pub fn split_last(&self) -> Option<(&T, &[T])>

Returns the last and all the rest of the elements of the slice, or None if it is empty.

+
§Examples
let x = &[0, 1, 2];
 
 if let Some((last, elements)) = x.split_last() {
     assert_eq!(last, &2);
     assert_eq!(elements, &[0, 1]);
 }
-
1.0.0 · source

pub fn last(&self) -> Option<&T>

Returns the last element of the slice, or None if it is empty.

-
§Examples
+
1.0.0 · source

pub fn last(&self) -> Option<&T>

Returns the last element of the slice, or None if it is empty.

+
§Examples
let v = [10, 40, 30];
 assert_eq!(Some(&30), v.last());
 
 let w: &[i32] = &[];
 assert_eq!(None, w.last());
-
1.77.0 · source

pub fn first_chunk<const N: usize>(&self) -> Option<&[T; N]>

Return an array reference to the first N items in the slice.

+
1.77.0 · source

pub fn first_chunk<const N: usize>(&self) -> Option<&[T; N]>

Returns an array reference to the first N items in the slice.

If the slice is not at least N in length, this will return None.

-
§Examples
+
§Examples
let u = [10, 40, 30];
 assert_eq!(Some(&[10, 40]), u.first_chunk::<2>());
 
@@ -325,9 +287,9 @@ 
§Exampleslet w: &[i32] = &[]; assert_eq!(Some(&[]), w.first_chunk::<0>());
-
1.77.0 · source

pub fn split_first_chunk<const N: usize>(&self) -> Option<(&[T; N], &[T])>

Return an array reference to the first N items in the slice and the remaining slice.

+
1.77.0 · source

pub fn split_first_chunk<const N: usize>(&self) -> Option<(&[T; N], &[T])>

Returns an array reference to the first N items in the slice and the remaining slice.

If the slice is not at least N in length, this will return None.

-
§Examples
+
§Examples
let x = &[0, 1, 2];
 
 if let Some((first, elements)) = x.split_first_chunk::<2>() {
@@ -336,9 +298,9 @@ 
§Examplesassert_eq!(None, x.split_first_chunk::<4>());
-
1.77.0 · source

pub fn split_last_chunk<const N: usize>(&self) -> Option<(&[T], &[T; N])>

Return an array reference to the last N items in the slice and the remaining slice.

+
1.77.0 · source

pub fn split_last_chunk<const N: usize>(&self) -> Option<(&[T], &[T; N])>

Returns an array reference to the last N items in the slice and the remaining slice.

If the slice is not at least N in length, this will return None.

-
§Examples
+
§Examples
let x = &[0, 1, 2];
 
 if let Some((elements, last)) = x.split_last_chunk::<2>() {
@@ -347,9 +309,9 @@ 
§Examplesassert_eq!(None, x.split_last_chunk::<4>());
-
1.77.0 · source

pub fn last_chunk<const N: usize>(&self) -> Option<&[T; N]>

Return an array reference to the last N items in the slice.

+
1.77.0 · source

pub fn last_chunk<const N: usize>(&self) -> Option<&[T; N]>

Returns an array reference to the last N items in the slice.

If the slice is not at least N in length, this will return None.

-
§Examples
+
§Examples
let u = [10, 40, 30];
 assert_eq!(Some(&[40, 30]), u.last_chunk::<2>());
 
@@ -358,7 +320,7 @@ 
§Exampleslet w: &[i32] = &[]; assert_eq!(Some(&[]), w.last_chunk::<0>());
-
1.0.0 · source

pub fn get<I>(&self, index: I) -> Option<&<I as SliceIndex<[T]>>::Output>
where +

1.0.0 · source

pub fn get<I>(&self, index: I) -> Option<&<I as SliceIndex<[T]>>::Output>
where I: SliceIndex<[T]>,

Returns a reference to an element or subslice depending on the type of index.

    @@ -367,13 +329,13 @@
    §ExamplesIf given a range, returns the subslice corresponding to that range, or None if out of bounds.
-
§Examples
+
§Examples
let v = [10, 40, 30];
 assert_eq!(Some(&40), v.get(1));
 assert_eq!(Some(&[10, 40][..]), v.get(0..2));
 assert_eq!(None, v.get(3));
 assert_eq!(None, v.get(0..4));
-
1.0.0 · source

pub unsafe fn get_unchecked<I>( +

1.0.0 · source

pub unsafe fn get_unchecked<I>( &self, index: I, ) -> &<I as SliceIndex<[T]>>::Output
where @@ -387,21 +349,21 @@
§Safety
to call .get_unchecked(len), even if you immediately convert to a pointer. And it’s UB to call .get_unchecked(..len + 1), .get_unchecked(..=len), or similar.

-
§Examples
+
§Examples
let x = &[1, 2, 4];
 
 unsafe {
     assert_eq!(x.get_unchecked(1), &2);
 }
-

1.0.0 · source

pub fn as_ptr(&self) -> *const T

Returns a raw pointer to the slice’s buffer.

+
1.0.0 · source

pub fn as_ptr(&self) -> *const T

Returns a raw pointer to the slice’s buffer.

The caller must ensure that the slice outlives the pointer this -function returns, or else it will end up pointing to garbage.

+function returns, or else it will end up dangling.

The caller must also ensure that the memory the pointer (non-transitively) points to is never written to (except inside an UnsafeCell) using this pointer or any pointer derived from it. If you need to mutate the contents of the slice, use as_mut_ptr.

Modifying the container referenced by this slice may cause its buffer to be reallocated, which would also make any pointers to it invalid.

-
§Examples
+
§Examples
let x = &[1, 2, 4];
 let x_ptr = x.as_ptr();
 
@@ -410,7 +372,7 @@ 
§Examplesassert_eq!(x.get_unchecked(i), &*x_ptr.add(i)); } }
-
1.48.0 · source

pub fn as_ptr_range(&self) -> Range<*const T>

Returns the two raw pointers spanning the slice.

+
1.48.0 · source

pub fn as_ptr_range(&self) -> Range<*const T>

Returns the two raw pointers spanning the slice.

The returned range is half-open, which means that the end pointer points one past the last element of the slice. This way, an empty slice is represented by two equal pointers, and the difference between @@ -430,9 +392,9 @@

§Examplesassert!(a.as_ptr_range().contains(&x)); assert!(!a.as_ptr_range().contains(&y));
-
1.0.0 · source

pub fn iter(&self) -> Iter<'_, T>

Returns an iterator over the slice.

+
1.0.0 · source

pub fn iter(&self) -> Iter<'_, T>

Returns an iterator over the slice.

The iterator yields all items from start to end.

-
§Examples
+
§Examples
let x = &[1, 2, 4];
 let mut iterator = x.iter();
 
@@ -440,12 +402,12 @@ 
§Examplesassert_eq!(iterator.next(), Some(&2)); assert_eq!(iterator.next(), Some(&4)); assert_eq!(iterator.next(), None);
-
1.0.0 · source

pub fn windows(&self, size: usize) -> Windows<'_, T>

Returns an iterator over all contiguous windows of length +

1.0.0 · source

pub fn windows(&self, size: usize) -> Windows<'_, T>

Returns an iterator over all contiguous windows of length size. The windows overlap. If the slice is shorter than size, the iterator returns no values.

-
§Panics
+
§Panics

Panics if size is 0.

-
§Examples
+
§Examples
let slice = ['l', 'o', 'r', 'e', 'm'];
 let mut iter = slice.windows(3);
 assert_eq!(iter.next().unwrap(), &['l', 'o', 'r']);
@@ -471,23 +433,23 @@ 
§Examples&w[0], &w[2]); } assert_eq!(array, ['s', 't', ' ', '2', '0', '1', '5', 'u', 'R']);
-
1.0.0 · source

pub fn chunks(&self, chunk_size: usize) -> Chunks<'_, T>

Returns an iterator over chunk_size elements of the slice at a time, starting at the +

1.0.0 · source

pub fn chunks(&self, chunk_size: usize) -> Chunks<'_, T>

Returns an iterator over chunk_size elements of the slice at a time, starting at the beginning of the slice.

The chunks are slices and do not overlap. If chunk_size does not divide the length of the slice, then the last chunk will not have length chunk_size.

See chunks_exact for a variant of this iterator that returns chunks of always exactly chunk_size elements, and rchunks for the same iterator but starting at the end of the slice.

-
§Panics
+
§Panics

Panics if chunk_size is 0.

-
§Examples
+
§Examples
let slice = ['l', 'o', 'r', 'e', 'm'];
 let mut iter = slice.chunks(2);
 assert_eq!(iter.next().unwrap(), &['l', 'o']);
 assert_eq!(iter.next().unwrap(), &['r', 'e']);
 assert_eq!(iter.next().unwrap(), &['m']);
 assert!(iter.next().is_none());
-
1.31.0 · source

pub fn chunks_exact(&self, chunk_size: usize) -> ChunksExact<'_, T>

Returns an iterator over chunk_size elements of the slice at a time, starting at the +

1.31.0 · source

pub fn chunks_exact(&self, chunk_size: usize) -> ChunksExact<'_, T>

Returns an iterator over chunk_size elements of the slice at a time, starting at the beginning of the slice.

The chunks are slices and do not overlap. If chunk_size does not divide the length of the slice, then the last up to chunk_size-1 elements will be omitted and can be retrieved @@ -496,16 +458,16 @@

§Exampleschunks.

See chunks for a variant of this iterator that also returns the remainder as a smaller chunk, and rchunks_exact for the same iterator but starting at the end of the slice.

-
§Panics
+
§Panics

Panics if chunk_size is 0.

-
§Examples
+
§Examples
let slice = ['l', 'o', 'r', 'e', 'm'];
 let mut iter = slice.chunks_exact(2);
 assert_eq!(iter.next().unwrap(), &['l', 'o']);
 assert_eq!(iter.next().unwrap(), &['r', 'e']);
 assert!(iter.next().is_none());
 assert_eq!(iter.remainder(), &['m']);
-
source

pub unsafe fn as_chunks_unchecked<const N: usize>(&self) -> &[[T; N]]

🔬This is a nightly-only experimental API. (slice_as_chunks)

Splits the slice into a slice of N-element arrays, +

source

pub unsafe fn as_chunks_unchecked<const N: usize>(&self) -> &[[T; N]]

🔬This is a nightly-only experimental API. (slice_as_chunks)

Splits the slice into a slice of N-element arrays, assuming that there’s no remainder.

§Safety

This may only be called when

@@ -513,7 +475,7 @@
§Safety
  • The slice splits exactly into N-element chunks (aka self.len() % N == 0).
  • N != 0.
  • -
    §Examples
    +
    §Examples
    #![feature(slice_as_chunks)]
     let slice: &[char] = &['l', 'o', 'r', 'e', 'm', '!'];
     let chunks: &[[char; 1]] =
    @@ -528,13 +490,13 @@ 
    §Examples// These would be unsound: // let chunks: &[[_; 5]] = slice.as_chunks_unchecked() // The slice length is not a multiple of 5 // let chunks: &[[_; 0]] = slice.as_chunks_unchecked() // Zero-length chunks are never allowed
    -
    source

    pub fn as_chunks<const N: usize>(&self) -> (&[[T; N]], &[T])

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, +

    source

    pub fn as_chunks<const N: usize>(&self) -> (&[[T; N]], &[T])

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, starting at the beginning of the slice, and a remainder slice with length strictly less than N.

    -
    §Panics
    +
    §Panics

    Panics if N is 0. This check will most probably get changed to a compile time error before this method gets stabilized.

    -
    §Examples
    +
    §Examples
    #![feature(slice_as_chunks)]
     let slice = ['l', 'o', 'r', 'e', 'm'];
     let (chunks, remainder) = slice.as_chunks();
    @@ -549,28 +511,28 @@ 
    §Examplespanic!("slice didn't have even length") }; assert_eq!(chunks, &[['R', 'u'], ['s', 't']]);
    -
    source

    pub fn as_rchunks<const N: usize>(&self) -> (&[T], &[[T; N]])

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, +

    source

    pub fn as_rchunks<const N: usize>(&self) -> (&[T], &[[T; N]])

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, starting at the end of the slice, and a remainder slice with length strictly less than N.

    -
    §Panics
    +
    §Panics

    Panics if N is 0. This check will most probably get changed to a compile time error before this method gets stabilized.

    -
    §Examples
    +
    §Examples
    #![feature(slice_as_chunks)]
     let slice = ['l', 'o', 'r', 'e', 'm'];
     let (remainder, chunks) = slice.as_rchunks();
     assert_eq!(remainder, &['l']);
     assert_eq!(chunks, &[['o', 'r'], ['e', 'm']]);
    -
    source

    pub fn array_chunks<const N: usize>(&self) -> ArrayChunks<'_, T, N>

    🔬This is a nightly-only experimental API. (array_chunks)

    Returns an iterator over N elements of the slice at a time, starting at the +

    source

    pub fn array_chunks<const N: usize>(&self) -> ArrayChunks<'_, T, N>

    🔬This is a nightly-only experimental API. (array_chunks)

    Returns an iterator over N elements of the slice at a time, starting at the beginning of the slice.

    The chunks are array references and do not overlap. If N does not divide the length of the slice, then the last up to N-1 elements will be omitted and can be retrieved from the remainder function of the iterator.

    This method is the const generic equivalent of chunks_exact.

    -
    §Panics
    +
    §Panics

    Panics if N is 0. This check will most probably get changed to a compile time error before this method gets stabilized.

    -
    §Examples
    +
    §Examples
    #![feature(array_chunks)]
     let slice = ['l', 'o', 'r', 'e', 'm'];
     let mut iter = slice.array_chunks();
    @@ -578,14 +540,14 @@ 
    §Examplesassert_eq!(iter.next().unwrap(), &['r', 'e']); assert!(iter.next().is_none()); assert_eq!(iter.remainder(), &['m']);
    -
    source

    pub fn array_windows<const N: usize>(&self) -> ArrayWindows<'_, T, N>

    🔬This is a nightly-only experimental API. (array_windows)

    Returns an iterator over overlapping windows of N elements of a slice, +

    source

    pub fn array_windows<const N: usize>(&self) -> ArrayWindows<'_, T, N>

    🔬This is a nightly-only experimental API. (array_windows)

    Returns an iterator over overlapping windows of N elements of a slice, starting at the beginning of the slice.

    This is the const generic equivalent of windows.

    If N is greater than the size of the slice, it will return no windows.

    -
    §Panics
    +
    §Panics

    Panics if N is 0. This check will most probably get changed to a compile time error before this method gets stabilized.

    -
    §Examples
    +
    §Examples
    #![feature(array_windows)]
     let slice = [0, 1, 2, 3];
     let mut iter = slice.array_windows();
    @@ -593,23 +555,23 @@ 
    §Examplesassert_eq!(iter.next().unwrap(), &[1, 2]); assert_eq!(iter.next().unwrap(), &[2, 3]); assert!(iter.next().is_none());
    -
    1.31.0 · source

    pub fn rchunks(&self, chunk_size: usize) -> RChunks<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the end +

    1.31.0 · source

    pub fn rchunks(&self, chunk_size: usize) -> RChunks<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the end of the slice.

    The chunks are slices and do not overlap. If chunk_size does not divide the length of the slice, then the last chunk will not have length chunk_size.

    See rchunks_exact for a variant of this iterator that returns chunks of always exactly chunk_size elements, and chunks for the same iterator but starting at the beginning of the slice.

    -
    §Panics
    +
    §Panics

    Panics if chunk_size is 0.

    -
    §Examples
    +
    §Examples
    let slice = ['l', 'o', 'r', 'e', 'm'];
     let mut iter = slice.rchunks(2);
     assert_eq!(iter.next().unwrap(), &['e', 'm']);
     assert_eq!(iter.next().unwrap(), &['o', 'r']);
     assert_eq!(iter.next().unwrap(), &['l']);
     assert!(iter.next().is_none());
    -
    1.31.0 · source

    pub fn rchunks_exact(&self, chunk_size: usize) -> RChunksExact<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the +

    1.31.0 · source

    pub fn rchunks_exact(&self, chunk_size: usize) -> RChunksExact<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the end of the slice.

    The chunks are slices and do not overlap. If chunk_size does not divide the length of the slice, then the last up to chunk_size-1 elements will be omitted and can be retrieved @@ -619,22 +581,22 @@

    §ExamplesSee rchunks for a variant of this iterator that also returns the remainder as a smaller chunk, and chunks_exact for the same iterator but starting at the beginning of the slice.

    -
    §Panics
    +
    §Panics

    Panics if chunk_size is 0.

    -
    §Examples
    +
    §Examples
    let slice = ['l', 'o', 'r', 'e', 'm'];
     let mut iter = slice.rchunks_exact(2);
     assert_eq!(iter.next().unwrap(), &['e', 'm']);
     assert_eq!(iter.next().unwrap(), &['o', 'r']);
     assert!(iter.next().is_none());
     assert_eq!(iter.remainder(), &['l']);
    -
    1.77.0 · source

    pub fn chunk_by<F>(&self, pred: F) -> ChunkBy<'_, T, F>
    where +

    1.77.0 · source

    pub fn chunk_by<F>(&self, pred: F) -> ChunkBy<'_, T, F>
    where F: FnMut(&T, &T) -> bool,

    Returns an iterator over the slice producing non-overlapping runs of elements using the predicate to separate them.

    The predicate is called for every pair of consecutive elements, meaning that it is called on slice[0] and slice[1], followed by slice[1] and slice[2], and so on.

    -
    §Examples
    +
    §Examples
    let slice = &[1, 1, 1, 3, 3, 2, 2, 2];
     
     let mut iter = slice.chunk_by(|a, b| a == b);
    @@ -653,14 +615,14 @@ 
    §Examplesassert_eq!(iter.next(), Some(&[2, 3][..])); assert_eq!(iter.next(), Some(&[2, 3, 4][..])); assert_eq!(iter.next(), None);
    -
    1.0.0 · source

    pub fn split_at(&self, mid: usize) -> (&[T], &[T])

    Divides one slice into two at an index.

    +
    1.0.0 · source

    pub fn split_at(&self, mid: usize) -> (&[T], &[T])

    Divides one slice into two at an index.

    The first will contain all indices from [0, mid) (excluding the index mid itself) and the second will contain all indices from [mid, len) (excluding the index len itself).

    -
    §Panics
    +
    §Panics

    Panics if mid > len. For a non-panicking alternative see split_at_checked.

    -
    §Examples
    +
    §Examples
    let v = [1, 2, 3, 4, 5, 6];
     
     {
    @@ -680,7 +642,7 @@ 
    §Examplesassert_eq!(left, [1, 2, 3, 4, 5, 6]); assert_eq!(right, []); }
    -
    1.79.0 · source

    pub unsafe fn split_at_unchecked(&self, mid: usize) -> (&[T], &[T])

    Divides one slice into two at an index, without doing bounds checking.

    +
    1.79.0 · source

    pub unsafe fn split_at_unchecked(&self, mid: usize) -> (&[T], &[T])

    Divides one slice into two at an index, without doing bounds checking.

    The first will contain all indices from [0, mid) (excluding the index mid itself) and the second will contain all indices from [mid, len) (excluding the index len itself).

    @@ -689,7 +651,7 @@
    §Safety

    Calling this method with an out-of-bounds index is undefined behavior even if the resulting reference is not used. The caller has to ensure that 0 <= mid <= self.len().

    -
    §Examples
    +
    §Examples
    let v = [1, 2, 3, 4, 5, 6];
     
     unsafe {
    @@ -709,14 +671,14 @@ 
    §Examplesassert_eq!(left, [1, 2, 3, 4, 5, 6]); assert_eq!(right, []); }
    -
    1.80.0 · source

    pub fn split_at_checked(&self, mid: usize) -> Option<(&[T], &[T])>

    Divides one slice into two at an index, returning None if the slice is +

    1.80.0 · source

    pub fn split_at_checked(&self, mid: usize) -> Option<(&[T], &[T])>

    Divides one slice into two at an index, returning None if the slice is too short.

    If mid ≤ len returns a pair of slices where the first will contain all indices from [0, mid) (excluding the index mid itself) and the second will contain all indices from [mid, len) (excluding the index len itself).

    Otherwise, if mid > len, returns None.

    -
    §Examples
    +
    §Examples
    let v = [1, -2, 3, -4, 5, -6];
     
     {
    @@ -738,10 +700,10 @@ 
    §Examplesassert_eq!(None, v.split_at_checked(7));
    -
    1.0.0 · source

    pub fn split<F>(&self, pred: F) -> Split<'_, T, F>
    where +

    1.0.0 · source

    pub fn split<F>(&self, pred: F) -> Split<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over subslices separated by elements that match pred. The matched element is not contained in the subslices.

    -
    §Examples
    +
    §Examples
    let slice = [10, 40, 33, 20];
     let mut iter = slice.split(|num| num % 3 == 0);
     
    @@ -769,11 +731,11 @@ 
    §Examplesassert_eq!(iter.next().unwrap(), &[]); assert_eq!(iter.next().unwrap(), &[20]); assert!(iter.next().is_none());
    -
    1.51.0 · source

    pub fn split_inclusive<F>(&self, pred: F) -> SplitInclusive<'_, T, F>
    where +

    1.51.0 · source

    pub fn split_inclusive<F>(&self, pred: F) -> SplitInclusive<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over subslices separated by elements that match pred. The matched element is contained in the end of the previous subslice as a terminator.

    -
    §Examples
    +
    §Examples
    let slice = [10, 40, 33, 20];
     let mut iter = slice.split_inclusive(|num| num % 3 == 0);
     
    @@ -790,11 +752,11 @@ 
    §Examplesassert_eq!(iter.next().unwrap(), &[3]); assert_eq!(iter.next().unwrap(), &[10, 40, 33]); assert!(iter.next().is_none());
    -
    1.27.0 · source

    pub fn rsplit<F>(&self, pred: F) -> RSplit<'_, T, F>
    where +

    1.27.0 · source

    pub fn rsplit<F>(&self, pred: F) -> RSplit<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over subslices separated by elements that match pred, starting at the end of the slice and working backwards. The matched element is not contained in the subslices.

    -
    §Examples
    +
    §Examples
    let slice = [11, 22, 33, 0, 44, 55];
     let mut iter = slice.rsplit(|num| *num == 0);
     
    @@ -811,13 +773,13 @@ 
    §Examplesassert_eq!(it.next().unwrap(), &[1, 1]); assert_eq!(it.next().unwrap(), &[]); assert_eq!(it.next(), None);
    -
    1.0.0 · source

    pub fn splitn<F>(&self, n: usize, pred: F) -> SplitN<'_, T, F>
    where +

    1.0.0 · source

    pub fn splitn<F>(&self, n: usize, pred: F) -> SplitN<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over subslices separated by elements that match pred, limited to returning at most n items. The matched element is not contained in the subslices.

    The last element returned, if any, will contain the remainder of the slice.

    -
    §Examples
    +
    §Examples

    Print the slice split once by numbers divisible by 3 (i.e., [10, 40], [20, 60, 50]):

    @@ -826,14 +788,14 @@
    §Examplesfor group in v.splitn(2, |num| *num % 3 == 0) { println!("{group:?}"); }
    -
    1.0.0 · source

    pub fn rsplitn<F>(&self, n: usize, pred: F) -> RSplitN<'_, T, F>
    where +

    1.0.0 · source

    pub fn rsplitn<F>(&self, n: usize, pred: F) -> RSplitN<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over subslices separated by elements that match pred limited to returning at most n items. This starts at the end of the slice and works backwards. The matched element is not contained in the subslices.

    The last element returned, if any, will contain the remainder of the slice.

    -
    §Examples
    +
    §Examples

    Print the slice split once, starting from the end, by numbers divisible by 3 (i.e., [50], [10, 40, 30, 20]):

    @@ -842,13 +804,13 @@
    §Examplesfor group in v.rsplitn(2, |num| *num % 3 == 0) { println!("{group:?}"); }
    -
    source

    pub fn split_once<F>(&self, pred: F) -> Option<(&[T], &[T])>
    where +

    source

    pub fn split_once<F>(&self, pred: F) -> Option<(&[T], &[T])>
    where F: FnMut(&T) -> bool,

    🔬This is a nightly-only experimental API. (slice_split_once)

    Splits the slice on the first element that matches the specified predicate.

    If any matching elements are present in the slice, returns the prefix before the match and suffix after. The matching element itself is not included. If no elements match, returns None.

    -
    §Examples
    +
    §Examples
    #![feature(slice_split_once)]
     let s = [1, 2, 3, 2, 4];
     assert_eq!(s.split_once(|&x| x == 2), Some((
    @@ -856,13 +818,13 @@ 
    §Examples&[3, 2, 4][..] ))); assert_eq!(s.split_once(|&x| x == 0), None);
    -
    source

    pub fn rsplit_once<F>(&self, pred: F) -> Option<(&[T], &[T])>
    where +

    source

    pub fn rsplit_once<F>(&self, pred: F) -> Option<(&[T], &[T])>
    where F: FnMut(&T) -> bool,

    🔬This is a nightly-only experimental API. (slice_split_once)

    Splits the slice on the last element that matches the specified predicate.

    If any matching elements are present in the slice, returns the prefix before the match and suffix after. The matching element itself is not included. If no elements match, returns None.

    -
    §Examples
    +
    §Examples
    #![feature(slice_split_once)]
     let s = [1, 2, 3, 2, 4];
     assert_eq!(s.rsplit_once(|&x| x == 2), Some((
    @@ -870,11 +832,11 @@ 
    §Examples&[4][..] ))); assert_eq!(s.rsplit_once(|&x| x == 0), None);
    -
    1.0.0 · source

    pub fn contains(&self, x: &T) -> bool
    where +

    1.0.0 · source

    pub fn contains(&self, x: &T) -> bool
    where T: PartialEq,

    Returns true if the slice contains an element with the given value.

    This operation is O(n).

    Note that if you have a sorted slice, binary_search may be faster.

    -
    §Examples
    +
    §Examples
    let v = [10, 40, 30];
     assert!(v.contains(&30));
     assert!(!v.contains(&50));
    @@ -885,9 +847,9 @@
    §Examples
    let v = [String::from("hello"), String::from("world")]; // slice of `String`
     assert!(v.iter().any(|e| e == "hello")); // search with `&str`
     assert!(!v.iter().any(|e| e == "hi"));
    -
    1.0.0 · source

    pub fn starts_with(&self, needle: &[T]) -> bool
    where +

    1.0.0 · source

    pub fn starts_with(&self, needle: &[T]) -> bool
    where T: PartialEq,

    Returns true if needle is a prefix of the slice or equal to the slice.

    -
    §Examples
    +
    §Examples
    let v = [10, 40, 30];
     assert!(v.starts_with(&[10]));
     assert!(v.starts_with(&[10, 40]));
    @@ -900,9 +862,9 @@ 
    §Examplesassert!(v.starts_with(&[])); let v: &[u8] = &[]; assert!(v.starts_with(&[]));
    -
    1.0.0 · source

    pub fn ends_with(&self, needle: &[T]) -> bool
    where +

    1.0.0 · source

    pub fn ends_with(&self, needle: &[T]) -> bool
    where T: PartialEq,

    Returns true if needle is a suffix of the slice or equal to the slice.

    -
    §Examples
    +
    §Examples
    let v = [10, 40, 30];
     assert!(v.ends_with(&[30]));
     assert!(v.ends_with(&[40, 30]));
    @@ -915,14 +877,14 @@ 
    §Examplesassert!(v.ends_with(&[])); let v: &[u8] = &[]; assert!(v.ends_with(&[]));
    -
    1.51.0 · source

    pub fn strip_prefix<P>(&self, prefix: &P) -> Option<&[T]>
    where +

    1.51.0 · source

    pub fn strip_prefix<P>(&self, prefix: &P) -> Option<&[T]>
    where P: SlicePattern<Item = T> + ?Sized, T: PartialEq,

    Returns a subslice with the prefix removed.

    If the slice starts with prefix, returns the subslice after the prefix, wrapped in Some. If prefix is empty, simply returns the original slice. If prefix is equal to the original slice, returns an empty slice.

    If the slice does not start with prefix, returns None.

    -
    §Examples
    +
    §Examples
    let v = &[10, 40, 30];
     assert_eq!(v.strip_prefix(&[10]), Some(&[40, 30][..]));
     assert_eq!(v.strip_prefix(&[10, 40]), Some(&[30][..]));
    @@ -933,21 +895,21 @@ 
    §Exampleslet prefix : &str = "he"; assert_eq!(b"hello".strip_prefix(prefix.as_bytes()), Some(b"llo".as_ref()));
    -
    1.51.0 · source

    pub fn strip_suffix<P>(&self, suffix: &P) -> Option<&[T]>
    where +

    1.51.0 · source

    pub fn strip_suffix<P>(&self, suffix: &P) -> Option<&[T]>
    where P: SlicePattern<Item = T> + ?Sized, T: PartialEq,

    Returns a subslice with the suffix removed.

    If the slice ends with suffix, returns the subslice before the suffix, wrapped in Some. If suffix is empty, simply returns the original slice. If suffix is equal to the original slice, returns an empty slice.

    If the slice does not end with suffix, returns None.

    -
    §Examples
    +
    §Examples
    let v = &[10, 40, 30];
     assert_eq!(v.strip_suffix(&[30]), Some(&[10, 40][..]));
     assert_eq!(v.strip_suffix(&[40, 30]), Some(&[10][..]));
     assert_eq!(v.strip_suffix(&[10, 40, 30]), Some(&[][..]));
     assert_eq!(v.strip_suffix(&[50]), None);
     assert_eq!(v.strip_suffix(&[50, 30]), None);
    -

    Binary searches this slice for a given element. If the slice is not sorted, the returned result is unspecified and meaningless.

    @@ -959,7 +921,7 @@
    §Examples

    See also binary_search_by, binary_search_by_key, and partition_point.

    -
    §Examples
    +
    §Examples

    Looks up a series of four elements. The first is found, with a uniquely determined position; the second and third are not found; the fourth could match any position in [1, 4].

    @@ -1002,7 +964,7 @@
    §Exampless.insert(idx, num); assert_eq!(s, [0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 42, 55]);
    -
    1.0.0 · source

    pub fn binary_search_by<'a, F>(&'a self, f: F) -> Result<usize, usize>
    where +

    1.0.0 · source

    pub fn binary_search_by<'a, F>(&'a self, f: F) -> Result<usize, usize>
    where F: FnMut(&'a T) -> Ordering,

    Binary searches this slice with a comparator function.

    The comparator function should return an order code that indicates whether its argument is Less, Equal or Greater the desired @@ -1018,7 +980,7 @@

    §Examples

    See also binary_search, binary_search_by_key, and partition_point.

    -
    §Examples
    +
    §Examples

    Looks up a series of four elements. The first is found, with a uniquely determined position; the second and third are not found; the fourth could match any position in [1, 4].

    @@ -1034,7 +996,7 @@
    §Exampleslet seek = 1; let r = s.binary_search_by(|probe| probe.cmp(&seek)); assert!(match r { Ok(1..=4) => true, _ => false, });
    -
    1.10.0 · source

    pub fn binary_search_by_key<'a, B, F>( +

    1.10.0 · source

    pub fn binary_search_by_key<'a, B, F>( &'a self, b: &B, f: F, @@ -1053,7 +1015,7 @@

    §Examples

    See also binary_search, binary_search_by, and partition_point.

    -
    §Examples
    +
    §Examples

    Looks up a series of four elements in a slice of pairs sorted by their second elements. The first is found, with a uniquely determined position; the second and third are not found; the @@ -1068,7 +1030,7 @@

    §Examplesassert_eq!(s.binary_search_by_key(&100, |&(a, b)| b), Err(13)); let r = s.binary_search_by_key(&1, |&(a, b)| b); assert!(match r { Ok(1..=4) => true, _ => false, }); -
    1.30.0 · source

    pub unsafe fn align_to<U>(&self) -> (&[T], &[U], &[T])

    Transmute the slice to a slice of another type, ensuring alignment of the types is +

    1.30.0 · source

    pub unsafe fn align_to<U>(&self) -> (&[T], &[U], &[T])

    Transmutes the slice to a slice of another type, ensuring alignment of the types is maintained.

    This method splits the slice into three distinct slices: prefix, correctly aligned middle slice of a new type, and the suffix slice. The middle part will be as big as possible under @@ -1078,7 +1040,7 @@

    §Examples§Safety

    This method is essentially a transmute with respect to the elements in the returned middle slice, so all the usual caveats pertaining to transmute::<T, U> also apply here.

    -
    §Examples
    +
    §Examples

    Basic usage:

    unsafe {
    @@ -1088,22 +1050,13 @@ 
    §Examples}
    -
    source

    pub fn as_simd<const LANES: usize>(&self) -> (&[T], &[Simd<T, LANES>], &[T])
    where +

    source

    pub fn as_simd<const LANES: usize>(&self) -> (&[T], &[Simd<T, LANES>], &[T])
    where Simd<T, LANES>: AsRef<[T; LANES]>, T: SimdElement, - LaneCount<LANES>: SupportedLaneCount,

    🔬This is a nightly-only experimental API. (portable_simd)

    Split a slice into a prefix, a middle of aligned SIMD types, and a suffix.

    -

    This is a safe wrapper around slice::align_to, so has the same weak -postconditions as that method. You’re only assured that -self.len() == prefix.len() + middle.len() * LANES + suffix.len().

    -

    Notably, all of the following are possible:

    -
      -
    • prefix.len() >= LANES.
    • -
    • middle.is_empty() despite self.len() >= 3 * LANES.
    • -
    • suffix.len() >= LANES.
    • -
    -

    That said, this is a safe method, so if you’re only writing safe code, -then this can at most cause incorrect logic, not unsoundness.

    -
    §Panics
    + LaneCount<LANES>: SupportedLaneCount,
    🔬This is a nightly-only experimental API. (portable_simd)

    Splits a slice into a prefix, a middle of aligned SIMD types, and a suffix.

    +

    This is a safe wrapper around slice::align_to, so inherits the same +guarantees as that method.

    +
    §Panics

    This will panic if the size of the SIMD type is different from LANES times that of the scalar.

    At the time of writing, the trait restrictions on Simd<T, LANES> keeps @@ -1111,7 +1064,7 @@

    §Panics
    supported. It’s possible that, in the future, those restrictions might be lifted in a way that would make it possible to see panics from this method for something like LANES == 3.

    -
    §Examples
    +
    §Examples
    #![feature(portable_simd)]
     use core::simd::prelude::*;
     
    @@ -1138,30 +1091,27 @@ 
    §Exampleslet numbers: Vec<f32> = (1..101).map(|x| x as _).collect(); assert_eq!(basic_simd_sum(&numbers[1..99]), 4949.0);
    -
    source

    pub fn is_sorted(&self) -> bool
    where - T: PartialOrd,

    🔬This is a nightly-only experimental API. (is_sorted)

    Checks if the elements of this slice are sorted.

    +
    1.82.0 · source

    pub fn is_sorted(&self) -> bool
    where + T: PartialOrd,

    Checks if the elements of this slice are sorted.

    That is, for each element a and its following element b, a <= b must hold. If the slice yields exactly zero or one element, true is returned.

    Note that if Self::Item is only PartialOrd, but not Ord, the above definition implies that this function returns false if any two consecutive items are not comparable.

    -
    §Examples
    -
    #![feature(is_sorted)]
    -let empty: [i32; 0] = [];
    +
    §Examples
    +
    let empty: [i32; 0] = [];
     
     assert!([1, 2, 2, 9].is_sorted());
     assert!(![1, 3, 2, 4].is_sorted());
     assert!([0].is_sorted());
     assert!(empty.is_sorted());
     assert!(![0.0, 1.0, f32::NAN].is_sorted());
    -
    source

    pub fn is_sorted_by<'a, F>(&'a self, compare: F) -> bool
    where - F: FnMut(&'a T, &'a T) -> bool,

    🔬This is a nightly-only experimental API. (is_sorted)

    Checks if the elements of this slice are sorted using the given comparator function.

    +
    1.82.0 · source

    pub fn is_sorted_by<'a, F>(&'a self, compare: F) -> bool
    where + F: FnMut(&'a T, &'a T) -> bool,

    Checks if the elements of this slice are sorted using the given comparator function.

    Instead of using PartialOrd::partial_cmp, this function uses the given compare function to determine whether two elements are to be considered in sorted order.

    -
    §Examples
    -
    #![feature(is_sorted)]
    -
    -assert!([1, 2, 2, 9].is_sorted_by(|a, b| a <= b));
    +
    §Examples
    +
    assert!([1, 2, 2, 9].is_sorted_by(|a, b| a <= b));
     assert!(![1, 2, 2, 9].is_sorted_by(|a, b| a < b));
     
     assert!([0].is_sorted_by(|a, b| true));
    @@ -1170,18 +1120,16 @@ 
    §Exampleslet empty: [i32; 0] = []; assert!(empty.is_sorted_by(|a, b| false)); assert!(empty.is_sorted_by(|a, b| true));
    -
    source

    pub fn is_sorted_by_key<'a, F, K>(&'a self, f: F) -> bool
    where +

    1.82.0 · source

    pub fn is_sorted_by_key<'a, F, K>(&'a self, f: F) -> bool
    where F: FnMut(&'a T) -> K, - K: PartialOrd,

    🔬This is a nightly-only experimental API. (is_sorted)

    Checks if the elements of this slice are sorted using the given key extraction function.

    + K: PartialOrd,

    Checks if the elements of this slice are sorted using the given key extraction function.

    Instead of comparing the slice’s elements directly, this function compares the keys of the elements, as determined by f. Apart from that, it’s equivalent to is_sorted; see its documentation for more information.

    -
    §Examples
    -
    #![feature(is_sorted)]
    -
    -assert!(["c", "bb", "aaa"].is_sorted_by_key(|s| s.len()));
    +
    §Examples
    +
    assert!(["c", "bb", "aaa"].is_sorted_by_key(|s| s.len()));
     assert!(![-2i32, -1, 0, 3].is_sorted_by_key(|n| n.abs()));
    -
    1.52.0 · source

    pub fn partition_point<P>(&self, pred: P) -> usize
    where +

    1.52.0 · source

    pub fn partition_point<P>(&self, pred: P) -> usize
    where P: FnMut(&T) -> bool,

    Returns the index of the partition point according to the given predicate (the index of the first element of the second partition).

    The slice is assumed to be partitioned according to the given predicate. @@ -1192,7 +1140,7 @@

    §ExamplesIf this slice is not partitioned, the returned result is unspecified and meaningless, as this method performs a kind of binary search.

    See also binary_search, binary_search_by, and binary_search_by_key.

    -
    §Examples
    +
    §Examples
    let v = [1, 2, 3, 3, 5, 6, 7];
     let i = v.partition_point(|&x| x < 5);
     
    @@ -1214,26 +1162,122 @@ 
    §Exampleslet idx = s.partition_point(|&x| x <= num); s.insert(idx, num); assert_eq!(s, [0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 42, 55]);
    -
    1.23.0 · source

    pub fn to_ascii_uppercase(&self) -> Vec<u8>

    Returns a vector containing a copy of this slice where each byte -is mapped to its ASCII upper case equivalent.

    -

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, -but non-ASCII letters are unchanged.

    -

    To uppercase the value in-place, use make_ascii_uppercase.

    -
    1.23.0 · source

    pub fn to_ascii_lowercase(&self) -> Vec<u8>

    Returns a vector containing a copy of this slice where each byte -is mapped to its ASCII lower case equivalent.

    -

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, -but non-ASCII letters are unchanged.

    -

    To lowercase the value in-place, use make_ascii_lowercase.

    -
    1.0.0 · source

    pub fn to_vec(&self) -> Vec<T>
    where - T: Clone,

    Copies self into a new Vec.

    +
    source

    pub fn elem_offset(&self, element: &T) -> Option<usize>

    🔬This is a nightly-only experimental API. (substr_range)

    Returns the index that an element reference points to.

    +

    Returns None if element does not point within the slice or if it points between elements.

    +

    This method is useful for extending slice iterators like slice::split.

    +

    Note that this uses pointer arithmetic and does not compare elements. +To find the index of an element via comparison, use +.iter().position() instead.

    +
    §Panics
    +

    Panics if T is zero-sized.

    +
    §Examples
    +

    Basic usage:

    + +
    #![feature(substr_range)]
    +
    +let nums: &[u32] = &[1, 7, 1, 1];
    +let num = &nums[2];
    +
    +assert_eq!(num, &1);
    +assert_eq!(nums.elem_offset(num), Some(2));
    +

    Returning None with an in-between element:

    + +
    #![feature(substr_range)]
    +
    +let arr: &[[u32; 2]] = &[[0, 1], [2, 3]];
    +let flat_arr: &[u32] = arr.as_flattened();
    +
    +let ok_elm: &[u32; 2] = flat_arr[0..2].try_into().unwrap();
    +let weird_elm: &[u32; 2] = flat_arr[1..3].try_into().unwrap();
    +
    +assert_eq!(ok_elm, &[0, 1]);
    +assert_eq!(weird_elm, &[1, 2]);
    +
    +assert_eq!(arr.elem_offset(ok_elm), Some(0)); // Points to element 0
    +assert_eq!(arr.elem_offset(weird_elm), None); // Points between element 0 and 1
    +
    source

    pub fn subslice_range(&self, subslice: &[T]) -> Option<Range<usize>>

    🔬This is a nightly-only experimental API. (substr_range)

    Returns the range of indices that a subslice points to.

    +

    Returns None if subslice does not point within the slice or if it points between elements.

    +

    This method does not compare elements. Instead, this method finds the location in the slice that +subslice was obtained from. To find the index of a subslice via comparison, instead use +.windows().position().

    +

    This method is useful for extending slice iterators like slice::split.

    +

    Note that this may return a false positive (either Some(0..0) or Some(self.len()..self.len())) +if subslice has a length of zero and points to the beginning or end of another, separate, slice.

    +
    §Panics
    +

    Panics if T is zero-sized.

    §Examples
    +

    Basic usage:

    + +
    #![feature(substr_range)]
    +
    +let nums = &[0, 5, 10, 0, 0, 5];
    +
    +let mut iter = nums
    +    .split(|t| *t == 0)
    +    .map(|n| nums.subslice_range(n).unwrap());
    +
    +assert_eq!(iter.next(), Some(0..0));
    +assert_eq!(iter.next(), Some(1..3));
    +assert_eq!(iter.next(), Some(4..4));
    +assert_eq!(iter.next(), Some(5..6));
    +
    1.80.0 · source

    pub fn as_flattened(&self) -> &[T]

    Takes a &[[T; N]], and flattens it to a &[T].

    +
    §Panics
    +

    This panics if the length of the resulting slice would overflow a usize.

    +

    This is only possible when flattening a slice of arrays of zero-sized +types, and thus tends to be irrelevant in practice. If +size_of::<T>() > 0, this will never panic.

    +
    §Examples
    +
    assert_eq!([[1, 2, 3], [4, 5, 6]].as_flattened(), &[1, 2, 3, 4, 5, 6]);
    +
    +assert_eq!(
    +    [[1, 2, 3], [4, 5, 6]].as_flattened(),
    +    [[1, 2], [3, 4], [5, 6]].as_flattened(),
    +);
    +
    +let slice_of_empty_arrays: &[[i32; 0]] = &[[], [], [], [], []];
    +assert!(slice_of_empty_arrays.as_flattened().is_empty());
    +
    +let empty_slice_of_arrays: &[[u32; 10]] = &[];
    +assert!(empty_slice_of_arrays.as_flattened().is_empty());
    +
    1.79.0 · source

    pub fn utf8_chunks(&self) -> Utf8Chunks<'_>

    Creates an iterator over the contiguous valid UTF-8 ranges of this +slice, and the non-UTF-8 fragments in between.

    +
    §Examples
    +

    This function formats arbitrary but mostly-UTF-8 bytes into Rust source +code in the form of a C-string literal (c"...").

    + +
    use std::fmt::Write as _;
    +
    +pub fn cstr_literal(bytes: &[u8]) -> String {
    +    let mut repr = String::new();
    +    repr.push_str("c\"");
    +    for chunk in bytes.utf8_chunks() {
    +        for ch in chunk.valid().chars() {
    +            // Escapes \0, \t, \r, \n, \\, \', \", and uses \u{...} for non-printable characters.
    +            write!(repr, "{}", ch.escape_debug()).unwrap();
    +        }
    +        for byte in chunk.invalid() {
    +            write!(repr, "\\x{:02X}", byte).unwrap();
    +        }
    +    }
    +    repr.push('"');
    +    repr
    +}
    +
    +fn main() {
    +    let lit = cstr_literal(b"\xferris the \xf0\x9f\xa6\x80\x07");
    +    let expected = stringify!(c"\xFErris the 🦀\u{7}");
    +    assert_eq!(lit, expected);
    +}
    +
    1.0.0 · source

    pub fn to_vec(&self) -> Vec<T>
    where + T: Clone,

    Copies self into a new Vec.

    +
    §Examples
    let s = [10, 40, 30];
     let x = s.to_vec();
     // Here, `s` and `x` can be modified independently.
    -
    source

    pub fn to_vec_in<A>(&self, alloc: A) -> Vec<T, A>
    where +

    source

    pub fn to_vec_in<A>(&self, alloc: A) -> Vec<T, A>
    where A: Allocator, T: Clone,

    🔬This is a nightly-only experimental API. (allocator_api)

    Copies self into a new Vec with an allocator.

    -
    §Examples
    +
    §Examples
    #![feature(allocator_api)]
     
     use std::alloc::System;
    @@ -1241,11 +1285,11 @@ 
    §Exampleslet s = [10, 40, 30]; let x = s.to_vec_in(System); // Here, `s` and `x` can be modified independently.
    -
    1.40.0 · source

    pub fn repeat(&self, n: usize) -> Vec<T>
    where +

    1.40.0 · source

    pub fn repeat(&self, n: usize) -> Vec<T>
    where T: Copy,

    Creates a vector by copying a slice n times.

    -
    §Panics
    +
    §Panics

    This function will panic if the capacity would overflow.

    -
    §Examples
    +
    §Examples

    Basic usage:

    assert_eq!([1, 2].repeat(3), vec![1, 2, 1, 2, 1, 2]);
    @@ -1253,32 +1297,42 @@
    §Examples
    // this will panic at runtime
     b"0123456789abcdef".repeat(usize::MAX);
    -
    1.0.0 · source

    pub fn concat<Item>(&self) -> <[T] as Concat<Item>>::Output
    where +

    1.0.0 · source

    pub fn concat<Item>(&self) -> <[T] as Concat<Item>>::Output
    where [T]: Concat<Item>, Item: ?Sized,

    Flattens a slice of T into a single value Self::Output.

    -
    §Examples
    +
    §Examples
    assert_eq!(["hello", "world"].concat(), "helloworld");
     assert_eq!([[1, 2], [3, 4]].concat(), [1, 2, 3, 4]);
    -
    1.3.0 · source

    pub fn join<Separator>( +

    1.3.0 · source

    pub fn join<Separator>( &self, sep: Separator, ) -> <[T] as Join<Separator>>::Output
    where [T]: Join<Separator>,

    Flattens a slice of T into a single value Self::Output, placing a given separator between each.

    -
    §Examples
    +
    §Examples
    assert_eq!(["hello", "world"].join(" "), "hello world");
     assert_eq!([[1, 2], [3, 4]].join(&0), [1, 2, 0, 3, 4]);
     assert_eq!([[1, 2], [3, 4]].join(&[0, 0][..]), [1, 2, 0, 0, 3, 4]);
    -
    1.0.0 · source

    pub fn connect<Separator>( +

    1.0.0 · source

    pub fn connect<Separator>( &self, sep: Separator, ) -> <[T] as Join<Separator>>::Output
    where [T]: Join<Separator>,

    👎Deprecated since 1.3.0: renamed to join

    Flattens a slice of T into a single value Self::Output, placing a given separator between each.

    -
    §Examples
    +
    §Examples
    assert_eq!(["hello", "world"].connect(" "), "hello world");
     assert_eq!([[1, 2], [3, 4]].connect(&0), [1, 2, 0, 3, 4]);
    -

    Trait Implementations§

    source§

    impl Apiv2Schema for Bytes

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl AsRef<[u8]> for Bytes

    §

    fn as_ref(&self) -> &[u8]

    Converts this type into a shared reference of the (usually inferred) input type.
    §

    impl Borrow<[u8]> for Bytes

    §

    fn borrow(&self) -> &[u8]

    Immutably borrows from an owned value. Read more
    §

    impl Buf for Bytes

    §

    fn remaining(&self) -> usize

    Returns the number of bytes between the current position and the end of +
    1.23.0 · source

    pub fn to_ascii_uppercase(&self) -> Vec<u8>

    Returns a vector containing a copy of this slice where each byte +is mapped to its ASCII upper case equivalent.

    +

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, +but non-ASCII letters are unchanged.

    +

    To uppercase the value in-place, use make_ascii_uppercase.

    +
    1.23.0 · source

    pub fn to_ascii_lowercase(&self) -> Vec<u8>

    Returns a vector containing a copy of this slice where each byte +is mapped to its ASCII lower case equivalent.

    +

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, +but non-ASCII letters are unchanged.

    +

    To lowercase the value in-place, use make_ascii_lowercase.

    +

    Trait Implementations§

    source§

    impl Apiv2Schema for Bytes

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl AsRef<[u8]> for Bytes

    §

    fn as_ref(&self) -> &[u8]

    Converts this type into a shared reference of the (usually inferred) input type.
    §

    impl Borrow<[u8]> for Bytes

    §

    fn borrow(&self) -> &[u8]

    Immutably borrows from an owned value. Read more
    §

    impl Buf for Bytes

    §

    fn remaining(&self) -> usize

    Returns the number of bytes between the current position and the end of the buffer. Read more
    §

    fn chunk(&self) -> &[u8]

    Returns a slice starting at the current position and of length between 0 and Buf::remaining(). Note that this can return shorter slice (this allows non-continuous internal representation). Read more
    §

    fn advance(&mut self, cnt: usize)

    Advance the internal cursor of the Buf Read more
    §

    fn copy_to_bytes(&mut self, len: usize) -> Bytes

    Consumes len bytes inside self and returns new instance of Bytes @@ -1293,12 +1347,22 @@
    §ExamplesSized,
    Creates an adaptor which will read at most limit bytes from self. Read more
    §

    fn chain<U>(self, next: U) -> Chain<Self, U>
    where U: Buf, Self: Sized,

    Creates an adaptor which will chain this buffer with another. Read more
    §

    fn reader(self) -> Reader<Self>
    where - Self: Sized,

    Creates an adaptor which implements the Read trait for self. Read more
    §

    impl Clone for Bytes

    §

    fn clone(&self) -> Bytes

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Bytes

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for Bytes

    §

    fn default() -> Bytes

    Returns the “default value” for a type. Read more
    §

    impl Deref for Bytes

    §

    type Target = [u8]

    The resulting type after dereferencing.
    §

    fn deref(&self) -> &[u8]

    Dereferences the value.
    §

    impl Drop for Bytes

    §

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    §

    impl Extend<Bytes> for BytesMut

    §

    fn extend<T>(&mut self, iter: T)
    where - T: IntoIterator<Item = Bytes>,

    Extends a collection with the contents of an iterator. Read more
    source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    §

    impl From<&'static [u8]> for Bytes

    §

    fn from(slice: &'static [u8]) -> Bytes

    Converts to this type from the input type.
    §

    impl From<&'static str> for Bytes

    §

    fn from(slice: &'static str) -> Bytes

    Converts to this type from the input type.
    §

    impl From<Box<[u8]>> for Bytes

    §

    fn from(slice: Box<[u8]>) -> Bytes

    Converts to this type from the input type.
    source§

    impl From<ByteStr> for Bytes

    source§

    fn from(src: ByteStr) -> Bytes

    Converts to this type from the input type.
    §

    impl From<Bytes> for Vec<u8>

    §

    fn from(bytes: Bytes) -> Vec<u8>

    Converts to this type from the input type.
    §

    impl From<BytesMut> for Bytes

    §

    fn from(src: BytesMut) -> Bytes

    Converts to this type from the input type.
    source§

    impl From<Custom> for Bytes

    source§

    fn from(_: Custom) -> Bytes

    Converts to this type from the input type.
    §

    impl From<String> for Bytes

    §

    fn from(s: String) -> Bytes

    Converts to this type from the input type.
    §

    impl From<Vec<u8>> for Bytes

    §

    fn from(vec: Vec<u8>) -> Bytes

    Converts to this type from the input type.
    §

    impl FromIterator<u8> for Bytes

    §

    fn from_iter<T>(into_iter: T) -> Bytes
    where + Self: Sized,

    Creates an adaptor which implements the Read trait for self. Read more
    §

    impl Clone for Bytes

    §

    fn clone(&self) -> Bytes

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Bytes

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for Bytes

    §

    fn default() -> Bytes

    Returns the “default value” for a type. Read more
    §

    impl Deref for Bytes

    §

    type Target = [u8]

    The resulting type after dereferencing.
    §

    fn deref(&self) -> &[u8]

    Dereferences the value.
    §

    impl Drop for Bytes

    §

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    §

    impl Extend<Bytes> for BytesMut

    §

    fn extend<T>(&mut self, iter: T)
    where + T: IntoIterator<Item = Bytes>,

    Extends a collection with the contents of an iterator. Read more
    source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    §

    impl From<&'static [u8]> for Bytes

    §

    fn from(slice: &'static [u8]) -> Bytes

    Converts to this type from the input type.
    §

    impl From<&'static str> for Bytes

    §

    fn from(slice: &'static str) -> Bytes

    Converts to this type from the input type.
    §

    impl From<Box<[u8]>> for Bytes

    §

    fn from(slice: Box<[u8]>) -> Bytes

    Converts to this type from the input type.
    source§

    impl From<ByteStr> for Bytes

    source§

    fn from(src: ByteStr) -> Bytes

    Converts to this type from the input type.
    §

    impl From<Bytes> for BytesMut

    §

    fn from(bytes: Bytes) -> BytesMut

    Convert self into BytesMut.

    +

    If bytes is unique for the entire original buffer, this will return a +BytesMut with the contents of bytes without copying. +If bytes is not unique for the entire original buffer, this will make +a copy of bytes subset of the original buffer in a new BytesMut.

    +
    §Examples
    +
    use bytes::{Bytes, BytesMut};
    +
    +let bytes = Bytes::from(b"hello".to_vec());
    +assert_eq!(BytesMut::from(bytes), BytesMut::from(&b"hello"[..]));
    +
    §

    impl From<Bytes> for Vec<u8>

    §

    fn from(bytes: Bytes) -> Vec<u8>

    Converts to this type from the input type.
    §

    impl From<BytesMut> for Bytes

    §

    fn from(src: BytesMut) -> Bytes

    Converts to this type from the input type.
    source§

    impl From<Custom> for Bytes

    source§

    fn from(_: Custom) -> Bytes

    Converts to this type from the input type.
    §

    impl From<String> for Bytes

    §

    fn from(s: String) -> Bytes

    Converts to this type from the input type.
    §

    impl From<Vec<u8>> for Bytes

    §

    fn from(vec: Vec<u8>) -> Bytes

    Converts to this type from the input type.
    §

    impl FromIterator<u8> for Bytes

    §

    fn from_iter<T>(into_iter: T) -> Bytes
    where T: IntoIterator<Item = u8>,

    Creates a value from an iterator. Read more
    §

    impl FromRequest for Bytes

    Extract binary data from a request’s payload.

    Collects request payload stream into a Bytes instance.

    Use PayloadConfig to configure extraction process.

    -

    §Examples

    +

    §Examples

    use actix_web::{post, web};
     
     /// extract binary data from request
    @@ -1310,9 +1374,9 @@ 

    §ExamplesHttpRequest, payload: &mut Payload, ) -> <Bytes as FromRequest>::Future

    Create a Self from request parts asynchronously.
    §

    fn extract(req: &HttpRequest) -> Self::Future

    Create a Self from request head asynchronously. Read more
    §

    impl Hash for Bytes

    §

    fn hash<H>(&self, state: &mut H)
    where - H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    §

    impl<'a> IntoIterator for &'a Bytes

    §

    type Item = &'a u8

    The type of the elements being iterated over.
    §

    type IntoIter = Iter<'a, u8>

    Which kind of iterator are we turning this into?
    §

    fn into_iter(self) -> <&'a Bytes as IntoIterator>::IntoIter

    Creates an iterator from a value. Read more
    §

    impl IntoIterator for Bytes

    §

    type Item = u8

    The type of the elements being iterated over.
    §

    type IntoIter = IntoIter<Bytes>

    Which kind of iterator are we turning this into?
    §

    fn into_iter(self) -> <Bytes as IntoIterator>::IntoIter

    Creates an iterator from a value. Read more
    §

    impl LowerHex for Bytes

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl MessageBody for Bytes

    §

    type Error = Infallible

    The type of error that will be returned if streaming body fails. Read more
    §

    fn size(&self) -> BodySize

    Body size hint. Read more
    §

    fn poll_next( + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    §

    impl<'a> IntoIterator for &'a Bytes

    §

    type Item = &'a u8

    The type of the elements being iterated over.
    §

    type IntoIter = Iter<'a, u8>

    Which kind of iterator are we turning this into?
    §

    fn into_iter(self) -> <&'a Bytes as IntoIterator>::IntoIter

    Creates an iterator from a value. Read more
    §

    impl IntoIterator for Bytes

    §

    type Item = u8

    The type of the elements being iterated over.
    §

    type IntoIter = IntoIter<Bytes>

    Which kind of iterator are we turning this into?
    §

    fn into_iter(self) -> <Bytes as IntoIterator>::IntoIter

    Creates an iterator from a value. Read more
    §

    impl LowerHex for Bytes

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl MessageBody for Bytes

    §

    type Error = Infallible

    The type of error that will be returned if streaming body fails. Read more
    §

    fn size(&self) -> BodySize

    Body size hint. Read more
    §

    fn poll_next( self: Pin<&mut Bytes>, _cx: &mut Context<'_>, ) -> Poll<Option<Result<Bytes, <Bytes as MessageBody>::Error>>>

    Attempt to pull out the next chunk of body bytes. Read more
    §

    fn try_into_bytes(self) -> Result<Bytes, Bytes>

    Try to convert into the complete chunk of body bytes. Read more
    §

    fn boxed(self) -> BoxBody
    where @@ -1322,69 +1386,67 @@

    §ExamplesOperation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    §

    impl Ord for Bytes

    §

    fn cmp(&self, other: &Bytes) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where +)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    §

    impl Ord for Bytes

    §

    fn cmp(&self, other: &Bytes) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    §

    impl<'a, T> PartialEq<&'a T> for Bytes
    where Bytes: PartialEq<T>, - T: ?Sized,

    §

    fn eq(&self, other: &&'a T) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<[u8]> for Bytes

    §

    fn eq(&self, other: &[u8]) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for &[u8]

    §

    fn eq(&self, other: &Bytes) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for &str

    §

    fn eq(&self, other: &Bytes) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for [u8]

    §

    fn eq(&self, other: &Bytes) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for BytesMut

    §

    fn eq(&self, other: &Bytes) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for Vec<u8>

    §

    fn eq(&self, other: &Bytes) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for str

    §

    fn eq(&self, other: &Bytes) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for Bytes

    §

    fn eq(&self, other: &BytesMut) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<String> for Bytes

    §

    fn eq(&self, other: &String) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<Vec<u8>> for Bytes

    §

    fn eq(&self, other: &Vec<u8>) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<str> for Bytes

    §

    fn eq(&self, other: &str) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq for Bytes

    §

    fn eq(&self, other: &Bytes) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl<'a, T> PartialOrd<&'a T> for Bytes
    where + T: ?Sized,

    §

    fn eq(&self, other: &&'a T) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<[u8]> for Bytes

    §

    fn eq(&self, other: &[u8]) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for &[u8]

    §

    fn eq(&self, other: &Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for &str

    §

    fn eq(&self, other: &Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for [u8]

    §

    fn eq(&self, other: &Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for BytesMut

    §

    fn eq(&self, other: &Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for Vec<u8>

    §

    fn eq(&self, other: &Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for str

    §

    fn eq(&self, other: &Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for Bytes

    §

    fn eq(&self, other: &BytesMut) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<String> for Bytes

    §

    fn eq(&self, other: &String) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<Vec<u8>> for Bytes

    §

    fn eq(&self, other: &Vec<u8>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<str> for Bytes

    §

    fn eq(&self, other: &str) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq for Bytes

    §

    fn eq(&self, other: &Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl<'a, T> PartialOrd<&'a T> for Bytes
    where Bytes: PartialOrd<T>, - T: ?Sized,

    §

    fn partial_cmp(&self, other: &&'a T) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<[u8]> for Bytes

    §

    fn partial_cmp(&self, other: &[u8]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<Bytes> for &[u8]

    §

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<Bytes> for &str

    §

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<Bytes> for [u8]

    §

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<Bytes> for Vec<u8>

    §

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<Bytes> for str

    §

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<String> for Bytes

    §

    fn partial_cmp(&self, other: &String) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<Vec<u8>> for Bytes

    §

    fn partial_cmp(&self, other: &Vec<u8>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<str> for Bytes

    §

    fn partial_cmp(&self, other: &str) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd for Bytes

    §

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl Responder for Bytes

    §

    type Body = Bytes

    §

    fn respond_to(self, _: &HttpRequest) -> HttpResponse<<Bytes as Responder>::Body>

    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>
    where + T: ?Sized,

    §

    fn partial_cmp(&self, other: &&'a T) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<[u8]> for Bytes

    §

    fn partial_cmp(&self, other: &[u8]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<Bytes> for &[u8]

    §

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<Bytes> for &str

    §

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<Bytes> for [u8]

    §

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<Bytes> for Vec<u8>

    §

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<Bytes> for str

    §

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<String> for Bytes

    §

    fn partial_cmp(&self, other: &String) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<Vec<u8>> for Bytes

    §

    fn partial_cmp(&self, other: &Vec<u8>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<str> for Bytes

    §

    fn partial_cmp(&self, other: &str) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd for Bytes

    §

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl Responder for Bytes

    §

    type Body = Bytes

    §

    fn respond_to(self, _: &HttpRequest) -> HttpResponse<<Bytes as Responder>::Body>

    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>
    where Self: Sized,

    Wraps responder to allow alteration of its response. Read more
    §

    impl TryIntoHeaderValue for Bytes

    §

    type Error = InvalidHeaderValue

    The type returned in the event of a conversion error.
    §

    fn try_into_value( self, -) -> Result<HeaderValue, <Bytes as TryIntoHeaderValue>::Error>

    Try to convert value to a HeaderValue.
    §

    impl UpperHex for Bytes

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Eq for Bytes

    §

    impl Send for Bytes

    §

    impl Sync for Bytes

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where +) -> Result<HeaderValue, <Bytes as TryIntoHeaderValue>::Error>

    Try to convert value to a HeaderValue.
    §

    impl UpperHex for Bytes

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Eq for Bytes

    §

    impl Send for Bytes

    §

    impl Sync for Bytes

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn compare(&self, key: &K) -> Ordering

    Compare self to key and return their ordering.
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, @@ -1392,7 +1454,7 @@

    §ExamplesEq + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn equivalent(&self, key: &K) -> bool

    Compare self to key and return true if they are equal.
    source§

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

    source§

    fn equivalent(&self, key: &K) -> bool

    Compare self to key and return true if they are equal.
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + K: Borrow<Q> + ?Sized,
    source§

    fn equivalent(&self, key: &K) -> bool

    Compare self to key and return true if they are equal.
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -1403,14 +1465,14 @@

    §Examplesinto_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    \ No newline at end of file +[WithDispatch] wrapper. Read more \ No newline at end of file diff --git a/paperclip/actix/web/struct.BytesMut.html b/paperclip/actix/web/struct.BytesMut.html index 1f7c9cc53..19b88a7b1 100644 --- a/paperclip/actix/web/struct.BytesMut.html +++ b/paperclip/actix/web/struct.BytesMut.html @@ -1,4 +1,4 @@ -BytesMut in paperclip::actix::web - Rust

    Struct paperclip::actix::web::BytesMut

    pub struct BytesMut { /* private fields */ }
    Expand description

    A unique reference to a contiguous slice of memory.

    +BytesMut in paperclip::actix::web - Rust

    Struct paperclip::actix::web::BytesMut

    pub struct BytesMut { /* private fields */ }
    Expand description

    A unique reference to a contiguous slice of memory.

    BytesMut represents a unique view into a potentially shared memory region. Given the uniqueness guarantee, owners of BytesMut handles are able to mutate the memory.

    @@ -96,12 +96,18 @@
    §Examples
    assert_eq!(&b2[..], b"hello world"); th.join().unwrap();
    -

    pub fn zeroed(len: usize) -> BytesMut

    Creates a new BytesMut, which is initialized with zero.

    +

    pub fn zeroed(len: usize) -> BytesMut

    Creates a new BytesMut containing len zeros.

    +

    The resulting object has a length of len and a capacity greater +than or equal to len. The entire length of the object will be filled +with zeros.

    +

    On some platforms or allocators this function may be faster than +a manual implementation.

    §Examples
    use bytes::BytesMut;
     
     let zeros = BytesMut::zeroed(42);
     
    +assert!(zeros.capacity() >= 42);
     assert_eq!(zeros.len(), 42);
     zeros.into_iter().for_each(|x| assert_eq!(x, 0));

    pub fn split_off(&mut self, at: usize) -> BytesMut

    Splits the bytes into two at the given index.

    @@ -262,10 +268,48 @@
    §Examplesassert_eq!(buf.as_ptr(), ptr);
    §Panics

    Panics if the new capacity overflows usize.

    +

    pub fn try_reclaim(&mut self, additional: usize) -> bool

    Attempts to cheaply reclaim already allocated capacity for at least additional more +bytes to be inserted into the given BytesMut and returns true if it succeeded.

    +

    try_reclaim behaves exactly like reserve, except that it never allocates new storage +and returns a bool indicating whether it was successful in doing so:

    +

    try_reclaim returns false under these conditions:

    +
      +
    • The spare capacity left is less than additional bytes AND
    • +
    • The existing allocation cannot be reclaimed cheaply or it was less than +additional bytes in size
    • +
    +

    Reclaiming the allocation cheaply is possible if the BytesMut has no outstanding +references through other BytesMuts or Bytes which point to the same underlying +storage.

    +
    §Examples
    +
    use bytes::BytesMut;
    +
    +let mut buf = BytesMut::with_capacity(64);
    +assert_eq!(true, buf.try_reclaim(64));
    +assert_eq!(64, buf.capacity());
    +
    +buf.extend_from_slice(b"abcd");
    +let mut split = buf.split();
    +assert_eq!(60, buf.capacity());
    +assert_eq!(4, split.capacity());
    +assert_eq!(false, split.try_reclaim(64));
    +assert_eq!(false, buf.try_reclaim(64));
    +// The split buffer is filled with "abcd"
    +assert_eq!(false, split.try_reclaim(4));
    +// buf is empty and has capacity for 60 bytes
    +assert_eq!(true, buf.try_reclaim(60));
    +
    +drop(buf);
    +assert_eq!(false, split.try_reclaim(64));
    +
    +split.clear();
    +assert_eq!(4, split.capacity());
    +assert_eq!(true, split.try_reclaim(64));
    +assert_eq!(64, split.capacity());

    pub fn extend_from_slice(&mut self, extend: &[u8])

    Appends given bytes to this BytesMut.

    If this BytesMut object does not have enough capacity, it is resized first.

    -
    §Examples
    +
    §Examples
    use bytes::BytesMut;
     
     let mut buf = BytesMut::with_capacity(0);
    @@ -280,7 +324,7 @@ 
    §Examplesself.extend_from_slice(other.as_ref()).

    -
    §Examples
    +
    §Examples
    use bytes::BytesMut;
     
     let mut buf = BytesMut::with_capacity(64);
    @@ -296,7 +340,7 @@ 
    §ExamplesThe returned slice can be used to fill the buffer with data (e.g. by reading from a file) before marking the data as initialized using the set_len method.

    -
    §Examples
    +
    §Examples
    use bytes::BytesMut;
     
     // Allocate buffer big enough for 10 bytes.
    @@ -316,165 +360,75 @@ 
    §Examplesassert_eq!(&buf[..], &[0, 1, 2]);

    Methods from Deref<Target = [u8]>§

    source

    pub fn as_str(&self) -> &str

    🔬This is a nightly-only experimental API. (ascii_char)

    Views this slice of ASCII characters as a UTF-8 str.

    source

    pub fn as_bytes(&self) -> &[u8]

    🔬This is a nightly-only experimental API. (ascii_char)

    Views this slice of ASCII characters as a slice of u8 bytes.

    -
    1.79.0 · source

    pub fn utf8_chunks(&self) -> Utf8Chunks<'_>

    Creates an iterator over the contiguous valid UTF-8 ranges of this -slice, and the non-UTF-8 fragments in between.

    -
    §Examples
    -

    This function formats arbitrary but mostly-UTF-8 bytes into Rust source -code in the form of a C-string literal (c"...").

    - -
    use std::fmt::Write as _;
    -
    -pub fn cstr_literal(bytes: &[u8]) -> String {
    -    let mut repr = String::new();
    -    repr.push_str("c\"");
    -    for chunk in bytes.utf8_chunks() {
    -        for ch in chunk.valid().chars() {
    -            // Escapes \0, \t, \r, \n, \\, \', \", and uses \u{...} for non-printable characters.
    -            write!(repr, "{}", ch.escape_debug()).unwrap();
    -        }
    -        for byte in chunk.invalid() {
    -            write!(repr, "\\x{:02X}", byte).unwrap();
    -        }
    -    }
    -    repr.push('"');
    -    repr
    -}
    -
    -fn main() {
    -    let lit = cstr_literal(b"\xferris the \xf0\x9f\xa6\x80\x07");
    -    let expected = stringify!(c"\xFErris the 🦀\u{7}");
    -    assert_eq!(lit, expected);
    -}
    -
    source

    pub fn sort_floats(&mut self)

    🔬This is a nightly-only experimental API. (sort_floats)

    Sorts the slice of floats.

    -

    This sort is in-place (i.e. does not allocate), O(n * log(n)) worst-case, and uses -the ordering defined by f64::total_cmp.

    -
    §Current implementation
    -

    This uses the same sorting algorithm as sort_unstable_by.

    -
    §Examples
    -
    #![feature(sort_floats)]
    -let mut v = [2.6, -5e-8, f64::NAN, 8.29, f64::INFINITY, -1.0, 0.0, -f64::INFINITY, -0.0];
    -
    -v.sort_floats();
    -let sorted = [-f64::INFINITY, -1.0, -5e-8, -0.0, 0.0, 2.6, 8.29, f64::INFINITY, f64::NAN];
    -assert_eq!(&v[..8], &sorted[..8]);
    -assert!(v[8].is_nan());
    -
    1.23.0 · source

    pub fn is_ascii(&self) -> bool

    Checks if all bytes in this slice are within the ASCII range.

    -
    source

    pub fn as_ascii(&self) -> Option<&[AsciiChar]>

    🔬This is a nightly-only experimental API. (ascii_char)

    If this slice is_ascii, returns it as a slice of +

    1.23.0 · source

    pub fn is_ascii(&self) -> bool

    Checks if all bytes in this slice are within the ASCII range.

    +
    source

    pub fn as_ascii(&self) -> Option<&[AsciiChar]>

    🔬This is a nightly-only experimental API. (ascii_char)

    If this slice is_ascii, returns it as a slice of ASCII characters, otherwise returns None.

    -
    source

    pub unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar]

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this slice of bytes into a slice of ASCII characters, +

    source

    pub unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar]

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this slice of bytes into a slice of ASCII characters, without checking whether they’re valid.

    §Safety

    Every byte in the slice must be in 0..=127, or else this is UB.

    -
    1.23.0 · source

    pub fn eq_ignore_ascii_case(&self, other: &[u8]) -> bool

    Checks that two slices are an ASCII case-insensitive match.

    +
    1.23.0 · source

    pub fn eq_ignore_ascii_case(&self, other: &[u8]) -> bool

    Checks that two slices are an ASCII case-insensitive match.

    Same as to_ascii_lowercase(a) == to_ascii_lowercase(b), but without allocating and copying temporaries.

    -
    1.23.0 · source

    pub fn make_ascii_uppercase(&mut self)

    Converts this slice to its ASCII upper case equivalent in-place.

    +
    1.23.0 · source

    pub fn make_ascii_uppercase(&mut self)

    Converts this slice to its ASCII upper case equivalent in-place.

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

    To return a new uppercased value without modifying the existing one, use to_ascii_uppercase.

    -
    1.23.0 · source

    pub fn make_ascii_lowercase(&mut self)

    Converts this slice to its ASCII lower case equivalent in-place.

    +
    1.23.0 · source

    pub fn make_ascii_lowercase(&mut self)

    Converts this slice to its ASCII lower case equivalent in-place.

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    To return a new lowercased value without modifying the existing one, use to_ascii_lowercase.

    -
    1.60.0 · source

    pub fn escape_ascii(&self) -> EscapeAscii<'_>

    Returns an iterator that produces an escaped version of this slice, +

    1.60.0 · source

    pub fn escape_ascii(&self) -> EscapeAscii<'_>

    Returns an iterator that produces an escaped version of this slice, treating it as an ASCII string.

    -
    §Examples
    +
    §Examples
    
     let s = b"0\t\r\n'\"\\\x9d";
     let escaped = s.escape_ascii().to_string();
     assert_eq!(escaped, "0\\t\\r\\n\\'\\\"\\\\\\x9d");
    -
    1.80.0 · source

    pub fn trim_ascii_start(&self) -> &[u8]

    Returns a byte slice with leading ASCII whitespace bytes removed.

    +
    1.80.0 · source

    pub fn trim_ascii_start(&self) -> &[u8]

    Returns a byte slice with leading ASCII whitespace bytes removed.

    ‘Whitespace’ refers to the definition used by u8::is_ascii_whitespace.

    -
    §Examples
    +
    §Examples
    assert_eq!(b" \t hello world\n".trim_ascii_start(), b"hello world\n");
     assert_eq!(b"  ".trim_ascii_start(), b"");
     assert_eq!(b"".trim_ascii_start(), b"");
    -
    1.80.0 · source

    pub fn trim_ascii_end(&self) -> &[u8]

    Returns a byte slice with trailing ASCII whitespace bytes removed.

    +
    1.80.0 · source

    pub fn trim_ascii_end(&self) -> &[u8]

    Returns a byte slice with trailing ASCII whitespace bytes removed.

    ‘Whitespace’ refers to the definition used by u8::is_ascii_whitespace.

    -
    §Examples
    +
    §Examples
    assert_eq!(b"\r hello world\n ".trim_ascii_end(), b"\r hello world");
     assert_eq!(b"  ".trim_ascii_end(), b"");
     assert_eq!(b"".trim_ascii_end(), b"");
    -
    1.80.0 · source

    pub fn trim_ascii(&self) -> &[u8]

    Returns a byte slice with leading and trailing ASCII whitespace bytes +

    1.80.0 · source

    pub fn trim_ascii(&self) -> &[u8]

    Returns a byte slice with leading and trailing ASCII whitespace bytes removed.

    ‘Whitespace’ refers to the definition used by u8::is_ascii_whitespace.

    -
    §Examples
    +
    §Examples
    assert_eq!(b"\r hello world\n ".trim_ascii(), b"hello world");
     assert_eq!(b"  ".trim_ascii(), b"");
     assert_eq!(b"".trim_ascii(), b"");
    -
    1.80.0 · source

    pub fn as_flattened(&self) -> &[T]

    Takes a &[[T; N]], and flattens it to a &[T].

    -
    §Panics
    -

    This panics if the length of the resulting slice would overflow a usize.

    -

    This is only possible when flattening a slice of arrays of zero-sized -types, and thus tends to be irrelevant in practice. If -size_of::<T>() > 0, this will never panic.

    -
    §Examples
    -
    assert_eq!([[1, 2, 3], [4, 5, 6]].as_flattened(), &[1, 2, 3, 4, 5, 6]);
    -
    -assert_eq!(
    -    [[1, 2, 3], [4, 5, 6]].as_flattened(),
    -    [[1, 2], [3, 4], [5, 6]].as_flattened(),
    -);
    -
    -let slice_of_empty_arrays: &[[i32; 0]] = &[[], [], [], [], []];
    -assert!(slice_of_empty_arrays.as_flattened().is_empty());
    -
    -let empty_slice_of_arrays: &[[u32; 10]] = &[];
    -assert!(empty_slice_of_arrays.as_flattened().is_empty());
    -
    1.80.0 · source

    pub fn as_flattened_mut(&mut self) -> &mut [T]

    Takes a &mut [[T; N]], and flattens it to a &mut [T].

    -
    §Panics
    -

    This panics if the length of the resulting slice would overflow a usize.

    -

    This is only possible when flattening a slice of arrays of zero-sized -types, and thus tends to be irrelevant in practice. If -size_of::<T>() > 0, this will never panic.

    -
    §Examples
    -
    fn add_5_to_all(slice: &mut [i32]) {
    -    for i in slice {
    -        *i += 5;
    -    }
    -}
    -
    -let mut array = [[1, 2, 3], [4, 5, 6], [7, 8, 9]];
    -add_5_to_all(array.as_flattened_mut());
    -assert_eq!(array, [[6, 7, 8], [9, 10, 11], [12, 13, 14]]);
    -
    source

    pub fn sort_floats(&mut self)

    🔬This is a nightly-only experimental API. (sort_floats)

    Sorts the slice of floats.

    -

    This sort is in-place (i.e. does not allocate), O(n * log(n)) worst-case, and uses -the ordering defined by f32::total_cmp.

    -
    §Current implementation
    -

    This uses the same sorting algorithm as sort_unstable_by.

    -
    §Examples
    -
    #![feature(sort_floats)]
    -let mut v = [2.6, -5e-8, f32::NAN, 8.29, f32::INFINITY, -1.0, 0.0, -f32::INFINITY, -0.0];
    -
    -v.sort_floats();
    -let sorted = [-f32::INFINITY, -1.0, -5e-8, -0.0, 0.0, 2.6, 8.29, f32::INFINITY, f32::NAN];
    -assert_eq!(&v[..8], &sorted[..8]);
    -assert!(v[8].is_nan());
    -
    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the number of elements in the slice.

    -
    §Examples
    +
    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the number of elements in the slice.

    +
    §Examples
    let a = [1, 2, 3];
     assert_eq!(a.len(), 3);
    -
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if the slice has a length of 0.

    -
    §Examples
    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if the slice has a length of 0.

    +
    §Examples
    let a = [1, 2, 3];
     assert!(!a.is_empty());
     
     let b: &[i32] = &[];
     assert!(b.is_empty());
    -
    1.0.0 · source

    pub fn first(&self) -> Option<&T>

    Returns the first element of the slice, or None if it is empty.

    -
    §Examples
    +
    1.0.0 · source

    pub fn first(&self) -> Option<&T>

    Returns the first element of the slice, or None if it is empty.

    +
    §Examples
    let v = [10, 40, 30];
     assert_eq!(Some(&10), v.first());
     
     let w: &[i32] = &[];
     assert_eq!(None, w.first());
    -
    1.0.0 · source

    pub fn first_mut(&mut self) -> Option<&mut T>

    Returns a mutable pointer to the first element of the slice, or None if it is empty.

    -
    §Examples
    +
    1.0.0 · source

    pub fn first_mut(&mut self) -> Option<&mut T>

    Returns a mutable pointer to the first element of the slice, or None if it is empty.

    +
    §Examples
    let x = &mut [0, 1, 2];
     
     if let Some(first) = x.first_mut() {
    @@ -484,16 +438,16 @@ 
    §Exampleslet y: &mut [i32] = &mut []; assert_eq!(None, y.first_mut());
    -
    1.5.0 · source

    pub fn split_first(&self) -> Option<(&T, &[T])>

    Returns the first and all the rest of the elements of the slice, or None if it is empty.

    -
    §Examples
    +
    1.5.0 · source

    pub fn split_first(&self) -> Option<(&T, &[T])>

    Returns the first and all the rest of the elements of the slice, or None if it is empty.

    +
    §Examples
    let x = &[0, 1, 2];
     
     if let Some((first, elements)) = x.split_first() {
         assert_eq!(first, &0);
         assert_eq!(elements, &[1, 2]);
     }
    -
    1.5.0 · source

    pub fn split_first_mut(&mut self) -> Option<(&mut T, &mut [T])>

    Returns the first and all the rest of the elements of the slice, or None if it is empty.

    -
    §Examples
    +
    1.5.0 · source

    pub fn split_first_mut(&mut self) -> Option<(&mut T, &mut [T])>

    Returns the first and all the rest of the elements of the slice, or None if it is empty.

    +
    §Examples
    let x = &mut [0, 1, 2];
     
     if let Some((first, elements)) = x.split_first_mut() {
    @@ -502,16 +456,16 @@ 
    §Examples1] = 5; } assert_eq!(x, &[3, 4, 5]);
    -
    1.5.0 · source

    pub fn split_last(&self) -> Option<(&T, &[T])>

    Returns the last and all the rest of the elements of the slice, or None if it is empty.

    -
    §Examples
    +
    1.5.0 · source

    pub fn split_last(&self) -> Option<(&T, &[T])>

    Returns the last and all the rest of the elements of the slice, or None if it is empty.

    +
    §Examples
    let x = &[0, 1, 2];
     
     if let Some((last, elements)) = x.split_last() {
         assert_eq!(last, &2);
         assert_eq!(elements, &[0, 1]);
     }
    -
    1.5.0 · source

    pub fn split_last_mut(&mut self) -> Option<(&mut T, &mut [T])>

    Returns the last and all the rest of the elements of the slice, or None if it is empty.

    -
    §Examples
    +
    1.5.0 · source

    pub fn split_last_mut(&mut self) -> Option<(&mut T, &mut [T])>

    Returns the last and all the rest of the elements of the slice, or None if it is empty.

    +
    §Examples
    let x = &mut [0, 1, 2];
     
     if let Some((last, elements)) = x.split_last_mut() {
    @@ -520,15 +474,15 @@ 
    §Examples1] = 5; } assert_eq!(x, &[4, 5, 3]);
    -
    1.0.0 · source

    pub fn last(&self) -> Option<&T>

    Returns the last element of the slice, or None if it is empty.

    -
    §Examples
    +
    1.0.0 · source

    pub fn last(&self) -> Option<&T>

    Returns the last element of the slice, or None if it is empty.

    +
    §Examples
    let v = [10, 40, 30];
     assert_eq!(Some(&30), v.last());
     
     let w: &[i32] = &[];
     assert_eq!(None, w.last());
    -
    1.0.0 · source

    pub fn last_mut(&mut self) -> Option<&mut T>

    Returns a mutable reference to the last item in the slice, or None if it is empty.

    -
    §Examples
    +
    1.0.0 · source

    pub fn last_mut(&mut self) -> Option<&mut T>

    Returns a mutable reference to the last item in the slice, or None if it is empty.

    +
    §Examples
    let x = &mut [0, 1, 2];
     
     if let Some(last) = x.last_mut() {
    @@ -538,9 +492,9 @@ 
    §Exampleslet y: &mut [i32] = &mut []; assert_eq!(None, y.last_mut());
    -
    1.77.0 · source

    pub fn first_chunk<const N: usize>(&self) -> Option<&[T; N]>

    Return an array reference to the first N items in the slice.

    +
    1.77.0 · source

    pub fn first_chunk<const N: usize>(&self) -> Option<&[T; N]>

    Returns an array reference to the first N items in the slice.

    If the slice is not at least N in length, this will return None.

    -
    §Examples
    +
    §Examples
    let u = [10, 40, 30];
     assert_eq!(Some(&[10, 40]), u.first_chunk::<2>());
     
    @@ -549,9 +503,9 @@ 
    §Exampleslet w: &[i32] = &[]; assert_eq!(Some(&[]), w.first_chunk::<0>());
    -
    1.77.0 · source

    pub fn first_chunk_mut<const N: usize>(&mut self) -> Option<&mut [T; N]>

    Return a mutable array reference to the first N items in the slice.

    +
    1.77.0 · source

    pub fn first_chunk_mut<const N: usize>(&mut self) -> Option<&mut [T; N]>

    Returns a mutable array reference to the first N items in the slice.

    If the slice is not at least N in length, this will return None.

    -
    §Examples
    +
    §Examples
    let x = &mut [0, 1, 2];
     
     if let Some(first) = x.first_chunk_mut::<2>() {
    @@ -561,9 +515,9 @@ 
    §Examplesassert_eq!(x, &[5, 4, 2]); assert_eq!(None, x.first_chunk_mut::<4>());
    -
    1.77.0 · source

    pub fn split_first_chunk<const N: usize>(&self) -> Option<(&[T; N], &[T])>

    Return an array reference to the first N items in the slice and the remaining slice.

    +
    1.77.0 · source

    pub fn split_first_chunk<const N: usize>(&self) -> Option<(&[T; N], &[T])>

    Returns an array reference to the first N items in the slice and the remaining slice.

    If the slice is not at least N in length, this will return None.

    -
    §Examples
    +
    §Examples
    let x = &[0, 1, 2];
     
     if let Some((first, elements)) = x.split_first_chunk::<2>() {
    @@ -572,12 +526,12 @@ 
    §Examplesassert_eq!(None, x.split_first_chunk::<4>());
    -
    1.77.0 · source

    pub fn split_first_chunk_mut<const N: usize>( +

    1.77.0 · source

    pub fn split_first_chunk_mut<const N: usize>( &mut self, -) -> Option<(&mut [T; N], &mut [T])>

    Return a mutable array reference to the first N items in the slice and the remaining +) -> Option<(&mut [T; N], &mut [T])>

    Returns a mutable array reference to the first N items in the slice and the remaining slice.

    If the slice is not at least N in length, this will return None.

    -
    §Examples
    +
    §Examples
    let x = &mut [0, 1, 2];
     
     if let Some((first, elements)) = x.split_first_chunk_mut::<2>() {
    @@ -588,9 +542,9 @@ 
    §Examplesassert_eq!(x, &[3, 4, 5]); assert_eq!(None, x.split_first_chunk_mut::<4>());
    -
    1.77.0 · source

    pub fn split_last_chunk<const N: usize>(&self) -> Option<(&[T], &[T; N])>

    Return an array reference to the last N items in the slice and the remaining slice.

    +
    1.77.0 · source

    pub fn split_last_chunk<const N: usize>(&self) -> Option<(&[T], &[T; N])>

    Returns an array reference to the last N items in the slice and the remaining slice.

    If the slice is not at least N in length, this will return None.

    -
    §Examples
    +
    §Examples
    let x = &[0, 1, 2];
     
     if let Some((elements, last)) = x.split_last_chunk::<2>() {
    @@ -599,12 +553,12 @@ 
    §Examplesassert_eq!(None, x.split_last_chunk::<4>());
    -
    1.77.0 · source

    pub fn split_last_chunk_mut<const N: usize>( +

    1.77.0 · source

    pub fn split_last_chunk_mut<const N: usize>( &mut self, -) -> Option<(&mut [T], &mut [T; N])>

    Return a mutable array reference to the last N items in the slice and the remaining +) -> Option<(&mut [T], &mut [T; N])>

    Returns a mutable array reference to the last N items in the slice and the remaining slice.

    If the slice is not at least N in length, this will return None.

    -
    §Examples
    +
    §Examples
    let x = &mut [0, 1, 2];
     
     if let Some((elements, last)) = x.split_last_chunk_mut::<2>() {
    @@ -615,9 +569,9 @@ 
    §Examplesassert_eq!(x, &[5, 3, 4]); assert_eq!(None, x.split_last_chunk_mut::<4>());
    -
    1.77.0 · source

    pub fn last_chunk<const N: usize>(&self) -> Option<&[T; N]>

    Return an array reference to the last N items in the slice.

    +
    1.77.0 · source

    pub fn last_chunk<const N: usize>(&self) -> Option<&[T; N]>

    Returns an array reference to the last N items in the slice.

    If the slice is not at least N in length, this will return None.

    -
    §Examples
    +
    §Examples
    let u = [10, 40, 30];
     assert_eq!(Some(&[40, 30]), u.last_chunk::<2>());
     
    @@ -626,9 +580,9 @@ 
    §Exampleslet w: &[i32] = &[]; assert_eq!(Some(&[]), w.last_chunk::<0>());
    -
    1.77.0 · source

    pub fn last_chunk_mut<const N: usize>(&mut self) -> Option<&mut [T; N]>

    Return a mutable array reference to the last N items in the slice.

    +
    1.77.0 · source

    pub fn last_chunk_mut<const N: usize>(&mut self) -> Option<&mut [T; N]>

    Returns a mutable array reference to the last N items in the slice.

    If the slice is not at least N in length, this will return None.

    -
    §Examples
    +
    §Examples
    let x = &mut [0, 1, 2];
     
     if let Some(last) = x.last_chunk_mut::<2>() {
    @@ -638,7 +592,7 @@ 
    §Examplesassert_eq!(x, &[0, 10, 20]); assert_eq!(None, x.last_chunk_mut::<4>());
    -
    1.0.0 · source

    pub fn get<I>(&self, index: I) -> Option<&<I as SliceIndex<[T]>>::Output>
    where +

    1.0.0 · source

    pub fn get<I>(&self, index: I) -> Option<&<I as SliceIndex<[T]>>::Output>
    where I: SliceIndex<[T]>,

    Returns a reference to an element or subslice depending on the type of index.

      @@ -647,26 +601,26 @@
      §ExamplesIf given a range, returns the subslice corresponding to that range, or None if out of bounds.
    -
    §Examples
    +
    §Examples
    let v = [10, 40, 30];
     assert_eq!(Some(&40), v.get(1));
     assert_eq!(Some(&[10, 40][..]), v.get(0..2));
     assert_eq!(None, v.get(3));
     assert_eq!(None, v.get(0..4));
    -
    1.0.0 · source

    pub fn get_mut<I>( +

    1.0.0 · source

    pub fn get_mut<I>( &mut self, index: I, ) -> Option<&mut <I as SliceIndex<[T]>>::Output>
    where I: SliceIndex<[T]>,

    Returns a mutable reference to an element or subslice depending on the type of index (see get) or None if the index is out of bounds.

    -
    §Examples
    +
    §Examples
    let x = &mut [0, 1, 2];
     
     if let Some(elem) = x.get_mut(1) {
         *elem = 42;
     }
     assert_eq!(x, &[0, 42, 2]);
    -
    1.0.0 · source

    pub unsafe fn get_unchecked<I>( +

    1.0.0 · source

    pub unsafe fn get_unchecked<I>( &self, index: I, ) -> &<I as SliceIndex<[T]>>::Output
    where @@ -680,13 +634,13 @@
    §Safety
    to call .get_unchecked(len), even if you immediately convert to a pointer. And it’s UB to call .get_unchecked(..len + 1), .get_unchecked(..=len), or similar.

    -
    §Examples
    +
    §Examples
    let x = &[1, 2, 4];
     
     unsafe {
         assert_eq!(x.get_unchecked(1), &2);
     }
    -

    1.0.0 · source

    pub unsafe fn get_unchecked_mut<I>( +

    1.0.0 · source

    pub unsafe fn get_unchecked_mut<I>( &mut self, index: I, ) -> &mut <I as SliceIndex<[T]>>::Output
    where @@ -700,7 +654,7 @@
    §Safety
    UB to call .get_unchecked_mut(len), even if you immediately convert to a pointer. And it’s UB to call .get_unchecked_mut(..len + 1), .get_unchecked_mut(..=len), or similar.

    -
    §Examples
    +
    §Examples
    let x = &mut [1, 2, 4];
     
     unsafe {
    @@ -708,15 +662,15 @@ 
    §Examples*elem = 13; } assert_eq!(x, &[1, 13, 4]);
    -

    1.0.0 · source

    pub fn as_ptr(&self) -> *const T

    Returns a raw pointer to the slice’s buffer.

    +
    1.0.0 · source

    pub fn as_ptr(&self) -> *const T

    Returns a raw pointer to the slice’s buffer.

    The caller must ensure that the slice outlives the pointer this -function returns, or else it will end up pointing to garbage.

    +function returns, or else it will end up dangling.

    The caller must also ensure that the memory the pointer (non-transitively) points to is never written to (except inside an UnsafeCell) using this pointer or any pointer derived from it. If you need to mutate the contents of the slice, use as_mut_ptr.

    Modifying the container referenced by this slice may cause its buffer to be reallocated, which would also make any pointers to it invalid.

    -
    §Examples
    +
    §Examples
    let x = &[1, 2, 4];
     let x_ptr = x.as_ptr();
     
    @@ -725,12 +679,12 @@ 
    §Examplesassert_eq!(x.get_unchecked(i), &*x_ptr.add(i)); } }
    -
    1.0.0 · source

    pub fn as_mut_ptr(&mut self) -> *mut T

    Returns an unsafe mutable pointer to the slice’s buffer.

    +
    1.0.0 · source

    pub fn as_mut_ptr(&mut self) -> *mut T

    Returns an unsafe mutable pointer to the slice’s buffer.

    The caller must ensure that the slice outlives the pointer this -function returns, or else it will end up pointing to garbage.

    +function returns, or else it will end up dangling.

    Modifying the container referenced by this slice may cause its buffer to be reallocated, which would also make any pointers to it invalid.

    -
    §Examples
    +
    §Examples
    let x = &mut [1, 2, 4];
     let x_ptr = x.as_mut_ptr();
     
    @@ -740,7 +694,7 @@ 
    §Examplesassert_eq!(x, &[3, 4, 6]);
    -
    1.48.0 · source

    pub fn as_ptr_range(&self) -> Range<*const T>

    Returns the two raw pointers spanning the slice.

    +
    1.48.0 · source

    pub fn as_ptr_range(&self) -> Range<*const T>

    Returns the two raw pointers spanning the slice.

    The returned range is half-open, which means that the end pointer points one past the last element of the slice. This way, an empty slice is represented by two equal pointers, and the difference between @@ -760,7 +714,7 @@

    §Examplesassert!(a.as_ptr_range().contains(&x)); assert!(!a.as_ptr_range().contains(&y));
    -
    1.48.0 · source

    pub fn as_mut_ptr_range(&mut self) -> Range<*mut T>

    Returns the two unsafe mutable pointers spanning the slice.

    +
    1.48.0 · source

    pub fn as_mut_ptr_range(&mut self) -> Range<*mut T>

    Returns the two unsafe mutable pointers spanning the slice.

    The returned range is half-open, which means that the end pointer points one past the last element of the slice. This way, an empty slice is represented by two equal pointers, and the difference between @@ -771,20 +725,20 @@

    §ExamplesThis function is useful for interacting with foreign interfaces which use two pointers to refer to a range of elements in memory, as is common in C++.

    -
    1.0.0 · source

    pub fn swap(&mut self, a: usize, b: usize)

    Swaps two elements in the slice.

    +
    1.0.0 · source

    pub fn swap(&mut self, a: usize, b: usize)

    Swaps two elements in the slice.

    If a equals to b, it’s guaranteed that elements won’t change value.

    §Arguments
    • a - The index of the first element
    • b - The index of the second element
    -
    §Panics
    +
    §Panics

    Panics if a or b are out of bounds.

    -
    §Examples
    +
    §Examples
    let mut v = ["a", "b", "c", "d", "e"];
     v.swap(2, 4);
     assert!(v == ["a", "b", "e", "d", "c"]);
    -
    source

    pub unsafe fn swap_unchecked(&mut self, a: usize, b: usize)

    🔬This is a nightly-only experimental API. (slice_swap_unchecked)

    Swaps two elements in the slice, without doing bounds checking.

    +
    source

    pub unsafe fn swap_unchecked(&mut self, a: usize, b: usize)

    🔬This is a nightly-only experimental API. (slice_swap_unchecked)

    Swaps two elements in the slice, without doing bounds checking.

    For a safe alternative see swap.

    §Arguments
      @@ -794,21 +748,21 @@
      §Arguments§Safety

      Calling this method with an out-of-bounds index is undefined behavior. The caller has to ensure that a < self.len() and b < self.len().

      -
      §Examples
      +
      §Examples
      #![feature(slice_swap_unchecked)]
       
       let mut v = ["a", "b", "c", "d"];
       // SAFETY: we know that 1 and 3 are both indices of the slice
       unsafe { v.swap_unchecked(1, 3) };
       assert!(v == ["a", "d", "c", "b"]);
      -
    1.0.0 · source

    pub fn reverse(&mut self)

    Reverses the order of elements in the slice, in place.

    -
    §Examples
    +
    1.0.0 · source

    pub fn reverse(&mut self)

    Reverses the order of elements in the slice, in place.

    +
    §Examples
    let mut v = [1, 2, 3];
     v.reverse();
     assert!(v == [3, 2, 1]);
    -
    1.0.0 · source

    pub fn iter(&self) -> Iter<'_, T>

    Returns an iterator over the slice.

    +
    1.0.0 · source

    pub fn iter(&self) -> Iter<'_, T>

    Returns an iterator over the slice.

    The iterator yields all items from start to end.

    -
    §Examples
    +
    §Examples
    let x = &[1, 2, 4];
     let mut iterator = x.iter();
     
    @@ -816,20 +770,20 @@ 
    §Examplesassert_eq!(iterator.next(), Some(&2)); assert_eq!(iterator.next(), Some(&4)); assert_eq!(iterator.next(), None);
    -
    1.0.0 · source

    pub fn iter_mut(&mut self) -> IterMut<'_, T>

    Returns an iterator that allows modifying each value.

    +
    1.0.0 · source

    pub fn iter_mut(&mut self) -> IterMut<'_, T>

    Returns an iterator that allows modifying each value.

    The iterator yields all items from start to end.

    -
    §Examples
    +
    §Examples
    let x = &mut [1, 2, 4];
     for elem in x.iter_mut() {
         *elem += 2;
     }
     assert_eq!(x, &[3, 4, 6]);
    -
    1.0.0 · source

    pub fn windows(&self, size: usize) -> Windows<'_, T>

    Returns an iterator over all contiguous windows of length +

    1.0.0 · source

    pub fn windows(&self, size: usize) -> Windows<'_, T>

    Returns an iterator over all contiguous windows of length size. The windows overlap. If the slice is shorter than size, the iterator returns no values.

    -
    §Panics
    +
    §Panics

    Panics if size is 0.

    -
    §Examples
    +
    §Examples
    let slice = ['l', 'o', 'r', 'e', 'm'];
     let mut iter = slice.windows(3);
     assert_eq!(iter.next().unwrap(), &['l', 'o', 'r']);
    @@ -855,32 +809,32 @@ 
    §Examples&w[0], &w[2]); } assert_eq!(array, ['s', 't', ' ', '2', '0', '1', '5', 'u', 'R']);
    -
    1.0.0 · source

    pub fn chunks(&self, chunk_size: usize) -> Chunks<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the +

    1.0.0 · source

    pub fn chunks(&self, chunk_size: usize) -> Chunks<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the beginning of the slice.

    The chunks are slices and do not overlap. If chunk_size does not divide the length of the slice, then the last chunk will not have length chunk_size.

    See chunks_exact for a variant of this iterator that returns chunks of always exactly chunk_size elements, and rchunks for the same iterator but starting at the end of the slice.

    -
    §Panics
    +
    §Panics

    Panics if chunk_size is 0.

    -
    §Examples
    +
    §Examples
    let slice = ['l', 'o', 'r', 'e', 'm'];
     let mut iter = slice.chunks(2);
     assert_eq!(iter.next().unwrap(), &['l', 'o']);
     assert_eq!(iter.next().unwrap(), &['r', 'e']);
     assert_eq!(iter.next().unwrap(), &['m']);
     assert!(iter.next().is_none());
    -
    1.0.0 · source

    pub fn chunks_mut(&mut self, chunk_size: usize) -> ChunksMut<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the +

    1.0.0 · source

    pub fn chunks_mut(&mut self, chunk_size: usize) -> ChunksMut<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the beginning of the slice.

    The chunks are mutable slices, and do not overlap. If chunk_size does not divide the length of the slice, then the last chunk will not have length chunk_size.

    See chunks_exact_mut for a variant of this iterator that returns chunks of always exactly chunk_size elements, and rchunks_mut for the same iterator but starting at the end of the slice.

    -
    §Panics
    +
    §Panics

    Panics if chunk_size is 0.

    -
    §Examples
    +
    §Examples
    let v = &mut [0, 0, 0, 0, 0];
     let mut count = 1;
     
    @@ -891,7 +845,7 @@ 
    §Examples1; } assert_eq!(v, &[1, 1, 2, 2, 3]);
    -
    1.31.0 · source

    pub fn chunks_exact(&self, chunk_size: usize) -> ChunksExact<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the +

    1.31.0 · source

    pub fn chunks_exact(&self, chunk_size: usize) -> ChunksExact<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the beginning of the slice.

    The chunks are slices and do not overlap. If chunk_size does not divide the length of the slice, then the last up to chunk_size-1 elements will be omitted and can be retrieved @@ -900,16 +854,16 @@

    §Exampleschunks.

    See chunks for a variant of this iterator that also returns the remainder as a smaller chunk, and rchunks_exact for the same iterator but starting at the end of the slice.

    -
    §Panics
    +
    §Panics

    Panics if chunk_size is 0.

    -
    §Examples
    +
    §Examples
    let slice = ['l', 'o', 'r', 'e', 'm'];
     let mut iter = slice.chunks_exact(2);
     assert_eq!(iter.next().unwrap(), &['l', 'o']);
     assert_eq!(iter.next().unwrap(), &['r', 'e']);
     assert!(iter.next().is_none());
     assert_eq!(iter.remainder(), &['m']);
    -
    1.31.0 · source

    pub fn chunks_exact_mut(&mut self, chunk_size: usize) -> ChunksExactMut<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the +

    1.31.0 · source

    pub fn chunks_exact_mut(&mut self, chunk_size: usize) -> ChunksExactMut<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the beginning of the slice.

    The chunks are mutable slices, and do not overlap. If chunk_size does not divide the length of the slice, then the last up to chunk_size-1 elements will be omitted and can be @@ -919,9 +873,9 @@

    §ExamplesSee chunks_mut for a variant of this iterator that also returns the remainder as a smaller chunk, and rchunks_exact_mut for the same iterator but starting at the end of the slice.

    -
    §Panics
    +
    §Panics

    Panics if chunk_size is 0.

    -
    §Examples
    +
    §Examples
    let v = &mut [0, 0, 0, 0, 0];
     let mut count = 1;
     
    @@ -932,7 +886,7 @@ 
    §Examples1; } assert_eq!(v, &[1, 1, 2, 2, 0]);
    -
    source

    pub unsafe fn as_chunks_unchecked<const N: usize>(&self) -> &[[T; N]]

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, +

    source

    pub unsafe fn as_chunks_unchecked<const N: usize>(&self) -> &[[T; N]]

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, assuming that there’s no remainder.

    §Safety

    This may only be called when

    @@ -940,7 +894,7 @@
    §Safety
  • The slice splits exactly into N-element chunks (aka self.len() % N == 0).
  • N != 0.
  • -
    §Examples
    +
    §Examples
    #![feature(slice_as_chunks)]
     let slice: &[char] = &['l', 'o', 'r', 'e', 'm', '!'];
     let chunks: &[[char; 1]] =
    @@ -955,13 +909,13 @@ 
    §Examples// These would be unsound: // let chunks: &[[_; 5]] = slice.as_chunks_unchecked() // The slice length is not a multiple of 5 // let chunks: &[[_; 0]] = slice.as_chunks_unchecked() // Zero-length chunks are never allowed
    -
    source

    pub fn as_chunks<const N: usize>(&self) -> (&[[T; N]], &[T])

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, +

    source

    pub fn as_chunks<const N: usize>(&self) -> (&[[T; N]], &[T])

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, starting at the beginning of the slice, and a remainder slice with length strictly less than N.

    -
    §Panics
    +
    §Panics

    Panics if N is 0. This check will most probably get changed to a compile time error before this method gets stabilized.

    -
    §Examples
    +
    §Examples
    #![feature(slice_as_chunks)]
     let slice = ['l', 'o', 'r', 'e', 'm'];
     let (chunks, remainder) = slice.as_chunks();
    @@ -976,28 +930,28 @@ 
    §Examplespanic!("slice didn't have even length") }; assert_eq!(chunks, &[['R', 'u'], ['s', 't']]);
    -
    source

    pub fn as_rchunks<const N: usize>(&self) -> (&[T], &[[T; N]])

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, +

    source

    pub fn as_rchunks<const N: usize>(&self) -> (&[T], &[[T; N]])

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, starting at the end of the slice, and a remainder slice with length strictly less than N.

    -
    §Panics
    +
    §Panics

    Panics if N is 0. This check will most probably get changed to a compile time error before this method gets stabilized.

    -
    §Examples
    +
    §Examples
    #![feature(slice_as_chunks)]
     let slice = ['l', 'o', 'r', 'e', 'm'];
     let (remainder, chunks) = slice.as_rchunks();
     assert_eq!(remainder, &['l']);
     assert_eq!(chunks, &[['o', 'r'], ['e', 'm']]);
    -
    source

    pub fn array_chunks<const N: usize>(&self) -> ArrayChunks<'_, T, N>

    🔬This is a nightly-only experimental API. (array_chunks)

    Returns an iterator over N elements of the slice at a time, starting at the +

    source

    pub fn array_chunks<const N: usize>(&self) -> ArrayChunks<'_, T, N>

    🔬This is a nightly-only experimental API. (array_chunks)

    Returns an iterator over N elements of the slice at a time, starting at the beginning of the slice.

    The chunks are array references and do not overlap. If N does not divide the length of the slice, then the last up to N-1 elements will be omitted and can be retrieved from the remainder function of the iterator.

    This method is the const generic equivalent of chunks_exact.

    -
    §Panics
    +
    §Panics

    Panics if N is 0. This check will most probably get changed to a compile time error before this method gets stabilized.

    -
    §Examples
    +
    §Examples
    #![feature(array_chunks)]
     let slice = ['l', 'o', 'r', 'e', 'm'];
     let mut iter = slice.array_chunks();
    @@ -1005,7 +959,7 @@ 
    §Examplesassert_eq!(iter.next().unwrap(), &['r', 'e']); assert!(iter.next().is_none()); assert_eq!(iter.remainder(), &['m']);
    -
    source

    pub unsafe fn as_chunks_unchecked_mut<const N: usize>( +

    source

    pub unsafe fn as_chunks_unchecked_mut<const N: usize>( &mut self, ) -> &mut [[T; N]]

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, assuming that there’s no remainder.

    @@ -1015,7 +969,7 @@
    §Safety
  • The slice splits exactly into N-element chunks (aka self.len() % N == 0).
  • N != 0.
  • -
    §Examples
    +
    §Examples
    #![feature(slice_as_chunks)]
     let slice: &mut [char] = &mut ['l', 'o', 'r', 'e', 'm', '!'];
     let chunks: &mut [[char; 1]] =
    @@ -1032,13 +986,13 @@ 
    §Examples// These would be unsound: // let chunks: &[[_; 5]] = slice.as_chunks_unchecked_mut() // The slice length is not a multiple of 5 // let chunks: &[[_; 0]] = slice.as_chunks_unchecked_mut() // Zero-length chunks are never allowed
    -
    source

    pub fn as_chunks_mut<const N: usize>(&mut self) -> (&mut [[T; N]], &mut [T])

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, +

    source

    pub fn as_chunks_mut<const N: usize>(&mut self) -> (&mut [[T; N]], &mut [T])

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, starting at the beginning of the slice, and a remainder slice with length strictly less than N.

    -
    §Panics
    +
    §Panics

    Panics if N is 0. This check will most probably get changed to a compile time error before this method gets stabilized.

    -
    §Examples
    +
    §Examples
    #![feature(slice_as_chunks)]
     let v = &mut [0, 0, 0, 0, 0];
     let mut count = 1;
    @@ -1050,13 +1004,13 @@ 
    §Examples1; } assert_eq!(v, &[1, 1, 2, 2, 9]);
    -
    source

    pub fn as_rchunks_mut<const N: usize>(&mut self) -> (&mut [T], &mut [[T; N]])

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, +

    source

    pub fn as_rchunks_mut<const N: usize>(&mut self) -> (&mut [T], &mut [[T; N]])

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, starting at the end of the slice, and a remainder slice with length strictly less than N.

    -
    §Panics
    +
    §Panics

    Panics if N is 0. This check will most probably get changed to a compile time error before this method gets stabilized.

    -
    §Examples
    +
    §Examples
    #![feature(slice_as_chunks)]
     let v = &mut [0, 0, 0, 0, 0];
     let mut count = 1;
    @@ -1068,16 +1022,16 @@ 
    §Examples1; } assert_eq!(v, &[9, 1, 1, 2, 2]);
    -
    source

    pub fn array_chunks_mut<const N: usize>(&mut self) -> ArrayChunksMut<'_, T, N>

    🔬This is a nightly-only experimental API. (array_chunks)

    Returns an iterator over N elements of the slice at a time, starting at the +

    source

    pub fn array_chunks_mut<const N: usize>(&mut self) -> ArrayChunksMut<'_, T, N>

    🔬This is a nightly-only experimental API. (array_chunks)

    Returns an iterator over N elements of the slice at a time, starting at the beginning of the slice.

    The chunks are mutable array references and do not overlap. If N does not divide the length of the slice, then the last up to N-1 elements will be omitted and can be retrieved from the into_remainder function of the iterator.

    This method is the const generic equivalent of chunks_exact_mut.

    -
    §Panics
    +
    §Panics

    Panics if N is 0. This check will most probably get changed to a compile time error before this method gets stabilized.

    -
    §Examples
    +
    §Examples
    #![feature(array_chunks)]
     let v = &mut [0, 0, 0, 0, 0];
     let mut count = 1;
    @@ -1087,14 +1041,14 @@ 
    §Examples1; } assert_eq!(v, &[1, 1, 2, 2, 0]);
    -
    source

    pub fn array_windows<const N: usize>(&self) -> ArrayWindows<'_, T, N>

    🔬This is a nightly-only experimental API. (array_windows)

    Returns an iterator over overlapping windows of N elements of a slice, +

    source

    pub fn array_windows<const N: usize>(&self) -> ArrayWindows<'_, T, N>

    🔬This is a nightly-only experimental API. (array_windows)

    Returns an iterator over overlapping windows of N elements of a slice, starting at the beginning of the slice.

    This is the const generic equivalent of windows.

    If N is greater than the size of the slice, it will return no windows.

    -
    §Panics
    +
    §Panics

    Panics if N is 0. This check will most probably get changed to a compile time error before this method gets stabilized.

    -
    §Examples
    +
    §Examples
    #![feature(array_windows)]
     let slice = [0, 1, 2, 3];
     let mut iter = slice.array_windows();
    @@ -1102,32 +1056,32 @@ 
    §Examplesassert_eq!(iter.next().unwrap(), &[1, 2]); assert_eq!(iter.next().unwrap(), &[2, 3]); assert!(iter.next().is_none());
    -
    1.31.0 · source

    pub fn rchunks(&self, chunk_size: usize) -> RChunks<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the end +

    1.31.0 · source

    pub fn rchunks(&self, chunk_size: usize) -> RChunks<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the end of the slice.

    The chunks are slices and do not overlap. If chunk_size does not divide the length of the slice, then the last chunk will not have length chunk_size.

    See rchunks_exact for a variant of this iterator that returns chunks of always exactly chunk_size elements, and chunks for the same iterator but starting at the beginning of the slice.

    -
    §Panics
    +
    §Panics

    Panics if chunk_size is 0.

    -
    §Examples
    +
    §Examples
    let slice = ['l', 'o', 'r', 'e', 'm'];
     let mut iter = slice.rchunks(2);
     assert_eq!(iter.next().unwrap(), &['e', 'm']);
     assert_eq!(iter.next().unwrap(), &['o', 'r']);
     assert_eq!(iter.next().unwrap(), &['l']);
     assert!(iter.next().is_none());
    -
    1.31.0 · source

    pub fn rchunks_mut(&mut self, chunk_size: usize) -> RChunksMut<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the end +

    1.31.0 · source

    pub fn rchunks_mut(&mut self, chunk_size: usize) -> RChunksMut<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the end of the slice.

    The chunks are mutable slices, and do not overlap. If chunk_size does not divide the length of the slice, then the last chunk will not have length chunk_size.

    See rchunks_exact_mut for a variant of this iterator that returns chunks of always exactly chunk_size elements, and chunks_mut for the same iterator but starting at the beginning of the slice.

    -
    §Panics
    +
    §Panics

    Panics if chunk_size is 0.

    -
    §Examples
    +
    §Examples
    let v = &mut [0, 0, 0, 0, 0];
     let mut count = 1;
     
    @@ -1138,7 +1092,7 @@ 
    §Examples1; } assert_eq!(v, &[3, 2, 2, 1, 1]);
    -
    1.31.0 · source

    pub fn rchunks_exact(&self, chunk_size: usize) -> RChunksExact<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the +

    1.31.0 · source

    pub fn rchunks_exact(&self, chunk_size: usize) -> RChunksExact<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the end of the slice.

    The chunks are slices and do not overlap. If chunk_size does not divide the length of the slice, then the last up to chunk_size-1 elements will be omitted and can be retrieved @@ -1148,16 +1102,16 @@

    §ExamplesSee rchunks for a variant of this iterator that also returns the remainder as a smaller chunk, and chunks_exact for the same iterator but starting at the beginning of the slice.

    -
    §Panics
    +
    §Panics

    Panics if chunk_size is 0.

    -
    §Examples
    +
    §Examples
    let slice = ['l', 'o', 'r', 'e', 'm'];
     let mut iter = slice.rchunks_exact(2);
     assert_eq!(iter.next().unwrap(), &['e', 'm']);
     assert_eq!(iter.next().unwrap(), &['o', 'r']);
     assert!(iter.next().is_none());
     assert_eq!(iter.remainder(), &['l']);
    -
    1.31.0 · source

    pub fn rchunks_exact_mut(&mut self, chunk_size: usize) -> RChunksExactMut<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the end +

    1.31.0 · source

    pub fn rchunks_exact_mut(&mut self, chunk_size: usize) -> RChunksExactMut<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the end of the slice.

    The chunks are mutable slices, and do not overlap. If chunk_size does not divide the length of the slice, then the last up to chunk_size-1 elements will be omitted and can be @@ -1167,9 +1121,9 @@

    §ExamplesSee rchunks_mut for a variant of this iterator that also returns the remainder as a smaller chunk, and chunks_exact_mut for the same iterator but starting at the beginning of the slice.

    -
    §Panics
    +
    §Panics

    Panics if chunk_size is 0.

    -
    §Examples
    +
    §Examples
    let v = &mut [0, 0, 0, 0, 0];
     let mut count = 1;
     
    @@ -1180,13 +1134,13 @@ 
    §Examples1; } assert_eq!(v, &[0, 2, 2, 1, 1]);
    -
    1.77.0 · source

    pub fn chunk_by<F>(&self, pred: F) -> ChunkBy<'_, T, F>
    where +

    1.77.0 · source

    pub fn chunk_by<F>(&self, pred: F) -> ChunkBy<'_, T, F>
    where F: FnMut(&T, &T) -> bool,

    Returns an iterator over the slice producing non-overlapping runs of elements using the predicate to separate them.

    The predicate is called for every pair of consecutive elements, meaning that it is called on slice[0] and slice[1], followed by slice[1] and slice[2], and so on.

    -
    §Examples
    +
    §Examples
    let slice = &[1, 1, 1, 3, 3, 2, 2, 2];
     
     let mut iter = slice.chunk_by(|a, b| a == b);
    @@ -1205,13 +1159,13 @@ 
    §Examplesassert_eq!(iter.next(), Some(&[2, 3][..])); assert_eq!(iter.next(), Some(&[2, 3, 4][..])); assert_eq!(iter.next(), None);
    -
    1.77.0 · source

    pub fn chunk_by_mut<F>(&mut self, pred: F) -> ChunkByMut<'_, T, F>
    where +

    1.77.0 · source

    pub fn chunk_by_mut<F>(&mut self, pred: F) -> ChunkByMut<'_, T, F>
    where F: FnMut(&T, &T) -> bool,

    Returns an iterator over the slice producing non-overlapping mutable runs of elements using the predicate to separate them.

    The predicate is called for every pair of consecutive elements, meaning that it is called on slice[0] and slice[1], followed by slice[1] and slice[2], and so on.

    -
    §Examples
    +
    §Examples
    let slice = &mut [1, 1, 1, 3, 3, 2, 2, 2];
     
     let mut iter = slice.chunk_by_mut(|a, b| a == b);
    @@ -1230,14 +1184,14 @@ 
    §Examplesassert_eq!(iter.next(), Some(&mut [2, 3][..])); assert_eq!(iter.next(), Some(&mut [2, 3, 4][..])); assert_eq!(iter.next(), None);
    -
    1.0.0 · source

    pub fn split_at(&self, mid: usize) -> (&[T], &[T])

    Divides one slice into two at an index.

    +
    1.0.0 · source

    pub fn split_at(&self, mid: usize) -> (&[T], &[T])

    Divides one slice into two at an index.

    The first will contain all indices from [0, mid) (excluding the index mid itself) and the second will contain all indices from [mid, len) (excluding the index len itself).

    -
    §Panics
    +
    §Panics

    Panics if mid > len. For a non-panicking alternative see split_at_checked.

    -
    §Examples
    +
    §Examples
    let v = [1, 2, 3, 4, 5, 6];
     
     {
    @@ -1257,14 +1211,14 @@ 
    §Examplesassert_eq!(left, [1, 2, 3, 4, 5, 6]); assert_eq!(right, []); }
    -
    1.0.0 · source

    pub fn split_at_mut(&mut self, mid: usize) -> (&mut [T], &mut [T])

    Divides one mutable slice into two at an index.

    +
    1.0.0 · source

    pub fn split_at_mut(&mut self, mid: usize) -> (&mut [T], &mut [T])

    Divides one mutable slice into two at an index.

    The first will contain all indices from [0, mid) (excluding the index mid itself) and the second will contain all indices from [mid, len) (excluding the index len itself).

    -
    §Panics
    +
    §Panics

    Panics if mid > len. For a non-panicking alternative see split_at_mut_checked.

    -
    §Examples
    +
    §Examples
    let mut v = [1, 0, 3, 0, 5, 6];
     let (left, right) = v.split_at_mut(2);
     assert_eq!(left, [1, 0]);
    @@ -1272,7 +1226,7 @@ 
    §Examples1] = 2; right[1] = 4; assert_eq!(v, [1, 2, 3, 4, 5, 6]);
    -
    1.79.0 · source

    pub unsafe fn split_at_unchecked(&self, mid: usize) -> (&[T], &[T])

    Divides one slice into two at an index, without doing bounds checking.

    +
    1.79.0 · source

    pub unsafe fn split_at_unchecked(&self, mid: usize) -> (&[T], &[T])

    Divides one slice into two at an index, without doing bounds checking.

    The first will contain all indices from [0, mid) (excluding the index mid itself) and the second will contain all indices from [mid, len) (excluding the index len itself).

    @@ -1281,7 +1235,7 @@
    §Safety

    Calling this method with an out-of-bounds index is undefined behavior even if the resulting reference is not used. The caller has to ensure that 0 <= mid <= self.len().

    -
    §Examples
    +
    §Examples
    let v = [1, 2, 3, 4, 5, 6];
     
     unsafe {
    @@ -1301,7 +1255,7 @@ 
    §Examplesassert_eq!(left, [1, 2, 3, 4, 5, 6]); assert_eq!(right, []); }
    -
    1.79.0 · source

    pub unsafe fn split_at_mut_unchecked( +

    1.79.0 · source

    pub unsafe fn split_at_mut_unchecked( &mut self, mid: usize, ) -> (&mut [T], &mut [T])

    Divides one mutable slice into two at an index, without doing bounds checking.

    @@ -1313,7 +1267,7 @@
    §Safety

    Calling this method with an out-of-bounds index is undefined behavior even if the resulting reference is not used. The caller has to ensure that 0 <= mid <= self.len().

    -
    §Examples
    +
    §Examples
    let mut v = [1, 0, 3, 0, 5, 6];
     // scoped to restrict the lifetime of the borrows
     unsafe {
    @@ -1324,14 +1278,14 @@ 
    §Examples1] = 4; } assert_eq!(v, [1, 2, 3, 4, 5, 6]);
    -
    1.80.0 · source

    pub fn split_at_checked(&self, mid: usize) -> Option<(&[T], &[T])>

    Divides one slice into two at an index, returning None if the slice is +

    1.80.0 · source

    pub fn split_at_checked(&self, mid: usize) -> Option<(&[T], &[T])>

    Divides one slice into two at an index, returning None if the slice is too short.

    If mid ≤ len returns a pair of slices where the first will contain all indices from [0, mid) (excluding the index mid itself) and the second will contain all indices from [mid, len) (excluding the index len itself).

    Otherwise, if mid > len, returns None.

    -
    §Examples
    +
    §Examples
    let v = [1, -2, 3, -4, 5, -6];
     
     {
    @@ -1353,7 +1307,7 @@ 
    §Examplesassert_eq!(None, v.split_at_checked(7));
    -
    1.80.0 · source

    pub fn split_at_mut_checked( +

    1.80.0 · source

    pub fn split_at_mut_checked( &mut self, mid: usize, ) -> Option<(&mut [T], &mut [T])>

    Divides one mutable slice into two at an index, returning None if the @@ -1363,7 +1317,7 @@

    §Examples[mid, len) (excluding the index len itself).

    Otherwise, if mid > len, returns None.

    -
    §Examples
    +
    §Examples
    let mut v = [1, 0, 3, 0, 5, 6];
     
     if let Some((left, right)) = v.split_at_mut_checked(2) {
    @@ -1375,10 +1329,10 @@ 
    §Examplesassert_eq!(v, [1, 2, 3, 4, 5, 6]); assert_eq!(None, v.split_at_mut_checked(7));
    -
    1.0.0 · source

    pub fn split<F>(&self, pred: F) -> Split<'_, T, F>
    where +

    1.0.0 · source

    pub fn split<F>(&self, pred: F) -> Split<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over subslices separated by elements that match pred. The matched element is not contained in the subslices.

    -
    §Examples
    +
    §Examples
    let slice = [10, 40, 33, 20];
     let mut iter = slice.split(|num| num % 3 == 0);
     
    @@ -1406,21 +1360,21 @@ 
    §Examplesassert_eq!(iter.next().unwrap(), &[]); assert_eq!(iter.next().unwrap(), &[20]); assert!(iter.next().is_none());
    -
    1.0.0 · source

    pub fn split_mut<F>(&mut self, pred: F) -> SplitMut<'_, T, F>
    where +

    1.0.0 · source

    pub fn split_mut<F>(&mut self, pred: F) -> SplitMut<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over mutable subslices separated by elements that match pred. The matched element is not contained in the subslices.

    -
    §Examples
    +
    §Examples
    let mut v = [10, 40, 30, 20, 60, 50];
     
     for group in v.split_mut(|num| *num % 3 == 0) {
         group[0] = 1;
     }
     assert_eq!(v, [1, 40, 30, 1, 60, 1]);
    -
    1.51.0 · source

    pub fn split_inclusive<F>(&self, pred: F) -> SplitInclusive<'_, T, F>
    where +

    1.51.0 · source

    pub fn split_inclusive<F>(&self, pred: F) -> SplitInclusive<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over subslices separated by elements that match pred. The matched element is contained in the end of the previous subslice as a terminator.

    -
    §Examples
    +
    §Examples
    let slice = [10, 40, 33, 20];
     let mut iter = slice.split_inclusive(|num| num % 3 == 0);
     
    @@ -1437,11 +1391,11 @@ 
    §Examplesassert_eq!(iter.next().unwrap(), &[3]); assert_eq!(iter.next().unwrap(), &[10, 40, 33]); assert!(iter.next().is_none());
    -
    1.51.0 · source

    pub fn split_inclusive_mut<F>(&mut self, pred: F) -> SplitInclusiveMut<'_, T, F>
    where +

    1.51.0 · source

    pub fn split_inclusive_mut<F>(&mut self, pred: F) -> SplitInclusiveMut<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over mutable subslices separated by elements that match pred. The matched element is contained in the previous subslice as a terminator.

    -
    §Examples
    +
    §Examples
    let mut v = [10, 40, 30, 20, 60, 50];
     
     for group in v.split_inclusive_mut(|num| *num % 3 == 0) {
    @@ -1449,11 +1403,11 @@ 
    §Examples1; } assert_eq!(v, [10, 40, 1, 20, 1, 1]);
    -
    1.27.0 · source

    pub fn rsplit<F>(&self, pred: F) -> RSplit<'_, T, F>
    where +

    1.27.0 · source

    pub fn rsplit<F>(&self, pred: F) -> RSplit<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over subslices separated by elements that match pred, starting at the end of the slice and working backwards. The matched element is not contained in the subslices.

    -
    §Examples
    +
    §Examples
    let slice = [11, 22, 33, 0, 44, 55];
     let mut iter = slice.rsplit(|num| *num == 0);
     
    @@ -1470,11 +1424,11 @@ 
    §Examplesassert_eq!(it.next().unwrap(), &[1, 1]); assert_eq!(it.next().unwrap(), &[]); assert_eq!(it.next(), None);
    -
    1.27.0 · source

    pub fn rsplit_mut<F>(&mut self, pred: F) -> RSplitMut<'_, T, F>
    where +

    1.27.0 · source

    pub fn rsplit_mut<F>(&mut self, pred: F) -> RSplitMut<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over mutable subslices separated by elements that match pred, starting at the end of the slice and working backwards. The matched element is not contained in the subslices.

    -
    §Examples
    +
    §Examples
    let mut v = [100, 400, 300, 200, 600, 500];
     
     let mut count = 0;
    @@ -1483,13 +1437,13 @@ 
    §Examples0] = count; } assert_eq!(v, [3, 400, 300, 2, 600, 1]);
    -
    1.0.0 · source

    pub fn splitn<F>(&self, n: usize, pred: F) -> SplitN<'_, T, F>
    where +

    1.0.0 · source

    pub fn splitn<F>(&self, n: usize, pred: F) -> SplitN<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over subslices separated by elements that match pred, limited to returning at most n items. The matched element is not contained in the subslices.

    The last element returned, if any, will contain the remainder of the slice.

    -
    §Examples
    +
    §Examples

    Print the slice split once by numbers divisible by 3 (i.e., [10, 40], [20, 60, 50]):

    @@ -1498,27 +1452,27 @@
    §Examplesfor group in v.splitn(2, |num| *num % 3 == 0) { println!("{group:?}"); }
    -
    1.0.0 · source

    pub fn splitn_mut<F>(&mut self, n: usize, pred: F) -> SplitNMut<'_, T, F>
    where +

    1.0.0 · source

    pub fn splitn_mut<F>(&mut self, n: usize, pred: F) -> SplitNMut<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over mutable subslices separated by elements that match pred, limited to returning at most n items. The matched element is not contained in the subslices.

    The last element returned, if any, will contain the remainder of the slice.

    -
    §Examples
    +
    §Examples
    let mut v = [10, 40, 30, 20, 60, 50];
     
     for group in v.splitn_mut(2, |num| *num % 3 == 0) {
         group[0] = 1;
     }
     assert_eq!(v, [1, 40, 30, 1, 60, 50]);
    -
    1.0.0 · source

    pub fn rsplitn<F>(&self, n: usize, pred: F) -> RSplitN<'_, T, F>
    where +

    1.0.0 · source

    pub fn rsplitn<F>(&self, n: usize, pred: F) -> RSplitN<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over subslices separated by elements that match pred limited to returning at most n items. This starts at the end of the slice and works backwards. The matched element is not contained in the subslices.

    The last element returned, if any, will contain the remainder of the slice.

    -
    §Examples
    +
    §Examples

    Print the slice split once, starting from the end, by numbers divisible by 3 (i.e., [50], [10, 40, 30, 20]):

    @@ -1527,27 +1481,27 @@
    §Examplesfor group in v.rsplitn(2, |num| *num % 3 == 0) { println!("{group:?}"); }
    -
    1.0.0 · source

    pub fn rsplitn_mut<F>(&mut self, n: usize, pred: F) -> RSplitNMut<'_, T, F>
    where +

    1.0.0 · source

    pub fn rsplitn_mut<F>(&mut self, n: usize, pred: F) -> RSplitNMut<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over subslices separated by elements that match pred limited to returning at most n items. This starts at the end of the slice and works backwards. The matched element is not contained in the subslices.

    The last element returned, if any, will contain the remainder of the slice.

    -
    §Examples
    +
    §Examples
    let mut s = [10, 40, 30, 20, 60, 50];
     
     for group in s.rsplitn_mut(2, |num| *num % 3 == 0) {
         group[0] = 1;
     }
     assert_eq!(s, [1, 40, 30, 20, 60, 1]);
    -
    source

    pub fn split_once<F>(&self, pred: F) -> Option<(&[T], &[T])>
    where +

    source

    pub fn split_once<F>(&self, pred: F) -> Option<(&[T], &[T])>
    where F: FnMut(&T) -> bool,

    🔬This is a nightly-only experimental API. (slice_split_once)

    Splits the slice on the first element that matches the specified predicate.

    If any matching elements are present in the slice, returns the prefix before the match and suffix after. The matching element itself is not included. If no elements match, returns None.

    -
    §Examples
    +
    §Examples
    #![feature(slice_split_once)]
     let s = [1, 2, 3, 2, 4];
     assert_eq!(s.split_once(|&x| x == 2), Some((
    @@ -1555,13 +1509,13 @@ 
    §Examples&[3, 2, 4][..] ))); assert_eq!(s.split_once(|&x| x == 0), None);
    -
    source

    pub fn rsplit_once<F>(&self, pred: F) -> Option<(&[T], &[T])>
    where +

    source

    pub fn rsplit_once<F>(&self, pred: F) -> Option<(&[T], &[T])>
    where F: FnMut(&T) -> bool,

    🔬This is a nightly-only experimental API. (slice_split_once)

    Splits the slice on the last element that matches the specified predicate.

    If any matching elements are present in the slice, returns the prefix before the match and suffix after. The matching element itself is not included. If no elements match, returns None.

    -
    §Examples
    +
    §Examples
    #![feature(slice_split_once)]
     let s = [1, 2, 3, 2, 4];
     assert_eq!(s.rsplit_once(|&x| x == 2), Some((
    @@ -1569,11 +1523,11 @@ 
    §Examples&[4][..] ))); assert_eq!(s.rsplit_once(|&x| x == 0), None);
    -
    1.0.0 · source

    pub fn contains(&self, x: &T) -> bool
    where +

    1.0.0 · source

    pub fn contains(&self, x: &T) -> bool
    where T: PartialEq,

    Returns true if the slice contains an element with the given value.

    This operation is O(n).

    Note that if you have a sorted slice, binary_search may be faster.

    -
    §Examples
    +
    §Examples
    let v = [10, 40, 30];
     assert!(v.contains(&30));
     assert!(!v.contains(&50));
    @@ -1584,9 +1538,9 @@
    §Examples
    let v = [String::from("hello"), String::from("world")]; // slice of `String`
     assert!(v.iter().any(|e| e == "hello")); // search with `&str`
     assert!(!v.iter().any(|e| e == "hi"));
    -
    1.0.0 · source

    pub fn starts_with(&self, needle: &[T]) -> bool
    where +

    1.0.0 · source

    pub fn starts_with(&self, needle: &[T]) -> bool
    where T: PartialEq,

    Returns true if needle is a prefix of the slice or equal to the slice.

    -
    §Examples
    +
    §Examples
    let v = [10, 40, 30];
     assert!(v.starts_with(&[10]));
     assert!(v.starts_with(&[10, 40]));
    @@ -1599,9 +1553,9 @@ 
    §Examplesassert!(v.starts_with(&[])); let v: &[u8] = &[]; assert!(v.starts_with(&[]));
    -
    1.0.0 · source

    pub fn ends_with(&self, needle: &[T]) -> bool
    where +

    1.0.0 · source

    pub fn ends_with(&self, needle: &[T]) -> bool
    where T: PartialEq,

    Returns true if needle is a suffix of the slice or equal to the slice.

    -
    §Examples
    +
    §Examples
    let v = [10, 40, 30];
     assert!(v.ends_with(&[30]));
     assert!(v.ends_with(&[40, 30]));
    @@ -1614,14 +1568,14 @@ 
    §Examplesassert!(v.ends_with(&[])); let v: &[u8] = &[]; assert!(v.ends_with(&[]));
    -
    1.51.0 · source

    pub fn strip_prefix<P>(&self, prefix: &P) -> Option<&[T]>
    where +

    1.51.0 · source

    pub fn strip_prefix<P>(&self, prefix: &P) -> Option<&[T]>
    where P: SlicePattern<Item = T> + ?Sized, T: PartialEq,

    Returns a subslice with the prefix removed.

    If the slice starts with prefix, returns the subslice after the prefix, wrapped in Some. If prefix is empty, simply returns the original slice. If prefix is equal to the original slice, returns an empty slice.

    If the slice does not start with prefix, returns None.

    -
    §Examples
    +
    §Examples
    let v = &[10, 40, 30];
     assert_eq!(v.strip_prefix(&[10]), Some(&[40, 30][..]));
     assert_eq!(v.strip_prefix(&[10, 40]), Some(&[30][..]));
    @@ -1632,21 +1586,21 @@ 
    §Exampleslet prefix : &str = "he"; assert_eq!(b"hello".strip_prefix(prefix.as_bytes()), Some(b"llo".as_ref()));
    -
    1.51.0 · source

    pub fn strip_suffix<P>(&self, suffix: &P) -> Option<&[T]>
    where +

    1.51.0 · source

    pub fn strip_suffix<P>(&self, suffix: &P) -> Option<&[T]>
    where P: SlicePattern<Item = T> + ?Sized, T: PartialEq,

    Returns a subslice with the suffix removed.

    If the slice ends with suffix, returns the subslice before the suffix, wrapped in Some. If suffix is empty, simply returns the original slice. If suffix is equal to the original slice, returns an empty slice.

    If the slice does not end with suffix, returns None.

    -
    §Examples
    +
    §Examples
    let v = &[10, 40, 30];
     assert_eq!(v.strip_suffix(&[30]), Some(&[10, 40][..]));
     assert_eq!(v.strip_suffix(&[40, 30]), Some(&[10][..]));
     assert_eq!(v.strip_suffix(&[10, 40, 30]), Some(&[][..]));
     assert_eq!(v.strip_suffix(&[50]), None);
     assert_eq!(v.strip_suffix(&[50, 30]), None);
    -

    Binary searches this slice for a given element. If the slice is not sorted, the returned result is unspecified and meaningless.

    @@ -1658,7 +1612,7 @@
    §Examples

    See also binary_search_by, binary_search_by_key, and partition_point.

    -
    §Examples
    +
    §Examples

    Looks up a series of four elements. The first is found, with a uniquely determined position; the second and third are not found; the fourth could match any position in [1, 4].

    @@ -1701,7 +1655,7 @@
    §Examples< // to shift less elements. s.insert(idx, num); assert_eq!(s, [0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 42, 55]);
    -
    1.0.0 · source

    pub fn binary_search_by<'a, F>(&'a self, f: F) -> Result<usize, usize>
    where +

    1.0.0 · source

    pub fn binary_search_by<'a, F>(&'a self, f: F) -> Result<usize, usize>
    where F: FnMut(&'a T) -> Ordering,

    Binary searches this slice with a comparator function.

    The comparator function should return an order code that indicates whether its argument is Less, Equal or Greater the desired @@ -1717,7 +1671,7 @@

    §Examples< the index where a matching element could be inserted while maintaining sorted order.

    See also binary_search, binary_search_by_key, and partition_point.

    -
    §Examples
    +
    §Examples

    Looks up a series of four elements. The first is found, with a uniquely determined position; the second and third are not found; the fourth could match any position in [1, 4].

    @@ -1733,7 +1687,7 @@
    §Examples< let seek = 1; let r = s.binary_search_by(|probe| probe.cmp(&seek)); assert!(match r { Ok(1..=4) => true, _ => false, });
    -
    1.10.0 · source

    pub fn binary_search_by_key<'a, B, F>( +

    1.10.0 · source

    pub fn binary_search_by_key<'a, B, F>( &'a self, b: &B, f: F, @@ -1752,7 +1706,7 @@

    §Examples< the index where a matching element could be inserted while maintaining sorted order.

    See also binary_search, binary_search_by, and partition_point.

    -
    §Examples
    +
    §Examples

    Looks up a series of four elements in a slice of pairs sorted by their second elements. The first is found, with a uniquely determined position; the second and third are not found; the @@ -1767,90 +1721,93 @@

    §Examples< assert_eq!(s.binary_search_by_key(&100, |&(a, b)| b), Err(13)); let r = s.binary_search_by_key(&1, |&(a, b)| b); assert!(match r { Ok(1..=4) => true, _ => false, }); -
    1.20.0 · source

    pub fn sort_unstable(&mut self)
    where +

    1.20.0 · source

    pub fn sort_unstable(&mut self)
    where T: Ord,

    Sorts the slice without preserving the initial order of equal elements.

    This sort is unstable (i.e., may reorder equal elements), in-place (i.e., does not allocate), and O(n * log(n)) worst-case.

    -

    If T: Ord does not implement a total order the resulting order is unspecified. All -original elements will remain in the slice and any possible modifications via interior -mutability are observed in the input. Same is true if T: Ord panics.

    -
    §Current implementation
    +

    If the implementation of Ord for T does not implement a total order the resulting +order of elements in the slice is unspecified. All original elements will remain in the +slice and any possible modifications via interior mutability are observed in the input. Same +is true if the implementation of Ord for T panics.

    +

    Sorting types that only implement PartialOrd such as f32 and f64 require +additional precautions. For example, f32::NAN != f32::NAN, which doesn’t fulfill the +reflexivity requirement of Ord. By using an alternative comparison function with +slice::sort_unstable_by such as f32::total_cmp or f64::total_cmp that defines a +total order users can sort slices containing floating-point values. Alternatively, if all +values in the slice are guaranteed to be in a subset for which PartialOrd::partial_cmp +forms a total order, it’s possible to sort the slice with sort_unstable_by(|a, b| a.partial_cmp(b).unwrap()).

    +
    §Current implementation

    The current implementation is based on ipnsort by Lukas Bergdoll and Orson Peters, which combines the fast average case of quicksort with the fast worst case of heapsort, achieving linear time on fully sorted and reversed inputs. On inputs with k distinct elements, the expected time to sort the data is O(n * log(k)).

    It is typically faster than stable sorting, except in a few special cases, e.g., when the slice is partially sorted.

    -

    If T: Ord does not implement a total order, the implementation may panic.

    -
    §Examples
    -
    let mut v = [-5, 4, 1, -3, 2];
    +
    §Panics
    +

    May panic if the implementation of Ord for T does not implement a total order.

    +
    §Examples
    +
    let mut v = [4, -5, 1, -3, 2];
     
     v.sort_unstable();
    -assert!(v == [-5, -3, 1, 2, 4]);
    -
    1.20.0 · source

    pub fn sort_unstable_by<F>(&mut self, compare: F)
    where - F: FnMut(&T, &T) -> Ordering,

    Sorts the slice with a comparator function, without preserving the initial order of +assert_eq!(v, [-5, -3, 1, 2, 4]);

    +
    1.20.0 · source

    pub fn sort_unstable_by<F>(&mut self, compare: F)
    where + F: FnMut(&T, &T) -> Ordering,

    Sorts the slice with a comparison function, without preserving the initial order of equal elements.

    This sort is unstable (i.e., may reorder equal elements), in-place (i.e., does not allocate), and O(n * log(n)) worst-case.

    -

    The comparator function should define a total ordering for the elements in the slice. If the -ordering is not total, the order of the elements is unspecified.

    -

    If the comparator function does not implement a total order the resulting order is -unspecified. All original elements will remain in the slice and any possible modifications -via interior mutability are observed in the input. Same is true if the comparator function -panics. A total order (for all a, b and c):

    -
      -
    • total and antisymmetric: exactly one of a < b, a == b or a > b is true, and
    • -
    • transitive, a < b and b < c implies a < c. The same must hold for both == and >.
    • -
    -

    For example, while f64 doesn’t implement Ord because NaN != NaN, we can use -partial_cmp as our sort function when we know the slice doesn’t contain a NaN.

    - -
    let mut floats = [5f64, 4.0, 1.0, 3.0, 2.0];
    -floats.sort_unstable_by(|a, b| a.partial_cmp(b).unwrap());
    -assert_eq!(floats, [1.0, 2.0, 3.0, 4.0, 5.0]);
    -
    §Current implementation
    +

    If the comparison function compare does not implement a total order the resulting order +of elements in the slice is unspecified. All original elements will remain in the slice and +any possible modifications via interior mutability are observed in the input. Same is true +if compare panics.

    +

    For example |a, b| (a - b).cmp(a) is a comparison function that is neither transitive nor +reflexive nor total, a < b < c < a with a = 1, b = 2, c = 3. For more information and +examples see the Ord documentation.

    +
    §Current implementation

    The current implementation is based on ipnsort by Lukas Bergdoll and Orson Peters, which combines the fast average case of quicksort with the fast worst case of heapsort, achieving linear time on fully sorted and reversed inputs. On inputs with k distinct elements, the expected time to sort the data is O(n * log(k)).

    It is typically faster than stable sorting, except in a few special cases, e.g., when the slice is partially sorted.

    -

    If T: Ord does not implement a total order, the implementation may panic.

    -
    §Examples
    -
    let mut v = [5, 4, 1, 3, 2];
    +
    §Panics
    +

    May panic if compare does not implement a total order.

    +
    §Examples
    +
    let mut v = [4, -5, 1, -3, 2];
     v.sort_unstable_by(|a, b| a.cmp(b));
    -assert!(v == [1, 2, 3, 4, 5]);
    +assert_eq!(v, [-5, -3, 1, 2, 4]);
     
     // reverse sorting
     v.sort_unstable_by(|a, b| b.cmp(a));
    -assert!(v == [5, 4, 3, 2, 1]);
    -
    1.20.0 · source

    pub fn sort_unstable_by_key<K, F>(&mut self, f: F)
    where +assert_eq!(v, [4, 2, 1, -3, -5]);
    +

    1.20.0 · source

    pub fn sort_unstable_by_key<K, F>(&mut self, f: F)
    where F: FnMut(&T) -> K, K: Ord,

    Sorts the slice with a key extraction function, without preserving the initial order of equal elements.

    This sort is unstable (i.e., may reorder equal elements), in-place (i.e., does not allocate), and O(n * log(n)) worst-case.

    -

    If K: Ord does not implement a total order the resulting order is unspecified. -All original elements will remain in the slice and any possible modifications via interior -mutability are observed in the input. Same is true if K: Ord panics.

    -
    §Current implementation
    +

    If the implementation of Ord for K does not implement a total order the resulting +order of elements in the slice is unspecified. All original elements will remain in the +slice and any possible modifications via interior mutability are observed in the input. Same +is true if the implementation of Ord for K panics.

    +
    §Current implementation

    The current implementation is based on ipnsort by Lukas Bergdoll and Orson Peters, which combines the fast average case of quicksort with the fast worst case of heapsort, achieving linear time on fully sorted and reversed inputs. On inputs with k distinct elements, the expected time to sort the data is O(n * log(k)).

    It is typically faster than stable sorting, except in a few special cases, e.g., when the slice is partially sorted.

    -

    If K: Ord does not implement a total order, the implementation may panic.

    -
    §Examples
    -
    let mut v = [-5i32, 4, 1, -3, 2];
    +
    §Panics
    +

    May panic if the implementation of Ord for K does not implement a total order.

    +
    §Examples
    +
    let mut v = [4i32, -5, 1, -3, 2];
     
     v.sort_unstable_by_key(|k| k.abs());
    -assert!(v == [1, 2, -3, 4, -5]);
    -
    1.49.0 · source

    pub fn select_nth_unstable( +assert_eq!(v, [1, 2, -3, 4, -5]); +

    1.49.0 · source

    pub fn select_nth_unstable( &mut self, index: usize, ) -> (&mut [T], &mut T, &mut [T])
    where - T: Ord,

    Reorder the slice such that the element at index after the reordering is at its final + T: Ord,

    Reorders the slice such that the element at index after the reordering is at its final sorted position.

    This reordering has the additional property that any value at position i < index will be less than or equal to any value at a position j > index. Additionally, this reordering is @@ -1861,16 +1818,15 @@

    §Examples< index, the element at index, and the subslice after index; accordingly, the values in those two subslices will respectively all be less-than-or-equal-to and greater-than-or-equal-to the value of the element at index.

    -
    §Current implementation
    +
    §Current implementation

    The current algorithm is an introselect implementation based on ipnsort by Lukas Bergdoll and Orson Peters, which is also the basis for sort_unstable. The fallback algorithm is Median of Medians using Tukey’s Ninther for pivot selection, which guarantees linear runtime for all inputs.

    -

    It is typically faster than stable sorting, except in a few special cases, e.g., when the -slice is nearly fully sorted, where slice::sort may be faster.

    -
    §Panics
    +
    §Panics

    Panics when index >= len(), meaning it always panics on empty slices.

    -
    §Examples
    +

    May panic if the implementation of Ord for T does not implement a total order.

    +
    §Examples
    let mut v = [-5i32, 4, 2, -3, 1];
     
     // Find the items less than or equal to the median, the median, and greater than or equal to
    @@ -1887,12 +1843,12 @@ 
    §Examples< v == [-5, -3, 1, 2, 4] || v == [-3, -5, 1, 4, 2] || v == [-5, -3, 1, 4, 2]);
    -
    1.49.0 · source

    pub fn select_nth_unstable_by<F>( +

    1.49.0 · source

    pub fn select_nth_unstable_by<F>( &mut self, index: usize, compare: F, ) -> (&mut [T], &mut T, &mut [T])
    where - F: FnMut(&T, &T) -> Ordering,

    Reorder the slice with a comparator function such that the element at index after the + F: FnMut(&T, &T) -> Ordering,

    Reorders the slice with a comparator function such that the element at index after the reordering is at its final sorted position.

    This reordering has the additional property that any value at position i < index will be less than or equal to any value at a position j > index using the comparator function. @@ -1903,16 +1859,15 @@

    §Examples< comparator function: the subslice prior to index, the element at index, and the subslice after index; accordingly, the values in those two subslices will respectively all be less-than-or-equal-to and greater-than-or-equal-to the value of the element at index.

    -
    §Current implementation
    +
    §Current implementation

    The current algorithm is an introselect implementation based on ipnsort by Lukas Bergdoll and Orson Peters, which is also the basis for sort_unstable. The fallback algorithm is Median of Medians using Tukey’s Ninther for pivot selection, which guarantees linear runtime for all inputs.

    -

    It is typically faster than stable sorting, except in a few special cases, e.g., when the -slice is nearly fully sorted, where slice::sort may be faster.

    -
    §Panics
    +
    §Panics

    Panics when index >= len(), meaning it always panics on empty slices.

    -
    §Examples
    +

    May panic if compare does not implement a total order.

    +
    §Examples
    let mut v = [-5i32, 4, 2, -3, 1];
     
     // Find the items less than or equal to the median, the median, and greater than or equal to
    @@ -1929,13 +1884,13 @@ 
    §Examples< v == [2, 4, 1, -3, -5] || v == [4, 2, 1, -5, -3] || v == [4, 2, 1, -3, -5]);
    -
    1.49.0 · source

    pub fn select_nth_unstable_by_key<K, F>( +

    1.49.0 · source

    pub fn select_nth_unstable_by_key<K, F>( &mut self, index: usize, f: F, ) -> (&mut [T], &mut T, &mut [T])
    where F: FnMut(&T) -> K, - K: Ord,

    Reorder the slice with a key extraction function such that the element at index after the + K: Ord,

    Reorders the slice with a key extraction function such that the element at index after the reordering is at its final sorted position.

    This reordering has the additional property that any value at position i < index will be less than or equal to any value at a position j > index using the key extraction function. @@ -1946,16 +1901,15 @@

    §Examples< extraction function: the subslice prior to index, the element at index, and the subslice after index; accordingly, the values in those two subslices will respectively all be less-than-or-equal-to and greater-than-or-equal-to the value of the element at index.

    -
    §Current implementation
    +
    §Current implementation

    The current algorithm is an introselect implementation based on ipnsort by Lukas Bergdoll and Orson Peters, which is also the basis for sort_unstable. The fallback algorithm is Median of Medians using Tukey’s Ninther for pivot selection, which guarantees linear runtime for all inputs.

    -

    It is typically faster than stable sorting, except in a few special cases, e.g., when the -slice is nearly fully sorted, where slice::sort may be faster.

    -
    §Panics
    +
    §Panics

    Panics when index >= len(), meaning it always panics on empty slices.

    -
    §Examples
    +

    May panic if K: Ord does not implement a total order.

    +
    §Examples
    let mut v = [-5i32, 4, 1, -3, 2];
     
     // Find the items less than or equal to the median, the median, and greater than or equal to
    @@ -1972,13 +1926,13 @@ 
    §Examples< v == [1, 2, -3, -5, 4] || v == [2, 1, -3, 4, -5] || v == [2, 1, -3, -5, 4]);
    -
    source

    pub fn partition_dedup(&mut self) -> (&mut [T], &mut [T])
    where +

    source

    pub fn partition_dedup(&mut self) -> (&mut [T], &mut [T])
    where T: PartialEq,

    🔬This is a nightly-only experimental API. (slice_partition_dedup)

    Moves all consecutive repeated elements to the end of the slice according to the PartialEq trait implementation.

    Returns two slices. The first contains no consecutive repeated elements. The second contains all the duplicates in no specified order.

    If the slice is sorted, the first returned slice contains no duplicates.

    -
    §Examples
    +
    §Examples
    #![feature(slice_partition_dedup)]
     
     let mut slice = [1, 2, 2, 3, 3, 2, 1, 1];
    @@ -1987,7 +1941,7 @@ 
    §Examples< assert_eq!(dedup, [1, 2, 3, 2, 1]); assert_eq!(duplicates, [2, 3, 1]);
    -
    source

    pub fn partition_dedup_by<F>(&mut self, same_bucket: F) -> (&mut [T], &mut [T])
    where +

    source

    pub fn partition_dedup_by<F>(&mut self, same_bucket: F) -> (&mut [T], &mut [T])
    where F: FnMut(&mut T, &mut T) -> bool,

    🔬This is a nightly-only experimental API. (slice_partition_dedup)

    Moves all but the first of consecutive elements to the end of the slice satisfying a given equality relation.

    Returns two slices. The first contains no consecutive repeated elements. @@ -1997,7 +1951,7 @@

    §Examples< from their order in the slice, so if same_bucket(a, b) returns true, a is moved at the end of the slice.

    If the slice is sorted, the first returned slice contains no duplicates.

    -
    §Examples
    +
    §Examples
    #![feature(slice_partition_dedup)]
     
     let mut slice = ["foo", "Foo", "BAZ", "Bar", "bar", "baz", "BAZ"];
    @@ -2006,14 +1960,14 @@ 
    §Examples< assert_eq!(dedup, ["foo", "BAZ", "Bar", "baz"]); assert_eq!(duplicates, ["bar", "Foo", "BAZ"]);
    -
    source

    pub fn partition_dedup_by_key<K, F>(&mut self, key: F) -> (&mut [T], &mut [T])
    where +

    source

    pub fn partition_dedup_by_key<K, F>(&mut self, key: F) -> (&mut [T], &mut [T])
    where F: FnMut(&mut T) -> K, K: PartialEq,

    🔬This is a nightly-only experimental API. (slice_partition_dedup)

    Moves all but the first of consecutive elements to the end of the slice that resolve to the same key.

    Returns two slices. The first contains no consecutive repeated elements. The second contains all the duplicates in no specified order.

    If the slice is sorted, the first returned slice contains no duplicates.

    -
    §Examples
    +
    §Examples
    #![feature(slice_partition_dedup)]
     
     let mut slice = [10, 20, 21, 30, 30, 20, 11, 13];
    @@ -2022,17 +1976,18 @@ 
    §Examples< assert_eq!(dedup, [10, 20, 30, 20, 11]); assert_eq!(duplicates, [21, 30, 13]);
    -
    1.26.0 · source

    pub fn rotate_left(&mut self, mid: usize)

    Rotates the slice in-place such that the first mid elements of the +

    1.26.0 · source

    pub fn rotate_left(&mut self, mid: usize)

    Rotates the slice in-place such that the first mid elements of the slice move to the end while the last self.len() - mid elements move to -the front. After calling rotate_left, the element previously at index -mid will become the first element in the slice.

    -
    §Panics
    +the front.

    +

    After calling rotate_left, the element previously at index mid will +become the first element in the slice.

    +
    §Panics

    This function will panic if mid is greater than the length of the slice. Note that mid == self.len() does not panic and is a no-op rotation.

    §Complexity

    Takes linear (in self.len()) time.

    -
    §Examples
    +
    §Examples
    let mut a = ['a', 'b', 'c', 'd', 'e', 'f'];
     a.rotate_left(2);
     assert_eq!(a, ['c', 'd', 'e', 'f', 'a', 'b']);
    @@ -2041,17 +1996,18 @@
    §Examples<
    let mut a = ['a', 'b', 'c', 'd', 'e', 'f'];
     a[1..5].rotate_left(1);
     assert_eq!(a, ['a', 'c', 'd', 'e', 'b', 'f']);
    -
    1.26.0 · source

    pub fn rotate_right(&mut self, k: usize)

    Rotates the slice in-place such that the first self.len() - k +

    1.26.0 · source

    pub fn rotate_right(&mut self, k: usize)

    Rotates the slice in-place such that the first self.len() - k elements of the slice move to the end while the last k elements move -to the front. After calling rotate_right, the element previously at -index self.len() - k will become the first element in the slice.

    -
    §Panics
    +to the front.

    +

    After calling rotate_right, the element previously at index +self.len() - k will become the first element in the slice.

    +
    §Panics

    This function will panic if k is greater than the length of the slice. Note that k == self.len() does not panic and is a no-op rotation.

    §Complexity

    Takes linear (in self.len()) time.

    -
    §Examples
    +
    §Examples
    let mut a = ['a', 'b', 'c', 'd', 'e', 'f'];
     a.rotate_right(2);
     assert_eq!(a, ['e', 'f', 'a', 'b', 'c', 'd']);
    @@ -2060,28 +2016,28 @@
    §Examples<
    let mut a = ['a', 'b', 'c', 'd', 'e', 'f'];
     a[1..5].rotate_right(1);
     assert_eq!(a, ['a', 'e', 'b', 'c', 'd', 'f']);
    -
    1.50.0 · source

    pub fn fill(&mut self, value: T)
    where +

    1.50.0 · source

    pub fn fill(&mut self, value: T)
    where T: Clone,

    Fills self with elements by cloning value.

    -
    §Examples
    +
    §Examples
    let mut buf = vec![0; 10];
     buf.fill(1);
     assert_eq!(buf, vec![1; 10]);
    -
    1.51.0 · source

    pub fn fill_with<F>(&mut self, f: F)
    where +

    1.51.0 · source

    pub fn fill_with<F>(&mut self, f: F)
    where F: FnMut() -> T,

    Fills self with elements returned by calling a closure repeatedly.

    This method uses a closure to create new values. If you’d rather Clone a given value, use fill. If you want to use the Default trait to generate values, you can pass Default::default as the argument.

    -
    §Examples
    +
    §Examples
    let mut buf = vec![1; 10];
     buf.fill_with(Default::default);
     assert_eq!(buf, vec![0; 10]);
    -
    1.7.0 · source

    pub fn clone_from_slice(&mut self, src: &[T])
    where +

    1.7.0 · source

    pub fn clone_from_slice(&mut self, src: &[T])
    where T: Clone,

    Copies the elements from src into self.

    The length of src must be the same as self.

    -
    §Panics
    +
    §Panics

    This function will panic if the two slices have different lengths.

    -
    §Examples
    +
    §Examples

    Cloning two elements from a slice into another:

    let src = [1, 2, 3, 4];
    @@ -2113,13 +2069,13 @@ 
    §Examples< } assert_eq!(slice, [4, 5, 3, 4, 5]);
    -
    1.9.0 · source

    pub fn copy_from_slice(&mut self, src: &[T])
    where +

    1.9.0 · source

    pub fn copy_from_slice(&mut self, src: &[T])
    where T: Copy,

    Copies all elements from src into self, using a memcpy.

    The length of src must be the same as self.

    If T does not implement Copy, use clone_from_slice.

    -
    §Panics
    +
    §Panics

    This function will panic if the two slices have different lengths.

    -
    §Examples
    +
    §Examples

    Copying two elements from a slice into another:

    let src = [1, 2, 3, 4];
    @@ -2151,7 +2107,7 @@ 
    §Examples< } assert_eq!(slice, [4, 5, 3, 4, 5]);
    -
    1.37.0 · source

    pub fn copy_within<R>(&mut self, src: R, dest: usize)
    where +

    1.37.0 · source

    pub fn copy_within<R>(&mut self, src: R, dest: usize)
    where R: RangeBounds<usize>, T: Copy,

    Copies elements from one part of the slice to another part of itself, using a memmove.

    @@ -2159,10 +2115,10 @@
    §Examples< index of the range within self to copy to, which will have the same length as src. The two ranges may overlap. The ends of the two ranges must be less than or equal to self.len().

    -
    §Panics
    +
    §Panics

    This function will panic if either range exceeds the end of the slice, or if the end of src is before the start.

    -
    §Examples
    +
    §Examples

    Copying four bytes within a slice:

    let mut bytes = *b"Hello, World!";
    @@ -2170,9 +2126,9 @@ 
    §Examples< bytes.copy_within(1..5, 8); assert_eq!(&bytes, b"Hello, Wello!");
    -
    1.27.0 · source

    pub fn swap_with_slice(&mut self, other: &mut [T])

    Swaps all elements in self with those in other.

    +
    1.27.0 · source

    pub fn swap_with_slice(&mut self, other: &mut [T])

    Swaps all elements in self with those in other.

    The length of other must be the same as self.

    -
    §Panics
    +
    §Panics

    This function will panic if the two slices have different lengths.

    §Example

    Swapping two elements across slices:

    @@ -2202,7 +2158,7 @@
    §Example
    } assert_eq!(slice, [4, 5, 3, 1, 2]);
    -
    1.30.0 · source

    pub unsafe fn align_to<U>(&self) -> (&[T], &[U], &[T])

    Transmute the slice to a slice of another type, ensuring alignment of the types is +

    1.30.0 · source

    pub unsafe fn align_to<U>(&self) -> (&[T], &[U], &[T])

    Transmutes the slice to a slice of another type, ensuring alignment of the types is maintained.

    This method splits the slice into three distinct slices: prefix, correctly aligned middle slice of a new type, and the suffix slice. The middle part will be as big as possible under @@ -2212,7 +2168,7 @@

    §Example
    §Safety

    This method is essentially a transmute with respect to the elements in the returned middle slice, so all the usual caveats pertaining to transmute::<T, U> also apply here.

    -
    §Examples
    +
    §Examples

    Basic usage:

    unsafe {
    @@ -2222,7 +2178,7 @@ 
    §Examples< // more_efficient_algorithm_for_aligned_shorts(shorts); // less_efficient_algorithm_for_bytes(suffix); }
    -
    1.30.0 · source

    pub unsafe fn align_to_mut<U>(&mut self) -> (&mut [T], &mut [U], &mut [T])

    Transmute the mutable slice to a mutable slice of another type, ensuring alignment of the +

    1.30.0 · source

    pub unsafe fn align_to_mut<U>(&mut self) -> (&mut [T], &mut [U], &mut [T])

    Transmutes the mutable slice to a mutable slice of another type, ensuring alignment of the types is maintained.

    This method splits the slice into three distinct slices: prefix, correctly aligned middle slice of a new type, and the suffix slice. The middle part will be as big as possible under @@ -2232,7 +2188,7 @@

    §Examples<
    §Safety

    This method is essentially a transmute with respect to the elements in the returned middle slice, so all the usual caveats pertaining to transmute::<T, U> also apply here.

    -
    §Examples
    +
    §Examples

    Basic usage:

    unsafe {
    @@ -2242,22 +2198,13 @@ 
    §Examples< // more_efficient_algorithm_for_aligned_shorts(shorts); // less_efficient_algorithm_for_bytes(suffix); }
    -
    source

    pub fn as_simd<const LANES: usize>(&self) -> (&[T], &[Simd<T, LANES>], &[T])
    where +

    source

    pub fn as_simd<const LANES: usize>(&self) -> (&[T], &[Simd<T, LANES>], &[T])
    where Simd<T, LANES>: AsRef<[T; LANES]>, T: SimdElement, - LaneCount<LANES>: SupportedLaneCount,

    🔬This is a nightly-only experimental API. (portable_simd)

    Split a slice into a prefix, a middle of aligned SIMD types, and a suffix.

    -

    This is a safe wrapper around slice::align_to, so has the same weak -postconditions as that method. You’re only assured that -self.len() == prefix.len() + middle.len() * LANES + suffix.len().

    -

    Notably, all of the following are possible:

    -
      -
    • prefix.len() >= LANES.
    • -
    • middle.is_empty() despite self.len() >= 3 * LANES.
    • -
    • suffix.len() >= LANES.
    • -
    -

    That said, this is a safe method, so if you’re only writing safe code, -then this can at most cause incorrect logic, not unsoundness.

    -
    §Panics
    + LaneCount<LANES>: SupportedLaneCount,
    🔬This is a nightly-only experimental API. (portable_simd)

    Splits a slice into a prefix, a middle of aligned SIMD types, and a suffix.

    +

    This is a safe wrapper around slice::align_to, so inherits the same +guarantees as that method.

    +
    §Panics

    This will panic if the size of the SIMD type is different from LANES times that of the scalar.

    At the time of writing, the trait restrictions on Simd<T, LANES> keeps @@ -2265,7 +2212,7 @@

    §Panics
    supported. It’s possible that, in the future, those restrictions might be lifted in a way that would make it possible to see panics from this method for something like LANES == 3.

    -
    §Examples
    +
    §Examples
    #![feature(portable_simd)]
     use core::simd::prelude::*;
     
    @@ -2292,26 +2239,17 @@ 
    §Examples< let numbers: Vec<f32> = (1..101).map(|x| x as _).collect(); assert_eq!(basic_simd_sum(&numbers[1..99]), 4949.0);
    -
    source

    pub fn as_simd_mut<const LANES: usize>( +

    source

    pub fn as_simd_mut<const LANES: usize>( &mut self, ) -> (&mut [T], &mut [Simd<T, LANES>], &mut [T])
    where Simd<T, LANES>: AsMut<[T; LANES]>, T: SimdElement, - LaneCount<LANES>: SupportedLaneCount,

    🔬This is a nightly-only experimental API. (portable_simd)

    Split a mutable slice into a mutable prefix, a middle of aligned SIMD types, + LaneCount<LANES>: SupportedLaneCount,

    🔬This is a nightly-only experimental API. (portable_simd)

    Splits a mutable slice into a mutable prefix, a middle of aligned SIMD types, and a mutable suffix.

    -

    This is a safe wrapper around slice::align_to_mut, so has the same weak -postconditions as that method. You’re only assured that -self.len() == prefix.len() + middle.len() * LANES + suffix.len().

    -

    Notably, all of the following are possible:

    -
      -
    • prefix.len() >= LANES.
    • -
    • middle.is_empty() despite self.len() >= 3 * LANES.
    • -
    • suffix.len() >= LANES.
    • -
    -

    That said, this is a safe method, so if you’re only writing safe code, -then this can at most cause incorrect logic, not unsoundness.

    +

    This is a safe wrapper around slice::align_to_mut, so inherits the same +guarantees as that method.

    This is the mutable version of slice::as_simd; see that for examples.

    -
    §Panics
    +
    §Panics

    This will panic if the size of the SIMD type is different from LANES times that of the scalar.

    At the time of writing, the trait restrictions on Simd<T, LANES> keeps @@ -2319,30 +2257,27 @@

    §Panics
    supported. It’s possible that, in the future, those restrictions might be lifted in a way that would make it possible to see panics from this method for something like LANES == 3.

    -
    source

    pub fn is_sorted(&self) -> bool
    where - T: PartialOrd,

    🔬This is a nightly-only experimental API. (is_sorted)

    Checks if the elements of this slice are sorted.

    +
    1.82.0 · source

    pub fn is_sorted(&self) -> bool
    where + T: PartialOrd,

    Checks if the elements of this slice are sorted.

    That is, for each element a and its following element b, a <= b must hold. If the slice yields exactly zero or one element, true is returned.

    Note that if Self::Item is only PartialOrd, but not Ord, the above definition implies that this function returns false if any two consecutive items are not comparable.

    -
    §Examples
    -
    #![feature(is_sorted)]
    -let empty: [i32; 0] = [];
    +
    §Examples
    +
    let empty: [i32; 0] = [];
     
     assert!([1, 2, 2, 9].is_sorted());
     assert!(![1, 3, 2, 4].is_sorted());
     assert!([0].is_sorted());
     assert!(empty.is_sorted());
     assert!(![0.0, 1.0, f32::NAN].is_sorted());
    -
    source

    pub fn is_sorted_by<'a, F>(&'a self, compare: F) -> bool
    where - F: FnMut(&'a T, &'a T) -> bool,

    🔬This is a nightly-only experimental API. (is_sorted)

    Checks if the elements of this slice are sorted using the given comparator function.

    +
    1.82.0 · source

    pub fn is_sorted_by<'a, F>(&'a self, compare: F) -> bool
    where + F: FnMut(&'a T, &'a T) -> bool,

    Checks if the elements of this slice are sorted using the given comparator function.

    Instead of using PartialOrd::partial_cmp, this function uses the given compare function to determine whether two elements are to be considered in sorted order.

    -
    §Examples
    -
    #![feature(is_sorted)]
    -
    -assert!([1, 2, 2, 9].is_sorted_by(|a, b| a <= b));
    +
    §Examples
    +
    assert!([1, 2, 2, 9].is_sorted_by(|a, b| a <= b));
     assert!(![1, 2, 2, 9].is_sorted_by(|a, b| a < b));
     
     assert!([0].is_sorted_by(|a, b| true));
    @@ -2351,18 +2286,16 @@ 
    §Examples< let empty: [i32; 0] = []; assert!(empty.is_sorted_by(|a, b| false)); assert!(empty.is_sorted_by(|a, b| true));
    -
    source

    pub fn is_sorted_by_key<'a, F, K>(&'a self, f: F) -> bool
    where +

    1.82.0 · source

    pub fn is_sorted_by_key<'a, F, K>(&'a self, f: F) -> bool
    where F: FnMut(&'a T) -> K, - K: PartialOrd,

    🔬This is a nightly-only experimental API. (is_sorted)

    Checks if the elements of this slice are sorted using the given key extraction function.

    + K: PartialOrd,

    Checks if the elements of this slice are sorted using the given key extraction function.

    Instead of comparing the slice’s elements directly, this function compares the keys of the elements, as determined by f. Apart from that, it’s equivalent to is_sorted; see its documentation for more information.

    -
    §Examples
    -
    #![feature(is_sorted)]
    -
    -assert!(["c", "bb", "aaa"].is_sorted_by_key(|s| s.len()));
    +
    §Examples
    +
    assert!(["c", "bb", "aaa"].is_sorted_by_key(|s| s.len()));
     assert!(![-2i32, -1, 0, 3].is_sorted_by_key(|n| n.abs()));
    -
    1.52.0 · source

    pub fn partition_point<P>(&self, pred: P) -> usize
    where +

    1.52.0 · source

    pub fn partition_point<P>(&self, pred: P) -> usize
    where P: FnMut(&T) -> bool,

    Returns the index of the partition point according to the given predicate (the index of the first element of the second partition).

    The slice is assumed to be partitioned according to the given predicate. @@ -2373,7 +2306,7 @@

    §Examples<

    If this slice is not partitioned, the returned result is unspecified and meaningless, as this method performs a kind of binary search.

    See also binary_search, binary_search_by, and binary_search_by_key.

    -
    §Examples
    +
    §Examples
    let v = [1, 2, 3, 3, 5, 6, 7];
     let i = v.partition_point(|&x| x < 5);
     
    @@ -2395,14 +2328,14 @@ 
    §Examples< let idx = s.partition_point(|&x| x <= num); s.insert(idx, num); assert_eq!(s, [0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 42, 55]);
    -
    source

    pub fn take<'a, R>(self: &mut &'a [T], range: R) -> Option<&'a [T]>
    where +

    source

    pub fn take<'a, R>(self: &mut &'a [T], range: R) -> Option<&'a [T]>
    where R: OneSidedRange<usize>,

    🔬This is a nightly-only experimental API. (slice_take)

    Removes the subslice corresponding to the given range and returns a reference to it.

    Returns None and does not modify the slice if the given range is out of bounds.

    Note that this method only accepts one-sided ranges such as 2.. or ..6, but not 2..6.

    -
    §Examples
    +
    §Examples

    Taking the first three elements of a slice:

    #![feature(slice_take)]
    @@ -2432,14 +2365,14 @@ 
    §Examples< assert_eq!(None, slice.take(..=4)); let expected: &[char] = &['a', 'b', 'c', 'd']; assert_eq!(Some(expected), slice.take(..4));
    -
    source

    pub fn take_mut<'a, R>(self: &mut &'a mut [T], range: R) -> Option<&'a mut [T]>
    where +

    source

    pub fn take_mut<'a, R>(self: &mut &'a mut [T], range: R) -> Option<&'a mut [T]>
    where R: OneSidedRange<usize>,

    🔬This is a nightly-only experimental API. (slice_take)

    Removes the subslice corresponding to the given range and returns a mutable reference to it.

    Returns None and does not modify the slice if the given range is out of bounds.

    Note that this method only accepts one-sided ranges such as 2.. or ..6, but not 2..6.

    -
    §Examples
    +
    §Examples

    Taking the first three elements of a slice:

    #![feature(slice_take)]
    @@ -2469,10 +2402,10 @@ 
    §Examples< assert_eq!(None, slice.take_mut(..=4)); let expected: &mut [_] = &mut ['a', 'b', 'c', 'd']; assert_eq!(Some(expected), slice.take_mut(..4));
    -
    source

    pub fn take_first<'a>(self: &mut &'a [T]) -> Option<&'a T>

    🔬This is a nightly-only experimental API. (slice_take)

    Removes the first element of the slice and returns a reference +

    source

    pub fn take_first<'a>(self: &mut &'a [T]) -> Option<&'a T>

    🔬This is a nightly-only experimental API. (slice_take)

    Removes the first element of the slice and returns a reference to it.

    Returns None if the slice is empty.

    -
    §Examples
    +
    §Examples
    #![feature(slice_take)]
     
     let mut slice: &[_] = &['a', 'b', 'c'];
    @@ -2480,10 +2413,10 @@ 
    §Examples< assert_eq!(slice, &['b', 'c']); assert_eq!(first, &'a');
    -
    source

    pub fn take_first_mut<'a>(self: &mut &'a mut [T]) -> Option<&'a mut T>

    🔬This is a nightly-only experimental API. (slice_take)

    Removes the first element of the slice and returns a mutable +

    source

    pub fn take_first_mut<'a>(self: &mut &'a mut [T]) -> Option<&'a mut T>

    🔬This is a nightly-only experimental API. (slice_take)

    Removes the first element of the slice and returns a mutable reference to it.

    Returns None if the slice is empty.

    -
    §Examples
    +
    §Examples
    #![feature(slice_take)]
     
     let mut slice: &mut [_] = &mut ['a', 'b', 'c'];
    @@ -2492,10 +2425,10 @@ 
    §Examples< assert_eq!(slice, &['b', 'c']); assert_eq!(first, &'d');
    -
    source

    pub fn take_last<'a>(self: &mut &'a [T]) -> Option<&'a T>

    🔬This is a nightly-only experimental API. (slice_take)

    Removes the last element of the slice and returns a reference +

    source

    pub fn take_last<'a>(self: &mut &'a [T]) -> Option<&'a T>

    🔬This is a nightly-only experimental API. (slice_take)

    Removes the last element of the slice and returns a reference to it.

    Returns None if the slice is empty.

    -
    §Examples
    +
    §Examples
    #![feature(slice_take)]
     
     let mut slice: &[_] = &['a', 'b', 'c'];
    @@ -2503,10 +2436,10 @@ 
    §Examples< assert_eq!(slice, &['a', 'b']); assert_eq!(last, &'c');
    -
    source

    pub fn take_last_mut<'a>(self: &mut &'a mut [T]) -> Option<&'a mut T>

    🔬This is a nightly-only experimental API. (slice_take)

    Removes the last element of the slice and returns a mutable +

    source

    pub fn take_last_mut<'a>(self: &mut &'a mut [T]) -> Option<&'a mut T>

    🔬This is a nightly-only experimental API. (slice_take)

    Removes the last element of the slice and returns a mutable reference to it.

    Returns None if the slice is empty.

    -
    §Examples
    +
    §Examples
    #![feature(slice_take)]
     
     let mut slice: &mut [_] = &mut ['a', 'b', 'c'];
    @@ -2515,7 +2448,7 @@ 
    §Examples< assert_eq!(slice, &['a', 'b']); assert_eq!(last, &'d');
    -
    source

    pub unsafe fn get_many_unchecked_mut<const N: usize>( +

    source

    pub unsafe fn get_many_unchecked_mut<const N: usize>( &mut self, indices: [usize; N], ) -> [&mut T; N]

    🔬This is a nightly-only experimental API. (get_many_mut)

    Returns mutable references to many indices at once, without doing any checks.

    @@ -2523,7 +2456,7 @@
    §Examples<
    §Safety

    Calling this method with overlapping or out-of-bounds indices is undefined behavior even if the resulting references are not used.

    -
    §Examples
    +
    §Examples
    #![feature(get_many_mut)]
     
     let x = &mut [1, 2, 4];
    @@ -2534,13 +2467,13 @@ 
    §Examples< *b *= 100; } assert_eq!(x, &[10, 2, 400]);
    -
    source

    pub fn get_many_mut<const N: usize>( +

    source

    pub fn get_many_mut<const N: usize>( &mut self, indices: [usize; N], ) -> Result<[&mut T; N], GetManyMutError<N>>

    🔬This is a nightly-only experimental API. (get_many_mut)

    Returns mutable references to many indices at once.

    Returns an error if any index is out-of-bounds, or if the same index was passed more than once.

    -
    §Examples
    +
    §Examples
    #![feature(get_many_mut)]
     
     let v = &mut [1, 2, 3];
    @@ -2549,27 +2482,173 @@ 
    §Examples< *b = 612; } assert_eq!(v, &[413, 2, 612]);
    -
    1.23.0 · source

    pub fn to_ascii_uppercase(&self) -> Vec<u8>

    Returns a vector containing a copy of this slice where each byte -is mapped to its ASCII upper case equivalent.

    -

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, -but non-ASCII letters are unchanged.

    -

    To uppercase the value in-place, use make_ascii_uppercase.

    -
    1.23.0 · source

    pub fn to_ascii_lowercase(&self) -> Vec<u8>

    Returns a vector containing a copy of this slice where each byte -is mapped to its ASCII lower case equivalent.

    -

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, -but non-ASCII letters are unchanged.

    -

    To lowercase the value in-place, use make_ascii_lowercase.

    -
    1.0.0 · source

    pub fn sort(&mut self)
    where +

    source

    pub fn elem_offset(&self, element: &T) -> Option<usize>

    🔬This is a nightly-only experimental API. (substr_range)

    Returns the index that an element reference points to.

    +

    Returns None if element does not point within the slice or if it points between elements.

    +

    This method is useful for extending slice iterators like slice::split.

    +

    Note that this uses pointer arithmetic and does not compare elements. +To find the index of an element via comparison, use +.iter().position() instead.

    +
    §Panics
    +

    Panics if T is zero-sized.

    +
    §Examples
    +

    Basic usage:

    + +
    #![feature(substr_range)]
    +
    +let nums: &[u32] = &[1, 7, 1, 1];
    +let num = &nums[2];
    +
    +assert_eq!(num, &1);
    +assert_eq!(nums.elem_offset(num), Some(2));
    +

    Returning None with an in-between element:

    + +
    #![feature(substr_range)]
    +
    +let arr: &[[u32; 2]] = &[[0, 1], [2, 3]];
    +let flat_arr: &[u32] = arr.as_flattened();
    +
    +let ok_elm: &[u32; 2] = flat_arr[0..2].try_into().unwrap();
    +let weird_elm: &[u32; 2] = flat_arr[1..3].try_into().unwrap();
    +
    +assert_eq!(ok_elm, &[0, 1]);
    +assert_eq!(weird_elm, &[1, 2]);
    +
    +assert_eq!(arr.elem_offset(ok_elm), Some(0)); // Points to element 0
    +assert_eq!(arr.elem_offset(weird_elm), None); // Points between element 0 and 1
    +
    source

    pub fn subslice_range(&self, subslice: &[T]) -> Option<Range<usize>>

    🔬This is a nightly-only experimental API. (substr_range)

    Returns the range of indices that a subslice points to.

    +

    Returns None if subslice does not point within the slice or if it points between elements.

    +

    This method does not compare elements. Instead, this method finds the location in the slice that +subslice was obtained from. To find the index of a subslice via comparison, instead use +.windows().position().

    +

    This method is useful for extending slice iterators like slice::split.

    +

    Note that this may return a false positive (either Some(0..0) or Some(self.len()..self.len())) +if subslice has a length of zero and points to the beginning or end of another, separate, slice.

    +
    §Panics
    +

    Panics if T is zero-sized.

    +
    §Examples
    +

    Basic usage:

    + +
    #![feature(substr_range)]
    +
    +let nums = &[0, 5, 10, 0, 0, 5];
    +
    +let mut iter = nums
    +    .split(|t| *t == 0)
    +    .map(|n| nums.subslice_range(n).unwrap());
    +
    +assert_eq!(iter.next(), Some(0..0));
    +assert_eq!(iter.next(), Some(1..3));
    +assert_eq!(iter.next(), Some(4..4));
    +assert_eq!(iter.next(), Some(5..6));
    +
    1.80.0 · source

    pub fn as_flattened(&self) -> &[T]

    Takes a &[[T; N]], and flattens it to a &[T].

    +
    §Panics
    +

    This panics if the length of the resulting slice would overflow a usize.

    +

    This is only possible when flattening a slice of arrays of zero-sized +types, and thus tends to be irrelevant in practice. If +size_of::<T>() > 0, this will never panic.

    +
    §Examples
    +
    assert_eq!([[1, 2, 3], [4, 5, 6]].as_flattened(), &[1, 2, 3, 4, 5, 6]);
    +
    +assert_eq!(
    +    [[1, 2, 3], [4, 5, 6]].as_flattened(),
    +    [[1, 2], [3, 4], [5, 6]].as_flattened(),
    +);
    +
    +let slice_of_empty_arrays: &[[i32; 0]] = &[[], [], [], [], []];
    +assert!(slice_of_empty_arrays.as_flattened().is_empty());
    +
    +let empty_slice_of_arrays: &[[u32; 10]] = &[];
    +assert!(empty_slice_of_arrays.as_flattened().is_empty());
    +
    1.80.0 · source

    pub fn as_flattened_mut(&mut self) -> &mut [T]

    Takes a &mut [[T; N]], and flattens it to a &mut [T].

    +
    §Panics
    +

    This panics if the length of the resulting slice would overflow a usize.

    +

    This is only possible when flattening a slice of arrays of zero-sized +types, and thus tends to be irrelevant in practice. If +size_of::<T>() > 0, this will never panic.

    +
    §Examples
    +
    fn add_5_to_all(slice: &mut [i32]) {
    +    for i in slice {
    +        *i += 5;
    +    }
    +}
    +
    +let mut array = [[1, 2, 3], [4, 5, 6], [7, 8, 9]];
    +add_5_to_all(array.as_flattened_mut());
    +assert_eq!(array, [[6, 7, 8], [9, 10, 11], [12, 13, 14]]);
    +
    source

    pub fn sort_floats(&mut self)

    🔬This is a nightly-only experimental API. (sort_floats)

    Sorts the slice of floats.

    +

    This sort is in-place (i.e. does not allocate), O(n * log(n)) worst-case, and uses +the ordering defined by f32::total_cmp.

    +
    §Current implementation
    +

    This uses the same sorting algorithm as sort_unstable_by.

    +
    §Examples
    +
    #![feature(sort_floats)]
    +let mut v = [2.6, -5e-8, f32::NAN, 8.29, f32::INFINITY, -1.0, 0.0, -f32::INFINITY, -0.0];
    +
    +v.sort_floats();
    +let sorted = [-f32::INFINITY, -1.0, -5e-8, -0.0, 0.0, 2.6, 8.29, f32::INFINITY, f32::NAN];
    +assert_eq!(&v[..8], &sorted[..8]);
    +assert!(v[8].is_nan());
    +
    source

    pub fn sort_floats(&mut self)

    🔬This is a nightly-only experimental API. (sort_floats)

    Sorts the slice of floats.

    +

    This sort is in-place (i.e. does not allocate), O(n * log(n)) worst-case, and uses +the ordering defined by f64::total_cmp.

    +
    §Current implementation
    +

    This uses the same sorting algorithm as sort_unstable_by.

    +
    §Examples
    +
    #![feature(sort_floats)]
    +let mut v = [2.6, -5e-8, f64::NAN, 8.29, f64::INFINITY, -1.0, 0.0, -f64::INFINITY, -0.0];
    +
    +v.sort_floats();
    +let sorted = [-f64::INFINITY, -1.0, -5e-8, -0.0, 0.0, 2.6, 8.29, f64::INFINITY, f64::NAN];
    +assert_eq!(&v[..8], &sorted[..8]);
    +assert!(v[8].is_nan());
    +
    1.79.0 · source

    pub fn utf8_chunks(&self) -> Utf8Chunks<'_>

    Creates an iterator over the contiguous valid UTF-8 ranges of this +slice, and the non-UTF-8 fragments in between.

    +
    §Examples
    +

    This function formats arbitrary but mostly-UTF-8 bytes into Rust source +code in the form of a C-string literal (c"...").

    + +
    use std::fmt::Write as _;
    +
    +pub fn cstr_literal(bytes: &[u8]) -> String {
    +    let mut repr = String::new();
    +    repr.push_str("c\"");
    +    for chunk in bytes.utf8_chunks() {
    +        for ch in chunk.valid().chars() {
    +            // Escapes \0, \t, \r, \n, \\, \', \", and uses \u{...} for non-printable characters.
    +            write!(repr, "{}", ch.escape_debug()).unwrap();
    +        }
    +        for byte in chunk.invalid() {
    +            write!(repr, "\\x{:02X}", byte).unwrap();
    +        }
    +    }
    +    repr.push('"');
    +    repr
    +}
    +
    +fn main() {
    +    let lit = cstr_literal(b"\xferris the \xf0\x9f\xa6\x80\x07");
    +    let expected = stringify!(c"\xFErris the 🦀\u{7}");
    +    assert_eq!(lit, expected);
    +}
    +
    1.0.0 · source

    pub fn sort(&mut self)
    where T: Ord,

    Sorts the slice, preserving initial order of equal elements.

    This sort is stable (i.e., does not reorder equal elements) and O(n * log(n)) worst-case.

    -

    If T: Ord does not implement a total order the resulting order is unspecified. All -original elements will remain in the slice and any possible modifications via interior -mutability are observed in the input. Same is true if T: Ord panics.

    +

    If the implementation of Ord for T does not implement a total order the resulting +order of elements in the slice is unspecified. All original elements will remain in the +slice and any possible modifications via interior mutability are observed in the input. Same +is true if the implementation of Ord for T panics.

    When applicable, unstable sorting is preferred because it is generally faster than stable sorting and it doesn’t allocate auxiliary memory. See sort_unstable. The exception are partially sorted slices, which may be better served with slice::sort.

    +

    Sorting types that only implement PartialOrd such as f32 and f64 require +additional precautions. For example, f32::NAN != f32::NAN, which doesn’t fulfill the +reflexivity requirement of Ord. By using an alternative comparison function with +slice::sort_by such as f32::total_cmp or f64::total_cmp that defines a total +order users can sort slices containing floating-point values. Alternatively, if all values +in the slice are guaranteed to be in a subset for which PartialOrd::partial_cmp forms a +total order, it’s possible to sort the slice with sort_by(|a, b| a.partial_cmp(b).unwrap()).

    §Current implementation

    The current implementation is based on driftsort by Orson Peters and Lukas Bergdoll, which combines the fast average case of quicksort with the fast worst case and partial run @@ -2578,32 +2657,24 @@

    §Examples
    -
    let mut v = [-5, 4, 1, -3, 2];
    +
    §Panics
    +

    May panic if the implementation of Ord for T does not implement a total order.

    +
    §Examples
    +
    let mut v = [4, -5, 1, -3, 2];
     
     v.sort();
    -assert!(v == [-5, -3, 1, 2, 4]);
    -
    1.0.0 · source

    pub fn sort_by<F>(&mut self, compare: F)
    where - F: FnMut(&T, &T) -> Ordering,

    Sorts the slice with a comparator function, preserving initial order of equal elements.

    +assert_eq!(v, [-5, -3, 1, 2, 4]);
    +
    1.0.0 · source

    pub fn sort_by<F>(&mut self, compare: F)
    where + F: FnMut(&T, &T) -> Ordering,

    Sorts the slice with a comparison function, preserving initial order of equal elements.

    This sort is stable (i.e., does not reorder equal elements) and O(n * log(n)) worst-case.

    -

    The comparator function should define a total ordering for the elements in the slice. If the -ordering is not total, the order of the elements is unspecified.

    -

    If the comparator function does not implement a total order the resulting order is -unspecified. All original elements will remain in the slice and any possible modifications -via interior mutability are observed in the input. Same is true if the comparator function -panics. A total order (for all a, b and c):

    -
      -
    • total and antisymmetric: exactly one of a < b, a == b or a > b is true, and
    • -
    • transitive, a < b and b < c implies a < c. The same must hold for both == and >.
    • -
    -

    For example, while f64 doesn’t implement Ord because NaN != NaN, we can use -partial_cmp as our sort function when we know the slice doesn’t contain a NaN.

    - -
    let mut floats = [5f64, 4.0, 1.0, 3.0, 2.0];
    -floats.sort_unstable_by(|a, b| a.partial_cmp(b).unwrap());
    -assert_eq!(floats, [1.0, 2.0, 3.0, 4.0, 5.0]);
    +

    If the comparison function compare does not implement a total order the resulting order +of elements in the slice is unspecified. All original elements will remain in the slice and +any possible modifications via interior mutability are observed in the input. Same is true +if compare panics.

    +

    For example |a, b| (a - b).cmp(a) is a comparison function that is neither transitive nor +reflexive nor total, a < b < c < a with a = 1, b = 2, c = 3. For more information and +examples see the Ord documentation.

    §Current implementation

    The current implementation is based on driftsort by Orson Peters and Lukas Bergdoll, which combines the fast average case of quicksort with the fast worst case and partial run @@ -2612,23 +2683,25 @@

    §Examples
    -
    let mut v = [5, 4, 1, 3, 2];
    +
    §Panics
    +

    May panic if compare does not implement a total order.

    +
    §Examples
    +
    let mut v = [4, -5, 1, -3, 2];
     v.sort_by(|a, b| a.cmp(b));
    -assert!(v == [1, 2, 3, 4, 5]);
    +assert_eq!(v, [-5, -3, 1, 2, 4]);
     
     // reverse sorting
     v.sort_by(|a, b| b.cmp(a));
    -assert!(v == [5, 4, 3, 2, 1]);
    -
    1.7.0 · source

    pub fn sort_by_key<K, F>(&mut self, f: F)
    where +assert_eq!(v, [4, 2, 1, -3, -5]);
    +

    1.7.0 · source

    pub fn sort_by_key<K, F>(&mut self, f: F)
    where F: FnMut(&T) -> K, K: Ord,

    Sorts the slice with a key extraction function, preserving initial order of equal elements.

    This sort is stable (i.e., does not reorder equal elements) and O(m * n * log(n)) worst-case, where the key function is O(m).

    -

    If K: Ord does not implement a total order the resulting order is unspecified. -All original elements will remain in the slice and any possible modifications via interior -mutability are observed in the input. Same is true if K: Ord panics.

    +

    If the implementation of Ord for K does not implement a total order the resulting +order of elements in the slice is unspecified. All original elements will remain in the +slice and any possible modifications via interior mutability are observed in the input. Same +is true if the implementation of Ord for K panics.

    §Current implementation

    The current implementation is based on driftsort by Orson Peters and Lukas Bergdoll, which combines the fast average case of quicksort with the fast worst case and partial run @@ -2637,13 +2710,14 @@

    §Examples
    -
    let mut v = [-5i32, 4, 1, -3, 2];
    +
    §Panics
    +

    May panic if the implementation of Ord for K does not implement a total order.

    +
    §Examples
    +
    let mut v = [4i32, -5, 1, -3, 2];
     
     v.sort_by_key(|k| k.abs());
    -assert!(v == [1, 2, -3, 4, -5]);
    -
    1.34.0 · source

    pub fn sort_by_cached_key<K, F>(&mut self, f: F)
    where +assert_eq!(v, [1, 2, -3, 4, -5]);
    +

    1.34.0 · source

    pub fn sort_by_cached_key<K, F>(&mut self, f: F)
    where F: FnMut(&T) -> K, K: Ord,

    Sorts the slice with a key extraction function, preserving initial order of equal elements.

    This sort is stable (i.e., does not reorder equal elements) and O(m * n + n * @@ -2651,9 +2725,10 @@

    §Examples<

    During sorting, the key function is called at most once per element, by using temporary storage to remember the results of key evaluation. The order of calls to the key function is unspecified and may change in future versions of the standard library.

    -

    If K: Ord does not implement a total order the resulting order is unspecified. -All original elements will remain in the slice and any possible modifications via interior -mutability are observed in the input. Same is true if K: Ord panics.

    +

    If the implementation of Ord for K does not implement a total order the resulting +order of elements in the slice is unspecified. All original elements will remain in the +slice and any possible modifications via interior mutability are observed in the input. Same +is true if the implementation of Ord for K panics.

    For simple key functions (e.g., functions that are property accesses or basic operations), sort_by_key is likely to be faster.

    §Current implementation
    @@ -2665,21 +2740,24 @@
    §Examples
    -
    let mut v = [-5i32, 4, 32, -3, 2];
    +
    §Panics
    +

    May panic if the implementation of Ord for K does not implement a total order.

    +
    §Examples
    +
    let mut v = [4i32, -5, 1, -3, 2, 10];
     
    -v.sort_by_cached_key(|k| k.to_string());
    -assert!(v == [-3, -5, 2, 32, 4]);
    -
    1.0.0 · source

    pub fn to_vec(&self) -> Vec<T>
    where +// Strings are sorted by lexicographical order. +v.sort_by_cached_key(|k| k.to_string()); +assert_eq!(v, [-3, -5, 1, 10, 2, 4]);
    +

    1.0.0 · source

    pub fn to_vec(&self) -> Vec<T>
    where T: Clone,

    Copies self into a new Vec.

    -
    §Examples
    +
    §Examples
    let s = [10, 40, 30];
     let x = s.to_vec();
     // Here, `s` and `x` can be modified independently.
    -
    source

    pub fn to_vec_in<A>(&self, alloc: A) -> Vec<T, A>
    where +

    source

    pub fn to_vec_in<A>(&self, alloc: A) -> Vec<T, A>
    where A: Allocator, T: Clone,

    🔬This is a nightly-only experimental API. (allocator_api)

    Copies self into a new Vec with an allocator.

    -
    §Examples
    +
    §Examples
    #![feature(allocator_api)]
     
     use std::alloc::System;
    @@ -2687,11 +2765,11 @@ 
    §Examples< let s = [10, 40, 30]; let x = s.to_vec_in(System); // Here, `s` and `x` can be modified independently.
    -
    1.40.0 · source

    pub fn repeat(&self, n: usize) -> Vec<T>
    where +

    1.40.0 · source

    pub fn repeat(&self, n: usize) -> Vec<T>
    where T: Copy,

    Creates a vector by copying a slice n times.

    -
    §Panics
    +
    §Panics

    This function will panic if the capacity would overflow.

    -
    §Examples
    +
    §Examples

    Basic usage:

    assert_eq!([1, 2].repeat(3), vec![1, 2, 1, 2, 1, 2]);
    @@ -2699,31 +2777,41 @@
    §Examples<
    // this will panic at runtime
     b"0123456789abcdef".repeat(usize::MAX);
    -
    1.0.0 · source

    pub fn concat<Item>(&self) -> <[T] as Concat<Item>>::Output
    where +

    1.0.0 · source

    pub fn concat<Item>(&self) -> <[T] as Concat<Item>>::Output
    where [T]: Concat<Item>, Item: ?Sized,

    Flattens a slice of T into a single value Self::Output.

    -
    §Examples
    +
    §Examples
    assert_eq!(["hello", "world"].concat(), "helloworld");
     assert_eq!([[1, 2], [3, 4]].concat(), [1, 2, 3, 4]);
    -
    1.3.0 · source

    pub fn join<Separator>( +

    1.3.0 · source

    pub fn join<Separator>( &self, sep: Separator, ) -> <[T] as Join<Separator>>::Output
    where [T]: Join<Separator>,

    Flattens a slice of T into a single value Self::Output, placing a given separator between each.

    -
    §Examples
    +
    §Examples
    assert_eq!(["hello", "world"].join(" "), "hello world");
     assert_eq!([[1, 2], [3, 4]].join(&0), [1, 2, 0, 3, 4]);
     assert_eq!([[1, 2], [3, 4]].join(&[0, 0][..]), [1, 2, 0, 0, 3, 4]);
    -
    1.0.0 · source

    pub fn connect<Separator>( +

    1.0.0 · source

    pub fn connect<Separator>( &self, sep: Separator, ) -> <[T] as Join<Separator>>::Output
    where [T]: Join<Separator>,

    👎Deprecated since 1.3.0: renamed to join

    Flattens a slice of T into a single value Self::Output, placing a given separator between each.

    -
    §Examples
    +
    §Examples
    assert_eq!(["hello", "world"].connect(" "), "hello world");
     assert_eq!([[1, 2], [3, 4]].connect(&0), [1, 2, 0, 3, 4]);
    +
    1.23.0 · source

    pub fn to_ascii_uppercase(&self) -> Vec<u8>

    Returns a vector containing a copy of this slice where each byte +is mapped to its ASCII upper case equivalent.

    +

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, +but non-ASCII letters are unchanged.

    +

    To uppercase the value in-place, use make_ascii_uppercase.

    +
    1.23.0 · source

    pub fn to_ascii_lowercase(&self) -> Vec<u8>

    Returns a vector containing a copy of this slice where each byte +is mapped to its ASCII lower case equivalent.

    +

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, +but non-ASCII letters are unchanged.

    +

    To lowercase the value in-place, use make_ascii_lowercase.

    Trait Implementations§

    §

    impl AsMut<[u8]> for BytesMut

    §

    fn as_mut(&mut self) -> &mut [u8]

    Converts this type into a mutable reference of the (usually inferred) input type.
    §

    impl AsRef<[u8]> for BytesMut

    §

    fn as_ref(&self) -> &[u8]

    Converts this type into a shared reference of the (usually inferred) input type.
    §

    impl Borrow<[u8]> for BytesMut

    §

    fn borrow(&self) -> &[u8]

    Immutably borrows from an owned value. Read more
    §

    impl BorrowMut<[u8]> for BytesMut

    §

    fn borrow_mut(&mut self) -> &mut [u8]

    Mutably borrows from an owned value. Read more
    §

    impl Buf for BytesMut

    §

    fn remaining(&self) -> usize

    Returns the number of bytes between the current position and the end of the buffer. Read more
    §

    fn chunk(&self) -> &[u8]

    Returns a slice starting at the current position and of length between 0 and Buf::remaining(). Note that this can return shorter slice (this allows @@ -2756,83 +2844,91 @@
    §Examples< Self: Sized,
    Creates an adaptor which can write at most limit bytes to self. Read more
    §

    fn writer(self) -> Writer<Self>
    where Self: Sized,

    Creates an adaptor which implements the Write trait for self. Read more
    §

    fn chain_mut<U>(self, next: U) -> Chain<Self, U>
    where U: BufMut, - Self: Sized,

    Creates an adapter which will chain this buffer with another. Read more
    §

    impl Clone for BytesMut

    §

    fn clone(&self) -> BytesMut

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for BytesMut

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for BytesMut

    §

    fn default() -> BytesMut

    Returns the “default value” for a type. Read more
    §

    impl Deref for BytesMut

    §

    type Target = [u8]

    The resulting type after dereferencing.
    §

    fn deref(&self) -> &[u8]

    Dereferences the value.
    §

    impl DerefMut for BytesMut

    §

    fn deref_mut(&mut self) -> &mut [u8]

    Mutably dereferences the value.
    §

    impl Drop for BytesMut

    §

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    §

    impl<'a> Extend<&'a u8> for BytesMut

    §

    fn extend<T>(&mut self, iter: T)
    where - T: IntoIterator<Item = &'a u8>,

    Extends a collection with the contents of an iterator. Read more
    source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    §

    impl Extend<Bytes> for BytesMut

    §

    fn extend<T>(&mut self, iter: T)
    where - T: IntoIterator<Item = Bytes>,

    Extends a collection with the contents of an iterator. Read more
    source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    §

    impl Extend<u8> for BytesMut

    §

    fn extend<T>(&mut self, iter: T)
    where - T: IntoIterator<Item = u8>,

    Extends a collection with the contents of an iterator. Read more
    source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    §

    impl<'a> From<&'a [u8]> for BytesMut

    §

    fn from(src: &'a [u8]) -> BytesMut

    Converts to this type from the input type.
    §

    impl<'a> From<&'a str> for BytesMut

    §

    fn from(src: &'a str) -> BytesMut

    Converts to this type from the input type.
    §

    impl From<BytesMut> for Bytes

    §

    fn from(src: BytesMut) -> Bytes

    Converts to this type from the input type.
    §

    impl From<BytesMut> for Vec<u8>

    §

    fn from(bytes: BytesMut) -> Vec<u8>

    Converts to this type from the input type.
    §

    impl<'a> FromIterator<&'a u8> for BytesMut

    §

    fn from_iter<T>(into_iter: T) -> BytesMut
    where + Self: Sized,

    Creates an adapter which will chain this buffer with another. Read more
    §

    impl Clone for BytesMut

    §

    fn clone(&self) -> BytesMut

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for BytesMut

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for BytesMut

    §

    fn default() -> BytesMut

    Returns the “default value” for a type. Read more
    §

    impl Deref for BytesMut

    §

    type Target = [u8]

    The resulting type after dereferencing.
    §

    fn deref(&self) -> &[u8]

    Dereferences the value.
    §

    impl DerefMut for BytesMut

    §

    fn deref_mut(&mut self) -> &mut [u8]

    Mutably dereferences the value.
    §

    impl Drop for BytesMut

    §

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    §

    impl<'a> Extend<&'a u8> for BytesMut

    §

    fn extend<T>(&mut self, iter: T)
    where + T: IntoIterator<Item = &'a u8>,

    Extends a collection with the contents of an iterator. Read more
    source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    §

    impl Extend<Bytes> for BytesMut

    §

    fn extend<T>(&mut self, iter: T)
    where + T: IntoIterator<Item = Bytes>,

    Extends a collection with the contents of an iterator. Read more
    source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    §

    impl Extend<u8> for BytesMut

    §

    fn extend<T>(&mut self, iter: T)
    where + T: IntoIterator<Item = u8>,

    Extends a collection with the contents of an iterator. Read more
    source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    §

    impl<'a> From<&'a [u8]> for BytesMut

    §

    fn from(src: &'a [u8]) -> BytesMut

    Converts to this type from the input type.
    §

    impl<'a> From<&'a str> for BytesMut

    §

    fn from(src: &'a str) -> BytesMut

    Converts to this type from the input type.
    §

    impl From<Bytes> for BytesMut

    §

    fn from(bytes: Bytes) -> BytesMut

    Convert self into BytesMut.

    +

    If bytes is unique for the entire original buffer, this will return a +BytesMut with the contents of bytes without copying. +If bytes is not unique for the entire original buffer, this will make +a copy of bytes subset of the original buffer in a new BytesMut.

    +
    §Examples
    +
    use bytes::{Bytes, BytesMut};
    +
    +let bytes = Bytes::from(b"hello".to_vec());
    +assert_eq!(BytesMut::from(bytes), BytesMut::from(&b"hello"[..]));
    +
    §

    impl From<BytesMut> for Bytes

    §

    fn from(src: BytesMut) -> Bytes

    Converts to this type from the input type.
    §

    impl From<BytesMut> for Vec<u8>

    §

    fn from(bytes: BytesMut) -> Vec<u8>

    Converts to this type from the input type.
    §

    impl<'a> FromIterator<&'a u8> for BytesMut

    §

    fn from_iter<T>(into_iter: T) -> BytesMut
    where T: IntoIterator<Item = &'a u8>,

    Creates a value from an iterator. Read more
    §

    impl FromIterator<u8> for BytesMut

    §

    fn from_iter<T>(into_iter: T) -> BytesMut
    where T: IntoIterator<Item = u8>,

    Creates a value from an iterator. Read more
    §

    impl Hash for BytesMut

    §

    fn hash<H>(&self, state: &mut H)
    where - H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    §

    impl<'a> IntoIterator for &'a BytesMut

    §

    type Item = &'a u8

    The type of the elements being iterated over.
    §

    type IntoIter = Iter<'a, u8>

    Which kind of iterator are we turning this into?
    §

    fn into_iter(self) -> <&'a BytesMut as IntoIterator>::IntoIter

    Creates an iterator from a value. Read more
    §

    impl IntoIterator for BytesMut

    §

    type Item = u8

    The type of the elements being iterated over.
    §

    type IntoIter = IntoIter<BytesMut>

    Which kind of iterator are we turning this into?
    §

    fn into_iter(self) -> <BytesMut as IntoIterator>::IntoIter

    Creates an iterator from a value. Read more
    §

    impl LowerHex for BytesMut

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl MessageBody for BytesMut

    §

    type Error = Infallible

    The type of error that will be returned if streaming body fails. Read more
    §

    fn size(&self) -> BodySize

    Body size hint. Read more
    §

    fn poll_next( + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    §

    impl<'a> IntoIterator for &'a BytesMut

    §

    type Item = &'a u8

    The type of the elements being iterated over.
    §

    type IntoIter = Iter<'a, u8>

    Which kind of iterator are we turning this into?
    §

    fn into_iter(self) -> <&'a BytesMut as IntoIterator>::IntoIter

    Creates an iterator from a value. Read more
    §

    impl IntoIterator for BytesMut

    §

    type Item = u8

    The type of the elements being iterated over.
    §

    type IntoIter = IntoIter<BytesMut>

    Which kind of iterator are we turning this into?
    §

    fn into_iter(self) -> <BytesMut as IntoIterator>::IntoIter

    Creates an iterator from a value. Read more
    §

    impl LowerHex for BytesMut

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl MessageBody for BytesMut

    §

    type Error = Infallible

    The type of error that will be returned if streaming body fails. Read more
    §

    fn size(&self) -> BodySize

    Body size hint. Read more
    §

    fn poll_next( self: Pin<&mut BytesMut>, _cx: &mut Context<'_>, ) -> Poll<Option<Result<Bytes, <BytesMut as MessageBody>::Error>>>

    Attempt to pull out the next chunk of body bytes. Read more
    §

    fn try_into_bytes(self) -> Result<Bytes, BytesMut>

    Try to convert into the complete chunk of body bytes. Read more
    §

    fn boxed(self) -> BoxBody
    where - Self: Sized + 'static,

    Wraps this body into a BoxBody. Read more
    §

    impl Ord for BytesMut

    §

    fn cmp(&self, other: &BytesMut) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + 'static,

    Wraps this body into a BoxBody. Read more
    §

    impl Ord for BytesMut

    §

    fn cmp(&self, other: &BytesMut) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    §

    impl<'a, T> PartialEq<&'a T> for BytesMut
    where BytesMut: PartialEq<T>, - T: ?Sized,

    §

    fn eq(&self, other: &&'a T) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<[u8]> for BytesMut

    §

    fn eq(&self, other: &[u8]) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for BytesMut

    §

    fn eq(&self, other: &Bytes) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for &[u8]

    §

    fn eq(&self, other: &BytesMut) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for &str

    §

    fn eq(&self, other: &BytesMut) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for [u8]

    §

    fn eq(&self, other: &BytesMut) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for Bytes

    §

    fn eq(&self, other: &BytesMut) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for Vec<u8>

    §

    fn eq(&self, other: &BytesMut) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for str

    §

    fn eq(&self, other: &BytesMut) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<String> for BytesMut

    §

    fn eq(&self, other: &String) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<Vec<u8>> for BytesMut

    §

    fn eq(&self, other: &Vec<u8>) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<str> for BytesMut

    §

    fn eq(&self, other: &str) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq for BytesMut

    §

    fn eq(&self, other: &BytesMut) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl<'a, T> PartialOrd<&'a T> for BytesMut
    where + T: ?Sized,

    §

    fn eq(&self, other: &&'a T) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<[u8]> for BytesMut

    §

    fn eq(&self, other: &[u8]) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for BytesMut

    §

    fn eq(&self, other: &Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for &[u8]

    §

    fn eq(&self, other: &BytesMut) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for &str

    §

    fn eq(&self, other: &BytesMut) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for [u8]

    §

    fn eq(&self, other: &BytesMut) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for Bytes

    §

    fn eq(&self, other: &BytesMut) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for Vec<u8>

    §

    fn eq(&self, other: &BytesMut) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for str

    §

    fn eq(&self, other: &BytesMut) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<String> for BytesMut

    §

    fn eq(&self, other: &String) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<Vec<u8>> for BytesMut

    §

    fn eq(&self, other: &Vec<u8>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<str> for BytesMut

    §

    fn eq(&self, other: &str) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq for BytesMut

    §

    fn eq(&self, other: &BytesMut) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl<'a, T> PartialOrd<&'a T> for BytesMut
    where BytesMut: PartialOrd<T>, - T: ?Sized,

    §

    fn partial_cmp(&self, other: &&'a T) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<[u8]> for BytesMut

    §

    fn partial_cmp(&self, other: &[u8]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<BytesMut> for &[u8]

    §

    fn partial_cmp(&self, other: &BytesMut) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<BytesMut> for &str

    §

    fn partial_cmp(&self, other: &BytesMut) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<BytesMut> for [u8]

    §

    fn partial_cmp(&self, other: &BytesMut) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<BytesMut> for Vec<u8>

    §

    fn partial_cmp(&self, other: &BytesMut) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<BytesMut> for str

    §

    fn partial_cmp(&self, other: &BytesMut) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<String> for BytesMut

    §

    fn partial_cmp(&self, other: &String) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<Vec<u8>> for BytesMut

    §

    fn partial_cmp(&self, other: &Vec<u8>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<str> for BytesMut

    §

    fn partial_cmp(&self, other: &str) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd for BytesMut

    §

    fn partial_cmp(&self, other: &BytesMut) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl Responder for BytesMut

    §

    fn partial_cmp(&self, other: &&'a T) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<[u8]> for BytesMut

    §

    fn partial_cmp(&self, other: &[u8]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<BytesMut> for &[u8]

    §

    fn partial_cmp(&self, other: &BytesMut) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<BytesMut> for &str

    §

    fn partial_cmp(&self, other: &BytesMut) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<BytesMut> for [u8]

    §

    fn partial_cmp(&self, other: &BytesMut) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<BytesMut> for Vec<u8>

    §

    fn partial_cmp(&self, other: &BytesMut) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<BytesMut> for str

    §

    fn partial_cmp(&self, other: &BytesMut) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<String> for BytesMut

    §

    fn partial_cmp(&self, other: &String) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<Vec<u8>> for BytesMut

    §

    fn partial_cmp(&self, other: &Vec<u8>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<str> for BytesMut

    §

    fn partial_cmp(&self, other: &str) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd for BytesMut

    §

    fn partial_cmp(&self, other: &BytesMut) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl Responder for BytesMut

    §

    type Body = BytesMut

    §

    fn respond_to( self, _: &HttpRequest, ) -> HttpResponse<<BytesMut as Responder>::Body>

    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>
    where - Self: Sized,

    Wraps responder to allow alteration of its response. Read more
    §

    impl UpperHex for BytesMut

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Write for BytesMut

    §

    fn write_str(&mut self, s: &str) -> Result<(), Error>

    Writes a string slice into this writer, returning whether the write -succeeded. Read more
    §

    fn write_fmt(&mut self, args: Arguments<'_>) -> Result<(), Error>

    Glue for usage of the write! macro with implementors of this trait. Read more
    1.1.0 · source§

    fn write_char(&mut self, c: char) -> Result<(), Error>

    Writes a char into this writer, returning whether the write succeeded. Read more
    §

    impl Eq for BytesMut

    §

    impl Send for BytesMut

    §

    impl Sync for BytesMut

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where + Self: Sized,

    Wraps responder to allow alteration of its response. Read more
    §

    impl UpperHex for BytesMut

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Write for BytesMut

    §

    fn write_str(&mut self, s: &str) -> Result<(), Error>

    Writes a string slice into this writer, returning whether the write +succeeded. Read more
    §

    fn write_fmt(&mut self, args: Arguments<'_>) -> Result<(), Error>

    Glue for usage of the write! macro with implementors of this trait. Read more
    1.1.0 · source§

    fn write_char(&mut self, c: char) -> Result<(), Error>

    Writes a char into this writer, returning whether the write succeeded. Read more
    §

    impl Eq for BytesMut

    §

    impl Send for BytesMut

    §

    impl Sync for BytesMut

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn compare(&self, key: &K) -> Ordering

    Compare self to key and return their ordering.
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, @@ -2840,7 +2936,7 @@
    §Examples< Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn equivalent(&self, key: &K) -> bool

    Compare self to key and return true if they are equal.
    source§

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

    source§

    fn equivalent(&self, key: &K) -> bool

    Compare self to key and return true if they are equal.
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + K: Borrow<Q> + ?Sized,
    source§

    fn equivalent(&self, key: &K) -> bool

    Compare self to key and return true if they are equal.
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -2851,15 +2947,15 @@
    §Examples< if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    source§

    impl<T> NumBytes for T
    where - T: Debug + AsRef<[u8]> + AsMut<[u8]> + PartialEq + Eq + PartialOrd + Ord + Hash + Borrow<[u8]> + BorrowMut<[u8]> + ?Sized,

    \ No newline at end of file + T: Debug + AsRef<[u8]> + AsMut<[u8]> + PartialEq + Eq + PartialOrd + Ord + Hash + Borrow<[u8]> + BorrowMut<[u8]> + ?Sized, \ No newline at end of file diff --git a/paperclip/actix/web/struct.Data.html b/paperclip/actix/web/struct.Data.html index 6c769f76a..c16418d7d 100644 --- a/paperclip/actix/web/struct.Data.html +++ b/paperclip/actix/web/struct.Data.html @@ -1,4 +1,4 @@ -Data in paperclip::actix::web - Rust

    Struct paperclip::actix::web::Data

    pub struct Data<T>(/* private fields */)
    +Data in paperclip::actix::web - Rust

    Struct paperclip::actix::web::Data

    pub struct Data<T>(/* private fields */)
     where
         T: ?Sized;
    Expand description

    Application data wrapper and extractor.

    §Setting Data

    @@ -58,15 +58,15 @@

    §Examples

    §

    impl<T> Data<T>
    where T: ?Sized,

    pub fn get_ref(&self) -> &T

    Returns reference to inner T.

    pub fn into_inner(self) -> Arc<T>

    Unwraps to the internal Arc<T>

    -

    Trait Implementations§

    source§

    impl<T> Apiv2Schema for Data<T>

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl<T> Clone for Data<T>
    where - T: ?Sized,

    §

    fn clone(&self) -> Data<T>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl<T> Debug for Data<T>
    where +

    Trait Implementations§

    source§

    impl<T> Apiv2Schema for Data<T>

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl<T> Clone for Data<T>
    where + T: ?Sized,

    §

    fn clone(&self) -> Data<T>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl<T> Debug for Data<T>
    where T: Debug + ?Sized,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<T> Default for Data<T>
    where T: Default,

    §

    fn default() -> Data<T>

    Returns the “default value” for a type. Read more
    §

    impl<T> Deref for Data<T>
    where - T: ?Sized,

    §

    type Target = Arc<T>

    The resulting type after dereferencing.
    §

    fn deref(&self) -> &Arc<T>

    Dereferences the value.
    §

    impl<'de, T> Deserialize<'de> for Data<T>
    where - T: Deserialize<'de>,

    §

    fn deserialize<D>( + T: ?Sized,

    §

    type Target = Arc<T>

    The resulting type after dereferencing.
    §

    fn deref(&self) -> &Arc<T>

    Dereferences the value.
    §

    impl<'de, T> Deserialize<'de> for Data<T>
    where + T: Deserialize<'de>,

    §

    fn deserialize<D>( deserializer: D, -) -> Result<Data<T>, <D as Deserializer<'de>>::Error>
    where - D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    §

    impl<T> From<Arc<T>> for Data<T>
    where +) -> Result<Data<T>, <D as Deserializer<'de>>::Error>
    where + D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    §

    impl<T> From<Arc<T>> for Data<T>
    where T: ?Sized,

    §

    fn from(arc: Arc<T>) -> Data<T>

    Converts to this type from the input type.
    §

    impl<T> FromRequest for Data<T>
    where T: 'static + ?Sized,

    §

    type Error = Error

    The associated error which can be returned.
    §

    type Future = Ready<Result<Data<T>, Error>>

    Future that resolves to a Self. Read more
    §

    fn from_request( req: &HttpRequest, @@ -77,22 +77,22 @@

    §Examples

    _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )
    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    §

    impl<T> Serialize for Data<T>
    where - T: Serialize,

    §

    fn serialize<S>( +)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    §

    impl<T> Serialize for Data<T>
    where + T: Serialize,

    §

    fn serialize<S>( &self, serializer: S, -) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where - S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<T> Freeze for Data<T>
    where +) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where + S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<T> Freeze for Data<T>
    where T: ?Sized,

    §

    impl<T> RefUnwindSafe for Data<T>
    where T: RefUnwindSafe + ?Sized,

    §

    impl<T> Send for Data<T>
    where T: Sync + Send + ?Sized,

    §

    impl<T> Sync for Data<T>
    where T: Sync + Send + ?Sized,

    §

    impl<T> Unpin for Data<T>
    where T: ?Sized,

    §

    impl<T> UnwindSafe for Data<T>
    where - T: RefUnwindSafe + ?Sized,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + T: RefUnwindSafe + ?Sized,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -103,17 +103,17 @@

    §Examples

    if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    §

    impl<T> Formattable for T
    where +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    §

    impl<T> Formattable for T
    where T: Deref, <T as Deref>::Target: Formattable,

    \ No newline at end of file diff --git a/paperclip/actix/web/struct.Form.html b/paperclip/actix/web/struct.Form.html index f19e497a8..a3f72cff7 100644 --- a/paperclip/actix/web/struct.Form.html +++ b/paperclip/actix/web/struct.Form.html @@ -1,8 +1,8 @@ -Form in paperclip::actix::web - Rust

    Struct paperclip::actix::web::Form

    pub struct Form<T>(pub T);
    Expand description

    URL encoded payload extractor and responder.

    +Form in paperclip::actix::web - Rust

    Struct paperclip::actix::web::Form

    pub struct Form<T>(pub T);
    Expand description

    URL encoded payload extractor and responder.

    Form has two uses: URL encoded responses, and extracting typed data from URL request payloads.

    §Extractor

    To extract typed data from a request body, the inner type T must implement the -DeserializeOwned trait.

    +DeserializeOwned trait.

    Use FormConfig to configure extraction options.

    §Examples

    use actix_web::{post, web};
    @@ -22,7 +22,7 @@ 

    §Examples

    }

    §Responder

    The Form type also allows you to create URL encoded responses by returning a value of type -Form<T> where T is the type to be URL encoded, as long as T implements Serialize.

    +Form<T> where T is the type to be URL encoded, as long as T implements Serialize.

    §Examples

    use actix_web::{get, web};
     use serde::Serialize;
    @@ -48,53 +48,53 @@ 

    §Panics

    URL encoded forms consist of unordered key=value pairs, therefore they cannot be decoded into any type which depends upon data ordering (eg. tuples). Trying to do so will result in a panic.

    Tuple Fields§

    §0: T

    Implementations§

    §

    impl<T> Form<T>

    pub fn into_inner(self) -> T

    Unwrap into inner T value.

    -

    Trait Implementations§

    source§

    impl<T> Apiv2Schema for Form<T>
    where - T: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl<T> Debug for Form<T>
    where +

    Trait Implementations§

    source§

    impl<T> Apiv2Schema for Form<T>
    where + T: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl<T> Debug for Form<T>
    where T: Debug,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<T> Deref for Form<T>

    §

    type Target = T

    The resulting type after dereferencing.
    §

    fn deref(&self) -> &T

    Dereferences the value.
    §

    impl<T> DerefMut for Form<T>

    §

    fn deref_mut(&mut self) -> &mut T

    Mutably dereferences the value.
    §

    impl<T> Display for Form<T>
    where T: Display,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<T> FromRequest for Form<T>
    where - T: DeserializeOwned + 'static,

    See here for example of usage as an extractor.

    + T: DeserializeOwned + 'static,

    See here for example of usage as an extractor.

    §

    type Error = Error

    The associated error which can be returned.
    §

    type Future = FormExtractFut<T>

    Future that resolves to a Self. Read more
    §

    fn from_request( req: &HttpRequest, payload: &mut Payload, -) -> <Form<T> as FromRequest>::Future

    Create a Self from request parts asynchronously.
    §

    fn extract(req: &HttpRequest) -> Self::Future

    Create a Self from request head asynchronously. Read more
    source§

    impl<T> OperationModifier for Form<T>
    where - T: Apiv2Schema,

    source§

    fn update_parameter( +) -> <Form<T> as FromRequest>::Future

    Create a Self from request parts asynchronously.
    §

    fn extract(req: &HttpRequest) -> Self::Future

    Create a Self from request head asynchronously. Read more
    source§

    impl<T> OperationModifier for Form<T>
    where + T: Apiv2Schema,

    source§

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_definitions(_map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_definitions(_map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )

    Update the responses map in the given operation (if needed).
    source§

    fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    §

    impl<T> Ord for Form<T>
    where - T: Ord,

    §

    fn cmp(&self, other: &Form<T>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + T: Ord,

    §

    fn cmp(&self, other: &Form<T>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    §

    impl<T> PartialEq for Form<T>
    where - T: PartialEq,

    §

    fn eq(&self, other: &Form<T>) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl<T> PartialOrd for Form<T>
    where - T: PartialOrd,

    §

    fn partial_cmp(&self, other: &Form<T>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl<T> Responder for Form<T>
    where - T: Serialize,

    See here for example of usage as a handler return type.

    + T: PartialEq,
    §

    fn eq(&self, other: &Form<T>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl<T> PartialOrd for Form<T>
    where + T: PartialOrd,

    §

    fn partial_cmp(&self, other: &Form<T>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl<T> Responder for Form<T>
    where + T: Serialize,

    See here for example of usage as a handler return type.

    §

    type Body = EitherBody<String>

    §

    fn respond_to( self, _: &HttpRequest, ) -> HttpResponse<<Form<T> as Responder>::Body>

    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>
    where - Self: Sized,

    Wraps responder to allow alteration of its response. Read more
    §

    impl<T> Serialize for Form<T>
    where - T: Serialize,

    §

    fn serialize<S>( + Self: Sized,

    Wraps responder to allow alteration of its response. Read more
    §

    impl<T> Serialize for Form<T>
    where + T: Serialize,

    §

    fn serialize<S>( &self, serializer: S, -) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where - S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    §

    impl<T> Eq for Form<T>
    where +) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where + S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    §

    impl<T> Eq for Form<T>
    where T: Eq,

    §

    impl<T> StructuralPartialEq for Form<T>

    Auto Trait Implementations§

    §

    impl<T> Freeze for Form<T>
    where T: Freeze,

    §

    impl<T> RefUnwindSafe for Form<T>
    where T: RefUnwindSafe,

    §

    impl<T> Send for Form<T>
    where T: Send,

    §

    impl<T> Sync for Form<T>
    where T: Sync,

    §

    impl<T> Unpin for Form<T>
    where T: Unpin,

    §

    impl<T> UnwindSafe for Form<T>
    where - T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where + T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn compare(&self, key: &K) -> Ordering

    Compare self to key and return their ordering.
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, @@ -113,13 +113,13 @@

    §Panics

    if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
    §

    impl<T, P> Resource for T
    where T: DerefMut<Target = Path<P>>, - P: ResourcePath,

    §

    type Path = P

    Type of resource’s path returned in resource_path.
    §

    fn resource_path(&mut self) -> &mut Path<<T as Resource>::Path>

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + P: ResourcePath,

    §

    type Path = P

    Type of resource’s path returned in resource_path.
    §

    fn resource_path(&mut self) -> &mut Path<<T as Resource>::Path>

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/actix/web/struct.FormConfig.html b/paperclip/actix/web/struct.FormConfig.html index b8e513baf..e6d2693ba 100644 --- a/paperclip/actix/web/struct.FormConfig.html +++ b/paperclip/actix/web/struct.FormConfig.html @@ -1,4 +1,4 @@ -FormConfig in paperclip::actix::web - Rust

    Struct paperclip::actix::web::FormConfig

    pub struct FormConfig { /* private fields */ }
    Expand description

    Form extractor configuration.

    +FormConfig in paperclip::actix::web - Rust

    Struct paperclip::actix::web::FormConfig

    pub struct FormConfig { /* private fields */ }
    Expand description

    Form extractor configuration.

    use actix_web::{post, web, App, FromRequest, Result};
     use serde::Deserialize;
    @@ -21,11 +21,11 @@
     

    Implementations§

    §

    impl FormConfig

    pub fn limit(self, limit: usize) -> FormConfig

    Set maximum accepted payload size. By default this limit is 16kB.

    pub fn error_handler<F>(self, f: F) -> FormConfig
    where F: Fn(UrlencodedError, &HttpRequest) -> Error + 'static,

    Set custom error handler

    -

    Trait Implementations§

    §

    impl Clone for FormConfig

    §

    fn clone(&self) -> FormConfig

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Default for FormConfig

    §

    fn default() -> FormConfig

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    §

    impl Clone for FormConfig

    §

    fn clone(&self) -> FormConfig

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Default for FormConfig

    §

    fn default() -> FormConfig

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -36,11 +36,11 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/actix/web/struct.HttpRequest.html b/paperclip/actix/web/struct.HttpRequest.html index 23f5def3c..f5dfc5248 100644 --- a/paperclip/actix/web/struct.HttpRequest.html +++ b/paperclip/actix/web/struct.HttpRequest.html @@ -1,4 +1,4 @@ -HttpRequest in paperclip::actix::web - Rust

    Struct paperclip::actix::web::HttpRequest

    pub struct HttpRequest { /* private fields */ }
    Expand description

    An incoming request.

    +HttpRequest in paperclip::actix::web - Rust

    Struct paperclip::actix::web::HttpRequest

    pub struct HttpRequest { /* private fields */ }
    Expand description

    An incoming request.

    Implementations§

    §

    impl HttpRequest

    pub fn head(&self) -> &RequestHead

    This method returns reference to the request head

    pub fn uri(&self) -> &Uri

    Request’s uri.

    pub fn full_url(&self) -> Url

    Returns request’s original full URL.

    @@ -25,13 +25,13 @@ later in a request handler to access the matched value for that parameter.

    §Percent Encoding and URL Parameters

    Because each URL parameter is able to capture multiple path segments, none of -["%2F", "%25", "%2B"] found in the request URI are decoded into ["/", "%", "+"] in order +["%2F", "%25", "%2B"] found in the request URI are decoded into ["/", "%", "+"] in order to preserve path integrity. If a URL parameter is expected to contain these characters, then it is on the user to decode them or use the web::Path extractor which will decode these special sequences.

    pub fn match_pattern(&self) -> Option<String>

    The resource definition pattern that matched the path. Useful for logging and metrics.

    For example, when a resource with pattern /user/{id}/profile is defined and a call is made -to /user/123/profile this function would return Some("/user/{id}/profile").

    +to /user/123/profile this function would return Some("/user/{id}/profile").

    Returns a None when no resource is fully matched, including default services.

    pub fn match_name(&self) -> Option<&str>

    The resource name that matched the path. Useful for logging and metrics.

    Returns a None when no resource is fully matched, including default services.

    @@ -93,7 +93,7 @@
    §Panics

    See also the Data extractor.

    §Examples
    let opt_t: Option<&Data<T>> = req.app_data::<Data<T>>();
    -

    Trait Implementations§

    source§

    impl Apiv2Schema for HttpRequest

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl Clone for HttpRequest

    §

    fn clone(&self) -> HttpRequest

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for HttpRequest

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Drop for HttpRequest

    §

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    §

    impl FromRequest for HttpRequest

    It is possible to get HttpRequest as an extractor handler parameter

    +

    Trait Implementations§

    source§

    impl Apiv2Schema for HttpRequest

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl Clone for HttpRequest

    §

    fn clone(&self) -> HttpRequest

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for HttpRequest

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Drop for HttpRequest

    §

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    §

    impl FromRequest for HttpRequest

    It is possible to get HttpRequest as an extractor handler parameter

    §Examples

    use actix_web::{web, App, HttpRequest};
     use serde::Deserialize;
    @@ -117,11 +117,11 @@ 

    §Examples

    _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +)
    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -132,11 +132,11 @@

    §Examples

    if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/actix/web/struct.HttpResponse.html b/paperclip/actix/web/struct.HttpResponse.html index 9d83f0561..43edd5402 100644 --- a/paperclip/actix/web/struct.HttpResponse.html +++ b/paperclip/actix/web/struct.HttpResponse.html @@ -1,4 +1,4 @@ -HttpResponse in paperclip::actix::web - Rust

    Struct paperclip::actix::web::HttpResponse

    pub struct HttpResponse<B = BoxBody> { /* private fields */ }
    Expand description

    An outgoing response.

    +HttpResponse in paperclip::actix::web - Rust

    Struct paperclip::actix::web::HttpResponse

    pub struct HttpResponse<B = BoxBody> { /* private fields */ }
    Expand description

    An outgoing response.

    Implementations§

    §

    impl HttpResponse

    pub fn Continue() -> HttpResponseBuilder

    pub fn SwitchingProtocols() -> HttpResponseBuilder

    pub fn Processing() -> HttpResponseBuilder

    pub fn Ok() -> HttpResponseBuilder

    pub fn Created() -> HttpResponseBuilder

    pub fn Accepted() -> HttpResponseBuilder

    pub fn NonAuthoritativeInformation() -> HttpResponseBuilder

    pub fn NoContent() -> HttpResponseBuilder

    pub fn ResetContent() -> HttpResponseBuilder

    pub fn PartialContent() -> HttpResponseBuilder

    pub fn MultiStatus() -> HttpResponseBuilder

    pub fn AlreadyReported() -> HttpResponseBuilder

    pub fn ImUsed() -> HttpResponseBuilder

    pub fn MultipleChoices() -> HttpResponseBuilder

    pub fn MovedPermanently() -> HttpResponseBuilder

    pub fn Found() -> HttpResponseBuilder

    pub fn SeeOther() -> HttpResponseBuilder

    pub fn NotModified() -> HttpResponseBuilder

    pub fn UseProxy() -> HttpResponseBuilder

    pub fn TemporaryRedirect() -> HttpResponseBuilder

    pub fn PermanentRedirect() -> HttpResponseBuilder

    pub fn BadRequest() -> HttpResponseBuilder

    pub fn Unauthorized() -> HttpResponseBuilder

    pub fn PaymentRequired() -> HttpResponseBuilder

    pub fn Forbidden() -> HttpResponseBuilder

    pub fn NotFound() -> HttpResponseBuilder

    pub fn MethodNotAllowed() -> HttpResponseBuilder

    pub fn NotAcceptable() -> HttpResponseBuilder

    pub fn ProxyAuthenticationRequired() -> HttpResponseBuilder

    pub fn RequestTimeout() -> HttpResponseBuilder

    pub fn Conflict() -> HttpResponseBuilder

    pub fn Gone() -> HttpResponseBuilder

    pub fn LengthRequired() -> HttpResponseBuilder

    pub fn PreconditionFailed() -> HttpResponseBuilder

    pub fn PayloadTooLarge() -> HttpResponseBuilder

    pub fn UriTooLong() -> HttpResponseBuilder

    pub fn UnsupportedMediaType() -> HttpResponseBuilder

    pub fn RangeNotSatisfiable() -> HttpResponseBuilder

    pub fn ExpectationFailed() -> HttpResponseBuilder

    pub fn ImATeapot() -> HttpResponseBuilder

    pub fn MisdirectedRequest() -> HttpResponseBuilder

    pub fn UnprocessableEntity() -> HttpResponseBuilder

    pub fn Locked() -> HttpResponseBuilder

    pub fn FailedDependency() -> HttpResponseBuilder

    pub fn UpgradeRequired() -> HttpResponseBuilder

    pub fn PreconditionRequired() -> HttpResponseBuilder

    pub fn TooManyRequests() -> HttpResponseBuilder

    pub fn RequestHeaderFieldsTooLarge() -> HttpResponseBuilder

    pub fn UnavailableForLegalReasons() -> HttpResponseBuilder

    pub fn InternalServerError() -> HttpResponseBuilder

    pub fn NotImplemented() -> HttpResponseBuilder

    pub fn BadGateway() -> HttpResponseBuilder

    pub fn ServiceUnavailable() -> HttpResponseBuilder

    pub fn GatewayTimeout() -> HttpResponseBuilder

    pub fn VersionNotSupported() -> HttpResponseBuilder

    pub fn VariantAlsoNegotiates() -> HttpResponseBuilder

    pub fn InsufficientStorage() -> HttpResponseBuilder

    pub fn LoopDetected() -> HttpResponseBuilder

    pub fn NotExtended() -> HttpResponseBuilder

    pub fn NetworkAuthenticationRequired() -> HttpResponseBuilder

    §

    impl HttpResponse

    pub fn new(status: StatusCode) -> HttpResponse

    Constructs a response.

    pub fn build(status: StatusCode) -> HttpResponseBuilder

    Constructs a response builder with specific HTTP status.

    pub fn from_error(error: impl Into<Error>) -> HttpResponse

    Create an error response.

    @@ -31,8 +31,8 @@

    pub fn map_into_boxed_body(self) -> HttpResponse
    where B: MessageBody + 'static,

    Map the current body to a type-erased BoxBody.

    pub fn into_body(self) -> B

    Returns the response body, dropping all other parts.

    -

    Trait Implementations§

    source§

    impl Apiv2Schema for HttpResponse

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl<B> Debug for HttpResponse<B>
    where - B: MessageBody,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl From<Error> for HttpResponse

    §

    fn from(err: Error) -> HttpResponse

    Converts to this type from the input type.
    §

    impl From<HttpResponseBuilder> for HttpResponse

    §

    fn from(builder: HttpResponseBuilder) -> HttpResponse

    Converts to this type from the input type.
    §

    impl<B> From<Response<B>> for HttpResponse<B>

    §

    fn from(res: Response<B>) -> HttpResponse<B>

    Converts to this type from the input type.
    §

    impl<B> From<ServiceResponse<B>> for HttpResponse<B>

    §

    fn from(res: ServiceResponse<B>) -> HttpResponse<B>

    Converts to this type from the input type.
    source§

    impl OperationModifier for HttpResponse

    Trait Implementations§

    source§

    impl Apiv2Schema for HttpResponse

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl<B> Debug for HttpResponse<B>
    where + B: MessageBody,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl From<Error> for HttpResponse

    §

    fn from(err: Error) -> HttpResponse

    Converts to this type from the input type.
    §

    impl From<HttpResponseBuilder> for HttpResponse

    §

    fn from(builder: HttpResponseBuilder) -> HttpResponse

    Converts to this type from the input type.
    §

    impl<B> From<Response<B>> for HttpResponse<B>

    §

    fn from(res: Response<B>) -> HttpResponse<B>

    Converts to this type from the input type.
    §

    impl<B> From<ServiceResponse<B>> for HttpResponse<B>

    §

    fn from(res: ServiceResponse<B>) -> HttpResponse<B>

    Converts to this type from the input type.
    source§

    impl OperationModifier for HttpResponse

    source§

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, @@ -44,10 +44,10 @@

    HttpRequest, ) -> HttpResponse<<HttpResponse<B> as Responder>::Body>
    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>
    where Self: Sized,

    Wraps responder to allow alteration of its response. Read more

    Auto Trait Implementations§

    §

    impl<B = BoxBody> !Freeze for HttpResponse<B>

    §

    impl<B = BoxBody> !RefUnwindSafe for HttpResponse<B>

    §

    impl<B = BoxBody> !Send for HttpResponse<B>

    §

    impl<B = BoxBody> !Sync for HttpResponse<B>

    §

    impl<B> Unpin for HttpResponse<B>
    where - B: Unpin,

    §

    impl<B = BoxBody> !UnwindSafe for HttpResponse<B>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + B: Unpin,

    §

    impl<B = BoxBody> !UnwindSafe for HttpResponse<B>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -58,7 +58,7 @@
    into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for T
    where diff --git a/paperclip/actix/web/struct.Json.html b/paperclip/actix/web/struct.Json.html index 858581705..ee92e49fd 100644 --- a/paperclip/actix/web/struct.Json.html +++ b/paperclip/actix/web/struct.Json.html @@ -1,8 +1,8 @@ -Json in paperclip::actix::web - Rust

    Struct paperclip::actix::web::Json

    pub struct Json<T>(pub T);
    Expand description

    JSON extractor and responder.

    +Json in paperclip::actix::web - Rust

    Struct paperclip::actix::web::Json

    pub struct Json<T>(pub T);
    Expand description

    JSON extractor and responder.

    Json has two uses: JSON responses, and extracting typed data from JSON request payloads.

    §Extractor

    To extract typed data from a request body, the inner type T must implement the -serde::Deserialize trait.

    +serde::Deserialize trait.

    Use JsonConfig to configure extraction options.

    use actix_web::{post, web, App};
    @@ -21,7 +21,7 @@ 

    §Extractor

    §Responder

    The Json type JSON formatted responses. A handler may return a value of type Json<T> where T is the type of a structure to serialize into JSON. The type T must -implement serde::Serialize.

    +implement serde::Serialize.

    use actix_web::{post, web, HttpRequest};
     use serde::Serialize;
    @@ -38,44 +38,44 @@ 

    §Responder

    }) }

    Tuple Fields§

    §0: T

    Implementations§

    §

    impl<T> Json<T>

    pub fn into_inner(self) -> T

    Unwrap into inner T value.

    -

    Trait Implementations§

    source§

    impl<T> Apiv2Schema for Json<T>
    where +

    Trait Implementations§

    source§

    impl<T> Apiv2Schema for Json<T>
    where T: Apiv2Schema,

    JSON needs specialization because it updates the global definitions.

    -
    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl<T> Debug for Json<T>
    where +
    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl<T> Debug for Json<T>
    where T: Debug,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<T> Deref for Json<T>

    §

    type Target = T

    The resulting type after dereferencing.
    §

    fn deref(&self) -> &T

    Dereferences the value.
    §

    impl<T> DerefMut for Json<T>

    §

    fn deref_mut(&mut self) -> &mut T

    Mutably dereferences the value.
    §

    impl<T> Display for Json<T>
    where T: Display,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<T> FromRequest for Json<T>
    where - T: DeserializeOwned,

    See here for example of usage as an extractor.

    + T: DeserializeOwned,

    See here for example of usage as an extractor.

    §

    type Error = Error

    The associated error which can be returned.
    §

    type Future = JsonExtractFut<T>

    Future that resolves to a Self. Read more
    §

    fn from_request( req: &HttpRequest, payload: &mut Payload, -) -> <Json<T> as FromRequest>::Future

    Create a Self from request parts asynchronously.
    §

    fn extract(req: &HttpRequest) -> Self::Future

    Create a Self from request head asynchronously. Read more
    source§

    impl<T> OperationModifier for Json<T>
    where - T: Apiv2Schema,

    source§

    fn update_parameter( +) -> <Json<T> as FromRequest>::Future

    Create a Self from request parts asynchronously.
    §

    fn extract(req: &HttpRequest) -> Self::Future

    Create a Self from request head asynchronously. Read more
    source§

    impl<T> OperationModifier for Json<T>
    where + T: Apiv2Schema,

    source§

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    §

    impl<T> Responder for Json<T>
    where - T: Serialize,

    Creates response with OK status code, correct content type header, and serialized JSON payload.

    + T: Serialize,

    Creates response with OK status code, correct content type header, and serialized JSON payload.

    If serialization failed

    §

    type Body = EitherBody<String>

    §

    fn respond_to( self, _: &HttpRequest, ) -> HttpResponse<<Json<T> as Responder>::Body>

    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>
    where - Self: Sized,

    Wraps responder to allow alteration of its response. Read more
    §

    impl<T> Serialize for Json<T>
    where - T: Serialize,

    §

    fn serialize<S>( + Self: Sized,

    Wraps responder to allow alteration of its response. Read more
    §

    impl<T> Serialize for Json<T>
    where + T: Serialize,

    §

    fn serialize<S>( &self, serializer: S, -) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where - S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<T> Freeze for Json<T>
    where +) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where + S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<T> Freeze for Json<T>
    where T: Freeze,

    §

    impl<T> RefUnwindSafe for Json<T>
    where T: RefUnwindSafe,

    §

    impl<T> Send for Json<T>
    where T: Send,

    §

    impl<T> Sync for Json<T>
    where T: Sync,

    §

    impl<T> Unpin for Json<T>
    where T: Unpin,

    §

    impl<T> UnwindSafe for Json<T>
    where - T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -86,13 +86,13 @@

    §Responder

    if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
    §

    impl<T, P> Resource for T
    where T: DerefMut<Target = Path<P>>, - P: ResourcePath,

    §

    type Path = P

    Type of resource’s path returned in resource_path.
    §

    fn resource_path(&mut self) -> &mut Path<<T as Resource>::Path>

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + P: ResourcePath,

    §

    type Path = P

    Type of resource’s path returned in resource_path.
    §

    fn resource_path(&mut self) -> &mut Path<<T as Resource>::Path>

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/actix/web/struct.JsonConfig.html b/paperclip/actix/web/struct.JsonConfig.html index 326a6b63f..5efbe0888 100644 --- a/paperclip/actix/web/struct.JsonConfig.html +++ b/paperclip/actix/web/struct.JsonConfig.html @@ -1,4 +1,4 @@ -JsonConfig in paperclip::actix::web - Rust

    Struct paperclip::actix::web::JsonConfig

    pub struct JsonConfig { /* private fields */ }
    Expand description

    Json extractor configuration.

    +JsonConfig in paperclip::actix::web - Rust

    Struct paperclip::actix::web::JsonConfig

    pub struct JsonConfig { /* private fields */ }
    Expand description

    Json extractor configuration.

    §Examples

    use actix_web::{error, post, web, App, FromRequest, HttpResponse};
     use serde::Deserialize;
    @@ -34,11 +34,11 @@ 

    §Examples

    pub fn content_type<F>(self, predicate: F) -> JsonConfig
    where F: Fn(Mime) -> bool + Send + Sync + 'static,

    Set predicate for allowed content types.

    pub fn content_type_required(self, content_type_required: bool) -> JsonConfig

    Sets whether or not the request must have a Content-Type header to be parsed.

    -

    Trait Implementations§

    §

    impl Clone for JsonConfig

    §

    fn clone(&self) -> JsonConfig

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Default for JsonConfig

    §

    fn default() -> JsonConfig

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    §

    impl Clone for JsonConfig

    §

    fn clone(&self) -> JsonConfig

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Default for JsonConfig

    §

    fn default() -> JsonConfig

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -49,11 +49,11 @@

    §Examples

    if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/actix/web/struct.Path.html b/paperclip/actix/web/struct.Path.html index 52e29bf5a..19e4f2b9f 100644 --- a/paperclip/actix/web/struct.Path.html +++ b/paperclip/actix/web/struct.Path.html @@ -1,4 +1,4 @@ -Path in paperclip::actix::web - Rust

    Struct paperclip::actix::web::Path

    pub struct Path<T>(/* private fields */);
    Expand description

    Extract typed data from request path segments.

    +Path in paperclip::actix::web - Rust

    Struct paperclip::actix::web::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 +.

    @@ -13,7 +13,7 @@

    §Examples

    let (name, count) = path.into_inner(); format!("Welcome {}! {}", name, count) }
    -

    Path segments also can be deserialized into any type that implements serde::Deserialize. +

    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};
    @@ -30,35 +30,35 @@ 

    §Examples

    format!("Welcome {}!", info.name) }

    Implementations§

    §

    impl<T> Path<T>

    pub fn into_inner(self) -> T

    Unwrap into inner T value.

    -

    Trait Implementations§

    source§

    impl<A> Apiv2Schema for Path<(A,)>
    where - A: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    impl<A, B> Apiv2Schema for Path<(A, B)>
    where +

    Trait Implementations§

    source§

    impl<A> Apiv2Schema for Path<(A,)>
    where + A: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    impl<A, B> Apiv2Schema for Path<(A, B)>
    where A: Apiv2Schema, - B: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    impl<A, B, C> Apiv2Schema for Path<(A, B, C)>
    where + B: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    impl<A, B, C> Apiv2Schema for Path<(A, B, C)>
    where A: Apiv2Schema, B: Apiv2Schema, - C: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    impl<A, B, C, D> Apiv2Schema for Path<(A, B, C, D)>
    where + C: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    impl<A, B, C, D> Apiv2Schema for Path<(A, B, C, D)>

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    impl<A, B, C, D, E> Apiv2Schema for Path<(A, B, C, D, E)>
    where + D: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    impl<A, B, C, D, E> Apiv2Schema for Path<(A, B, C, D, E)>

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    impl<A, B, C, D, E, F> Apiv2Schema for Path<(A, B, C, D, E, F)>
    where + E: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    impl<A, B, C, D, E, F> Apiv2Schema for Path<(A, B, C, D, E, F)>

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    impl<A, B, C, D, E, F, G> Apiv2Schema for Path<(A, B, C, D, E, F, G)>
    where + F: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    impl<A, B, C, D, E, F, G> Apiv2Schema for Path<(A, B, C, D, E, F, G)>

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    impl<A, B, C, D, E, F, G, H> Apiv2Schema for Path<(A, B, C, D, E, F, G, H)>
    where + G: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    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, @@ -66,7 +66,7 @@

    §Examples

    E: Apiv2Schema, F: Apiv2Schema, G: Apiv2Schema, - H: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    impl<A, B, C, D, E, F, G, H, I> Apiv2Schema for Path<(A, B, C, D, E, F, G, H, I)>
    where + H: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    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, @@ -75,7 +75,7 @@

    §Examples

    F: Apiv2Schema, G: Apiv2Schema, H: Apiv2Schema, - I: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    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 + I: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    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, @@ -85,7 +85,7 @@

    §Examples

    G: Apiv2Schema, H: Apiv2Schema, I: Apiv2Schema, - J: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    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 + J: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    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, @@ -96,7 +96,7 @@

    §Examples

    H: Apiv2Schema, I: Apiv2Schema, J: Apiv2Schema, - K: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    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 + K: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    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, @@ -108,7 +108,7 @@

    §Examples

    I: Apiv2Schema, J: Apiv2Schema, K: Apiv2Schema, - L: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    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 + L: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    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, @@ -121,88 +121,88 @@

    §Examples

    J: Apiv2Schema, K: Apiv2Schema, L: Apiv2Schema, - M: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    impl<T> Apiv2Schema for Path<T>
    where - T: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl<T> AsRef<T> for Path<T>

    §

    fn as_ref(&self) -> &T

    Converts this type into a shared reference of the (usually inferred) input type.
    §

    impl<T> Debug for Path<T>
    where + M: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    impl<T> Apiv2Schema for Path<T>
    where + T: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl<T> AsRef<T> for Path<T>

    §

    fn as_ref(&self) -> &T

    Converts this type into a shared reference of the (usually inferred) input type.
    §

    impl<T> Debug for Path<T>
    where T: Debug,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<T> Deref for Path<T>

    §

    type Target = T

    The resulting type after dereferencing.
    §

    fn deref(&self) -> &<Path<T> as Deref>::Target

    Dereferences the value.
    §

    impl<T> DerefMut for Path<T>

    §

    fn deref_mut(&mut self) -> &mut <Path<T> as Deref>::Target

    Mutably dereferences the value.
    §

    impl<T> Display for Path<T>
    where T: Display,

    §

    fn fmt( &self, _derive_more_display_formatter: &mut Formatter<'_>, ) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<T> From<T> for Path<T>

    §

    fn from(original: T) -> Path<T>

    Converts to this type from the input type.
    §

    impl<T> FromRequest for Path<T>
    where - T: DeserializeOwned,

    See here for example of usage as an extractor.

    + T: DeserializeOwned,

    See here for example of usage as an extractor.

    §

    type Error = Error

    The associated error which can be returned.
    §

    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

    Create a Self from request parts asynchronously.
    §

    fn extract(req: &HttpRequest) -> Self::Future

    Create a Self from request head asynchronously. Read more
    source§

    impl<A> OperationModifier for Path<(A,)>
    where - A: Apiv2Schema,

    source§

    fn update_parameter( +) -> <Path<T> as FromRequest>::Future

    Create a Self from request parts asynchronously.
    §

    fn extract(req: &HttpRequest) -> Self::Future

    Create a Self from request head asynchronously. Read more
    source§

    impl<A> OperationModifier for Path<(A,)>
    where + A: Apiv2Schema,

    source§

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    impl<A, B> OperationModifier for Path<(A, B)>
    where +)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    impl<A, B> OperationModifier for Path<(A, B)>
    where A: Apiv2Schema, - B: Apiv2Schema,

    source§

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    impl<A, B, C> OperationModifier for Path<(A, B, C)>
    where +)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    impl<A, B, C> OperationModifier for Path<(A, B, C)>
    where A: Apiv2Schema, B: Apiv2Schema, - C: Apiv2Schema,

    source§

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    impl<A, B, C, D> OperationModifier for Path<(A, B, C, D)>
    where +)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    impl<A, B, C, D> OperationModifier for Path<(A, B, C, D)>

    source§

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    impl<A, B, C, D, E> OperationModifier for Path<(A, B, C, D, E)>
    where +)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    impl<A, B, C, D, E> OperationModifier for Path<(A, B, C, D, E)>

    source§

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    impl<A, B, C, D, E, F> OperationModifier for Path<(A, B, C, D, E, F)>
    where +)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    impl<A, B, C, D, E, F> OperationModifier for Path<(A, B, C, D, E, F)>

    source§

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    impl<A, B, C, D, E, F, G> OperationModifier for Path<(A, B, C, D, E, F, G)>
    where +)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    impl<A, B, C, D, E, F, G> OperationModifier for Path<(A, B, C, D, E, F, G)>

    source§

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    impl<A, B, C, D, E, F, G, H> OperationModifier for Path<(A, B, C, D, E, F, G, H)>
    where +)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    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, @@ -210,13 +210,13 @@

    §Examples

    E: Apiv2Schema, F: Apiv2Schema, G: Apiv2Schema, - H: Apiv2Schema,

    source§

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    impl<A, B, C, D, E, F, G, H, I> OperationModifier for Path<(A, B, C, D, E, F, G, H, I)>
    where +)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    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, @@ -225,13 +225,13 @@

    §Examples

    F: Apiv2Schema, G: Apiv2Schema, H: Apiv2Schema, - I: Apiv2Schema,

    source§

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    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 +)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    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, @@ -241,13 +241,13 @@

    §Examples

    G: Apiv2Schema, H: Apiv2Schema, I: Apiv2Schema, - J: Apiv2Schema,

    source§

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    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 +)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    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, @@ -258,13 +258,13 @@

    §Examples

    H: Apiv2Schema, I: Apiv2Schema, J: Apiv2Schema, - K: Apiv2Schema,

    source§

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    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 +)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    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, @@ -276,13 +276,13 @@

    §Examples

    I: Apiv2Schema, J: Apiv2Schema, K: Apiv2Schema, - L: Apiv2Schema,

    source§

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    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 +)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    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, @@ -295,40 +295,40 @@

    §Examples

    J: Apiv2Schema, K: Apiv2Schema, L: Apiv2Schema, - M: Apiv2Schema,

    source§

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    impl<T> OperationModifier for Path<T>
    where - T: Apiv2Schema,

    source§

    fn update_parameter( +)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    impl<T> OperationModifier for Path<T>
    where + T: Apiv2Schema,

    source§

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_definitions(_map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_definitions(_map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the responses map in the given operation (if needed).
    source§

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    source§

    fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the security map in the given operation (if needed).
    source§

    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,

    §

    fn cmp(&self, other: &Path<T>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where +)

    Update the security map in the given operation (if needed).
    source§

    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,

    §

    fn cmp(&self, other: &Path<T>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    §

    impl<T> PartialEq for Path<T>
    where - T: PartialEq,

    §

    fn eq(&self, other: &Path<T>) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl<T> PartialOrd for Path<T>
    where - T: PartialOrd,

    §

    fn partial_cmp(&self, other: &Path<T>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl<T> Eq for Path<T>
    where + T: PartialEq,

    §

    fn eq(&self, other: &Path<T>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl<T> PartialOrd for Path<T>
    where + T: PartialOrd,

    §

    fn partial_cmp(&self, other: &Path<T>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    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> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where + T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn compare(&self, key: &K) -> Ordering

    Compare self to key and return their ordering.
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, @@ -336,7 +336,7 @@

    §Examples

    Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn equivalent(&self, key: &K) -> bool

    Compare self to key and return true if they are equal.
    source§

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

    source§

    fn equivalent(&self, key: &K) -> bool

    Compare self to key and return true if they are equal.
    source§

    impl<T> From<!> for T

    source§

    fn from(t: !) -> T

    Converts to this type from the input type.
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + K: Borrow<Q> + ?Sized,
    source§

    fn equivalent(&self, key: &K) -> bool

    Compare self to key and return true if they are equal.
    source§

    impl<T> From<!> for T

    source§

    fn from(t: !) -> T

    Converts to this type from the input type.
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -347,13 +347,13 @@

    §Examples

    if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
    §

    impl<T, P> Resource for T
    where T: DerefMut<Target = Path<P>>, - P: ResourcePath,

    §

    type Path = P

    Type of resource’s path returned in resource_path.
    §

    fn resource_path(&mut self) -> &mut Path<<T as Resource>::Path>

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + P: ResourcePath,

    §

    type Path = P

    Type of resource’s path returned in resource_path.
    §

    fn resource_path(&mut self) -> &mut Path<<T as Resource>::Path>

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/actix/web/struct.PathConfig.html b/paperclip/actix/web/struct.PathConfig.html index f9ef2b6ea..69eb6b4bc 100644 --- a/paperclip/actix/web/struct.PathConfig.html +++ b/paperclip/actix/web/struct.PathConfig.html @@ -1,4 +1,4 @@ -PathConfig in paperclip::actix::web - Rust

    Struct paperclip::actix::web::PathConfig

    pub struct PathConfig { /* private fields */ }
    Expand description

    Path extractor configuration

    +PathConfig in paperclip::actix::web - Rust

    Struct paperclip::actix::web::PathConfig

    pub struct PathConfig { /* private fields */ }
    Expand description

    Path extractor configuration

    use actix_web::web::PathConfig;
     use actix_web::{error, web, App, FromRequest, HttpResponse};
    @@ -31,11 +31,11 @@
     );

    Implementations§

    §

    impl PathConfig

    pub fn error_handler<F>(self, f: F) -> PathConfig
    where F: Fn(PathError, &HttpRequest) -> Error + Send + Sync + 'static,

    Set custom error handler.

    -

    Trait Implementations§

    §

    impl Clone for PathConfig

    §

    fn clone(&self) -> PathConfig

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Default for PathConfig

    §

    fn default() -> PathConfig

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    §

    impl Clone for PathConfig

    §

    fn clone(&self) -> PathConfig

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Default for PathConfig

    §

    fn default() -> PathConfig

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -46,11 +46,11 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/actix/web/struct.Payload.html b/paperclip/actix/web/struct.Payload.html index ea9c13a63..07d46bd92 100644 --- a/paperclip/actix/web/struct.Payload.html +++ b/paperclip/actix/web/struct.Payload.html @@ -1,4 +1,4 @@ -Payload in paperclip::actix::web - Rust

    Struct paperclip::actix::web::Payload

    pub struct Payload(/* private fields */);
    Expand description

    Extract a request’s raw payload stream.

    +Payload in paperclip::actix::web - Rust

    Struct paperclip::actix::web::Payload

    pub struct Payload(/* private fields */);
    Expand description

    Extract a request’s raw payload stream.

    See PayloadConfig for important notes when using this advanced extractor.

    §Examples

    use std::future::Future;
    @@ -57,7 +57,7 @@ 
    §Examples
    async fn payload_handler(pl: Payload) -> actix_web::Result<impl Responder> { pl.to_bytes().await }
    -

    Trait Implementations§

    source§

    impl Apiv2Schema for Payload

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl FromRequest for Payload

    See here for example of usage as an extractor.

    +

    Trait Implementations§

    source§

    impl Apiv2Schema for Payload

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl FromRequest for Payload

    See here for example of usage as an extractor.

    §

    type Error = Error

    The associated error which can be returned.
    §

    type Future = Ready<Result<Payload, <Payload as FromRequest>::Error>>

    Future that resolves to a Self. Read more
    §

    fn from_request( _: &HttpRequest, payload: &mut Payload, @@ -72,10 +72,10 @@

    §Examples
    cx: &mut Context<'_>, ) -> Poll<Option<<Payload as Stream>::Item>>
    Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning -None if the stream is exhausted. Read more
    §

    fn size_hint(&self) -> (usize, Option<usize>)

    Returns the bounds on the remaining length of the stream. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Payload

    §

    impl !RefUnwindSafe for Payload

    §

    impl !Send for Payload

    §

    impl !Sync for Payload

    §

    impl Unpin for Payload

    §

    impl !UnwindSafe for Payload

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +None if the stream is exhausted. Read more
    §

    fn size_hint(&self) -> (usize, Option<usize>)

    Returns the bounds on the remaining length of the stream. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Payload

    §

    impl !RefUnwindSafe for Payload

    §

    impl !Send for Payload

    §

    impl !Sync for Payload

    §

    impl Unpin for Payload

    §

    impl !UnwindSafe for Payload

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -86,7 +86,7 @@
    §Examples
    if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    §

    impl<T> StreamExt for T
    where @@ -184,7 +184,7 @@
    §Examples
    Self: Sized,

    Creates a new stream which skips n items of the underlying stream. Read more
    §

    fn fuse(self) -> Fuse<Self>
    where Self: Sized,

    Fuse a stream such that poll_next will never again be called once it has finished. This method can be used to turn -any Stream into a FusedStream. Read more
    §

    fn by_ref(&mut self) -> &mut Self

    Borrows a stream, rather than consuming it. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>
    where +any Stream into a FusedStream. Read more

    §

    fn by_ref(&mut self) -> &mut Self

    Borrows a stream, rather than consuming it. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>
    where Self: Sized + UnwindSafe,

    Catches unwinding panics while polling the stream. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + Send + 'a>>
    where Self: Sized + Send + 'a,

    Wrap the stream in a Box, pinning it. Read more
    §

    fn boxed_local<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + 'a>>
    where Self: Sized + 'a,

    Wrap the stream in a Box, pinning it. Read more
    §

    fn buffered(self, n: usize) -> Buffered<Self>
    where diff --git a/paperclip/actix/web/struct.PayloadConfig.html b/paperclip/actix/web/struct.PayloadConfig.html index adc36637b..c6f7cd9d7 100644 --- a/paperclip/actix/web/struct.PayloadConfig.html +++ b/paperclip/actix/web/struct.PayloadConfig.html @@ -1,4 +1,4 @@ -PayloadConfig in paperclip::actix::web - Rust

    Struct paperclip::actix::web::PayloadConfig

    pub struct PayloadConfig { /* private fields */ }
    Expand description

    Configuration for request payloads.

    +PayloadConfig in paperclip::actix::web - Rust

    Struct paperclip::actix::web::PayloadConfig

    pub struct PayloadConfig { /* private fields */ }
    Expand description

    Configuration for request payloads.

    Applies to the built-in Bytes and String extractors. Note that the Payload extractor does not automatically check conformance with this configuration to allow more flexibility when @@ -9,11 +9,11 @@

    Implementations§

    §

    impl PayloadConfig

    pub fn new(limit: usize) -> PayloadConfig

    Create new instance with a size limit (in bytes) and no mime type condition.

    pub fn limit(self, limit: usize) -> PayloadConfig

    Set maximum accepted payload size in bytes. The default limit is 256KiB.

    pub fn mimetype(self, mt: Mime) -> PayloadConfig

    Set required mime type of the request. By default mime type is not enforced.

    -

    Trait Implementations§

    §

    impl Clone for PayloadConfig

    §

    fn clone(&self) -> PayloadConfig

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Default for PayloadConfig

    §

    fn default() -> PayloadConfig

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    §

    impl Clone for PayloadConfig

    §

    fn clone(&self) -> PayloadConfig

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Default for PayloadConfig

    §

    fn default() -> PayloadConfig

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -24,11 +24,11 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/actix/web/struct.Query.html b/paperclip/actix/web/struct.Query.html index 32bcb35a7..3bb4968a8 100644 --- a/paperclip/actix/web/struct.Query.html +++ b/paperclip/actix/web/struct.Query.html @@ -1,6 +1,6 @@ -Query in paperclip::actix::web - Rust

    Struct paperclip::actix::web::Query

    pub struct Query<T>(pub T);
    Expand description

    Extract typed information from the request’s query.

    +Query in paperclip::actix::web - Rust

    Struct paperclip::actix::web::Query

    pub struct Query<T>(pub T);
    Expand description

    Extract typed information from the request’s query.

    To extract typed data from the URL query string, the inner type T must implement the -DeserializeOwned trait.

    +DeserializeOwned trait.

    Use QueryConfig to configure extraction process.

    §Panics

    A query string consists of unordered key=value pairs, therefore it cannot be decoded into any @@ -44,50 +44,50 @@

    §Examples

    }

    Tuple Fields§

    §0: T

    Implementations§

    §

    impl<T> Query<T>

    pub fn into_inner(self) -> T

    Unwrap into inner T value.

    §

    impl<T> Query<T>
    where - T: DeserializeOwned,

    pub fn from_query(query_str: &str) -> Result<Query<T>, QueryPayloadError>

    Deserialize a T from the URL encoded query parameter string.

    + T: DeserializeOwned,

    pub fn from_query(query_str: &str) -> Result<Query<T>, QueryPayloadError>

    Deserialize a T from the URL encoded query parameter string.

    let numbers = Query::<HashMap<String, u32>>::from_query("one=1&two=2").unwrap();
     assert_eq!(numbers.get("one"), Some(&1));
     assert_eq!(numbers.get("two"), Some(&2));
     assert!(numbers.get("three").is_none());
    -

    Trait Implementations§

    source§

    impl<T> Apiv2Schema for Query<T>
    where - T: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl<T> Clone for Query<T>
    where - T: Clone,

    §

    fn clone(&self) -> Query<T>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl<T> Debug for Query<T>
    where +

    Trait Implementations§

    source§

    impl<T> Apiv2Schema for Query<T>
    where + T: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl<T> Clone for Query<T>
    where + T: Clone,

    §

    fn clone(&self) -> Query<T>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl<T> Debug for Query<T>
    where T: Debug,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<T> Deref for Query<T>

    §

    type Target = T

    The resulting type after dereferencing.
    §

    fn deref(&self) -> &T

    Dereferences the value.
    §

    impl<T> DerefMut for Query<T>

    §

    fn deref_mut(&mut self) -> &mut T

    Mutably dereferences the value.
    §

    impl<T> Display for Query<T>
    where T: Display,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<T> FromRequest for Query<T>
    where - T: DeserializeOwned,

    See here for example of usage as an extractor.

    + T: DeserializeOwned,

    See here for example of usage as an extractor.

    §

    type Error = Error

    The associated error which can be returned.
    §

    type Future = Ready<Result<Query<T>, Error>>

    Future that resolves to a Self. Read more
    §

    fn from_request( req: &HttpRequest, _: &mut Payload, -) -> <Query<T> as FromRequest>::Future

    Create a Self from request parts asynchronously.
    §

    fn extract(req: &HttpRequest) -> Self::Future

    Create a Self from request head asynchronously. Read more
    source§

    impl<T> OperationModifier for Query<T>
    where - T: Apiv2Schema,

    source§

    fn update_parameter( +) -> <Query<T> as FromRequest>::Future

    Create a Self from request parts asynchronously.
    §

    fn extract(req: &HttpRequest) -> Self::Future

    Create a Self from request head asynchronously. Read more
    source§

    impl<T> OperationModifier for Query<T>
    where + T: Apiv2Schema,

    source§

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_definitions(_map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_definitions(_map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )

    Update the responses map in the given operation (if needed).
    source§

    fn update_security( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, )

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    §

    impl<T> Ord for Query<T>
    where - T: Ord,

    §

    fn cmp(&self, other: &Query<T>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + T: Ord,

    §

    fn cmp(&self, other: &Query<T>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    §

    impl<T> PartialEq for Query<T>
    where - T: PartialEq,

    §

    fn eq(&self, other: &Query<T>) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl<T> PartialOrd for Query<T>
    where - T: PartialOrd,

    §

    fn partial_cmp(&self, other: &Query<T>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl<T> Eq for Query<T>
    where + T: PartialEq,

    §

    fn eq(&self, other: &Query<T>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl<T> PartialOrd for Query<T>
    where + T: PartialOrd,

    §

    fn partial_cmp(&self, other: &Query<T>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl<T> Eq for Query<T>
    where T: Eq,

    §

    impl<T> StructuralPartialEq for Query<T>

    Auto Trait Implementations§

    §

    impl<T> Freeze for Query<T>
    where T: Freeze,

    §

    impl<T> RefUnwindSafe for Query<T>
    where T: RefUnwindSafe,

    §

    impl<T> Send for Query<T>
    where T: Send,

    §

    impl<T> Sync for Query<T>
    where T: Sync,

    §

    impl<T> Unpin for Query<T>
    where T: Unpin,

    §

    impl<T> UnwindSafe for Query<T>
    where - T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where + T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn compare(&self, key: &K) -> Ordering

    Compare self to key and return their ordering.
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, @@ -106,14 +106,14 @@

    §Examples

    if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
    §

    impl<T, P> Resource for T
    where T: DerefMut<Target = Path<P>>, - P: ResourcePath,

    §

    type Path = P

    Type of resource’s path returned in resource_path.
    §

    fn resource_path(&mut self) -> &mut Path<<T as Resource>::Path>

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T> ToString for T
    where - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + P: ResourcePath,

    §

    type Path = P

    Type of resource’s path returned in resource_path.
    §

    fn resource_path(&mut self) -> &mut Path<<T as Resource>::Path>

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/actix/web/struct.QueryConfig.html b/paperclip/actix/web/struct.QueryConfig.html index f27fe78ca..1d13eb5d0 100644 --- a/paperclip/actix/web/struct.QueryConfig.html +++ b/paperclip/actix/web/struct.QueryConfig.html @@ -1,4 +1,4 @@ -QueryConfig in paperclip::actix::web - Rust

    Struct paperclip::actix::web::QueryConfig

    pub struct QueryConfig { /* private fields */ }
    Expand description

    Query extractor configuration.

    +QueryConfig in paperclip::actix::web - Rust

    Struct paperclip::actix::web::QueryConfig

    pub struct QueryConfig { /* private fields */ }
    Expand description

    Query extractor configuration.

    §Examples

    use actix_web::{error, get, web, App, FromRequest, HttpResponse};
     use serde::Deserialize;
    @@ -26,11 +26,11 @@ 

    §Examples

    .service(index);

    Implementations§

    §

    impl QueryConfig

    pub fn error_handler<F>(self, f: F) -> QueryConfig
    where F: Fn(QueryPayloadError, &HttpRequest) -> Error + Send + Sync + 'static,

    Set custom error handler

    -

    Trait Implementations§

    §

    impl Clone for QueryConfig

    §

    fn clone(&self) -> QueryConfig

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Default for QueryConfig

    §

    fn default() -> QueryConfig

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    §

    impl Clone for QueryConfig

    §

    fn clone(&self) -> QueryConfig

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Default for QueryConfig

    §

    fn default() -> QueryConfig

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -41,11 +41,11 @@

    §Examples

    if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/actix/web/struct.ReqData.html b/paperclip/actix/web/struct.ReqData.html index d874381cd..739734c37 100644 --- a/paperclip/actix/web/struct.ReqData.html +++ b/paperclip/actix/web/struct.ReqData.html @@ -1,4 +1,4 @@ -ReqData in paperclip::actix::web - Rust

    Struct paperclip::actix::web::ReqData

    pub struct ReqData<T>(/* private fields */)
    +ReqData in paperclip::actix::web - Rust

    Struct paperclip::actix::web::ReqData

    pub struct ReqData<T>(/* private fields */)
     where
         T: Clone + 'static;
    Expand description

    Request-local data extractor.

    Request-local data is arbitrary data attached to an individual request, usually @@ -32,8 +32,8 @@

    §Examples

    Implementations§

    §

    impl<T> ReqData<T>
    where T: Clone + 'static,

    pub fn into_inner(self) -> T

    Consumes the ReqData, returning its wrapped data.

    Trait Implementations§

    source§

    impl<T> Apiv2Schema for ReqData<T>
    where - T: Clone,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl<T> Clone for ReqData<T>
    where - T: Clone + 'static,

    §

    fn clone(&self) -> ReqData<T>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl<T> Debug for ReqData<T>
    where + T: Clone,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl<T> Clone for ReqData<T>
    where + T: Clone + 'static,

    §

    fn clone(&self) -> ReqData<T>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl<T> Debug for ReqData<T>
    where T: Debug + Clone + 'static,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<T> Deref for ReqData<T>
    where T: Clone + 'static,

    §

    type Target = T

    The resulting type after dereferencing.
    §

    fn deref(&self) -> &T

    Dereferences the value.
    §

    impl<T> FromRequest for ReqData<T>
    where T: Clone + 'static,

    §

    type Error = Error

    The associated error which can be returned.
    §

    type Future = Ready<Result<ReqData<T>, Error>>

    Future that resolves to a Self. Read more
    §

    fn from_request( @@ -52,11 +52,11 @@

    §Examples

    T: Send,

    §

    impl<T> Sync for ReqData<T>
    where T: Sync,

    §

    impl<T> Unpin for ReqData<T>
    where T: Unpin,

    §

    impl<T> UnwindSafe for ReqData<T>
    where - T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -67,11 +67,11 @@

    §Examples

    if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/actix/web/struct.Resource.html b/paperclip/actix/web/struct.Resource.html index 47465b508..cee7c7e4e 100644 --- a/paperclip/actix/web/struct.Resource.html +++ b/paperclip/actix/web/struct.Resource.html @@ -1,4 +1,4 @@ -Resource in paperclip::actix::web - Rust

    Struct paperclip::actix::web::Resource

    source ·
    pub struct Resource<R = Resource> { /* private fields */ }
    Expand description

    Wrapper for actix_web::Resource

    +Resource in paperclip::actix::web - Rust

    Struct paperclip::actix::web::Resource

    source ·
    pub struct Resource<R = Resource> { /* private fields */ }
    Expand description

    Wrapper for actix_web::Resource

    Implementations§

    source§

    impl Resource

    source

    pub fn new(path: &str) -> Resource

    source§

    impl<T> Resource<Resource<T>>
    where T: ServiceFactory<ServiceRequest, Config = (), Error = Error, InitError = ()>,

    source

    pub fn name(self, name: &str) -> Resource<Resource<T>>

    Proxy for actix_web::Resource::name.

    @@ -48,10 +48,10 @@ R: Send,

    §

    impl<R> Sync for Resource<R>
    where R: Sync,

    §

    impl<R> Unpin for Resource<R>
    where R: Unpin,

    §

    impl<R> UnwindSafe for Resource<R>
    where - R: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + R: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -62,7 +62,7 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for T
    where diff --git a/paperclip/actix/web/struct.Route.html b/paperclip/actix/web/struct.Route.html index 1ac39c335..62ad6df3e 100644 --- a/paperclip/actix/web/struct.Route.html +++ b/paperclip/actix/web/struct.Route.html @@ -1,4 +1,4 @@ -Route in paperclip::actix::web - Rust

    Struct paperclip::actix::web::Route

    source ·
    pub struct Route { /* private fields */ }
    Expand description

    Wrapper for actix_web::Route

    +Route in paperclip::actix::web - Rust

    Struct paperclip::actix::web::Route

    source ·
    pub struct Route { /* private fields */ }
    Expand description

    Wrapper for actix_web::Route

    Implementations§

    source§

    impl Route

    source

    pub fn new() -> Route

    source

    pub fn method(self, method: Method) -> Route

    source

    pub fn guard<G>(self, guard: G) -> Route
    where @@ -12,10 +12,10 @@

    Trait Implementations§

    source§

    impl ServiceFactory<ServiceRequest> for Route

    §

    type Config = ()

    Service factory configuration.
    §

    type Error = Error

    Errors produced by the created services.
    §

    type InitError = ()

    Errors potentially raised while building a service.
    §

    type Service = <Route as ServiceFactory<ServiceRequest>>::Service

    The kind of Service created by this factory.
    §

    type Future = <Route as ServiceFactory<ServiceRequest>>::Future

    The future of the Service instance.g
    §

    type Response = <<Route as ServiceFactory<ServiceRequest>>::Service as Service<ServiceRequest>>::Response

    Responses given by the created services.
    source§

    fn new_service( &self, cfg: <Route as ServiceFactory<ServiceRequest>>::Config, -) -> <Route as ServiceFactory<ServiceRequest>>::Future

    Create and return a new service asynchronously.

    Auto Trait Implementations§

    §

    impl Freeze for Route

    §

    impl !RefUnwindSafe for Route

    §

    impl !Send for Route

    §

    impl !Sync for Route

    §

    impl Unpin for Route

    §

    impl !UnwindSafe for Route

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +) -> <Route as ServiceFactory<ServiceRequest>>::Future

    Create and return a new service asynchronously.

    Auto Trait Implementations§

    §

    impl Freeze for Route

    §

    impl !RefUnwindSafe for Route

    §

    impl !Send for Route

    §

    impl !Sync for Route

    §

    impl Unpin for Route

    §

    impl !UnwindSafe for Route

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -26,7 +26,7 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
    §

    impl<SF, Req> IntoServiceFactory<SF, Req> for SF
    where diff --git a/paperclip/actix/web/struct.Scope.html b/paperclip/actix/web/struct.Scope.html index b95382696..d512e9870 100644 --- a/paperclip/actix/web/struct.Scope.html +++ b/paperclip/actix/web/struct.Scope.html @@ -1,4 +1,4 @@ -Scope in paperclip::actix::web - Rust

    Struct paperclip::actix::web::Scope

    source ·
    pub struct Scope<S = Scope> { /* private fields */ }
    Expand description

    Wrapper for actix_web::Scope

    +Scope in paperclip::actix::web - Rust

    Struct paperclip::actix::web::Scope

    source ·
    pub struct Scope<S = Scope> { /* private fields */ }
    Expand description

    Wrapper for actix_web::Scope

    Implementations§

    source§

    impl Scope

    source

    pub fn new(path: &str) -> Scope

    source§

    impl<T> Scope<Scope<T>>
    where T: ServiceFactory<ServiceRequest, Config = (), Error = Error, InitError = ()>,

    source

    pub fn guard<G>(self, guard: G) -> Scope<Scope<T>>
    where @@ -44,10 +44,10 @@ S: Send,

    §

    impl<S> Sync for Scope<S>
    where S: Sync,

    §

    impl<S> Unpin for Scope<S>
    where S: Unpin,

    §

    impl<S> UnwindSafe for Scope<S>
    where - S: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + S: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -58,7 +58,7 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for T
    where diff --git a/paperclip/actix/web/struct.ServiceConfig.html b/paperclip/actix/web/struct.ServiceConfig.html index e25b290c6..03037ad73 100644 --- a/paperclip/actix/web/struct.ServiceConfig.html +++ b/paperclip/actix/web/struct.ServiceConfig.html @@ -1,4 +1,4 @@ -ServiceConfig in paperclip::actix::web - Rust

    Struct paperclip::actix::web::ServiceConfig

    source ·
    pub struct ServiceConfig<'a> { /* private fields */ }
    Expand description

    Wrapper for actix_web::web::ServiceConfig.

    +ServiceConfig in paperclip::actix::web - Rust

    Struct paperclip::actix::web::ServiceConfig

    source ·
    pub struct ServiceConfig<'a> { /* private fields */ }
    Expand description

    Implementations§

    source§

    impl<'a> ServiceConfig<'a>

    source

    pub fn route(&mut self, path: &str, route: Route) -> &mut ServiceConfig<'a>

    source

    pub fn service<F>(&mut self, factory: F) -> &mut ServiceConfig<'a>
    where F: Mountable + HttpServiceFactory + 'static,

    Map of HTTP methods and the associated API operations.
    source§

    fn security_definitions(&mut self) -> BTreeMap<String, SecurityScheme>

    The security definitions recorded by this object.
    source§

    fn definitions(&mut self) -> BTreeMap<String, DefaultSchemaRaw>

    The definitions recorded by this object.
    source§

    fn update_operations( &mut self, map: &mut BTreeMap<String, PathItem<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>>, -)

    Updates the given map of operations with operations tracked by this object. Read more

    Auto Trait Implementations§

    §

    impl<'a> Freeze for ServiceConfig<'a>

    §

    impl<'a> !RefUnwindSafe for ServiceConfig<'a>

    §

    impl<'a> !Send for ServiceConfig<'a>

    §

    impl<'a> !Sync for ServiceConfig<'a>

    §

    impl<'a> Unpin for ServiceConfig<'a>

    §

    impl<'a> !UnwindSafe for ServiceConfig<'a>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +)
    Updates the given map of operations with operations tracked by this object. Read more

    Auto Trait Implementations§

    §

    impl<'a> Freeze for ServiceConfig<'a>

    §

    impl<'a> !RefUnwindSafe for ServiceConfig<'a>

    §

    impl<'a> !Send for ServiceConfig<'a>

    §

    impl<'a> !Sync for ServiceConfig<'a>

    §

    impl<'a> Unpin for ServiceConfig<'a>

    §

    impl<'a> !UnwindSafe for ServiceConfig<'a>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -32,7 +32,7 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for T
    where diff --git a/paperclip/all.html b/paperclip/all.html index e63513da8..58ad28693 100644 --- a/paperclip/all.html +++ b/paperclip/all.html @@ -1 +1 @@ -List of all items in this crate

    List of all items

    Structs

    Enums

    Traits

    Attribute Macros

    Derive Macros

    Functions

    Type Aliases

    Statics

    \ No newline at end of file +List of all items in this crate

    List of all items

    Structs

    Enums

    Traits

    Attribute Macros

    Derive Macros

    Functions

    Type Aliases

    Statics

    \ No newline at end of file diff --git a/paperclip/attr.api_v2_schema.html b/paperclip/attr.api_v2_schema.html index c67413f78..c2dd701d7 100644 --- a/paperclip/attr.api_v2_schema.html +++ b/paperclip/attr.api_v2_schema.html @@ -1,4 +1,4 @@ -api_v2_schema in paperclip - Rust

    Attribute Macro paperclip::api_v2_schema

    source ·
    #[api_v2_schema]
    Expand description

    Converts your struct to support deserializing from an OpenAPI v2 +api_v2_schema in paperclip - Rust

    Attribute Macro paperclip::api_v2_schema

    source ·
    #[api_v2_schema]
    Expand description

    Converts your struct to support deserializing from an OpenAPI v2 Schema object (example). This adds the necessary fields (in addition to your own fields) and implements the Schema trait for parsing and codegen.

    diff --git a/paperclip/enum.PaperClipError.html b/paperclip/enum.PaperClipError.html index 2f2da8da8..74f08303a 100644 --- a/paperclip/enum.PaperClipError.html +++ b/paperclip/enum.PaperClipError.html @@ -1,4 +1,4 @@ -PaperClipError in paperclip - Rust

    Enum paperclip::PaperClipError

    source ·
    pub enum PaperClipError {
    +PaperClipError in paperclip - Rust

    Enum paperclip::PaperClipError

    source ·
    pub enum PaperClipError {
     
    Show 15 variants Validation(ValidationError), InvalidCodegenDirectory, UnsupportedOpenAPIVersion, @@ -11,7 +11,7 @@ MissingDefinitionName, InvalidDefinitionPath(PathBuf), Io(Error), - Json(Error), + Json(Error), Yaml(Error), Templating(Error),
    }
    Expand description

    Global error which encapsulates all related errors.

    @@ -26,13 +26,13 @@
    §

    MissingDefinitionName

    The name for the given definition is missing.

    §

    InvalidDefinitionPath(PathBuf)

    A valid path cannot be obtained for the given definition.

    §

    Io(Error)

    I/O errors.

    -
    §

    Json(Error)

    JSON coding errors.

    +
    §

    Json(Error)

    JSON coding errors.

    §

    Yaml(Error)

    YAML coding errors.

    §

    Templating(Error)

    Errors in templating.

    -

    Trait Implementations§

    source§

    impl Debug for PaperClipError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for PaperClipError

    source§

    fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Error for PaperClipError

    1.30.0 · source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more
    source§

    impl From<Error> for PaperClipError

    source§

    fn from(s: Error) -> Self

    Converts to this type from the input type.
    source§

    impl From<Error> for PaperClipError

    source§

    fn from(s: Error) -> Self

    Converts to this type from the input type.
    source§

    impl From<Error> for PaperClipError

    source§

    fn from(s: Error) -> Self

    Converts to this type from the input type.
    source§

    impl From<Error> for PaperClipError

    source§

    fn from(s: Error) -> Self

    Converts to this type from the input type.
    source§

    impl From<ValidationError> for PaperClipError

    source§

    fn from(s: ValidationError) -> Self

    Converts to this type from the input type.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Debug for PaperClipError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for PaperClipError

    source§

    fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Error for PaperClipError

    1.30.0 · source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    source§

    impl From<Error> for PaperClipError

    source§

    fn from(s: Error) -> Self

    Converts to this type from the input type.
    source§

    impl From<Error> for PaperClipError

    source§

    fn from(s: Error) -> Self

    Converts to this type from the input type.
    source§

    impl From<Error> for PaperClipError

    source§

    fn from(s: Error) -> Self

    Converts to this type from the input type.
    source§

    impl From<Error> for PaperClipError

    source§

    fn from(s: Error) -> Self

    Converts to this type from the input type.
    source§

    impl From<ValidationError> for PaperClipError

    source§

    fn from(s: ValidationError) -> Self

    Converts to this type from the input type.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -43,11 +43,11 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/index.html b/paperclip/index.html index 9da4f5a41..9637d9ddb 100644 --- a/paperclip/index.html +++ b/paperclip/index.html @@ -1,8 +1,8 @@ -paperclip - Rust

    Crate paperclip

    source ·
    Expand description

    Paperclip is a OpenAPI code generator for efficient type-safe +paperclip - Rust

    Crate paperclip

    source ·
    Expand description

    Paperclip is a OpenAPI code generator for efficient type-safe compile-time checked HTTP APIs in Rust.

    See the website for detailed documentation and examples.

    -

    Modules§

    Enums§

    Type Aliases§

    Attribute Macros§

    • Converts your struct to support deserializing from an OpenAPI v2 +

    Modules§

    Enums§

    Type Aliases§

    Attribute Macros§

    • Converts your struct to support deserializing from an OpenAPI v2 Schema object (example). This adds the necessary fields (in addition to your own fields) and implements the Schema trait for parsing and codegen.
    \ No newline at end of file diff --git a/paperclip/type.PaperClipResult.html b/paperclip/type.PaperClipResult.html index 2da2203d4..d033247e3 100644 --- a/paperclip/type.PaperClipResult.html +++ b/paperclip/type.PaperClipResult.html @@ -1,4 +1,4 @@ -PaperClipResult in paperclip - Rust

    Type Alias paperclip::PaperClipResult

    source ·
    pub type PaperClipResult<T> = Result<T, PaperClipError>;
    Expand description

    Generic result used throughout this library.

    +PaperClipResult in paperclip - Rust

    Type Alias paperclip::PaperClipResult

    source ·
    pub type PaperClipResult<T> = Result<T, PaperClipError>;
    Expand description

    Generic result used throughout this library.

    Aliased Type§

    enum PaperClipResult<T> {
         Ok(T),
         Err(PaperClipError),
    diff --git a/paperclip/util/fn.ready.html b/paperclip/util/fn.ready.html
    index 0a43cce8f..eb7fafa14 100644
    --- a/paperclip/util/fn.ready.html
    +++ b/paperclip/util/fn.ready.html
    @@ -1,2 +1,2 @@
    -ready in paperclip::util - Rust

    Function paperclip::util::ready

    source ·
    pub fn ready<T>(t: T) -> Ready<T> 
    Expand description

    Unstabilized ready function.

    +ready in paperclip::util - Rust

    Function paperclip::util::ready

    source ·
    pub fn ready<T>(t: T) -> Ready<T> 
    Expand description

    Unstabilized ready function.

    \ No newline at end of file diff --git a/paperclip/util/index.html b/paperclip/util/index.html index bbd10da02..01b969008 100644 --- a/paperclip/util/index.html +++ b/paperclip/util/index.html @@ -1 +1 @@ -paperclip::util - Rust

    Module paperclip::util

    source ·

    Structs§

    Functions§

    \ No newline at end of file +paperclip::util - Rust

    Module paperclip::util

    source ·

    Structs§

    Functions§

    \ No newline at end of file diff --git a/paperclip/util/struct.Ready.html b/paperclip/util/struct.Ready.html index f00cf275e..5c31b6a72 100644 --- a/paperclip/util/struct.Ready.html +++ b/paperclip/util/struct.Ready.html @@ -1,15 +1,15 @@ -Ready in paperclip::util - Rust

    Struct paperclip::util::Ready

    source ·
    pub struct Ready<T>(/* private fields */);
    Expand description

    Unstabilized Ready future.

    -

    Trait Implementations§

    source§

    impl<T> Future for Ready<T>

    §

    type Output = T

    The type of value produced on completion.
    source§

    fn poll(self: Pin<&mut Ready<T>>, _cx: &mut Context<'_>) -> Poll<T>

    Attempt to resolve the future to a final value, registering +Ready in paperclip::util - Rust

    Struct paperclip::util::Ready

    source ·
    pub struct Ready<T>(/* private fields */);
    Expand description

    Unstabilized Ready future.

    +

    Trait Implementations§

    source§

    impl<T> Future for Ready<T>

    §

    type Output = T

    The type of value produced on completion.
    source§

    fn poll(self: Pin<&mut Ready<T>>, _cx: &mut Context<'_>) -> Poll<T>

    Attempts to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more
    source§

    impl<T> Unpin for Ready<T>

    Auto Trait Implementations§

    §

    impl<T> Freeze for Ready<T>
    where T: Freeze,

    §

    impl<T> RefUnwindSafe for Ready<T>
    where T: RefUnwindSafe,

    §

    impl<T> Send for Ready<T>
    where T: Send,

    §

    impl<T> Sync for Ready<T>
    where T: Sync,

    §

    impl<T> UnwindSafe for Ready<T>
    where - T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<F> Apiv2Operation for F
    where - F: Future<Output = HttpResponseWrapper>,

    source§

    fn operation() -> Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>

    Returns the definition for this operation.
    source§

    fn security_definitions() -> BTreeMap<String, SecurityScheme>

    Returns a map of security definitions that will be merged globally.
    source§

    fn definitions() -> BTreeMap<String, DefaultSchemaRaw>

    Returns the definitions used by this operation.
    source§

    fn is_visible() -> bool

    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<F> Apiv2Operation for F
    where + F: Future<Output = HttpResponseWrapper>,

    source§

    fn operation() -> Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>

    Returns the definition for this operation.
    source§

    fn security_definitions() -> BTreeMap<String, SecurityScheme>

    Returns a map of security definitions that will be merged globally.
    source§

    fn definitions() -> BTreeMap<String, DefaultSchemaRaw>

    Returns the definitions used by this operation.
    source§

    fn is_visible() -> bool

    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> FutureExt for T
    where T: Future + ?Sized,

    §

    fn map<U, F>(self, f: F) -> Map<Self, F>
    where F: FnOnce(Self::Output) -> U, @@ -64,7 +64,7 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
    source§

    impl<F> IntoFuture for F
    where diff --git a/paperclip/v2/codegen/enum.EmitMode.html b/paperclip/v2/codegen/enum.EmitMode.html index 21b9cb625..7d2aac7f6 100644 --- a/paperclip/v2/codegen/enum.EmitMode.html +++ b/paperclip/v2/codegen/enum.EmitMode.html @@ -1,16 +1,15 @@ -EmitMode in paperclip::v2::codegen - Rust

    Enum paperclip::v2::codegen::EmitMode

    source ·
    pub enum EmitMode {
    +EmitMode in paperclip::v2::codegen - Rust

    Enum paperclip::v2::codegen::EmitMode

    source ·
    pub enum EmitMode {
         Module,
         Crate,
         App,
     }
    Expand description

    Mode of codegen (module, crate or CLI app).

    -

    Variants§

    §

    Module

    §

    Crate

    §

    App

    Trait Implementations§

    source§

    impl Clone for EmitMode

    source§

    fn clone(&self) -> EmitMode

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for EmitMode

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for EmitMode

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl PartialEq for EmitMode

    source§

    fn eq(&self, other: &EmitMode) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for EmitMode

    source§

    impl Eq for EmitMode

    source§

    impl StructuralPartialEq for EmitMode

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Equivalent<K> for Q
    where +

    Variants§

    §

    Module

    §

    Crate

    §

    App

    Trait Implementations§

    source§

    impl Clone for EmitMode

    source§

    fn clone(&self) -> EmitMode

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for EmitMode

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for EmitMode

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl PartialEq for EmitMode

    source§

    fn eq(&self, other: &EmitMode) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl Copy for EmitMode

    source§

    impl Eq for EmitMode

    source§

    impl StructuralPartialEq for EmitMode

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

    §

    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
    where Q: Eq + ?Sized, @@ -27,11 +26,11 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/v2/codegen/enum.EmittedUnit.html b/paperclip/v2/codegen/enum.EmittedUnit.html index 136fc6702..1d7192e2b 100644 --- a/paperclip/v2/codegen/enum.EmittedUnit.html +++ b/paperclip/v2/codegen/enum.EmittedUnit.html @@ -1,4 +1,4 @@ -EmittedUnit in paperclip::v2::codegen - Rust

    Enum paperclip::v2::codegen::EmittedUnit

    source ·
    pub enum EmittedUnit {
    +EmittedUnit in paperclip::v2::codegen - Rust

    Enum paperclip::v2::codegen::EmittedUnit

    source ·
    pub enum EmittedUnit {
         Known(String),
         Objects(Vec<ApiObject>),
         KnownButAnonymous(String, Vec<ApiObject>),
    @@ -10,10 +10,10 @@
     bunch of generated Rust objects. This happens in the
     presence of anonymously defined schema.

    §

    None

    Nothing to do.

    -

    Trait Implementations§

    source§

    impl Debug for EmittedUnit

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Debug for EmittedUnit

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -24,7 +24,7 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for T
    where diff --git a/paperclip/v2/codegen/index.html b/paperclip/v2/codegen/index.html index fbb3ba0b0..146e9c379 100644 --- a/paperclip/v2/codegen/index.html +++ b/paperclip/v2/codegen/index.html @@ -1,3 +1,3 @@ -paperclip::v2::codegen - Rust

    Module paperclip::v2::codegen

    source ·
    Expand description

    Code generation for OpenAPI v2.

    -

    Modules§

    • Simplified objects for codegen.

    Structs§

    Enums§

    • Mode of codegen (module, crate or CLI app).
    • Some “thing” emitted by the emitter.

    Traits§

    Implementations§

    source§

    impl ObjectContainer

    source

    pub fn is_enum(&self) -> bool

    Returns whether this object is an enum.

    source

    pub fn is_string_enum(&self) -> bool

    Returns whether this enum is to represent a string.

    -

    Trait Implementations§

    source§

    impl Clone for ObjectContainer

    source§

    fn clone(&self) -> ObjectContainer

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for ObjectContainer

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for ObjectContainer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Clone for ObjectContainer

    source§

    fn clone(&self) -> ObjectContainer

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for ObjectContainer

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for ObjectContainer

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -30,11 +30,11 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/v2/codegen/object/fn.to_pascal_case.html b/paperclip/v2/codegen/object/fn.to_pascal_case.html index f1855f4b3..05312d0c8 100644 --- a/paperclip/v2/codegen/object/fn.to_pascal_case.html +++ b/paperclip/v2/codegen/object/fn.to_pascal_case.html @@ -1 +1 @@ -to_pascal_case in paperclip::v2::codegen::object - Rust

    Function paperclip::v2::codegen::object::to_pascal_case

    source ·
    pub fn to_pascal_case(name: &str) -> String
    \ No newline at end of file +to_pascal_case in paperclip::v2::codegen::object - Rust

    Function paperclip::v2::codegen::object::to_pascal_case

    source ·
    pub fn to_pascal_case(name: &str) -> String
    \ No newline at end of file diff --git a/paperclip/v2/codegen/object/fn.to_snake_case.html b/paperclip/v2/codegen/object/fn.to_snake_case.html index 2aa3fcb99..13237211f 100644 --- a/paperclip/v2/codegen/object/fn.to_snake_case.html +++ b/paperclip/v2/codegen/object/fn.to_snake_case.html @@ -1 +1 @@ -to_snake_case in paperclip::v2::codegen::object - Rust

    Function paperclip::v2::codegen::object::to_snake_case

    source ·
    pub fn to_snake_case(name: &str) -> String
    \ No newline at end of file +to_snake_case in paperclip::v2::codegen::object - Rust

    Function paperclip::v2::codegen::object::to_snake_case

    source ·
    pub fn to_snake_case(name: &str) -> String
    \ No newline at end of file diff --git a/paperclip/v2/codegen/object/index.html b/paperclip/v2/codegen/object/index.html index 504b9f25a..d8122fa01 100644 --- a/paperclip/v2/codegen/object/index.html +++ b/paperclip/v2/codegen/object/index.html @@ -1,4 +1,4 @@ -paperclip::v2::codegen::object - Rust

    Module paperclip::v2::codegen::object

    source ·
    Expand description

    Simplified objects for codegen.

    +paperclip::v2::codegen::object - Rust

    Module paperclip::v2::codegen::object

    source ·
    Expand description

    Simplified objects for codegen.

    This contains the necessary objects for generating actual API objects, their builders, impls, etc.

    -

    Structs§

    Enums§

    Functions§

    \ No newline at end of file +

    Structs§

    Enums§

    Functions§

    \ No newline at end of file diff --git a/paperclip/v2/codegen/object/struct.ApiObject.html b/paperclip/v2/codegen/object/struct.ApiObject.html index dc7d27aff..d8a90cd3a 100644 --- a/paperclip/v2/codegen/object/struct.ApiObject.html +++ b/paperclip/v2/codegen/object/struct.ApiObject.html @@ -1,4 +1,4 @@ -ApiObject in paperclip::v2::codegen::object - Rust

    Struct paperclip::v2::codegen::object::ApiObject

    source ·
    pub struct ApiObject {
    +ApiObject in paperclip::v2::codegen::object - Rust

    Struct paperclip::v2::codegen::object::ApiObject

    source ·
    pub struct ApiObject {
         pub name: String,
         pub description: Option<String>,
         pub path: String,
    @@ -28,11 +28,11 @@
     is not an enum.

    source§

    impl ApiObject

    source

    pub fn with_name<S>(name: S) -> Self
    where S: Into<String>,

    Create an object with the given name.

    -

    Trait Implementations§

    source§

    impl Clone for ApiObject

    source§

    fn clone(&self) -> ApiObject

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for ApiObject

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for ApiObject

    source§

    fn default() -> ApiObject

    Returns the “default value” for a type. Read more
    source§

    impl Display for ApiObject

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Clone for ApiObject

    source§

    fn clone(&self) -> ApiObject

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for ApiObject

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for ApiObject

    source§

    fn default() -> ApiObject

    Returns the “default value” for a type. Read more
    source§

    impl Display for ApiObject

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -43,12 +43,12 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T> ToString for T
    where - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/v2/codegen/object/struct.ApiObjectBuilderImpl.html b/paperclip/v2/codegen/object/struct.ApiObjectBuilderImpl.html index 890f31780..12bd3c262 100644 --- a/paperclip/v2/codegen/object/struct.ApiObjectBuilderImpl.html +++ b/paperclip/v2/codegen/object/struct.ApiObjectBuilderImpl.html @@ -1,8 +1,8 @@ -ApiObjectBuilderImpl in paperclip::v2::codegen::object - Rust

    Struct paperclip::v2::codegen::object::ApiObjectBuilderImpl

    source ·
    pub struct ApiObjectBuilderImpl<'a, 'b>(/* private fields */);
    Expand description

    Represents the API object builder impl.

    -

    Trait Implementations§

    source§

    impl<'a, 'b> Display for ApiObjectBuilderImpl<'a, 'b>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a, 'b> Freeze for ApiObjectBuilderImpl<'a, 'b>

    §

    impl<'a, 'b> RefUnwindSafe for ApiObjectBuilderImpl<'a, 'b>

    §

    impl<'a, 'b> Send for ApiObjectBuilderImpl<'a, 'b>

    §

    impl<'a, 'b> Sync for ApiObjectBuilderImpl<'a, 'b>

    §

    impl<'a, 'b> Unpin for ApiObjectBuilderImpl<'a, 'b>

    §

    impl<'a, 'b> UnwindSafe for ApiObjectBuilderImpl<'a, 'b>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +ApiObjectBuilderImpl in paperclip::v2::codegen::object - Rust

    Struct paperclip::v2::codegen::object::ApiObjectBuilderImpl

    source ·
    pub struct ApiObjectBuilderImpl<'a, 'b>(/* private fields */);
    Expand description

    Represents the API object builder impl.

    +

    Trait Implementations§

    source§

    impl<'a, 'b> Display for ApiObjectBuilderImpl<'a, 'b>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a, 'b> Freeze for ApiObjectBuilderImpl<'a, 'b>

    §

    impl<'a, 'b> RefUnwindSafe for ApiObjectBuilderImpl<'a, 'b>

    §

    impl<'a, 'b> Send for ApiObjectBuilderImpl<'a, 'b>

    §

    impl<'a, 'b> Sync for ApiObjectBuilderImpl<'a, 'b>

    §

    impl<'a, 'b> Unpin for ApiObjectBuilderImpl<'a, 'b>

    §

    impl<'a, 'b> UnwindSafe for ApiObjectBuilderImpl<'a, 'b>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -13,11 +13,11 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/v2/codegen/object/struct.ApiObjectImpl.html b/paperclip/v2/codegen/object/struct.ApiObjectImpl.html index 162c13262..e6c30af7f 100644 --- a/paperclip/v2/codegen/object/struct.ApiObjectImpl.html +++ b/paperclip/v2/codegen/object/struct.ApiObjectImpl.html @@ -1,8 +1,8 @@ -ApiObjectImpl in paperclip::v2::codegen::object - Rust

    Struct paperclip::v2::codegen::object::ApiObjectImpl

    source ·
    pub struct ApiObjectImpl<'a> { /* private fields */ }
    Expand description

    Represents the API object impl.

    -

    Trait Implementations§

    source§

    impl<'a> Display for ApiObjectImpl<'a>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a> Freeze for ApiObjectImpl<'a>

    §

    impl<'a> RefUnwindSafe for ApiObjectImpl<'a>

    §

    impl<'a> !Send for ApiObjectImpl<'a>

    §

    impl<'a> !Sync for ApiObjectImpl<'a>

    §

    impl<'a> Unpin for ApiObjectImpl<'a>

    §

    impl<'a> UnwindSafe for ApiObjectImpl<'a>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +ApiObjectImpl in paperclip::v2::codegen::object - Rust

    Struct paperclip::v2::codegen::object::ApiObjectImpl

    source ·
    pub struct ApiObjectImpl<'a> { /* private fields */ }
    Expand description

    Represents the API object impl.

    +

    Trait Implementations§

    source§

    impl<'a> Display for ApiObjectImpl<'a>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a> Freeze for ApiObjectImpl<'a>

    §

    impl<'a> RefUnwindSafe for ApiObjectImpl<'a>

    §

    impl<'a> !Send for ApiObjectImpl<'a>

    §

    impl<'a> !Sync for ApiObjectImpl<'a>

    §

    impl<'a> Unpin for ApiObjectImpl<'a>

    §

    impl<'a> UnwindSafe for ApiObjectImpl<'a>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -13,11 +13,11 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/v2/codegen/object/struct.ObjectField.html b/paperclip/v2/codegen/object/struct.ObjectField.html index 7d7c95de2..b2e7aa662 100644 --- a/paperclip/v2/codegen/object/struct.ObjectField.html +++ b/paperclip/v2/codegen/object/struct.ObjectField.html @@ -1,4 +1,4 @@ -ObjectField in paperclip::v2::codegen::object - Rust

    Struct paperclip::v2::codegen::object::ObjectField

    source ·
    pub struct ObjectField {
    +ObjectField in paperclip::v2::codegen::object - Rust

    Struct paperclip::v2::codegen::object::ObjectField

    source ·
    pub struct ObjectField {
         pub name: String,
         pub ty_path: String,
         pub description: Option<String>,
    @@ -20,11 +20,11 @@
     

    To understand why we’re doing this, see ApiObjectBuilderImpl::write_builder_ty and ApiObjectBuilderImpl::write_value_map functions.

    Yours sincerely.

    -

    Trait Implementations§

    source§

    impl Clone for ObjectField

    source§

    fn clone(&self) -> ObjectField

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for ObjectField

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Clone for ObjectField

    source§

    fn clone(&self) -> ObjectField

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for ObjectField

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -35,11 +35,11 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/v2/codegen/object/struct.ObjectVariant.html b/paperclip/v2/codegen/object/struct.ObjectVariant.html index 2bf396996..75ff7de33 100644 --- a/paperclip/v2/codegen/object/struct.ObjectVariant.html +++ b/paperclip/v2/codegen/object/struct.ObjectVariant.html @@ -1,15 +1,15 @@ -ObjectVariant in paperclip::v2::codegen::object - Rust

    Struct paperclip::v2::codegen::object::ObjectVariant

    source ·
    pub struct ObjectVariant {
    +ObjectVariant in paperclip::v2::codegen::object - Rust

    Struct paperclip::v2::codegen::object::ObjectVariant

    source ·
    pub struct ObjectVariant {
         pub name: String,
    -    pub value: Value,
    +    pub value: Value,
     }
    Expand description

    Represents an enum variant.

    Fields§

    §name: String

    Name of the variant (case unspecified).

    -
    §value: Value

    Value of this variant (if any). Note that this is only applicable +

    §value: Value

    Value of this variant (if any). Note that this is only applicable for simple enums, and it’s ignored entirely for string enums.

    -

    Trait Implementations§

    source§

    impl Clone for ObjectVariant

    source§

    fn clone(&self) -> ObjectVariant

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for ObjectVariant

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Clone for ObjectVariant

    source§

    fn clone(&self) -> ObjectVariant

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for ObjectVariant

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -20,11 +20,11 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/v2/codegen/object/struct.OpRequirement.html b/paperclip/v2/codegen/object/struct.OpRequirement.html index 9f9a706b7..ad2fca1f9 100644 --- a/paperclip/v2/codegen/object/struct.OpRequirement.html +++ b/paperclip/v2/codegen/object/struct.OpRequirement.html @@ -1,4 +1,4 @@ -OpRequirement in paperclip::v2::codegen::object - Rust

    Struct paperclip::v2::codegen::object::OpRequirement

    source ·
    pub struct OpRequirement {
    +OpRequirement in paperclip::v2::codegen::object - Rust

    Struct paperclip::v2::codegen::object::OpRequirement

    source ·
    pub struct OpRequirement {
         pub id: Option<String>,
         pub description: Option<String>,
         pub deprecated: bool,
    @@ -24,11 +24,11 @@
     
    §decoding: Option<(String, Arc<Coder>)>

    Preferred media range and decoder for the client. This is used only when objects make use of Any type. If there’s no coder, then JSON encoding is assumed.

    -

    Trait Implementations§

    source§

    impl Clone for OpRequirement

    source§

    fn clone(&self) -> OpRequirement

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for OpRequirement

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Clone for OpRequirement

    source§

    fn clone(&self) -> OpRequirement

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for OpRequirement

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -39,11 +39,11 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/v2/codegen/object/struct.Parameter.html b/paperclip/v2/codegen/object/struct.Parameter.html index 0d750c303..67579af6c 100644 --- a/paperclip/v2/codegen/object/struct.Parameter.html +++ b/paperclip/v2/codegen/object/struct.Parameter.html @@ -1,4 +1,4 @@ -Parameter in paperclip::v2::codegen::object - Rust

    Struct paperclip::v2::codegen::object::Parameter

    source ·
    pub struct Parameter {
    +Parameter in paperclip::v2::codegen::object - Rust

    Struct paperclip::v2::codegen::object::Parameter

    source ·
    pub struct Parameter {
         pub name: String,
         pub description: Option<String>,
         pub ty_path: String,
    @@ -12,11 +12,11 @@
     
    §required: bool

    Whether this parameter is required.

    §presence: ParameterIn

    Where the parameter lives.

    §delimiting: Vec<CollectionFormat>

    If the parameter is an array of values, then the format for collecting them.

    -

    Trait Implementations§

    source§

    impl Clone for Parameter

    source§

    fn clone(&self) -> Parameter

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Parameter

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Clone for Parameter

    source§

    fn clone(&self) -> Parameter

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Parameter

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -27,11 +27,11 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/v2/codegen/object/struct.PathOps.html b/paperclip/v2/codegen/object/struct.PathOps.html index 167bfc221..27205317b 100644 --- a/paperclip/v2/codegen/object/struct.PathOps.html +++ b/paperclip/v2/codegen/object/struct.PathOps.html @@ -1,14 +1,14 @@ -PathOps in paperclip::v2::codegen::object - Rust

    Struct paperclip::v2::codegen::object::PathOps

    source ·
    pub struct PathOps {
    +PathOps in paperclip::v2::codegen::object - Rust

    Struct paperclip::v2::codegen::object::PathOps

    source ·
    pub struct PathOps {
         pub req: BTreeMap<HttpMethod, OpRequirement>,
         pub params: Vec<Parameter>,
     }
    Expand description

    Operations in a path.

    Fields§

    §req: BTreeMap<HttpMethod, OpRequirement>

    Operations for this object and their associated requirements.

    §params: Vec<Parameter>

    Parameters required for all operations in this path.

    -

    Trait Implementations§

    source§

    impl Clone for PathOps

    source§

    fn clone(&self) -> PathOps

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for PathOps

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for PathOps

    source§

    fn default() -> PathOps

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Clone for PathOps

    source§

    fn clone(&self) -> PathOps

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for PathOps

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for PathOps

    source§

    fn default() -> PathOps

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -19,11 +19,11 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/v2/codegen/object/struct.Response.html b/paperclip/v2/codegen/object/struct.Response.html index 6ee20d0ed..c116a784b 100644 --- a/paperclip/v2/codegen/object/struct.Response.html +++ b/paperclip/v2/codegen/object/struct.Response.html @@ -1,4 +1,4 @@ -Response in paperclip::v2::codegen::object - Rust

    Struct paperclip::v2::codegen::object::Response

    source ·
    pub struct Response<S, H> {
    +Response in paperclip::v2::codegen::object - Rust

    Struct paperclip::v2::codegen::object::Response

    source ·
    pub struct Response<S, H> {
         pub ty_path: Option<S>,
         pub contains_any: bool,
         pub headers: H,
    @@ -9,7 +9,7 @@
     
    §headers: H

    Custom response headers for this operation (if any).

    Implementations§

    source§

    impl<S, H> Response<S, H>
    where S: AsRef<str>,

    source

    pub fn is_file(&self) -> bool

    Returns whether this response is a file.

    -

    Trait Implementations§

    source§

    impl<S: Clone, H: Clone> Clone for Response<S, H>

    source§

    fn clone(&self) -> Response<S, H>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<S: Debug, H: Debug> Debug for Response<S, H>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<S: Default, H: Default> Default for Response<S, H>

    source§

    fn default() -> Response<S, H>

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    §

    impl<S, H> Freeze for Response<S, H>
    where +

    Trait Implementations§

    source§

    impl<S: Clone, H: Clone> Clone for Response<S, H>

    source§

    fn clone(&self) -> Response<S, H>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<S: Debug, H: Debug> Debug for Response<S, H>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<S: Default, H: Default> Default for Response<S, H>

    source§

    fn default() -> Response<S, H>

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    §

    impl<S, H> Freeze for Response<S, H>
    where H: Freeze, S: Freeze,

    §

    impl<S, H> RefUnwindSafe for Response<S, H>
    where H: RefUnwindSafe, @@ -21,11 +21,11 @@ H: Unpin, S: Unpin,

    §

    impl<S, H> UnwindSafe for Response<S, H>
    where H: UnwindSafe, - S: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + S: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -36,11 +36,11 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/v2/codegen/struct.CrateMeta.html b/paperclip/v2/codegen/struct.CrateMeta.html index 78c6677e1..9cdad1bbb 100644 --- a/paperclip/v2/codegen/struct.CrateMeta.html +++ b/paperclip/v2/codegen/struct.CrateMeta.html @@ -1,4 +1,4 @@ -CrateMeta in paperclip::v2::codegen - Rust

    Struct paperclip::v2::codegen::CrateMeta

    source ·
    #[non_exhaustive]
    pub struct CrateMeta { +CrateMeta in paperclip::v2::codegen - Rust

    Struct paperclip::v2::codegen::CrateMeta

    source ·
    #[non_exhaustive]
    pub struct CrateMeta { pub name: Option<String>, pub version: Option<String>, pub authors: Option<Vec<String>>, @@ -11,11 +11,11 @@
    §authors: Option<Vec<String>>

    List of authors for this crate. Defaults to cargo’s defaults.

    §mode: EmitMode

    Whether we’re planning to emit a lib, app or module.

    §no_root: bool

    Whether or not to make this a root crate.

    -

    Trait Implementations§

    source§

    impl Clone for CrateMeta

    source§

    fn clone(&self) -> CrateMeta

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for CrateMeta

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for CrateMeta

    source§

    fn default() -> CrateMeta

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Clone for CrateMeta

    source§

    fn clone(&self) -> CrateMeta

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for CrateMeta

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for CrateMeta

    source§

    fn default() -> CrateMeta

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -26,11 +26,11 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/v2/codegen/struct.DefaultEmitter.html b/paperclip/v2/codegen/struct.DefaultEmitter.html index 556761df3..518873594 100644 --- a/paperclip/v2/codegen/struct.DefaultEmitter.html +++ b/paperclip/v2/codegen/struct.DefaultEmitter.html @@ -1,4 +1,4 @@ -DefaultEmitter in paperclip::v2::codegen - Rust

    Struct paperclip::v2::codegen::DefaultEmitter

    source ·
    pub struct DefaultEmitter<S> { /* private fields */ }
    Expand description

    Default emitter for anything that implements Schema trait.

    +DefaultEmitter in paperclip::v2::codegen - Rust

    Struct paperclip::v2::codegen::DefaultEmitter

    source ·
    pub struct DefaultEmitter<S> { /* private fields */ }
    Expand description

    Default emitter for anything that implements Schema trait.

    This doesn’t do anything special, as Emitter trait methods take care of all the heavy load.

    Trait Implementations§

    source§

    impl<S: Schema + Debug> Emitter for DefaultEmitter<S>

    §

    type Definition = S

    The associated Schema implementor.
    source§

    fn state(&self) -> &EmitterState

    Returns a reference to the underlying state.
    source§

    fn def_ns_name<'a>( @@ -14,7 +14,7 @@ a definition doesn’t have a name (i.e., through $ref) and we have to generate it.

    source§

    fn enum_variant( &self, def: &Self::Definition, - value: &Value, + value: &Value, ) -> Option<ObjectVariant>

    Returns the enum variant of a possible value in the given definition.
    source§

    fn def_mod_path(&self, def: &Self::Definition) -> Result<PathBuf, Error>

    Returns the module path (from working directory) for the given definition. Read more
    source§

    fn unknown_op_mod_path( &self, _path: &str, @@ -35,10 +35,10 @@ ctx: DefinitionContext<'_>, ) -> Result<EmittedUnit, Error>

    Builds a schema. This resolves type aliases to known types and defines/reuses types based on the given context. Read more
    source§

    impl<S> From<EmitterState> for DefaultEmitter<S>

    source§

    fn from(state: EmitterState) -> Self

    Converts to this type from the input type.

    Auto Trait Implementations§

    §

    impl<S> !Freeze for DefaultEmitter<S>

    §

    impl<S> !RefUnwindSafe for DefaultEmitter<S>

    §

    impl<S> !Send for DefaultEmitter<S>

    §

    impl<S> !Sync for DefaultEmitter<S>

    §

    impl<S> Unpin for DefaultEmitter<S>
    where - S: Unpin,

    §

    impl<S> !UnwindSafe for DefaultEmitter<S>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + S: Unpin,

    §

    impl<S> !UnwindSafe for DefaultEmitter<S>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -49,7 +49,7 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for T
    where diff --git a/paperclip/v2/codegen/struct.EmitterState.html b/paperclip/v2/codegen/struct.EmitterState.html index 892025f2a..0d364113f 100644 --- a/paperclip/v2/codegen/struct.EmitterState.html +++ b/paperclip/v2/codegen/struct.EmitterState.html @@ -1,4 +1,4 @@ -EmitterState in paperclip::v2::codegen - Rust

    Struct paperclip::v2::codegen::EmitterState

    source ·
    pub struct EmitterState {
    +EmitterState in paperclip::v2::codegen - Rust

    Struct paperclip::v2::codegen::EmitterState

    source ·
    pub struct EmitterState {
         pub working_dir: PathBuf,
         pub ns_sep: &'static str,
         pub mod_prefix: &'static str,
    @@ -14,11 +14,11 @@
     

    NOTE: Once Emitter::generate is called, this gets overridden by host and basePath fields in spec (if they exist).

    source§

    impl EmitterState

    source

    pub fn set_meta(&self, meta: CrateMeta)

    Sets the crate metadata for this session.

    -

    Trait Implementations§

    source§

    impl Clone for EmitterState

    source§

    fn clone(&self) -> EmitterState

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for EmitterState

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for EmitterState

    source§

    fn default() -> EmitterState

    Returns the “default value” for a type. Read more
    source§

    impl<S> From<EmitterState> for DefaultEmitter<S>

    source§

    fn from(state: EmitterState) -> Self

    Converts to this type from the input type.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Clone for EmitterState

    source§

    fn clone(&self) -> EmitterState

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for EmitterState

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for EmitterState

    source§

    fn default() -> EmitterState

    Returns the “default value” for a type. Read more
    source§

    impl<S> From<EmitterState> for DefaultEmitter<S>

    source§

    fn from(state: EmitterState) -> Self

    Converts to this type from the input type.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -29,11 +29,11 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/v2/codegen/trait.Emitter.html b/paperclip/v2/codegen/trait.Emitter.html index d88c5bc8c..77347cc20 100644 --- a/paperclip/v2/codegen/trait.Emitter.html +++ b/paperclip/v2/codegen/trait.Emitter.html @@ -1,4 +1,4 @@ -Emitter in paperclip::v2::codegen - Rust

    Trait paperclip::v2::codegen::Emitter

    source ·
    pub trait Emitter: Sized {
    +Emitter in paperclip::v2::codegen - Rust

    Trait paperclip::v2::codegen::Emitter

    source ·
    pub trait Emitter: Sized {
         type Definition: Schema + Debug;
     
         // Required method
    @@ -18,7 +18,7 @@
         fn enum_variant(
             &self,
             def: &Self::Definition,
    -        value: &Value,
    +        value: &Value,
         ) -> Option<ObjectVariant> { ... }
         fn def_mod_path(&self, def: &Self::Definition) -> Result<PathBuf, Error> { ... }
         fn unknown_op_mod_path(
    @@ -64,7 +64,7 @@
     

    source

    fn enum_variant( &self, def: &Self::Definition, - value: &Value, + value: &Value, ) -> Option<ObjectVariant>

    Returns the enum variant of a possible value in the given definition.

    source

    fn def_mod_path(&self, def: &Self::Definition) -> Result<PathBuf, Error>

    Returns the module path (from working directory) for the given definition.

    NOTE: This should set .rs extension to the leaf path component.

    diff --git a/paperclip/v2/fn.from_reader.html b/paperclip/v2/fn.from_reader.html index f84497e06..66ef16de5 100644 --- a/paperclip/v2/fn.from_reader.html +++ b/paperclip/v2/fn.from_reader.html @@ -1,5 +1,5 @@ -from_reader in paperclip::v2 - Rust

    Function paperclip::v2::from_reader

    source ·
    pub fn from_reader<R, S>(reader: R) -> Result<ResolvableApi<S>, PaperClipError>
    where +from_reader in paperclip::v2 - Rust

    Function paperclip::v2::from_reader

    source ·
    pub fn from_reader<R, S>(reader: R) -> Result<ResolvableApi<S>, PaperClipError>
    where R: Read, - for<'de> S: Deserialize<'de> + Schema,
    Expand description

    Deserialize the schema from the given reader. Currently, this only supports + for<'de> S: Deserialize<'de> + Schema,

    Expand description

    Deserialize the schema from the given reader. Currently, this only supports JSON and YAML formats.

    \ No newline at end of file diff --git a/paperclip/v2/im/index.html b/paperclip/v2/im/index.html index e0d4fcfa5..7879dc2fe 100644 --- a/paperclip/v2/im/index.html +++ b/paperclip/v2/im/index.html @@ -1,2 +1,2 @@ -paperclip::v2::im - Rust

    Module paperclip::v2::im

    source ·
    Expand description

    Interior mutability stuff.

    +paperclip::v2::im - Rust

    Module paperclip::v2::im

    source ·
    Expand description

    Interior mutability stuff.

    \ No newline at end of file diff --git a/paperclip/v2/index.html b/paperclip/v2/index.html index f327c40e4..e39fe0ceb 100644 --- a/paperclip/v2/index.html +++ b/paperclip/v2/index.html @@ -1,4 +1,4 @@ -paperclip::v2 - Rust

    Module paperclip::v2

    source ·
    Expand description

    Utilities related to the OpenAPI v2 specification.

    +paperclip::v2 - Rust

    Module paperclip::v2

    source ·
    Expand description

    Utilities related to the OpenAPI v2 specification.

    §Detailed example

    To parse your v2 spec, you begin with transforming the schema into a Rust struct. If your schema doesn’t have custom properties, then you @@ -67,5 +67,5 @@

    §D let emitter = DefaultEmitter::from(state); emitter.generate(&api).unwrap(); // generate code! }

    -

    Re-exports§

    Modules§

    • Code generation for OpenAPI v2.
    • Interior mutability stuff.
    • Models used by OpenAPI v2.
    • Traits used for code and spec generation.

    Structs§

    • Default schema if your schema doesn’t have any custom fields.

    Traits§

    Functions§

    • Deserialize the schema from the given reader. Currently, this only supports -JSON and YAML formats.

    Type Aliases§

    • OpenAPI v2 spec which can be traversed and resolved for codegen.
    \ No newline at end of file +

    Re-exports§

    Modules§

    • Code generation for OpenAPI v2.
    • Interior mutability stuff.
    • Models used by OpenAPI v2.
    • Traits used for code and spec generation.

    Structs§

    • Default schema if your schema doesn’t have any custom fields.

    Traits§

    Functions§

    • Deserialize the schema from the given reader. Currently, this only supports +JSON and YAML formats.

    Type Aliases§

    • OpenAPI v2 spec which can be traversed and resolved for codegen.
    \ No newline at end of file diff --git a/paperclip/v2/models/enum.CollectionFormat.html b/paperclip/v2/models/enum.CollectionFormat.html index 42f89f38b..2f19052f1 100644 --- a/paperclip/v2/models/enum.CollectionFormat.html +++ b/paperclip/v2/models/enum.CollectionFormat.html @@ -1,30 +1,30 @@ -CollectionFormat in paperclip::v2::models - Rust

    Enum paperclip::v2::models::CollectionFormat

    source ·
    pub enum CollectionFormat {
    +CollectionFormat in paperclip::v2::models - Rust

    Enum paperclip::v2::models::CollectionFormat

    source ·
    pub enum CollectionFormat {
         Csv,
         Ssv,
         Tsv,
         Pipes,
         Multi,
     }
    Expand description

    Possible formats for array values in parameter.

    -

    Variants§

    §

    Csv

    §

    Ssv

    §

    Tsv

    §

    Pipes

    §

    Multi

    Trait Implementations§

    source§

    impl Clone for CollectionFormat

    source§

    fn clone(&self) -> CollectionFormat

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for CollectionFormat

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for CollectionFormat

    source§

    fn default() -> CollectionFormat

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for CollectionFormat

    Variants§

    §

    Csv

    §

    Ssv

    §

    Tsv

    §

    Pipes

    §

    Multi

    Trait Implementations§

    source§

    impl Clone for CollectionFormat

    source§

    fn clone(&self) -> CollectionFormat

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for CollectionFormat

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for CollectionFormat

    source§

    fn default() -> CollectionFormat

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for CollectionFormat

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<CollectionFormat, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Ord for CollectionFormat

    source§

    fn cmp(&self, other: &CollectionFormat) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for CollectionFormat

    source§

    fn eq(&self, other: &CollectionFormat) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for CollectionFormat

    source§

    fn partial_cmp(&self, other: &CollectionFormat) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Serialize for CollectionFormat

    source§

    fn serialize<__S>( +) -> Result<CollectionFormat, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Ord for CollectionFormat

    source§

    fn cmp(&self, other: &CollectionFormat) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for CollectionFormat

    source§

    fn eq(&self, other: &CollectionFormat) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl PartialOrd for CollectionFormat

    source§

    fn partial_cmp(&self, other: &CollectionFormat) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    source§

    impl Serialize for CollectionFormat

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Copy for CollectionFormat

    source§

    impl Eq for CollectionFormat

    source§

    impl StructuralPartialEq for CollectionFormat

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Copy for CollectionFormat

    source§

    impl Eq for CollectionFormat

    source§

    impl StructuralPartialEq for CollectionFormat

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn compare(&self, key: &K) -> Ordering

    Compare self to key and return their ordering.
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, @@ -43,15 +43,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/enum.DataType.html b/paperclip/v2/models/enum.DataType.html index f1a5e7d2a..fa049f0c1 100644 --- a/paperclip/v2/models/enum.DataType.html +++ b/paperclip/v2/models/enum.DataType.html @@ -1,4 +1,4 @@ -DataType in paperclip::v2::models - Rust

    Enum paperclip::v2::models::DataType

    source ·
    pub enum DataType {
    +DataType in paperclip::v2::models - Rust

    Enum paperclip::v2::models::DataType

    source ·
    pub enum DataType {
         Integer,
         Number,
         String,
    @@ -8,21 +8,20 @@
         File,
     }
    Expand description

    Supported data types.

    Variants§

    §

    Integer

    §

    Number

    §

    String

    §

    Boolean

    §

    Array

    §

    Object

    §

    File

    Implementations§

    source§

    impl DataType

    source

    pub fn is_primitive(self) -> bool

    Checks if this is a primitive type.

    -

    Trait Implementations§

    source§

    impl Clone for DataType

    source§

    fn clone(&self) -> DataType

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for DataType

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for DataType

    Trait Implementations§

    source§

    impl Clone for DataType

    source§

    fn clone(&self) -> DataType

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for DataType

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for DataType

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<DataType, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<DataTypeFormat> for DataType

    source§

    fn from(src: DataTypeFormat) -> DataType

    Converts to this type from the input type.
    source§

    impl PartialEq for DataType

    source§

    fn eq(&self, other: &DataType) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Serialize for DataType

    source§

    fn serialize<__S>( +) -> Result<DataType, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<DataTypeFormat> for DataType

    source§

    fn from(src: DataTypeFormat) -> DataType

    Converts to this type from the input type.
    source§

    impl PartialEq for DataType

    source§

    fn eq(&self, other: &DataType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl Serialize for DataType

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Copy for DataType

    source§

    impl Eq for DataType

    source§

    impl StructuralPartialEq for DataType

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Equivalent<K> for Q
    where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Copy for DataType

    source§

    impl Eq for DataType

    source§

    impl StructuralPartialEq for DataType

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

    §

    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
    where Q: Eq + ?Sized, @@ -39,15 +38,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/enum.DataTypeFormat.html b/paperclip/v2/models/enum.DataTypeFormat.html index f307d94a3..b07be233d 100644 --- a/paperclip/v2/models/enum.DataTypeFormat.html +++ b/paperclip/v2/models/enum.DataTypeFormat.html @@ -1,4 +1,4 @@ -DataTypeFormat in paperclip::v2::models - Rust

    Enum paperclip::v2::models::DataTypeFormat

    source ·
    pub enum DataTypeFormat {
    +DataTypeFormat in paperclip::v2::models - Rust

    Enum paperclip::v2::models::DataTypeFormat

    source ·
    pub enum DataTypeFormat {
     
    Show 15 variants Int32, Int64, Float, @@ -15,20 +15,19 @@ IpV6, Other,
    }
    Expand description

    Supported data type formats.

    -

    Variants§

    §

    Int32

    §

    Int64

    §

    Float

    §

    Double

    §

    Byte

    §

    Binary

    §

    Date

    §

    DateTime

    §

    Password

    §

    Url

    §

    Uuid

    §

    Ip

    §

    IpV4

    §

    IpV6

    §

    Other

    Trait Implementations§

    source§

    impl Clone for DataTypeFormat

    source§

    fn clone(&self) -> DataTypeFormat

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for DataTypeFormat

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for DataTypeFormat

    Variants§

    §

    Int32

    §

    Int64

    §

    Float

    §

    Double

    §

    Byte

    §

    Binary

    §

    Date

    §

    DateTime

    §

    Password

    §

    Url

    §

    Uuid

    §

    Ip

    §

    IpV4

    §

    IpV6

    §

    Other

    Trait Implementations§

    source§

    impl Clone for DataTypeFormat

    source§

    fn clone(&self) -> DataTypeFormat

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for DataTypeFormat

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for DataTypeFormat

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<DataTypeFormat, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<DataTypeFormat> for DataType

    source§

    fn from(src: DataTypeFormat) -> DataType

    Converts to this type from the input type.
    source§

    impl PartialEq for DataTypeFormat

    source§

    fn eq(&self, other: &DataTypeFormat) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Serialize for DataTypeFormat

    source§

    fn serialize<__S>( +) -> Result<DataTypeFormat, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<DataTypeFormat> for DataType

    source§

    fn from(src: DataTypeFormat) -> DataType

    Converts to this type from the input type.
    source§

    impl PartialEq for DataTypeFormat

    source§

    fn eq(&self, other: &DataTypeFormat) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl Serialize for DataTypeFormat

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl ToString for DataTypeFormat

    source§

    fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl Eq for DataTypeFormat

    source§

    impl StructuralPartialEq for DataTypeFormat

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Equivalent<K> for Q
    where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl ToString for DataTypeFormat

    source§

    fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl Eq for DataTypeFormat

    source§

    impl StructuralPartialEq for DataTypeFormat

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

    §

    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
    where Q: Eq + ?Sized, @@ -45,15 +44,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/enum.Either.html b/paperclip/v2/models/enum.Either.html index 57160265f..a04d8c40a 100644 --- a/paperclip/v2/models/enum.Either.html +++ b/paperclip/v2/models/enum.Either.html @@ -1,4 +1,4 @@ -Either in paperclip::v2::models - Rust

    Enum paperclip::v2::models::Either

    source ·
    pub enum Either<L, R> {
    +Either in paperclip::v2::models - Rust

    Enum paperclip::v2::models::Either

    source ·
    pub enum Either<L, R> {
         Left(L),
         Right(R),
     }
    Expand description

    Either from “either” crate. We can’t use that crate because @@ -9,22 +9,22 @@

    source

    pub fn left_mut(&mut self) -> Option<&mut L>

    Get a mutable reference to the left variant (if it exists).

    Trait Implementations§

    source§

    impl<L, R> Clone for Either<L, R>
    where L: Clone, - R: Clone,

    source§

    fn clone(&self) -> Either<L, R>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<L, R> Debug for Either<L, R>
    where + R: Clone,

    source§

    fn clone(&self) -> Either<L, R>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<L, R> Debug for Either<L, R>
    where L: Debug, - R: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl<T> Deref for Either<Reference, T>

    §

    type Target = T

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &<Either<Reference, T> as Deref>::Target

    Dereferences the value.
    source§

    impl<T> DerefMut for Either<Reference, T>

    source§

    fn deref_mut(&mut self) -> &mut <Either<Reference, T> as Deref>::Target

    Mutably dereferences the value.
    source§

    impl<'de, L, R> Deserialize<'de> for Either<L, R>
    where - L: Deserialize<'de>, - R: Deserialize<'de>,

    source§

    fn deserialize<__D>( + R: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl<T> Deref for Either<Reference, T>

    §

    type Target = T

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &<Either<Reference, T> as Deref>::Target

    Dereferences the value.
    source§

    impl<T> DerefMut for Either<Reference, T>

    source§

    fn deref_mut(&mut self) -> &mut <Either<Reference, T> as Deref>::Target

    Mutably dereferences the value.
    source§

    impl<'de, L, R> Deserialize<'de> for Either<L, R>
    where + L: Deserialize<'de>, + R: Deserialize<'de>,

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<Either<L, R>, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Parameter<DefaultSchemaRaw>> for Either<Parameter, Either<RequestBody, Option<Schema>>>

    source§

    fn from( +) -> Result<Either<L, R>, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Parameter<DefaultSchemaRaw>> for Either<Parameter, Either<RequestBody, Option<Schema>>>

    source§

    fn from( v2: Parameter<DefaultSchemaRaw>, -) -> Either<Parameter, Either<RequestBody, Option<Schema>>>

    Converts to this type from the input type.
    source§

    impl<L, R> Serialize for Either<L, R>
    where - L: Serialize, - R: Serialize,

    source§

    fn serialize<__S>( +) -> Either<Parameter, Either<RequestBody, Option<Schema>>>

    Converts to this type from the input type.
    source§

    impl<L, R> Serialize for Either<L, R>
    where + L: Serialize, + R: Serialize,

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<L, R> Freeze for Either<L, R>
    where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<L, R> Freeze for Either<L, R>
    where L: Freeze, R: Freeze,

    §

    impl<L, R> RefUnwindSafe for Either<L, R>
    where L: RefUnwindSafe, @@ -36,11 +36,11 @@ L: Unpin, R: Unpin,

    §

    impl<L, R> UnwindSafe for Either<L, R>
    where L: UnwindSafe, - R: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + R: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -51,19 +51,19 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
    §

    impl<T, P> Resource for T
    where T: DerefMut<Target = Path<P>>, - P: ResourcePath,

    §

    type Path = P

    Type of resource’s path returned in resource_path.
    §

    fn resource_path(&mut self) -> &mut Path<<T as Resource>::Path>

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + P: ResourcePath,

    §

    type Path = P

    Type of resource’s path returned in resource_path.
    §

    fn resource_path(&mut self) -> &mut Path<<T as Resource>::Path>

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    §

    impl<T> Formattable for T
    where +[WithDispatch] wrapper. Read more

    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    §

    impl<T> Formattable for T
    where T: Deref, <T as Deref>::Target: Formattable,

    \ No newline at end of file diff --git a/paperclip/v2/models/enum.HttpMethod.html b/paperclip/v2/models/enum.HttpMethod.html index cf75c8b4a..3aa466a15 100644 --- a/paperclip/v2/models/enum.HttpMethod.html +++ b/paperclip/v2/models/enum.HttpMethod.html @@ -1,4 +1,4 @@ -HttpMethod in paperclip::v2::models - Rust

    Enum paperclip::v2::models::HttpMethod

    source ·
    pub enum HttpMethod {
    +HttpMethod in paperclip::v2::models - Rust

    Enum paperclip::v2::models::HttpMethod

    source ·
    pub enum HttpMethod {
         Get,
         Put,
         Post,
    @@ -8,26 +8,26 @@
         Patch,
     }
    Expand description

    The HTTP method used for an operation.

    Variants§

    §

    Get

    §

    Put

    §

    Post

    §

    Delete

    §

    Options

    §

    Head

    §

    Patch

    Implementations§

    source§

    impl HttpMethod

    source

    pub fn allows_body(self) -> bool

    Whether this method allows body in requests.

    -

    Trait Implementations§

    source§

    impl Clone for HttpMethod

    source§

    fn clone(&self) -> HttpMethod

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for HttpMethod

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for HttpMethod

    Trait Implementations§

    source§

    impl Clone for HttpMethod

    source§

    fn clone(&self) -> HttpMethod

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for HttpMethod

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for HttpMethod

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<HttpMethod, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Display for HttpMethod

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl From<&Method> for HttpMethod

    source§

    fn from(method: &Method) -> HttpMethod

    Converts to this type from the input type.
    source§

    impl Ord for HttpMethod

    source§

    fn cmp(&self, other: &HttpMethod) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for HttpMethod

    source§

    fn eq(&self, other: &HttpMethod) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for HttpMethod

    source§

    fn partial_cmp(&self, other: &HttpMethod) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Serialize for HttpMethod

    source§

    fn serialize<__S>( +) -> Result<HttpMethod, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Display for HttpMethod

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl From<&Method> for HttpMethod

    source§

    fn from(method: &Method) -> HttpMethod

    Converts to this type from the input type.
    source§

    impl Ord for HttpMethod

    source§

    fn cmp(&self, other: &HttpMethod) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for HttpMethod

    source§

    fn eq(&self, other: &HttpMethod) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl PartialOrd for HttpMethod

    source§

    fn partial_cmp(&self, other: &HttpMethod) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    source§

    impl Serialize for HttpMethod

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Copy for HttpMethod

    source§

    impl Eq for HttpMethod

    source§

    impl StructuralPartialEq for HttpMethod

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Copy for HttpMethod

    source§

    impl Eq for HttpMethod

    source§

    impl StructuralPartialEq for HttpMethod

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn compare(&self, key: &K) -> Ordering

    Compare self to key and return their ordering.
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, @@ -46,16 +46,16 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T> ToString for T
    where - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/enum.OperationProtocol.html b/paperclip/v2/models/enum.OperationProtocol.html index 0ab7ffb48..23c7a1fa5 100644 --- a/paperclip/v2/models/enum.OperationProtocol.html +++ b/paperclip/v2/models/enum.OperationProtocol.html @@ -1,29 +1,29 @@ -OperationProtocol in paperclip::v2::models - Rust

    Enum paperclip::v2::models::OperationProtocol

    source ·
    pub enum OperationProtocol {
    +OperationProtocol in paperclip::v2::models - Rust

    Enum paperclip::v2::models::OperationProtocol

    source ·
    pub enum OperationProtocol {
         Http,
         Https,
         Ws,
         Wss,
     }
    Expand description

    The protocol used for an operation.

    -

    Variants§

    §

    Http

    §

    Https

    §

    Ws

    §

    Wss

    Trait Implementations§

    source§

    impl Clone for OperationProtocol

    source§

    fn clone(&self) -> OperationProtocol

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for OperationProtocol

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for OperationProtocol

    Variants§

    §

    Http

    §

    Https

    §

    Ws

    §

    Wss

    Trait Implementations§

    source§

    impl Clone for OperationProtocol

    source§

    fn clone(&self) -> OperationProtocol

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for OperationProtocol

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for OperationProtocol

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<OperationProtocol, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Ord for OperationProtocol

    source§

    fn cmp(&self, other: &OperationProtocol) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for OperationProtocol

    source§

    fn eq(&self, other: &OperationProtocol) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for OperationProtocol

    source§

    fn partial_cmp(&self, other: &OperationProtocol) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Serialize for OperationProtocol

    source§

    fn serialize<__S>( +) -> Result<OperationProtocol, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Ord for OperationProtocol

    source§

    fn cmp(&self, other: &OperationProtocol) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for OperationProtocol

    source§

    fn eq(&self, other: &OperationProtocol) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl PartialOrd for OperationProtocol

    source§

    fn partial_cmp(&self, other: &OperationProtocol) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    source§

    impl Serialize for OperationProtocol

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Copy for OperationProtocol

    source§

    impl Eq for OperationProtocol

    source§

    impl StructuralPartialEq for OperationProtocol

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Copy for OperationProtocol

    source§

    impl Eq for OperationProtocol

    source§

    impl StructuralPartialEq for OperationProtocol

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn compare(&self, key: &K) -> Ordering

    Compare self to key and return their ordering.
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, @@ -42,15 +42,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/enum.ParameterIn.html b/paperclip/v2/models/enum.ParameterIn.html index c9146959c..c5a63a80f 100644 --- a/paperclip/v2/models/enum.ParameterIn.html +++ b/paperclip/v2/models/enum.ParameterIn.html @@ -1,31 +1,31 @@ -ParameterIn in paperclip::v2::models - Rust

    Enum paperclip::v2::models::ParameterIn

    source ·
    pub enum ParameterIn {
    +ParameterIn in paperclip::v2::models - Rust

    Enum paperclip::v2::models::ParameterIn

    source ·
    pub enum ParameterIn {
         Query,
         Header,
         Path,
         FormData,
         Body,
     }
    Expand description

    The location of the parameter.

    -

    Variants§

    §

    Query

    §

    Header

    §

    Path

    §

    FormData

    §

    Body

    Trait Implementations§

    source§

    impl Clone for ParameterIn

    source§

    fn clone(&self) -> ParameterIn

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for ParameterIn

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for ParameterIn

    NOTE: This is just a stub. This is usually set explicitly.

    -
    source§

    fn default() -> ParameterIn

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for ParameterIn

    Variants§

    §

    Query

    §

    Header

    §

    Path

    §

    FormData

    §

    Body

    Trait Implementations§

    source§

    impl Clone for ParameterIn

    source§

    fn clone(&self) -> ParameterIn

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for ParameterIn

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for ParameterIn

    NOTE: This is just a stub. This is usually set explicitly.

    +
    source§

    fn default() -> ParameterIn

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for ParameterIn

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<ParameterIn, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Ord for ParameterIn

    source§

    fn cmp(&self, other: &ParameterIn) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for ParameterIn

    source§

    fn eq(&self, other: &ParameterIn) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for ParameterIn

    source§

    fn partial_cmp(&self, other: &ParameterIn) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Serialize for ParameterIn

    source§

    fn serialize<__S>( +) -> Result<ParameterIn, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Ord for ParameterIn

    source§

    fn cmp(&self, other: &ParameterIn) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for ParameterIn

    source§

    fn eq(&self, other: &ParameterIn) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl PartialOrd for ParameterIn

    source§

    fn partial_cmp(&self, other: &ParameterIn) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    source§

    impl Serialize for ParameterIn

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Copy for ParameterIn

    source§

    impl Eq for ParameterIn

    source§

    impl StructuralPartialEq for ParameterIn

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Copy for ParameterIn

    source§

    impl Eq for ParameterIn

    source§

    impl StructuralPartialEq for ParameterIn

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn compare(&self, key: &K) -> Ordering

    Compare self to key and return their ordering.
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, @@ -44,15 +44,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/enum.Resolvable.html b/paperclip/v2/models/enum.Resolvable.html index 3fda5b31b..1665d2378 100644 --- a/paperclip/v2/models/enum.Resolvable.html +++ b/paperclip/v2/models/enum.Resolvable.html @@ -1,4 +1,4 @@ -Resolvable in paperclip::v2::models - Rust

    Enum paperclip::v2::models::Resolvable

    source ·
    pub enum Resolvable<S> {
    +Resolvable in paperclip::v2::models - Rust

    Enum paperclip::v2::models::Resolvable

    source ·
    pub enum Resolvable<S> {
         Raw(Arc<RwLock<S>>),
         Resolved {
             new: Arc<RwLock<S>>,
    @@ -9,24 +9,24 @@
     (i.e., the one where $ref references point to the actual schema).

    Variants§

    §

    Raw(Arc<RwLock<S>>)

    §

    Resolved

    Fields

    §new: Arc<RwLock<S>>
    §old: Arc<RwLock<S>>

    Implementations§

    source§

    impl<S> Resolvable<S>
    where S: Schema,

    source

    pub fn get_description(&self) -> Option<String>

    Fetch the description for this schema.

    -

    Trait Implementations§

    source§

    impl<S> Clone for Resolvable<S>

    source§

    fn clone(&self) -> Resolvable<S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<S> Debug for Resolvable<S>
    where +

    Trait Implementations§

    source§

    impl<S> Clone for Resolvable<S>

    source§

    fn clone(&self) -> Resolvable<S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<S> Debug for Resolvable<S>
    where S: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl<S> Default for Resolvable<S>
    where - S: Default,

    source§

    fn default() -> Resolvable<S>

    Returns the “default value” for a type. Read more
    source§

    impl<S> Deref for Resolvable<S>

    §

    type Target = Arc<RwLock<S>>

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &<Resolvable<S> as Deref>::Target

    Dereferences the value.
    source§

    impl<S> DerefMut for Resolvable<S>

    source§

    fn deref_mut(&mut self) -> &mut <Resolvable<S> as Deref>::Target

    Mutably dereferences the value.
    source§

    impl<'de, S> Deserialize<'de> for Resolvable<S>
    where - S: Deserialize<'de>,

    source§

    fn default() -> Resolvable<S>

    Returns the “default value” for a type. Read more
    source§

    impl<S> Deref for Resolvable<S>

    §

    type Target = Arc<RwLock<S>>

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &<Resolvable<S> as Deref>::Target

    Dereferences the value.
    source§

    impl<S> DerefMut for Resolvable<S>

    source§

    fn deref_mut(&mut self) -> &mut <Resolvable<S> as Deref>::Target

    Mutably dereferences the value.
    source§

    impl<'de, S> Deserialize<'de> for Resolvable<S>
    where + S: Deserialize<'de>,

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<Resolvable<S>, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl<S> From<S> for Resolvable<S>

    source§

    fn from(t: S) -> Resolvable<S>

    Converts to this type from the input type.
    source§

    impl<T> Serialize for Resolvable<T>
    where - T: Serialize,

    source§

    fn serialize<S>( +) -> Result<Resolvable<S>, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl<S> From<S> for Resolvable<S>

    source§

    fn from(t: S) -> Resolvable<S>

    Converts to this type from the input type.
    source§

    impl<T> Serialize for Resolvable<T>
    where + T: Serialize,

    source§

    fn serialize<S>( &self, serializer: S, -) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where - S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<S> Freeze for Resolvable<S>

    §

    impl<S> RefUnwindSafe for Resolvable<S>

    §

    impl<S> Send for Resolvable<S>
    where +) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where + S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<S> Freeze for Resolvable<S>

    §

    impl<S> RefUnwindSafe for Resolvable<S>

    §

    impl<S> Send for Resolvable<S>
    where S: Send + Sync,

    §

    impl<S> Sync for Resolvable<S>
    where - S: Send + Sync,

    §

    impl<S> Unpin for Resolvable<S>

    §

    impl<S> UnwindSafe for Resolvable<S>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<!> for T

    source§

    fn from(t: !) -> T

    Converts to this type from the input type.
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + S: Send + Sync,
    §

    impl<S> Unpin for Resolvable<S>

    §

    impl<S> UnwindSafe for Resolvable<S>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<!> for T

    source§

    fn from(t: !) -> T

    Converts to this type from the input type.
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -37,15 +37,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/enum.SpecFormat.html b/paperclip/v2/models/enum.SpecFormat.html index 8198b6b8f..8fa642e32 100644 --- a/paperclip/v2/models/enum.SpecFormat.html +++ b/paperclip/v2/models/enum.SpecFormat.html @@ -1,17 +1,16 @@ -SpecFormat in paperclip::v2::models - Rust

    Enum paperclip::v2::models::SpecFormat

    source ·
    pub enum SpecFormat {
    +SpecFormat in paperclip::v2::models - Rust

    Enum paperclip::v2::models::SpecFormat

    source ·
    pub enum SpecFormat {
         Json,
         Yaml,
     }
    Expand description

    The format used by spec (JSON/YAML).

    Variants§

    §

    Json

    §

    Yaml

    Implementations§

    source§

    impl SpecFormat

    source

    pub fn coder(self) -> Arc<Coder>

    The en/decoder used for this format.

    source

    pub fn mime(self) -> &'static MediaRange

    The mime for this format.

    -

    Trait Implementations§

    source§

    impl Clone for SpecFormat

    source§

    fn clone(&self) -> SpecFormat

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for SpecFormat

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for SpecFormat

    source§

    fn default() -> SpecFormat

    Returns the “default value” for a type. Read more
    source§

    impl PartialEq for SpecFormat

    source§

    fn eq(&self, other: &SpecFormat) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for SpecFormat

    source§

    impl Eq for SpecFormat

    source§

    impl StructuralPartialEq for SpecFormat

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Equivalent<K> for Q
    where +

    Trait Implementations§

    source§

    impl Clone for SpecFormat

    source§

    fn clone(&self) -> SpecFormat

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for SpecFormat

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for SpecFormat

    source§

    fn default() -> SpecFormat

    Returns the “default value” for a type. Read more
    source§

    impl PartialEq for SpecFormat

    source§

    fn eq(&self, other: &SpecFormat) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl Copy for SpecFormat

    source§

    impl Eq for SpecFormat

    source§

    impl StructuralPartialEq for SpecFormat

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

    §

    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
    where Q: Eq + ?Sized, @@ -28,11 +27,11 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip/v2/models/enum.Version.html b/paperclip/v2/models/enum.Version.html index 490c00681..e14718abb 100644 --- a/paperclip/v2/models/enum.Version.html +++ b/paperclip/v2/models/enum.Version.html @@ -1,21 +1,20 @@ -Version in paperclip::v2::models - Rust

    Enum paperclip::v2::models::Version

    source ·
    pub enum Version {
    +Version in paperclip::v2::models - Rust

    Enum paperclip::v2::models::Version

    source ·
    pub enum Version {
         V2,
     }
    Expand description

    OpenAPI version.

    -

    Variants§

    §

    V2

    Trait Implementations§

    source§

    impl Clone for Version

    source§

    fn clone(&self) -> Version

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Version

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for Version

    source§

    fn default() -> Version

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Version

    Variants§

    §

    V2

    Trait Implementations§

    source§

    impl Clone for Version

    source§

    fn clone(&self) -> Version

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Version

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for Version

    source§

    fn default() -> Version

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Version

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<Version, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl PartialEq for Version

    source§

    fn eq(&self, other: &Version) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Serialize for Version

    source§

    fn serialize<__S>( +) -> Result<Version, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl PartialEq for Version

    source§

    fn eq(&self, other: &Version) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl Serialize for Version

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Copy for Version

    source§

    impl Eq for Version

    source§

    impl StructuralPartialEq for Version

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Equivalent<K> for Q
    where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    source§

    impl Copy for Version

    source§

    impl Eq for Version

    source§

    impl StructuralPartialEq for Version

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

    §

    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
    where Q: Eq + ?Sized, @@ -32,15 +31,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/index.html b/paperclip/v2/models/index.html index e9fd109d9..146fccdb8 100644 --- a/paperclip/v2/models/index.html +++ b/paperclip/v2/models/index.html @@ -1,5 +1,5 @@ -paperclip::v2::models - Rust

    Module paperclip::v2::models

    source ·
    Expand description

    Models used by OpenAPI v2.

    -

    Structs§

    Enums§

    • Possible formats for array values in parameter.
    • Supported data types.
    • Supported data type formats.
    • Either from “either” crate. We can’t use that crate because -we don’t want the enum to be tagged during de/serialization.
    • The HTTP method used for an operation.
    • The protocol used for an operation.
    • The location of the parameter.
    • Wrapper for schema. This uses Arc<RwLock<S>> for interior +paperclip::v2::models - Rust

      Module paperclip::v2::models

      source ·
      Expand description

      Models used by OpenAPI v2.

      +

      Structs§

      Enums§

      • Possible formats for array values in parameter.
      • Supported data types.
      • Supported data type formats.
      • Either from “either” crate. We can’t use that crate because +we don’t want the enum to be tagged during de/serialization.
      • The HTTP method used for an operation.
      • The protocol used for an operation.
      • The location of the parameter.
      • Wrapper for schema. This uses Arc<RwLock<S>> for interior mutability and differentiates raw schema from resolved schema -(i.e., the one where $ref references point to the actual schema).
      • The format used by spec (JSON/YAML).
      • OpenAPI version.

      Statics§

      Type Aliases§

      \ No newline at end of file +(i.e., the one where $ref references point to the actual schema).
    • The format used by spec (JSON/YAML).
    • OpenAPI version.

    Statics§

    Type Aliases§

    \ No newline at end of file diff --git a/paperclip/v2/models/static.JSON_CODER.html b/paperclip/v2/models/static.JSON_CODER.html index df1a6c527..b5ff6320d 100644 --- a/paperclip/v2/models/static.JSON_CODER.html +++ b/paperclip/v2/models/static.JSON_CODER.html @@ -1,2 +1,2 @@ -JSON_CODER in paperclip::v2::models - Rust

    Static paperclip::v2::models::JSON_CODER

    source ·
    pub static JSON_CODER: Lazy<Arc<Coder>>
    Expand description

    Default coder for JSON.

    +JSON_CODER in paperclip::v2::models - Rust

    Static paperclip::v2::models::JSON_CODER

    source ·
    pub static JSON_CODER: Lazy<Arc<Coder>>
    Expand description

    Default coder for JSON.

    \ No newline at end of file diff --git a/paperclip/v2/models/static.JSON_MIME.html b/paperclip/v2/models/static.JSON_MIME.html index b95c3802f..8e856d112 100644 --- a/paperclip/v2/models/static.JSON_MIME.html +++ b/paperclip/v2/models/static.JSON_MIME.html @@ -1,2 +1,2 @@ -JSON_MIME in paperclip::v2::models - Rust

    Static paperclip::v2::models::JSON_MIME

    source ·
    pub static JSON_MIME: Lazy<MediaRange>
    Expand description

    Media range for JSON.

    +JSON_MIME in paperclip::v2::models - Rust

    Static paperclip::v2::models::JSON_MIME

    source ·
    pub static JSON_MIME: Lazy<MediaRange>
    Expand description

    Media range for JSON.

    \ No newline at end of file diff --git a/paperclip/v2/models/static.YAML_CODER.html b/paperclip/v2/models/static.YAML_CODER.html index a5da95469..5891a5c18 100644 --- a/paperclip/v2/models/static.YAML_CODER.html +++ b/paperclip/v2/models/static.YAML_CODER.html @@ -1,2 +1,2 @@ -YAML_CODER in paperclip::v2::models - Rust

    Static paperclip::v2::models::YAML_CODER

    source ·
    pub static YAML_CODER: Lazy<Arc<Coder>>
    Expand description

    Default coder for YAML.

    +YAML_CODER in paperclip::v2::models - Rust

    Static paperclip::v2::models::YAML_CODER

    source ·
    pub static YAML_CODER: Lazy<Arc<Coder>>
    Expand description

    Default coder for YAML.

    \ No newline at end of file diff --git a/paperclip/v2/models/static.YAML_MIME.html b/paperclip/v2/models/static.YAML_MIME.html index 133854782..b4d6ee998 100644 --- a/paperclip/v2/models/static.YAML_MIME.html +++ b/paperclip/v2/models/static.YAML_MIME.html @@ -1,2 +1,2 @@ -YAML_MIME in paperclip::v2::models - Rust

    Static paperclip::v2::models::YAML_MIME

    source ·
    pub static YAML_MIME: Lazy<MediaRange>
    Expand description

    Media range for YAML.

    +YAML_MIME in paperclip::v2::models - Rust

    Static paperclip::v2::models::YAML_MIME

    source ·
    pub static YAML_MIME: Lazy<MediaRange>
    Expand description

    Media range for YAML.

    \ No newline at end of file diff --git a/paperclip/v2/models/struct.Api.html b/paperclip/v2/models/struct.Api.html index 1bfb276cd..e36b94b4e 100644 --- a/paperclip/v2/models/struct.Api.html +++ b/paperclip/v2/models/struct.Api.html @@ -1,4 +1,4 @@ -Api in paperclip::v2::models - Rust

    Struct paperclip::v2::models::Api

    source ·
    pub struct Api<P, R, S> {
    Show 19 fields +Api in paperclip::v2::models - Rust

    Struct paperclip::v2::models::Api

    source ·
    pub struct Api<P, R, S> {
    Show 19 fields pub swagger: Version, pub definitions: BTreeMap<String, S>, pub paths: BTreeMap<String, PathItem<P, R>>, @@ -17,7 +17,7 @@ pub support_crates: BTreeMap<String, String>, pub spec_format: SpecFormat, pub info: Info, - pub extensions: BTreeMap<String, Value>, + pub extensions: BTreeMap<String, Value>,
    }
    Expand description

    OpenAPI v2 (swagger) spec generic over parameter and schema.

    https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#swagger-object

    Fields§

    §swagger: Version§definitions: BTreeMap<String, S>§paths: BTreeMap<String, PathItem<P, R>>§host: Option<String>§base_path: Option<String>§consumes: BTreeSet<MediaRange>§produces: BTreeSet<MediaRange>§schemes: BTreeSet<OperationProtocol>§parameters: BTreeMap<String, P>§responses: BTreeMap<String, R>§security_definitions: BTreeMap<String, SecurityScheme>§security: Vec<BTreeMap<String, BTreeSet<String>>>§tags: Vec<Tag>§external_docs: Option<ExternalDocs>§coders: Coders

    Extension for custom coders to be used for decoding API objects.

    @@ -37,13 +37,13 @@ wherever required.

    For example, the following are all valid:

      -
    • my_crate: "0.7"
    • -
    • my_crate: "{ git = \"git://foo.bar/repo\" }"
    • -
    • my_crate: "{ version = \"0.9\", features = [\"booya\"] }"
    • +
    • my_crate: "0.7"
    • +
    • my_crate: "{ git = \"git://foo.bar/repo\" }"
    • +
    • my_crate: "{ version = \"0.9\", features = [\"booya\"] }"
    §spec_format: SpecFormat

    This field is set manually, because we don’t know the format in which the spec was provided and we need to use this as the fallback encoding.

    -
    §info: Info§extensions: BTreeMap<String, Value>

    Implementations§

    source§

    impl<P, R, S> Api<P, R, S>

    §info: Info§extensions: BTreeMap<String, Value>

    Implementations§

    source§

    impl<P, R, S> Api<P, R, S>

    source

    pub fn path_parameters_map( path: &str, f: impl FnMut(&str) -> Cow<'static, str>, ) -> Cow<'_, str>

    Gets the parameters from the given path template and calls @@ -59,26 +59,26 @@

    Trait Implementations§

    source§

    impl<P, R, S> Clone for Api<P, R, S>
    where P: Clone, R: Clone, - S: Clone,

    source§

    fn clone(&self) -> Api<P, R, S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<P, R, S> Debug for Api<P, R, S>
    where + S: Clone,

    source§

    fn clone(&self) -> Api<P, R, S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<P, R, S> Debug for Api<P, R, S>
    where P: Debug, R: Debug, S: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl<P, R, S> Default for Api<P, R, S>
    where P: Default, R: Default, - S: Default,

    source§

    fn default() -> Api<P, R, S>

    Returns the “default value” for a type. Read more
    source§

    impl<'de, P, R, S> Deserialize<'de> for Api<P, R, S>
    where - P: Deserialize<'de>, - R: Deserialize<'de>, - S: Deserialize<'de>,

    source§

    fn default() -> Api<P, R, S>

    Returns the “default value” for a type. Read more
    source§

    impl<'de, P, R, S> Deserialize<'de> for Api<P, R, S>
    where + P: Deserialize<'de>, + R: Deserialize<'de>, + S: Deserialize<'de>,

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<Api<P, R, S>, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl<P, R, S> Serialize for Api<P, R, S>
    where - P: Serialize, - R: Serialize, - S: Serialize,

    source§

    fn serialize<__S>( +) -> Result<Api<P, R, S>, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl<P, R, S> Serialize for Api<P, R, S>
    where + P: Serialize, + R: Serialize, + S: Serialize,

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<P, R, S> Freeze for Api<P, R, S>

    §

    impl<P, R, S> RefUnwindSafe for Api<P, R, S>
    where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<P, R, S> Freeze for Api<P, R, S>

    §

    impl<P, R, S> RefUnwindSafe for Api<P, R, S>

    §

    impl<P, R, S> Send for Api<P, R, S>
    where @@ -90,11 +90,11 @@ R: Sync,

    §

    impl<P, R, S> Unpin for Api<P, R, S>

    §

    impl<P, R, S> UnwindSafe for Api<P, R, S>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + R: RefUnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -105,15 +105,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/struct.Coder.html b/paperclip/v2/models/struct.Coder.html index 31553d001..3fc6fc613 100644 --- a/paperclip/v2/models/struct.Coder.html +++ b/paperclip/v2/models/struct.Coder.html @@ -1,4 +1,4 @@ -Coder in paperclip::v2::models - Rust

    Struct paperclip::v2::models::Coder

    source ·
    pub struct Coder {
    +Coder in paperclip::v2::models - Rust

    Struct paperclip::v2::models::Coder

    source ·
    pub struct Coder {
         pub encoder_path: String,
         pub decoder_path: String,
         pub error_path: String,
    @@ -14,18 +14,18 @@
     types are available. When multiple types are preferred,
     it’s unspecified as to which is chosen.

    §builtin: bool

    Whether this en/decoder is built-in.

    -

    Trait Implementations§

    source§

    impl Clone for Coder

    source§

    fn clone(&self) -> Coder

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Coder

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for Coder

    source§

    fn default() -> Coder

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Coder

    Trait Implementations§

    source§

    impl Clone for Coder

    source§

    fn clone(&self) -> Coder

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Coder

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for Coder

    source§

    fn default() -> Coder

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Coder

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<Coder, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for Coder

    source§

    fn serialize<__S>( +) -> Result<Coder, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for Coder

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Coder

    §

    impl RefUnwindSafe for Coder

    §

    impl Send for Coder

    §

    impl Sync for Coder

    §

    impl Unpin for Coder

    §

    impl UnwindSafe for Coder

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,
    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Coder

    §

    impl RefUnwindSafe for Coder

    §

    impl Send for Coder

    §

    impl Sync for Coder

    §

    impl Unpin for Coder

    §

    impl UnwindSafe for Coder

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -36,15 +36,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/struct.Coders.html b/paperclip/v2/models/struct.Coders.html index 24f32a9dc..e9ddeac42 100644 --- a/paperclip/v2/models/struct.Coders.html +++ b/paperclip/v2/models/struct.Coders.html @@ -1,4 +1,4 @@ -Coders in paperclip::v2::models - Rust

    Struct paperclip::v2::models::Coders

    source ·
    pub struct Coders(/* private fields */);
    Expand description

    x-rust-coders global extension for custom encoders and decoders.

    +Coders in paperclip::v2::models - Rust

    Struct paperclip::v2::models::Coders

    source ·
    pub struct Coders(/* private fields */);
    Expand description

    x-rust-coders global extension for custom encoders and decoders.

    Implementations§

    source§

    impl Coders

    source

    pub fn matching_coder(&self, ty: &MediaRange) -> Option<Arc<Coder>>

    Returns the matching coder for the given media range (if any).

    Matching algorithm from https://github.com/hyperium/mime/blob/65ea9c3d0cad4cb548b41124050c545120134035/src/range.rs#L126

    Methods from Deref<Target = BTreeMap<MediaRange, Arc<Coder>>>§

    1.0.0 · source

    pub fn clear(&mut self)

    Clears the map, removing all elements.

    @@ -357,7 +357,7 @@
    §Exampleslet odds = map; assert_eq!(evens.keys().copied().collect::<Vec<_>>(), [0, 2, 4, 6]); assert_eq!(odds.keys().copied().collect::<Vec<_>>(), [1, 3, 5, 7]);
    -
    1.0.0 · source

    pub fn iter(&self) -> Iter<'_, K, V>

    Gets an iterator over the entries of the map, sorted by key.

    +
    1.0.0 · source

    pub fn iter(&self) -> Iter<'_, K, V>

    Gets an iterator over the entries of the map, sorted by key.

    §Examples
    use std::collections::BTreeMap;
     
    @@ -372,7 +372,7 @@ 
    §Exampleslet (first_key, first_value) = map.iter().next().unwrap(); assert_eq!((*first_key, *first_value), (1, "a"));
    -
    1.0.0 · source

    pub fn iter_mut(&mut self) -> IterMut<'_, K, V>

    Gets a mutable iterator over the entries of the map, sorted by key.

    +
    1.0.0 · source

    pub fn iter_mut(&mut self) -> IterMut<'_, K, V>

    Gets a mutable iterator over the entries of the map, sorted by key.

    §Examples
    use std::collections::BTreeMap;
     
    @@ -388,7 +388,7 @@ 
    §Examples*value += 10; } }
    -
    1.0.0 · source

    pub fn keys(&self) -> Keys<'_, K, V>

    Gets an iterator over the keys of the map, in sorted order.

    +
    1.0.0 · source

    pub fn keys(&self) -> Keys<'_, K, V>

    Gets an iterator over the keys of the map, in sorted order.

    §Examples
    use std::collections::BTreeMap;
     
    @@ -398,7 +398,7 @@ 
    §Exampleslet keys: Vec<_> = a.keys().cloned().collect(); assert_eq!(keys, [1, 2]);
    -
    1.0.0 · source

    pub fn values(&self) -> Values<'_, K, V>

    Gets an iterator over the values of the map, in order by key.

    +
    1.0.0 · source

    pub fn values(&self) -> Values<'_, K, V>

    Gets an iterator over the values of the map, in order by key.

    §Examples
    use std::collections::BTreeMap;
     
    @@ -408,7 +408,7 @@ 
    §Exampleslet values: Vec<&str> = a.values().cloned().collect(); assert_eq!(values, ["hello", "goodbye"]);
    -
    1.10.0 · source

    pub fn values_mut(&mut self) -> ValuesMut<'_, K, V>

    Gets a mutable iterator over the values of the map, in order by key.

    +
    1.10.0 · source

    pub fn values_mut(&mut self) -> ValuesMut<'_, K, V>

    Gets a mutable iterator over the values of the map, in order by key.

    §Examples
    use std::collections::BTreeMap;
     
    @@ -423,7 +423,7 @@ 
    §Exampleslet values: Vec<String> = a.values().cloned().collect(); assert_eq!(values, [String::from("hello!"), String::from("goodbye!")]);
    -
    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the number of elements in the map.

    +
    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the number of elements in the map.

    §Examples
    use std::collections::BTreeMap;
     
    @@ -431,7 +431,7 @@ 
    §Examplesassert_eq!(a.len(), 0); a.insert(1, "a"); assert_eq!(a.len(), 1);
    -
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if the map contains no elements.

    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if the map contains no elements.

    §Examples
    use std::collections::BTreeMap;
     
    @@ -439,7 +439,7 @@ 
    §Examplesassert!(a.is_empty()); a.insert(1, "a"); assert!(!a.is_empty());
    -
    source

    pub fn lower_bound<Q>(&self, bound: Bound<&Q>) -> Cursor<'_, K, V>
    where +

    source

    pub fn lower_bound<Q>(&self, bound: Bound<&Q>) -> Cursor<'_, K, V>
    where K: Borrow<Q> + Ord, Q: Ord + ?Sized,

    🔬This is a nightly-only experimental API. (btree_cursors)

    Returns a Cursor pointing at the gap before the smallest key greater than the given bound.

    @@ -473,7 +473,7 @@
    §Exampleslet cursor = map.lower_bound(Bound::Unbounded); assert_eq!(cursor.peek_prev(), None); assert_eq!(cursor.peek_next(), Some((&1, &"a")));
    -
    source

    pub fn lower_bound_mut<Q>(&mut self, bound: Bound<&Q>) -> CursorMut<'_, K, V, A>
    where +

    source

    pub fn lower_bound_mut<Q>(&mut self, bound: Bound<&Q>) -> CursorMut<'_, K, V, A>
    where K: Borrow<Q> + Ord, Q: Ord + ?Sized,

    🔬This is a nightly-only experimental API. (btree_cursors)

    Returns a CursorMut pointing at the gap before the smallest key greater than the given bound.

    @@ -507,7 +507,7 @@
    §Exampleslet mut cursor = map.lower_bound_mut(Bound::Unbounded); assert_eq!(cursor.peek_prev(), None); assert_eq!(cursor.peek_next(), Some((&1, &mut "a")));
    -
    source

    pub fn upper_bound<Q>(&self, bound: Bound<&Q>) -> Cursor<'_, K, V>
    where +

    source

    pub fn upper_bound<Q>(&self, bound: Bound<&Q>) -> Cursor<'_, K, V>
    where K: Borrow<Q> + Ord, Q: Ord + ?Sized,

    🔬This is a nightly-only experimental API. (btree_cursors)

    Returns a Cursor pointing at the gap after the greatest key smaller than the given bound.

    @@ -541,7 +541,7 @@
    §Exampleslet cursor = map.upper_bound(Bound::Unbounded); assert_eq!(cursor.peek_prev(), Some((&4, &"d"))); assert_eq!(cursor.peek_next(), None);
    -
    source

    pub fn upper_bound_mut<Q>(&mut self, bound: Bound<&Q>) -> CursorMut<'_, K, V, A>
    where +

    source

    pub fn upper_bound_mut<Q>(&mut self, bound: Bound<&Q>) -> CursorMut<'_, K, V, A>
    where K: Borrow<Q> + Ord, Q: Ord + ?Sized,

    🔬This is a nightly-only experimental API. (btree_cursors)

    Returns a CursorMut pointing at the gap after the greatest key smaller than the given bound.

    @@ -575,18 +575,18 @@
    §Exampleslet mut cursor = map.upper_bound_mut(Bound::Unbounded); assert_eq!(cursor.peek_prev(), Some((&4, &mut "d"))); assert_eq!(cursor.peek_next(), None);
    -

    Trait Implementations§

    source§

    impl Clone for Coders

    source§

    fn clone(&self) -> Coders

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Coders

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for Coders

    source§

    fn default() -> Coders

    Returns the “default value” for a type. Read more
    source§

    impl Deref for Coders

    §

    type Target = BTreeMap<MediaRange, Arc<Coder>>

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &<Coders as Deref>::Target

    Dereferences the value.
    source§

    impl DerefMut for Coders

    source§

    fn deref_mut(&mut self) -> &mut <Coders as Deref>::Target

    Mutably dereferences the value.
    source§

    impl<'de> Deserialize<'de> for Coders

    Trait Implementations§

    source§

    impl Clone for Coders

    source§

    fn clone(&self) -> Coders

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Coders

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for Coders

    source§

    fn default() -> Coders

    Returns the “default value” for a type. Read more
    source§

    impl Deref for Coders

    §

    type Target = BTreeMap<MediaRange, Arc<Coder>>

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &<Coders as Deref>::Target

    Dereferences the value.
    source§

    impl DerefMut for Coders

    source§

    fn deref_mut(&mut self) -> &mut <Coders as Deref>::Target

    Mutably dereferences the value.
    source§

    impl<'de> Deserialize<'de> for Coders

    source§

    fn deserialize<D>( deserializer: D, -) -> Result<Coders, <D as Deserializer<'de>>::Error>
    where - D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for Coders

    source§

    fn serialize<S>( +) -> Result<Coders, <D as Deserializer<'de>>::Error>
    where + D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for Coders

    source§

    fn serialize<S>( &self, serializer: S, -) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where - S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Coders

    §

    impl RefUnwindSafe for Coders

    §

    impl Send for Coders

    §

    impl Sync for Coders

    §

    impl Unpin for Coders

    §

    impl UnwindSafe for Coders

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where + S: Serializer,
    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Coders

    §

    impl RefUnwindSafe for Coders

    §

    impl Send for Coders

    §

    impl Sync for Coders

    §

    impl Unpin for Coders

    §

    impl UnwindSafe for Coders

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -597,15 +597,15 @@
    §Examplesinto_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/struct.Contact.html b/paperclip/v2/models/struct.Contact.html index fed009ee1..5bc43ec1d 100644 --- a/paperclip/v2/models/struct.Contact.html +++ b/paperclip/v2/models/struct.Contact.html @@ -1,21 +1,21 @@ -Contact in paperclip::v2::models - Rust

    Struct paperclip::v2::models::Contact

    source ·
    pub struct Contact {
    +Contact in paperclip::v2::models - Rust

    Struct paperclip::v2::models::Contact

    source ·
    pub struct Contact {
         pub name: Option<String>,
         pub url: Option<String>,
         pub email: Option<String>,
     }
    Expand description

    Fields§

    §name: Option<String>§url: Option<String>§email: Option<String>

    Trait Implementations§

    source§

    impl Clone for Contact

    source§

    fn clone(&self) -> Contact

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Contact

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for Contact

    source§

    fn default() -> Contact

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Contact

    Fields§

    §name: Option<String>§url: Option<String>§email: Option<String>

    Trait Implementations§

    source§

    impl Clone for Contact

    source§

    fn clone(&self) -> Contact

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Contact

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for Contact

    source§

    fn default() -> Contact

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Contact

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<Contact, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for Contact

    source§

    fn serialize<__S>( +) -> Result<Contact, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for Contact

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,
    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -26,15 +26,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/struct.DefaultSchema.html b/paperclip/v2/models/struct.DefaultSchema.html index abe9f9c98..4c7aba1df 100644 --- a/paperclip/v2/models/struct.DefaultSchema.html +++ b/paperclip/v2/models/struct.DefaultSchema.html @@ -1,4 +1,4 @@ -DefaultSchema in paperclip::v2::models - Rust

    Struct paperclip::v2::models::DefaultSchema

    source ·
    pub struct DefaultSchema {
    Show 13 fields +DefaultSchema in paperclip::v2::models - Rust

    Struct paperclip::v2::models::DefaultSchema

    source ·
    pub struct DefaultSchema {
    Show 13 fields pub reference: Option<String>, pub title: Option<String>, pub description: Option<String>, @@ -6,34 +6,34 @@ pub format: Option<DataTypeFormat>, pub maximum: Option<f32>, pub minimum: Option<f32>, - pub example: Option<Value>, + pub example: Option<Value>, pub properties: BTreeMap<String, Resolvable<DefaultSchema>>, pub items: Option<Resolvable<DefaultSchema>>, - pub enum_: Vec<Value>, + pub enum_: Vec<Value>, pub extra_props: Option<Either<bool, Resolvable<DefaultSchema>>>, pub required: BTreeSet<String>, /* private fields */
    }
    Expand description

    Default schema if your schema doesn’t have any custom fields.

    https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#schemaObject

    -

    Fields§

    §reference: Option<String>§title: Option<String>§description: Option<String>§data_type: Option<DataType>§format: Option<DataTypeFormat>§maximum: Option<f32>§minimum: Option<f32>§example: Option<Value>§properties: BTreeMap<String, Resolvable<DefaultSchema>>§items: Option<Resolvable<DefaultSchema>>§enum_: Vec<Value>§extra_props: Option<Either<bool, Resolvable<DefaultSchema>>>§required: BTreeSet<String>

    Trait Implementations§

    source§

    impl Clone for DefaultSchema

    source§

    fn clone(&self) -> DefaultSchema

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for DefaultSchema

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for DefaultSchema

    source§

    fn default() -> DefaultSchema

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for DefaultSchema

    Fields§

    §reference: Option<String>§title: Option<String>§description: Option<String>§data_type: Option<DataType>§format: Option<DataTypeFormat>§maximum: Option<f32>§minimum: Option<f32>§example: Option<Value>§properties: BTreeMap<String, Resolvable<DefaultSchema>>§items: Option<Resolvable<DefaultSchema>>§enum_: Vec<Value>§extra_props: Option<Either<bool, Resolvable<DefaultSchema>>>§required: BTreeSet<String>

    Trait Implementations§

    source§

    impl Clone for DefaultSchema

    source§

    fn clone(&self) -> DefaultSchema

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for DefaultSchema

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for DefaultSchema

    source§

    fn default() -> DefaultSchema

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for DefaultSchema

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<DefaultSchema, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Schema for DefaultSchema

    source§

    fn name(&self) -> Option<&str>

    Name of this schema, if any. Read more
    source§

    fn set_name(&mut self, name: &str)

    Sets the name for this schema. This is done by the resolver.
    source§

    fn set_cyclic(&mut self, cyclic: bool)

    Set whether this definition is cyclic. This is done by the resolver.
    source§

    fn is_cyclic(&self) -> bool

    Returns whether this definition is cyclic. Read more
    source§

    fn description(&self) -> Option<&str>

    Description for this schema, if any (description field).
    source§

    fn reference(&self) -> Option<&str>

    Reference to some other schema, if any ($ref field).
    source§

    fn set_reference(&mut self, ref_: String)

    Set the reference to this schema.
    source§

    fn data_type(&self) -> Option<DataType>

    Data type of this schema, if any (type field).
    source§

    fn format(&self) -> Option<&DataTypeFormat>

    Data type format used by this schema, if any (format field).
    source§

    fn items(&self) -> Option<&Resolvable<DefaultSchema>>

    Schema for array definitions, if any (items field).
    source§

    fn items_mut(&mut self) -> Option<&mut Resolvable<DefaultSchema>>

    Mutable access to the items field, if it exists.
    source§

    fn additional_properties( +) -> Result<DefaultSchema, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Schema for DefaultSchema

    source§

    fn name(&self) -> Option<&str>

    Name of this schema, if any. Read more
    source§

    fn set_name(&mut self, name: &str)

    Sets the name for this schema. This is done by the resolver.
    source§

    fn set_cyclic(&mut self, cyclic: bool)

    Set whether this definition is cyclic. This is done by the resolver.
    source§

    fn is_cyclic(&self) -> bool

    Returns whether this definition is cyclic. Read more
    source§

    fn description(&self) -> Option<&str>

    Description for this schema, if any (description field).
    source§

    fn reference(&self) -> Option<&str>

    Reference to some other schema, if any ($ref field).
    source§

    fn set_reference(&mut self, ref_: String)

    Set the reference to this schema.
    source§

    fn data_type(&self) -> Option<DataType>

    Data type of this schema, if any (type field).
    source§

    fn format(&self) -> Option<&DataTypeFormat>

    Data type format used by this schema, if any (format field).
    source§

    fn items(&self) -> Option<&Resolvable<DefaultSchema>>

    Schema for array definitions, if any (items field).
    source§

    fn items_mut(&mut self) -> Option<&mut Resolvable<DefaultSchema>>

    Mutable access to the items field, if it exists.
    source§

    fn additional_properties( &self, ) -> Option<&Either<bool, Resolvable<DefaultSchema>>>

    Value schema for maps (additional_properties field).
    source§

    fn additional_properties_mut( &mut self, ) -> Option<&mut Either<bool, Resolvable<DefaultSchema>>>

    Mutable access to additional_properties field, if it’s a map.
    source§

    fn properties(&self) -> Option<&BTreeMap<String, Resolvable<DefaultSchema>>>

    Map of names and schema for properties, if it’s an object (properties field)
    source§

    fn properties_mut( &mut self, -) -> Option<&mut BTreeMap<String, Resolvable<DefaultSchema>>>

    Mutable access to properties field.
    source§

    fn required_properties(&self) -> Option<&BTreeSet<String>>

    Returns the required properties (if any) for this object.
    source§

    fn enum_variants(&self) -> Option<&[Value]>

    Enum variants in this schema (if any). It’s serde_json::Value -because: Read more
    source§

    fn contains_any(&self) -> bool

    Returns whether this definition “is” or “has” Any type.
    source§

    impl Serialize for DefaultSchema

    source§

    fn serialize<__S>( +) -> Option<&mut BTreeMap<String, Resolvable<DefaultSchema>>>

    Mutable access to properties field.
    source§

    fn required_properties(&self) -> Option<&BTreeSet<String>>

    Returns the required properties (if any) for this object.
    source§

    fn enum_variants(&self) -> Option<&[Value]>

    Enum variants in this schema (if any). It’s serde_json::Value +because: Read more
    source§

    fn contains_any(&self) -> bool

    Returns whether this definition “is” or “has” Any type.
    source§

    impl Serialize for DefaultSchema

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,
    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -44,15 +44,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/struct.DefaultSchemaRaw.html b/paperclip/v2/models/struct.DefaultSchemaRaw.html index 794027063..8eaed57f7 100644 --- a/paperclip/v2/models/struct.DefaultSchemaRaw.html +++ b/paperclip/v2/models/struct.DefaultSchemaRaw.html @@ -1,4 +1,4 @@ -DefaultSchemaRaw in paperclip::v2::models - Rust

    Struct paperclip::v2::models::DefaultSchemaRaw

    source ·
    pub struct DefaultSchemaRaw {
    Show 13 fields +DefaultSchemaRaw in paperclip::v2::models - Rust

    Struct paperclip::v2::models::DefaultSchemaRaw

    source ·
    pub struct DefaultSchemaRaw {
    Show 13 fields pub reference: Option<String>, pub title: Option<String>, pub description: Option<String>, @@ -6,10 +6,10 @@ pub format: Option<DataTypeFormat>, pub maximum: Option<f32>, pub minimum: Option<f32>, - pub example: Option<Value>, + pub example: Option<Value>, pub properties: BTreeMap<String, Box<DefaultSchemaRaw>>, pub items: Option<Box<DefaultSchemaRaw>>, - pub enum_: Vec<Value>, + pub enum_: Vec<Value>, pub extra_props: Option<Either<bool, Box<DefaultSchemaRaw>>>, pub required: BTreeSet<String>, /* private fields */ @@ -19,21 +19,21 @@ unresolvable $ref fields.

    Default schema if your schema doesn’t have any custom fields.

    https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#schemaObject

    -

    Fields§

    §reference: Option<String>§title: Option<String>§description: Option<String>§data_type: Option<DataType>§format: Option<DataTypeFormat>§maximum: Option<f32>§minimum: Option<f32>§example: Option<Value>§properties: BTreeMap<String, Box<DefaultSchemaRaw>>§items: Option<Box<DefaultSchemaRaw>>§enum_: Vec<Value>§extra_props: Option<Either<bool, Box<DefaultSchemaRaw>>>§required: BTreeSet<String>

    Implementations§

    source§

    impl DefaultSchemaRaw

    source

    pub fn remove_refs(&mut self)

    Recursively removes all $ref values in this schema.

    +

    Fields§

    §reference: Option<String>§title: Option<String>§description: Option<String>§data_type: Option<DataType>§format: Option<DataTypeFormat>§maximum: Option<f32>§minimum: Option<f32>§example: Option<Value>§properties: BTreeMap<String, Box<DefaultSchemaRaw>>§items: Option<Box<DefaultSchemaRaw>>§enum_: Vec<Value>§extra_props: Option<Either<bool, Box<DefaultSchemaRaw>>>§required: BTreeSet<String>

    Implementations§

    source§

    impl DefaultSchemaRaw

    source

    pub fn remove_refs(&mut self)

    Recursively removes all $ref values in this schema.

    source

    pub fn retain_ref(&mut self)

    Recursively removes all properties other than $ref value if the $ref is non-null.

    -

    Trait Implementations§

    source§

    impl Clone for DefaultSchemaRaw

    source§

    fn clone(&self) -> DefaultSchemaRaw

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for DefaultSchemaRaw

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for DefaultSchemaRaw

    source§

    fn default() -> DefaultSchemaRaw

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for DefaultSchemaRaw

    Trait Implementations§

    source§

    impl Clone for DefaultSchemaRaw

    source§

    fn clone(&self) -> DefaultSchemaRaw

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for DefaultSchemaRaw

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for DefaultSchemaRaw

    source§

    fn default() -> DefaultSchemaRaw

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for DefaultSchemaRaw

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<DefaultSchemaRaw, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for DefaultSchemaRaw

    source§

    fn serialize<__S>( +) -> Result<DefaultSchemaRaw, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for DefaultSchemaRaw

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,
    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -44,15 +44,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/struct.ExternalDocs.html b/paperclip/v2/models/struct.ExternalDocs.html index fec631499..b39c24684 100644 --- a/paperclip/v2/models/struct.ExternalDocs.html +++ b/paperclip/v2/models/struct.ExternalDocs.html @@ -1,20 +1,20 @@ -ExternalDocs in paperclip::v2::models - Rust

    Struct paperclip::v2::models::ExternalDocs

    source ·
    pub struct ExternalDocs {
    +ExternalDocs in paperclip::v2::models - Rust

    Struct paperclip::v2::models::ExternalDocs

    source ·
    pub struct ExternalDocs {
         pub description: Option<String>,
         pub url: String,
     }
    Expand description

    Fields§

    §description: Option<String>§url: String

    Trait Implementations§

    source§

    impl Clone for ExternalDocs

    source§

    fn clone(&self) -> ExternalDocs

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for ExternalDocs

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for ExternalDocs

    source§

    fn default() -> ExternalDocs

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for ExternalDocs

    Fields§

    §description: Option<String>§url: String

    Trait Implementations§

    source§

    impl Clone for ExternalDocs

    source§

    fn clone(&self) -> ExternalDocs

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for ExternalDocs

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for ExternalDocs

    source§

    fn default() -> ExternalDocs

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for ExternalDocs

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<ExternalDocs, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for ExternalDocs

    source§

    fn serialize<__S>( +) -> Result<ExternalDocs, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for ExternalDocs

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,
    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -25,15 +25,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/struct.Header.html b/paperclip/v2/models/struct.Header.html index 1ac04630f..14a19e5db 100644 --- a/paperclip/v2/models/struct.Header.html +++ b/paperclip/v2/models/struct.Header.html @@ -1,11 +1,11 @@ -Header in paperclip::v2::models - Rust

    Struct paperclip::v2::models::Header

    source ·
    pub struct Header {
    Show 18 fields +Header in paperclip::v2::models - Rust

    Struct paperclip::v2::models::Header

    source ·
    pub struct Header {
    Show 18 fields pub description: Option<String>, pub data_type: Option<DataType>, pub format: Option<DataTypeFormat>, pub items: Option<Items>, pub collection_format: Option<CollectionFormat>, - pub default: Option<Value>, - pub enum_: Vec<Value>, + pub default: Option<Value>, + pub enum_: Vec<Value>, pub maximum: Option<f32>, pub exclusive_maximum: Option<bool>, pub minimum: Option<f32>, @@ -19,18 +19,18 @@ pub multiple_of: Option<f32>,
    }
    Expand description

    Fields§

    §description: Option<String>§data_type: Option<DataType>§format: Option<DataTypeFormat>§items: Option<Items>§collection_format: Option<CollectionFormat>§default: Option<Value>§enum_: Vec<Value>§maximum: Option<f32>§exclusive_maximum: Option<bool>§minimum: Option<f32>§exclusive_minimum: Option<bool>§max_length: Option<u32>§min_length: Option<u32>§pattern: Option<String>§max_items: Option<u32>§min_items: Option<u32>§unique_items: Option<bool>§multiple_of: Option<f32>

    Trait Implementations§

    source§

    impl Clone for Header

    source§

    fn clone(&self) -> Header

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Header

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for Header

    source§

    fn default() -> Header

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Header

    Fields§

    §description: Option<String>§data_type: Option<DataType>§format: Option<DataTypeFormat>§items: Option<Items>§collection_format: Option<CollectionFormat>§default: Option<Value>§enum_: Vec<Value>§maximum: Option<f32>§exclusive_maximum: Option<bool>§minimum: Option<f32>§exclusive_minimum: Option<bool>§max_length: Option<u32>§min_length: Option<u32>§pattern: Option<String>§max_items: Option<u32>§min_items: Option<u32>§unique_items: Option<bool>§multiple_of: Option<f32>

    Trait Implementations§

    source§

    impl Clone for Header

    source§

    fn clone(&self) -> Header

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Header

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for Header

    source§

    fn default() -> Header

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Header

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<Header, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for Header

    source§

    fn serialize<__S>( +) -> Result<Header, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for Header

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Header

    §

    impl RefUnwindSafe for Header

    §

    impl Send for Header

    §

    impl Sync for Header

    §

    impl Unpin for Header

    §

    impl UnwindSafe for Header

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,
    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Header

    §

    impl RefUnwindSafe for Header

    §

    impl Send for Header

    §

    impl Sync for Header

    §

    impl Unpin for Header

    §

    impl UnwindSafe for Header

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -41,15 +41,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/struct.Info.html b/paperclip/v2/models/struct.Info.html index f9b5e0466..6aafe708c 100644 --- a/paperclip/v2/models/struct.Info.html +++ b/paperclip/v2/models/struct.Info.html @@ -1,26 +1,26 @@ -Info in paperclip::v2::models - Rust

    Struct paperclip::v2::models::Info

    source ·
    pub struct Info {
    +Info in paperclip::v2::models - Rust

    Struct paperclip::v2::models::Info

    source ·
    pub struct Info {
         pub version: String,
         pub title: String,
         pub description: Option<String>,
         pub terms_of_service: Option<String>,
         pub contact: Option<Contact>,
         pub license: Option<License>,
    -    pub extensions: BTreeMap<String, Value>,
    +    pub extensions: BTreeMap<String, Value>,
     }
    Expand description

    Fields§

    §version: String§title: String§description: Option<String>§terms_of_service: Option<String>§contact: Option<Contact>§license: Option<License>§extensions: BTreeMap<String, Value>

    Inline extensions to this object.

    -

    Trait Implementations§

    source§

    impl Clone for Info

    source§

    fn clone(&self) -> Info

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Info

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for Info

    source§

    fn default() -> Info

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Info

    Fields§

    §version: String§title: String§description: Option<String>§terms_of_service: Option<String>§contact: Option<Contact>§license: Option<License>§extensions: BTreeMap<String, Value>

    Inline extensions to this object.

    +

    Trait Implementations§

    source§

    impl Clone for Info

    source§

    fn clone(&self) -> Info

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Info

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for Info

    source§

    fn default() -> Info

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Info

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<Info, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for Info

    source§

    fn serialize<__S>( +) -> Result<Info, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for Info

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Info

    §

    impl RefUnwindSafe for Info

    §

    impl Send for Info

    §

    impl Sync for Info

    §

    impl Unpin for Info

    §

    impl UnwindSafe for Info

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,
    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Info

    §

    impl RefUnwindSafe for Info

    §

    impl Send for Info

    §

    impl Sync for Info

    §

    impl Unpin for Info

    §

    impl UnwindSafe for Info

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -31,15 +31,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/struct.Items.html b/paperclip/v2/models/struct.Items.html index bc5040829..d8a45ae24 100644 --- a/paperclip/v2/models/struct.Items.html +++ b/paperclip/v2/models/struct.Items.html @@ -1,9 +1,9 @@ -Items in paperclip::v2::models - Rust

    Struct paperclip::v2::models::Items

    source ·
    pub struct Items {
    Show 16 fields +Items in paperclip::v2::models - Rust

    Struct paperclip::v2::models::Items

    source ·
    pub struct Items {
    Show 16 fields pub data_type: Option<DataType>, pub format: Option<DataTypeFormat>, pub items: Option<Box<Items>>, pub collection_format: Option<CollectionFormat>, - pub enum_: Vec<Value>, + pub enum_: Vec<Value>, pub maximum: Option<f32>, pub exclusive_maximum: Option<bool>, pub minimum: Option<f32>, @@ -17,20 +17,19 @@ pub multiple_of: Option<f32>,
    }
    Expand description

    Fields§

    §data_type: Option<DataType>§format: Option<DataTypeFormat>§items: Option<Box<Items>>§collection_format: Option<CollectionFormat>§enum_: Vec<Value>§maximum: Option<f32>§exclusive_maximum: Option<bool>§minimum: Option<f32>§exclusive_minimum: Option<bool>§max_length: Option<u32>§min_length: Option<u32>§pattern: Option<String>§max_items: Option<u32>§min_items: Option<u32>§unique_items: Option<bool>§multiple_of: Option<f32>

    Trait Implementations§

    source§

    impl Clone for Items

    source§

    fn clone(&self) -> Items

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Items

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for Items

    source§

    fn default() -> Items

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Items

    Fields§

    §data_type: Option<DataType>§format: Option<DataTypeFormat>§items: Option<Box<Items>>§collection_format: Option<CollectionFormat>§enum_: Vec<Value>§maximum: Option<f32>§exclusive_maximum: Option<bool>§minimum: Option<f32>§exclusive_minimum: Option<bool>§max_length: Option<u32>§min_length: Option<u32>§pattern: Option<String>§max_items: Option<u32>§min_items: Option<u32>§unique_items: Option<bool>§multiple_of: Option<f32>

    Trait Implementations§

    source§

    impl Clone for Items

    source§

    fn clone(&self) -> Items

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Items

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for Items

    source§

    fn default() -> Items

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Items

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<Items, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl PartialEq for Items

    source§

    fn eq(&self, other: &Items) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Serialize for Items

    source§

    fn serialize<__S>( +) -> Result<Items, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl PartialEq for Items

    source§

    fn eq(&self, other: &Items) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl Serialize for Items

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl StructuralPartialEq for Items

    Auto Trait Implementations§

    §

    impl Freeze for Items

    §

    impl RefUnwindSafe for Items

    §

    impl Send for Items

    §

    impl Sync for Items

    §

    impl Unpin for Items

    §

    impl UnwindSafe for Items

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,
    Serialize this value into the given Serde serializer. Read more
    source§

    impl StructuralPartialEq for Items

    Auto Trait Implementations§

    §

    impl Freeze for Items

    §

    impl RefUnwindSafe for Items

    §

    impl Send for Items

    §

    impl Sync for Items

    §

    impl Unpin for Items

    §

    impl UnwindSafe for Items

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -41,15 +40,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/struct.License.html b/paperclip/v2/models/struct.License.html index 2f8a9ab22..69e011df3 100644 --- a/paperclip/v2/models/struct.License.html +++ b/paperclip/v2/models/struct.License.html @@ -1,20 +1,20 @@ -License in paperclip::v2::models - Rust

    Struct paperclip::v2::models::License

    source ·
    pub struct License {
    +License in paperclip::v2::models - Rust

    Struct paperclip::v2::models::License

    source ·
    pub struct License {
         pub name: Option<String>,
         pub url: Option<String>,
     }
    Expand description

    Fields§

    §name: Option<String>§url: Option<String>

    Trait Implementations§

    source§

    impl Clone for License

    source§

    fn clone(&self) -> License

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for License

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for License

    source§

    fn default() -> License

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for License

    Fields§

    §name: Option<String>§url: Option<String>

    Trait Implementations§

    source§

    impl Clone for License

    source§

    fn clone(&self) -> License

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for License

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for License

    source§

    fn default() -> License

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for License

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<License, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for License

    source§

    fn serialize<__S>( +) -> Result<License, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for License

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,
    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -25,15 +25,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/struct.MediaRange.html b/paperclip/v2/models/struct.MediaRange.html index 62638c041..7ea41df1e 100644 --- a/paperclip/v2/models/struct.MediaRange.html +++ b/paperclip/v2/models/struct.MediaRange.html @@ -1,23 +1,23 @@ -MediaRange in paperclip::v2::models - Rust

    Struct paperclip::v2::models::MediaRange

    source ·
    pub struct MediaRange(pub Mime);
    Expand description

    Wrapper for mime::MediaRange to support BTree{Set, Map}.

    -

    Tuple Fields§

    §0: Mime

    Trait Implementations§

    source§

    impl Clone for MediaRange

    source§

    fn clone(&self) -> MediaRange

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for MediaRange

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for MediaRange

    source§

    fn deserialize<D>( +MediaRange in paperclip::v2::models - Rust

    Struct paperclip::v2::models::MediaRange

    source ·
    pub struct MediaRange(pub Mime);
    Expand description

    Wrapper for mime::MediaRange to support BTree{Set, Map}.

    +

    Tuple Fields§

    §0: Mime

    Trait Implementations§

    source§

    impl Clone for MediaRange

    source§

    fn clone(&self) -> MediaRange

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for MediaRange

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for MediaRange

    source§

    fn deserialize<D>( deserializer: D, -) -> Result<MediaRange, <D as Deserializer<'de>>::Error>
    where - D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Ord for MediaRange

    source§

    fn cmp(&self, other: &MediaRange) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for MediaRange

    source§

    fn eq(&self, other: &MediaRange) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for MediaRange

    source§

    fn partial_cmp(&self, other: &MediaRange) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Serialize for MediaRange

    source§

    fn serialize<S>( +) -> Result<MediaRange, <D as Deserializer<'de>>::Error>
    where + D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Ord for MediaRange

    source§

    fn cmp(&self, other: &MediaRange) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for MediaRange

    source§

    fn eq(&self, other: &MediaRange) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl PartialOrd for MediaRange

    source§

    fn partial_cmp(&self, other: &MediaRange) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    source§

    impl Serialize for MediaRange

    source§

    fn serialize<S>( &self, serializer: S, -) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where - S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Eq for MediaRange

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where +) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where + S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    source§

    impl Eq for MediaRange

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn compare(&self, key: &K) -> Ordering

    Compare self to key and return their ordering.
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, @@ -36,15 +36,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/struct.Operation.html b/paperclip/v2/models/struct.Operation.html index 7d1036dc6..2902e431f 100644 --- a/paperclip/v2/models/struct.Operation.html +++ b/paperclip/v2/models/struct.Operation.html @@ -1,4 +1,4 @@ -Operation in paperclip::v2::models - Rust

    Struct paperclip::v2::models::Operation

    source ·
    pub struct Operation<P, R> {
    +Operation in paperclip::v2::models - Rust

    Struct paperclip::v2::models::Operation

    source ·
    pub struct Operation<P, R> {
         pub operation_id: Option<String>,
         pub summary: Option<String>,
         pub description: Option<String>,
    @@ -16,22 +16,22 @@
     given path template.

    Trait Implementations§

    source§

    impl<P, R> Clone for Operation<P, R>
    where P: Clone, - R: Clone,

    source§

    fn clone(&self) -> Operation<P, R>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<P, R> Debug for Operation<P, R>
    where + R: Clone,

    source§

    fn clone(&self) -> Operation<P, R>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<P, R> Debug for Operation<P, R>
    where P: Debug, R: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl<P, R> Default for Operation<P, R>
    where P: Default, - R: Default,

    source§

    fn default() -> Operation<P, R>

    Returns the “default value” for a type. Read more
    source§

    impl<'de, P, R> Deserialize<'de> for Operation<P, R>
    where - P: Deserialize<'de>, - R: Deserialize<'de>,

    source§

    fn default() -> Operation<P, R>

    Returns the “default value” for a type. Read more
    source§

    impl<'de, P, R> Deserialize<'de> for Operation<P, R>
    where + P: Deserialize<'de>, + R: Deserialize<'de>,

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<Operation<P, R>, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl<P, R> Serialize for Operation<P, R>
    where - P: Serialize, - R: Serialize,

    source§

    fn serialize<__S>( +) -> Result<Operation<P, R>, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl<P, R> Serialize for Operation<P, R>
    where + P: Serialize, + R: Serialize,

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<P, R> Freeze for Operation<P, R>

    §

    impl<P, R> RefUnwindSafe for Operation<P, R>
    where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<P, R> Freeze for Operation<P, R>

    §

    impl<P, R> RefUnwindSafe for Operation<P, R>

    §

    impl<P, R> Send for Operation<P, R>
    where R: Send, @@ -40,11 +40,11 @@ P: Sync,

    §

    impl<P, R> Unpin for Operation<P, R>
    where P: Unpin,

    §

    impl<P, R> UnwindSafe for Operation<P, R>
    where R: RefUnwindSafe, - P: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + P: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -55,15 +55,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/struct.Parameter.html b/paperclip/v2/models/struct.Parameter.html index b51010d9c..6f5275334 100644 --- a/paperclip/v2/models/struct.Parameter.html +++ b/paperclip/v2/models/struct.Parameter.html @@ -1,4 +1,4 @@ -Parameter in paperclip::v2::models - Rust

    Struct paperclip::v2::models::Parameter

    source ·
    pub struct Parameter<S> {
    Show 23 fields +Parameter in paperclip::v2::models - Rust

    Struct paperclip::v2::models::Parameter

    source ·
    pub struct Parameter<S> {
    Show 23 fields pub description: Option<String>, pub in_: ParameterIn, pub name: String, @@ -9,7 +9,7 @@ pub items: Option<Items>, pub collection_format: Option<CollectionFormat>, pub allow_empty_value: bool, - pub default: Option<Value>, + pub default: Option<Value>, pub maximum: Option<f32>, pub exclusive_maximum: Option<bool>, pub minimum: Option<f32>, @@ -21,40 +21,39 @@ pub min_items: Option<u32>, pub unique_items: bool, pub multiple_of: Option<f32>, - pub enum_: Vec<Value>, + pub enum_: Vec<Value>,
    }
    Expand description

    Fields§

    §description: Option<String>§in_: ParameterIn§name: String§required: bool§schema: Option<S>§data_type: Option<DataType>§format: Option<DataTypeFormat>§items: Option<Items>§collection_format: Option<CollectionFormat>§allow_empty_value: bool§default: Option<Value>§maximum: Option<f32>§exclusive_maximum: Option<bool>§minimum: Option<f32>§exclusive_minimum: Option<bool>§max_length: Option<u32>§min_length: Option<u32>§pattern: Option<String>§max_items: Option<u32>§min_items: Option<u32>§unique_items: bool§multiple_of: Option<f32>§enum_: Vec<Value>

    Implementations§

    source§

    impl<S> Parameter<Resolvable<S>>
    where +

    Fields§

    §description: Option<String>§in_: ParameterIn§name: String§required: bool§schema: Option<S>§data_type: Option<DataType>§format: Option<DataTypeFormat>§items: Option<Items>§collection_format: Option<CollectionFormat>§allow_empty_value: bool§default: Option<Value>§maximum: Option<f32>§exclusive_maximum: Option<bool>§minimum: Option<f32>§exclusive_minimum: Option<bool>§max_length: Option<u32>§min_length: Option<u32>§pattern: Option<String>§max_items: Option<u32>§min_items: Option<u32>§unique_items: bool§multiple_of: Option<f32>§enum_: Vec<Value>

    Implementations§

    source§

    impl<S> Parameter<Resolvable<S>>
    where S: Schema,

    source

    pub fn check(&self, path: &str) -> Result<(), ValidationError>

    Checks the validity of this parameter using the relative URL path it’s associated with.

    Trait Implementations§

    source§

    impl<S> Clone for Parameter<S>
    where - S: Clone,

    source§

    fn clone(&self) -> Parameter<S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<S> Debug for Parameter<S>
    where + S: Clone,

    source§

    fn clone(&self) -> Parameter<S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<S> Debug for Parameter<S>
    where S: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl<S> Default for Parameter<S>
    where - S: Default,

    source§

    fn default() -> Parameter<S>

    Returns the “default value” for a type. Read more
    source§

    impl<'de, S> Deserialize<'de> for Parameter<S>
    where - S: Deserialize<'de>,

    source§

    fn default() -> Parameter<S>

    Returns the “default value” for a type. Read more
    source§

    impl<'de, S> Deserialize<'de> for Parameter<S>
    where + S: Deserialize<'de>,

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<Parameter<S>, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Parameter<DefaultSchemaRaw>> for Either<Parameter, Either<RequestBody, Option<Schema>>>

    source§

    fn from( +) -> Result<Parameter<S>, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Parameter<DefaultSchemaRaw>> for Either<Parameter, Either<RequestBody, Option<Schema>>>

    source§

    fn from( v2: Parameter<DefaultSchemaRaw>, ) -> Either<Parameter, Either<RequestBody, Option<Schema>>>

    Converts to this type from the input type.
    source§

    impl<S> PartialEq for Parameter<S>
    where - S: PartialEq,

    source§

    fn eq(&self, other: &Parameter<S>) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl<S> Serialize for Parameter<S>
    where - S: Serialize,

    source§

    fn eq(&self, other: &Parameter<S>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl<S> Serialize for Parameter<S>
    where + S: Serialize,

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl<S> StructuralPartialEq for Parameter<S>

    Auto Trait Implementations§

    §

    impl<S> Freeze for Parameter<S>
    where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl<S> StructuralPartialEq for Parameter<S>

    Auto Trait Implementations§

    §

    impl<S> Freeze for Parameter<S>
    where S: Freeze,

    §

    impl<S> RefUnwindSafe for Parameter<S>
    where S: RefUnwindSafe,

    §

    impl<S> Send for Parameter<S>
    where S: Send,

    §

    impl<S> Sync for Parameter<S>
    where S: Sync,

    §

    impl<S> Unpin for Parameter<S>
    where S: Unpin,

    §

    impl<S> UnwindSafe for Parameter<S>
    where - S: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + S: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -65,15 +64,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/struct.PathItem.html b/paperclip/v2/models/struct.PathItem.html index f11ac7ebd..d8045e850 100644 --- a/paperclip/v2/models/struct.PathItem.html +++ b/paperclip/v2/models/struct.PathItem.html @@ -1,4 +1,4 @@ -PathItem in paperclip::v2::models - Rust

    Struct paperclip::v2::models::PathItem

    source ·
    pub struct PathItem<P, R> {
    +PathItem in paperclip::v2::models - Rust

    Struct paperclip::v2::models::PathItem

    source ·
    pub struct PathItem<P, R> {
         pub methods: BTreeMap<HttpMethod, Operation<P, R>>,
         pub parameters: Vec<Either<Reference, P>>,
     }
    Expand description

    Path item object.

    @@ -10,22 +10,22 @@

    Trait Implementations§

    source§

    impl<P, R> Clone for PathItem<P, R>
    where P: Clone, - R: Clone,

    source§

    fn clone(&self) -> PathItem<P, R>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<P, R> Debug for PathItem<P, R>
    where + R: Clone,

    source§

    fn clone(&self) -> PathItem<P, R>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<P, R> Debug for PathItem<P, R>
    where P: Debug, R: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl<P, R> Default for PathItem<P, R>
    where P: Default, - R: Default,

    source§

    fn default() -> PathItem<P, R>

    Returns the “default value” for a type. Read more
    source§

    impl<'de, P, R> Deserialize<'de> for PathItem<P, R>
    where - P: Deserialize<'de>, - R: Deserialize<'de>,

    source§

    fn default() -> PathItem<P, R>

    Returns the “default value” for a type. Read more
    source§

    impl<'de, P, R> Deserialize<'de> for PathItem<P, R>
    where + P: Deserialize<'de>, + R: Deserialize<'de>,

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<PathItem<P, R>, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl<P, R> Serialize for PathItem<P, R>
    where - P: Serialize, - R: Serialize,

    source§

    fn serialize<__S>( +) -> Result<PathItem<P, R>, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl<P, R> Serialize for PathItem<P, R>
    where + P: Serialize, + R: Serialize,

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<P, R> Freeze for PathItem<P, R>

    §

    impl<P, R> RefUnwindSafe for PathItem<P, R>
    where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<P, R> Freeze for PathItem<P, R>

    §

    impl<P, R> RefUnwindSafe for PathItem<P, R>

    §

    impl<P, R> Send for PathItem<P, R>
    where P: Send, @@ -34,11 +34,11 @@ R: Sync,

    §

    impl<P, R> Unpin for PathItem<P, R>
    where P: Unpin,

    §

    impl<P, R> UnwindSafe for PathItem<P, R>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + R: RefUnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -49,15 +49,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/struct.Reference.html b/paperclip/v2/models/struct.Reference.html index a07d34cf1..d5ed8afe5 100644 --- a/paperclip/v2/models/struct.Reference.html +++ b/paperclip/v2/models/struct.Reference.html @@ -1,21 +1,20 @@ -Reference in paperclip::v2::models - Rust

    Struct paperclip::v2::models::Reference

    source ·
    pub struct Reference {
    +Reference in paperclip::v2::models - Rust

    Struct paperclip::v2::models::Reference

    source ·
    pub struct Reference {
         pub reference: String,
     }
    Expand description

    Fields§

    §reference: String

    Trait Implementations§

    source§

    impl Clone for Reference

    source§

    fn clone(&self) -> Reference

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Reference

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for Reference

    source§

    fn default() -> Reference

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Reference

    Fields§

    §reference: String

    Trait Implementations§

    source§

    impl Clone for Reference

    source§

    fn clone(&self) -> Reference

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Reference

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for Reference

    source§

    fn default() -> Reference

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Reference

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<Reference, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl PartialEq for Reference

    source§

    fn eq(&self, other: &Reference) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Serialize for Reference

    source§

    fn serialize<__S>( +) -> Result<Reference, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl PartialEq for Reference

    source§

    fn eq(&self, other: &Reference) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl Serialize for Reference

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Eq for Reference

    source§

    impl StructuralPartialEq for Reference

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Equivalent<K> for Q
    where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Eq for Reference

    source§

    impl StructuralPartialEq for Reference

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

    §

    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
    where Q: Eq + ?Sized, @@ -32,15 +31,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/struct.Response.html b/paperclip/v2/models/struct.Response.html index a8713bb5e..a5c22bca2 100644 --- a/paperclip/v2/models/struct.Response.html +++ b/paperclip/v2/models/struct.Response.html @@ -1,32 +1,32 @@ -Response in paperclip::v2::models - Rust

    Struct paperclip::v2::models::Response

    source ·
    pub struct Response<S> {
    +Response in paperclip::v2::models - Rust

    Struct paperclip::v2::models::Response

    source ·
    pub struct Response<S> {
         pub description: Option<String>,
         pub schema: Option<S>,
         pub headers: BTreeMap<String, Header>,
     }
    Expand description

    Fields§

    §description: Option<String>§schema: Option<S>§headers: BTreeMap<String, Header>

    Trait Implementations§

    source§

    impl<S> Clone for Response<S>
    where - S: Clone,

    source§

    fn clone(&self) -> Response<S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<S> Debug for Response<S>
    where + S: Clone,

    source§

    fn clone(&self) -> Response<S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<S> Debug for Response<S>
    where S: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl<S> Default for Response<S>
    where - S: Default,

    source§

    fn default() -> Response<S>

    Returns the “default value” for a type. Read more
    source§

    impl<'de, S> Deserialize<'de> for Response<S>
    where - S: Deserialize<'de>,

    source§

    fn default() -> Response<S>

    Returns the “default value” for a type. Read more
    source§

    impl<'de, S> Deserialize<'de> for Response<S>
    where + S: Deserialize<'de>,

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<Response<S>, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl<S> Serialize for Response<S>
    where - S: Serialize,

    source§

    fn serialize<__S>( +) -> Result<Response<S>, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl<S> Serialize for Response<S>
    where + S: Serialize,

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<S> Freeze for Response<S>
    where +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<S> Freeze for Response<S>
    where S: Freeze,

    §

    impl<S> RefUnwindSafe for Response<S>
    where S: RefUnwindSafe,

    §

    impl<S> Send for Response<S>
    where S: Send,

    §

    impl<S> Sync for Response<S>
    where S: Sync,

    §

    impl<S> Unpin for Response<S>
    where S: Unpin,

    §

    impl<S> UnwindSafe for Response<S>
    where - S: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + S: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -37,15 +37,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/struct.SecurityScheme.html b/paperclip/v2/models/struct.SecurityScheme.html index 1aedd1841..8f31d741b 100644 --- a/paperclip/v2/models/struct.SecurityScheme.html +++ b/paperclip/v2/models/struct.SecurityScheme.html @@ -1,4 +1,4 @@ -SecurityScheme in paperclip::v2::models - Rust

    Struct paperclip::v2::models::SecurityScheme

    source ·
    pub struct SecurityScheme {
    +SecurityScheme in paperclip::v2::models - Rust

    Struct paperclip::v2::models::SecurityScheme

    source ·
    pub struct SecurityScheme {
         pub name: Option<String>,
         pub type_: String,
         pub in_: Option<String>,
    @@ -18,18 +18,18 @@
         old: BTreeMap<String, SecurityScheme>,
         new: &mut BTreeMap<String, SecurityScheme>,
     )

    Appends one map to the other whilst merging individual scheme properties.

    -

    Trait Implementations§

    source§

    impl Clone for SecurityScheme

    source§

    fn clone(&self) -> SecurityScheme

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for SecurityScheme

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for SecurityScheme

    source§

    fn default() -> SecurityScheme

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for SecurityScheme

    Trait Implementations§

    source§

    impl Clone for SecurityScheme

    source§

    fn clone(&self) -> SecurityScheme

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for SecurityScheme

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for SecurityScheme

    source§

    fn default() -> SecurityScheme

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for SecurityScheme

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<SecurityScheme, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for SecurityScheme

    source§

    fn serialize<__S>( +) -> Result<SecurityScheme, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for SecurityScheme

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,
    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -40,15 +40,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/struct.Tag.html b/paperclip/v2/models/struct.Tag.html index 7a3d3491e..cb097ce51 100644 --- a/paperclip/v2/models/struct.Tag.html +++ b/paperclip/v2/models/struct.Tag.html @@ -1,21 +1,21 @@ -Tag in paperclip::v2::models - Rust

    Struct paperclip::v2::models::Tag

    source ·
    pub struct Tag {
    +Tag in paperclip::v2::models - Rust

    Struct paperclip::v2::models::Tag

    source ·
    pub struct Tag {
         pub name: String,
         pub description: Option<String>,
         pub external_docs: Option<ExternalDocs>,
     }
    Expand description

    Fields§

    §name: String§description: Option<String>§external_docs: Option<ExternalDocs>

    Trait Implementations§

    source§

    impl Clone for Tag

    source§

    fn clone(&self) -> Tag

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Tag

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for Tag

    source§

    fn default() -> Tag

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Tag

    Fields§

    §name: String§description: Option<String>§external_docs: Option<ExternalDocs>

    Trait Implementations§

    source§

    impl Clone for Tag

    source§

    fn clone(&self) -> Tag

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Tag

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for Tag

    source§

    fn default() -> Tag

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Tag

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<Tag, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for Tag

    source§

    fn serialize<__S>( +) -> Result<Tag, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for Tag

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Tag

    §

    impl RefUnwindSafe for Tag

    §

    impl Send for Tag

    §

    impl Sync for Tag

    §

    impl Unpin for Tag

    §

    impl UnwindSafe for Tag

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,
    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Tag

    §

    impl RefUnwindSafe for Tag

    §

    impl Send for Tag

    §

    impl Sync for Tag

    §

    impl Unpin for Tag

    §

    impl UnwindSafe for Tag

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -26,15 +26,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/models/type.DefaultApiRaw.html b/paperclip/v2/models/type.DefaultApiRaw.html index 663839d09..230ea30fd 100644 --- a/paperclip/v2/models/type.DefaultApiRaw.html +++ b/paperclip/v2/models/type.DefaultApiRaw.html @@ -1,4 +1,4 @@ -DefaultApiRaw in paperclip::v2::models - Rust

    Type Alias paperclip::v2::models::DefaultApiRaw

    source ·
    pub type DefaultApiRaw = Api<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>, DefaultSchemaRaw>;
    Expand description

    OpenAPI v2 spec with defaults.

    +DefaultApiRaw in paperclip::v2::models - Rust

    Type Alias paperclip::v2::models::DefaultApiRaw

    source ·
    pub type DefaultApiRaw = Api<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>, DefaultSchemaRaw>;
    Expand description

    OpenAPI v2 spec with defaults.

    Aliased Type§

    struct DefaultApiRaw {
    Show 19 fields pub swagger: Version, pub definitions: BTreeMap<String, DefaultSchemaRaw>, @@ -18,7 +18,7 @@ pub support_crates: BTreeMap<String, String>, pub spec_format: SpecFormat, pub info: Info, - pub extensions: BTreeMap<String, Value>, + pub extensions: BTreeMap<String, Value>,
    }

    Fields§

    §swagger: Version§definitions: BTreeMap<String, DefaultSchemaRaw>§paths: BTreeMap<String, PathItem<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>>§host: Option<String>§base_path: Option<String>§consumes: BTreeSet<MediaRange>§produces: BTreeSet<MediaRange>§schemes: BTreeSet<OperationProtocol>§parameters: BTreeMap<String, Parameter<DefaultSchemaRaw>>§responses: BTreeMap<String, Response<DefaultSchemaRaw>>§security_definitions: BTreeMap<String, SecurityScheme>§security: Vec<BTreeMap<String, BTreeSet<String>>>§tags: Vec<Tag>§external_docs: Option<ExternalDocs>§coders: Coders

    Extension for custom coders to be used for decoding API objects.

    An example for JSON would be:

    x-rust-coders:
    @@ -36,10 +36,10 @@
     wherever required.

    For example, the following are all valid:

      -
    • my_crate: "0.7"
    • -
    • my_crate: "{ git = \"git://foo.bar/repo\" }"
    • -
    • my_crate: "{ version = \"0.9\", features = [\"booya\"] }"
    • +
    • my_crate: "0.7"
    • +
    • my_crate: "{ git = \"git://foo.bar/repo\" }"
    • +
    • my_crate: "{ version = \"0.9\", features = [\"booya\"] }"
    §spec_format: SpecFormat

    This field is set manually, because we don’t know the format in which the spec was provided and we need to use this as the fallback encoding.

    -
    §info: Info§extensions: BTreeMap<String, Value>
    \ No newline at end of file +
    §info: Info§extensions: BTreeMap<String, Value>
    \ No newline at end of file diff --git a/paperclip/v2/models/type.DefaultOperationRaw.html b/paperclip/v2/models/type.DefaultOperationRaw.html index dc74c1ef7..69c46fc9d 100644 --- a/paperclip/v2/models/type.DefaultOperationRaw.html +++ b/paperclip/v2/models/type.DefaultOperationRaw.html @@ -1,4 +1,4 @@ -DefaultOperationRaw in paperclip::v2::models - Rust

    Type Alias paperclip::v2::models::DefaultOperationRaw

    source ·
    pub type DefaultOperationRaw = Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>;
    Expand description

    Operation with default raw parameter and response.

    +DefaultOperationRaw in paperclip::v2::models - Rust

    Type Alias paperclip::v2::models::DefaultOperationRaw

    source ·
    pub type DefaultOperationRaw = Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>;
    Expand description

    Operation with default raw parameter and response.

    Aliased Type§

    struct DefaultOperationRaw {
         pub operation_id: Option<String>,
         pub summary: Option<String>,
    diff --git a/paperclip/v2/models/type.DefaultParameterRaw.html b/paperclip/v2/models/type.DefaultParameterRaw.html
    index 0af1f0386..9803f8704 100644
    --- a/paperclip/v2/models/type.DefaultParameterRaw.html
    +++ b/paperclip/v2/models/type.DefaultParameterRaw.html
    @@ -1,4 +1,4 @@
    -DefaultParameterRaw in paperclip::v2::models - Rust

    Type Alias paperclip::v2::models::DefaultParameterRaw

    source ·
    pub type DefaultParameterRaw = Parameter<DefaultSchemaRaw>;
    Expand description

    Parameter with the default raw schema.

    +DefaultParameterRaw in paperclip::v2::models - Rust

    Type Alias paperclip::v2::models::DefaultParameterRaw

    source ·
    pub type DefaultParameterRaw = Parameter<DefaultSchemaRaw>;
    Expand description

    Parameter with the default raw schema.

    Aliased Type§

    struct DefaultParameterRaw {
    Show 23 fields pub description: Option<String>, pub in_: ParameterIn, @@ -10,7 +10,7 @@ pub items: Option<Items>, pub collection_format: Option<CollectionFormat>, pub allow_empty_value: bool, - pub default: Option<Value>, + pub default: Option<Value>, pub maximum: Option<f32>, pub exclusive_maximum: Option<bool>, pub minimum: Option<f32>, @@ -22,5 +22,5 @@ pub min_items: Option<u32>, pub unique_items: bool, pub multiple_of: Option<f32>, - pub enum_: Vec<Value>, -
    }

    Fields§

    §description: Option<String>§in_: ParameterIn§name: String§required: bool§schema: Option<DefaultSchemaRaw>§data_type: Option<DataType>§format: Option<DataTypeFormat>§items: Option<Items>§collection_format: Option<CollectionFormat>§allow_empty_value: bool§default: Option<Value>§maximum: Option<f32>§exclusive_maximum: Option<bool>§minimum: Option<f32>§exclusive_minimum: Option<bool>§max_length: Option<u32>§min_length: Option<u32>§pattern: Option<String>§max_items: Option<u32>§min_items: Option<u32>§unique_items: bool§multiple_of: Option<f32>§enum_: Vec<Value>
    \ No newline at end of file + pub enum_: Vec<Value>, +
    }

    Fields§

    §description: Option<String>§in_: ParameterIn§name: String§required: bool§schema: Option<DefaultSchemaRaw>§data_type: Option<DataType>§format: Option<DataTypeFormat>§items: Option<Items>§collection_format: Option<CollectionFormat>§allow_empty_value: bool§default: Option<Value>§maximum: Option<f32>§exclusive_maximum: Option<bool>§minimum: Option<f32>§exclusive_minimum: Option<bool>§max_length: Option<u32>§min_length: Option<u32>§pattern: Option<String>§max_items: Option<u32>§min_items: Option<u32>§unique_items: bool§multiple_of: Option<f32>§enum_: Vec<Value>
    \ No newline at end of file diff --git a/paperclip/v2/models/type.DefaultPathItemRaw.html b/paperclip/v2/models/type.DefaultPathItemRaw.html index 06d2a02d2..1daf6c93b 100644 --- a/paperclip/v2/models/type.DefaultPathItemRaw.html +++ b/paperclip/v2/models/type.DefaultPathItemRaw.html @@ -1,4 +1,4 @@ -DefaultPathItemRaw in paperclip::v2::models - Rust

    Type Alias paperclip::v2::models::DefaultPathItemRaw

    source ·
    pub type DefaultPathItemRaw = PathItem<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>;
    Expand description

    Path item with default parameter and response.

    +DefaultPathItemRaw in paperclip::v2::models - Rust

    Type Alias paperclip::v2::models::DefaultPathItemRaw

    source ·
    pub type DefaultPathItemRaw = PathItem<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>;
    Expand description

    Path item with default parameter and response.

    Aliased Type§

    struct DefaultPathItemRaw {
         pub methods: BTreeMap<HttpMethod, Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>>,
         pub parameters: Vec<Either<Reference, Parameter<DefaultSchemaRaw>>>,
    diff --git a/paperclip/v2/models/type.DefaultResponseRaw.html b/paperclip/v2/models/type.DefaultResponseRaw.html
    index 1ef2100ee..00853913b 100644
    --- a/paperclip/v2/models/type.DefaultResponseRaw.html
    +++ b/paperclip/v2/models/type.DefaultResponseRaw.html
    @@ -1,4 +1,4 @@
    -DefaultResponseRaw in paperclip::v2::models - Rust

    Type Alias paperclip::v2::models::DefaultResponseRaw

    source ·
    pub type DefaultResponseRaw = Response<DefaultSchemaRaw>;
    Expand description

    Response with the default raw schema.

    +DefaultResponseRaw in paperclip::v2::models - Rust

    Type Alias paperclip::v2::models::DefaultResponseRaw

    source ·
    pub type DefaultResponseRaw = Response<DefaultSchemaRaw>;
    Expand description

    Response with the default raw schema.

    Aliased Type§

    struct DefaultResponseRaw {
         pub description: Option<String>,
         pub schema: Option<DefaultSchemaRaw>,
    diff --git a/paperclip/v2/models/type.ResolvableApi.html b/paperclip/v2/models/type.ResolvableApi.html
    index 1e065f959..31f21a901 100644
    --- a/paperclip/v2/models/type.ResolvableApi.html
    +++ b/paperclip/v2/models/type.ResolvableApi.html
    @@ -1,4 +1,4 @@
    -ResolvableApi in paperclip::v2::models - Rust

    Type Alias paperclip::v2::models::ResolvableApi

    source ·
    pub type ResolvableApi<S> = Api<Arc<RwLock<Parameter<Resolvable<S>>>>, Arc<RwLock<Response<Resolvable<S>>>>, Resolvable<S>>;
    Expand description

    OpenAPI v2 spec which can be traversed and resolved for codegen.

    +ResolvableApi in paperclip::v2::models - Rust

    Type Alias paperclip::v2::models::ResolvableApi

    source ·
    pub type ResolvableApi<S> = Api<Arc<RwLock<Parameter<Resolvable<S>>>>, Arc<RwLock<Response<Resolvable<S>>>>, Resolvable<S>>;
    Expand description

    OpenAPI v2 spec which can be traversed and resolved for codegen.

    Aliased Type§

    struct ResolvableApi<S> {
    Show 19 fields pub swagger: Version, pub definitions: BTreeMap<String, Resolvable<S>>, @@ -18,7 +18,7 @@ pub support_crates: BTreeMap<String, String>, pub spec_format: SpecFormat, pub info: Info, - pub extensions: BTreeMap<String, Value>, + pub extensions: BTreeMap<String, Value>,
    }

    Fields§

    §swagger: Version§definitions: BTreeMap<String, Resolvable<S>>§paths: BTreeMap<String, PathItem<Arc<RwLock<Parameter<Resolvable<S>>>>, Arc<RwLock<Response<Resolvable<S>>>>>>§host: Option<String>§base_path: Option<String>§consumes: BTreeSet<MediaRange>§produces: BTreeSet<MediaRange>§schemes: BTreeSet<OperationProtocol>§parameters: BTreeMap<String, Arc<RwLock<Parameter<Resolvable<S>>>>>§responses: BTreeMap<String, Arc<RwLock<Response<Resolvable<S>>>>>§security_definitions: BTreeMap<String, SecurityScheme>§security: Vec<BTreeMap<String, BTreeSet<String>>>§tags: Vec<Tag>§external_docs: Option<ExternalDocs>§coders: Coders

    Extension for custom coders to be used for decoding API objects.

    An example for JSON would be:

    x-rust-coders:
    @@ -36,10 +36,10 @@
     wherever required.

    For example, the following are all valid:

      -
    • my_crate: "0.7"
    • -
    • my_crate: "{ git = \"git://foo.bar/repo\" }"
    • -
    • my_crate: "{ version = \"0.9\", features = [\"booya\"] }"
    • +
    • my_crate: "0.7"
    • +
    • my_crate: "{ git = \"git://foo.bar/repo\" }"
    • +
    • my_crate: "{ version = \"0.9\", features = [\"booya\"] }"
    §spec_format: SpecFormat

    This field is set manually, because we don’t know the format in which the spec was provided and we need to use this as the fallback encoding.

    -
    §info: Info§extensions: BTreeMap<String, Value>
    \ No newline at end of file +
    §info: Info§extensions: BTreeMap<String, Value>
    \ No newline at end of file diff --git a/paperclip/v2/models/type.ResolvableOperation.html b/paperclip/v2/models/type.ResolvableOperation.html index 54fb3fae8..dd8fbded2 100644 --- a/paperclip/v2/models/type.ResolvableOperation.html +++ b/paperclip/v2/models/type.ResolvableOperation.html @@ -1,4 +1,4 @@ -ResolvableOperation in paperclip::v2::models - Rust

    Type Alias paperclip::v2::models::ResolvableOperation

    source ·
    pub type ResolvableOperation<S> = Operation<Arc<RwLock<Parameter<Resolvable<S>>>>, Arc<RwLock<Response<Resolvable<S>>>>>;
    Expand description

    Operation that can be traversed and resolved for codegen.

    +ResolvableOperation in paperclip::v2::models - Rust

    Type Alias paperclip::v2::models::ResolvableOperation

    source ·
    pub type ResolvableOperation<S> = Operation<Arc<RwLock<Parameter<Resolvable<S>>>>, Arc<RwLock<Response<Resolvable<S>>>>>;
    Expand description

    Operation that can be traversed and resolved for codegen.

    Aliased Type§

    struct ResolvableOperation<S> {
         pub operation_id: Option<String>,
         pub summary: Option<String>,
    diff --git a/paperclip/v2/models/type.ResolvableParameter.html b/paperclip/v2/models/type.ResolvableParameter.html
    index 413331223..fb1690fdd 100644
    --- a/paperclip/v2/models/type.ResolvableParameter.html
    +++ b/paperclip/v2/models/type.ResolvableParameter.html
    @@ -1,2 +1,2 @@
    -ResolvableParameter in paperclip::v2::models - Rust

    Type Alias paperclip::v2::models::ResolvableParameter

    source ·
    pub type ResolvableParameter<S> = Arc<RwLock<Parameter<Resolvable<S>>>>;
    Expand description

    Parameter that can be traversed and resolved for codegen.

    +ResolvableParameter in paperclip::v2::models - Rust

    Type Alias paperclip::v2::models::ResolvableParameter

    source ·
    pub type ResolvableParameter<S> = Arc<RwLock<Parameter<Resolvable<S>>>>;
    Expand description

    Parameter that can be traversed and resolved for codegen.

    Aliased Type§

    struct ResolvableParameter<S> { /* private fields */ }
    \ No newline at end of file diff --git a/paperclip/v2/models/type.ResolvablePathItem.html b/paperclip/v2/models/type.ResolvablePathItem.html index a94a77b7e..4e8bb6ea4 100644 --- a/paperclip/v2/models/type.ResolvablePathItem.html +++ b/paperclip/v2/models/type.ResolvablePathItem.html @@ -1,4 +1,4 @@ -ResolvablePathItem in paperclip::v2::models - Rust

    Type Alias paperclip::v2::models::ResolvablePathItem

    source ·
    pub type ResolvablePathItem<S> = PathItem<Arc<RwLock<Parameter<Resolvable<S>>>>, Arc<RwLock<Response<Resolvable<S>>>>>;
    Expand description

    Path item that can be traversed and resolved for codegen.

    +ResolvablePathItem in paperclip::v2::models - Rust

    Type Alias paperclip::v2::models::ResolvablePathItem

    source ·
    pub type ResolvablePathItem<S> = PathItem<Arc<RwLock<Parameter<Resolvable<S>>>>, Arc<RwLock<Response<Resolvable<S>>>>>;
    Expand description

    Path item that can be traversed and resolved for codegen.

    Aliased Type§

    struct ResolvablePathItem<S> {
         pub methods: BTreeMap<HttpMethod, Operation<Arc<RwLock<Parameter<Resolvable<S>>>>, Arc<RwLock<Response<Resolvable<S>>>>>>,
         pub parameters: Vec<Either<Reference, Arc<RwLock<Parameter<Resolvable<S>>>>>>,
    diff --git a/paperclip/v2/models/type.ResolvableResponse.html b/paperclip/v2/models/type.ResolvableResponse.html
    index 5a43f3fbe..524c5a1b5 100644
    --- a/paperclip/v2/models/type.ResolvableResponse.html
    +++ b/paperclip/v2/models/type.ResolvableResponse.html
    @@ -1,2 +1,2 @@
    -ResolvableResponse in paperclip::v2::models - Rust

    Type Alias paperclip::v2::models::ResolvableResponse

    source ·
    pub type ResolvableResponse<S> = Arc<RwLock<Response<Resolvable<S>>>>;
    Expand description

    Response that can be traversed and resolved for codegen.

    +ResolvableResponse in paperclip::v2::models - Rust

    Type Alias paperclip::v2::models::ResolvableResponse

    source ·
    pub type ResolvableResponse<S> = Arc<RwLock<Response<Resolvable<S>>>>;
    Expand description

    Response that can be traversed and resolved for codegen.

    Aliased Type§

    struct ResolvableResponse<S> { /* private fields */ }
    \ No newline at end of file diff --git a/paperclip/v2/schema/index.html b/paperclip/v2/schema/index.html index 4a716aab1..69ffe1f13 100644 --- a/paperclip/v2/schema/index.html +++ b/paperclip/v2/schema/index.html @@ -1,5 +1,5 @@ -paperclip::v2::schema - Rust

    Module paperclip::v2::schema

    source ·
    Expand description

    Traits used for code and spec generation.

    -

    Traits§

    • Represents a OpenAPI v2 error convertible. This is auto-implemented by -framework-specific macros:
    • Represents a OpenAPI v2 operation convertible. This is auto-implemented by -framework-specific macros:
    • Represents a OpenAPI v2 schema object convertible. This is auto-implemented by -framework-specific macros:
    • Interface for the Schema object.
    • Trait for returning OpenAPI data type and format for the implementor.
    \ No newline at end of file +paperclip::v2::schema - Rust

    Module paperclip::v2::schema

    source ·
    Expand description

    Traits used for code and spec generation.

    +

    Traits§

    • Represents a OpenAPI v2 error convertible. This is auto-implemented by +framework-specific macros:
    • Represents a OpenAPI v2 operation convertible. This is auto-implemented by +framework-specific macros:
    • Represents a OpenAPI v2 schema object convertible. This is auto-implemented by +framework-specific macros:
    • Interface for the Schema object.
    • Trait for returning OpenAPI data type and format for the implementor.
    \ No newline at end of file diff --git a/paperclip/v2/schema/trait.Apiv2Errors.html b/paperclip/v2/schema/trait.Apiv2Errors.html index 3529cc4f0..07d0307b5 100644 --- a/paperclip/v2/schema/trait.Apiv2Errors.html +++ b/paperclip/v2/schema/trait.Apiv2Errors.html @@ -1,4 +1,4 @@ -Apiv2Errors in paperclip::v2::schema - Rust

    Trait paperclip::v2::schema::Apiv2Errors

    source ·
    pub trait Apiv2Errors {
    +Apiv2Errors in paperclip::v2::schema - Rust

    Trait paperclip::v2::schema::Apiv2Errors

    source ·
    pub trait Apiv2Errors {
         const ERROR_MAP: &'static [(u16, &'static str)] = _;
     
         // Provided methods
    @@ -11,6 +11,6 @@
     
    -

    Provided Associated Constants§

    source

    const ERROR_MAP: &'static [(u16, &'static str)] = _

    Provided Methods§

    Provided Associated Constants§

    source

    const ERROR_MAP: &'static [(u16, &'static str)] = _

    Provided Methods§

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl Apiv2Errors for ()

    source§

    impl Apiv2Errors for Error

    Implementors§

    \ No newline at end of file +)
    source

    fn update_definitions(_map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl Apiv2Errors for ()

    source§

    impl Apiv2Errors for Error

    Implementors§

    \ No newline at end of file diff --git a/paperclip/v2/schema/trait.Apiv2Operation.html b/paperclip/v2/schema/trait.Apiv2Operation.html index a7b9aa650..c202b3c3a 100644 --- a/paperclip/v2/schema/trait.Apiv2Operation.html +++ b/paperclip/v2/schema/trait.Apiv2Operation.html @@ -1,4 +1,4 @@ -Apiv2Operation in paperclip::v2::schema - Rust

    Trait paperclip::v2::schema::Apiv2Operation

    source ·
    pub trait Apiv2Operation {
    +Apiv2Operation in paperclip::v2::schema - Rust

    Trait paperclip::v2::schema::Apiv2Operation

    source ·
    pub trait Apiv2Operation {
         // Required methods
         fn operation(    ) -> Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>;
         fn security_definitions() -> BTreeMap<String, SecurityScheme>;
    @@ -13,11 +13,11 @@
     
     

    NOTE: The type parameters specified here aren’t used by the trait itself, but can be used for constraining stuff in framework-related impls.

    -

    Required Methods§

    source

    fn operation() -> Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>

    Returns the definition for this operation.

    -
    source

    fn security_definitions() -> BTreeMap<String, SecurityScheme>

    Returns a map of security definitions that will be merged globally.

    -
    source

    fn definitions() -> BTreeMap<String, DefaultSchemaRaw>

    Returns the definitions used by this operation.

    -

    Provided Methods§

    Object Safety§

    This trait is not object safe.

    Implementors§

    source§

    impl<F> Apiv2Operation for F
    where - F: Future<Output = HttpResponseWrapper>,

    source§

    impl<F, T, H> Apiv2Operation for ResponseWrapper<F, H>
    where +

    Required Methods§

    source

    fn operation() -> Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>

    Returns the definition for this operation.

    +
    source

    fn security_definitions() -> BTreeMap<String, SecurityScheme>

    Returns a map of security definitions that will be merged globally.

    +
    source

    fn definitions() -> BTreeMap<String, DefaultSchemaRaw>

    Returns the definitions used by this operation.

    +

    Provided Methods§

    Object Safety§

    This trait is not object safe.

    Implementors§

    source§

    impl<F> Apiv2Operation for F
    where + F: Future<Output = HttpResponseWrapper>,

    source§

    impl<F, T, H> Apiv2Operation for ResponseWrapper<F, H>
    where F: Future<Output = T>, T: OperationModifier + Responder, H: Apiv2Operation,

    \ No newline at end of file diff --git a/paperclip/v2/schema/trait.Apiv2Schema.html b/paperclip/v2/schema/trait.Apiv2Schema.html index 14612919a..779fa3a05 100644 --- a/paperclip/v2/schema/trait.Apiv2Schema.html +++ b/paperclip/v2/schema/trait.Apiv2Schema.html @@ -1,4 +1,4 @@ -Apiv2Schema in paperclip::v2::schema - Rust

    Trait paperclip::v2::schema::Apiv2Schema

    source ·
    pub trait Apiv2Schema {
    +Apiv2Schema in paperclip::v2::schema - Rust

    Trait paperclip::v2::schema::Apiv2Schema

    source ·
    pub trait Apiv2Schema {
         // Provided methods
         fn name() -> Option<String> { ... }
         fn description() -> &'static str { ... }
    @@ -18,11 +18,11 @@
     for header parameters objects.
     
     

    This is implemented for primitive types by default.

    -

    Provided Methods§

    source

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.

    -
    source

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.

    -
    source

    fn required() -> bool

    Indicates the requirement of this schema.

    -
    source

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.

    -
    source

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object).

    +

    Provided Methods§

    source

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.

    +
    source

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.

    +
    source

    fn required() -> bool

    Indicates the requirement of this schema.

    +
    source

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.

    +
    source

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object).

    Here, we set the global reference to this object using its name, and we either remove the reference (remove_refs) or remove all properties other than the reference (retain_ref) based on where @@ -33,83 +33,83 @@ and so I went for runtime collection. Even though this happens at runtime, we’re only doing this once at the start of the application, so it won’t affect the incoming requests at all.

    -
    source

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.

    -
    source

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl Apiv2Schema for Value

    source§

    impl Apiv2Schema for Value

    source§

    impl Apiv2Schema for ()

    source§

    impl Apiv2Schema for Response<BoxBody>

    source§

    impl<'a, T> Apiv2Schema for &'a [T]
    where - T: Apiv2Schema,

    source§

    impl<K, V> Apiv2Schema for BTreeMap<K, V>
    where +

    source

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.

    +
    source

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl Apiv2Schema for Value

    source§

    impl Apiv2Schema for Value

    source§

    impl Apiv2Schema for ()

    source§

    impl Apiv2Schema for Response<BoxBody>

    source§

    impl<'a, T> Apiv2Schema for &'a [T]
    where + T: Apiv2Schema,

    source§

    impl<K, V> Apiv2Schema for BTreeMap<K, V>
    where K: ToString, - V: Apiv2Schema,

    source§

    impl<K, V> Apiv2Schema for HashMap<K, V>
    where + V: Apiv2Schema,

    source§

    impl<K, V> Apiv2Schema for HashMap<K, V>
    where K: ToString, - V: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for Cow<'_, T>
    where - T: Apiv2Schema + Clone,

    source§

    impl<T> Apiv2Schema for Option<T>
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 0]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 1]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 2]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 3]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 4]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 5]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 6]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 7]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 8]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 9]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 10]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 11]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 12]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 13]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 14]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 15]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 16]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 17]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 18]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 19]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 20]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 21]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 22]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 23]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 24]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 25]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 26]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 27]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 28]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 29]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 30]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 31]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 32]
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for BinaryHeap<T>
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for BTreeSet<T>
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for LinkedList<T>
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for VecDeque<T>
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for Vec<T>
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for HashSet<T>
    where - T: Apiv2Schema,

    source§

    impl<T, E> Apiv2Schema for Result<T, E>
    where - T: Apiv2Schema,

    Implementors§

    source§

    impl<T> Apiv2Schema for Cow<'_, T>
    where + T: Apiv2Schema + Clone,

    source§

    impl<T> Apiv2Schema for Option<T>
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 0]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 1]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 2]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 3]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 4]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 5]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 6]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 7]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 8]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 9]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 10]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 11]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 12]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 13]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 14]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 15]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 16]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 17]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 18]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 19]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 20]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 21]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 22]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 23]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 24]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 25]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 26]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 27]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 28]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 29]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 30]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 31]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for [T; 32]
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for BinaryHeap<T>
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for BTreeSet<T>
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for LinkedList<T>
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for VecDeque<T>
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for Vec<T>
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for HashSet<T>
    where + T: Apiv2Schema,

    source§

    impl<T, E> Apiv2Schema for Result<T, E>
    where + T: Apiv2Schema,

    Implementors§

    source§

    impl Apiv2Schema for NoContent

    source§

    impl Apiv2Schema for Bytes

    source§

    impl Apiv2Schema for HttpRequest

    source§

    impl Apiv2Schema for HttpResponse

    source§

    impl Apiv2Schema for Payload

    source§

    impl<A> Apiv2Schema for Path<(A,)>
    where + A: Apiv2Schema,

    source§

    impl<A, B> Apiv2Schema for Path<(A, B)>
    where A: Apiv2Schema, - B: Apiv2Schema,

    source§

    impl<A, B, C> Apiv2Schema for Path<(A, B, C)>
    where + B: Apiv2Schema,

    source§

    impl<A, B, C> Apiv2Schema for Path<(A, B, C)>
    where A: Apiv2Schema, B: Apiv2Schema, - C: Apiv2Schema,

    source§

    impl<A, B, C, D> Apiv2Schema for Path<(A, B, C, D)>
    where + C: Apiv2Schema,

    source§

    impl<A, B, C, D> Apiv2Schema for Path<(A, B, C, D)>

    source§

    impl<A, B, C, D, E> Apiv2Schema for Path<(A, B, C, D, E)>
    where + D: Apiv2Schema,

    source§

    impl<A, B, C, D, E> Apiv2Schema for Path<(A, B, C, D, E)>

    source§

    impl<A, B, C, D, E, F> Apiv2Schema for Path<(A, B, C, D, E, F)>
    where + E: Apiv2Schema,

    source§

    impl<A, B, C, D, E, F> Apiv2Schema for Path<(A, B, C, D, E, F)>

    source§

    impl<A, B, C, D, E, F, G> Apiv2Schema for Path<(A, B, C, D, E, F, G)>
    where + F: Apiv2Schema,

    source§

    impl<A, B, C, D, E, F, G> Apiv2Schema for Path<(A, B, C, D, E, F, G)>

    source§

    impl<A, B, C, D, E, F, G, H> Apiv2Schema for Path<(A, B, C, D, E, F, G, H)>
    where + G: Apiv2Schema,

    source§

    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, @@ -117,7 +117,7 @@ E: Apiv2Schema, F: Apiv2Schema, G: Apiv2Schema, - H: Apiv2Schema,

    source§

    impl<A, B, C, D, E, F, G, H, I> Apiv2Schema for Path<(A, B, C, D, E, F, G, H, I)>
    where + H: Apiv2Schema,

    source§

    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, @@ -126,7 +126,7 @@ F: Apiv2Schema, G: Apiv2Schema, H: Apiv2Schema, - I: Apiv2Schema,

    source§

    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 + I: Apiv2Schema,

    source§

    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, @@ -136,7 +136,7 @@ G: Apiv2Schema, H: Apiv2Schema, I: Apiv2Schema, - J: Apiv2Schema,

    source§

    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 + J: Apiv2Schema,

    source§

    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, @@ -147,7 +147,7 @@ H: Apiv2Schema, I: Apiv2Schema, J: Apiv2Schema, - K: Apiv2Schema,

    source§

    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 + K: Apiv2Schema,

    source§

    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, @@ -159,7 +159,7 @@ I: Apiv2Schema, J: Apiv2Schema, K: Apiv2Schema, - L: Apiv2Schema,

    source§

    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 + L: Apiv2Schema,

    source§

    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, @@ -172,14 +172,14 @@ J: Apiv2Schema, K: Apiv2Schema, L: Apiv2Schema, - M: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for AcceptedJson<T>
    where - T: Serialize + Apiv2Schema,

    source§

    impl<T> Apiv2Schema for CreatedJson<T>
    where - T: Serialize + Apiv2Schema,

    source§

    impl<T> Apiv2Schema for ResponderWrapper<T>
    where - T: Responder,

    source§

    impl<T> Apiv2Schema for Data<T>

    source§

    impl<T> Apiv2Schema for Form<T>
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for Json<T>
    where + M: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for AcceptedJson<T>
    where + T: Serialize + Apiv2Schema,

    source§

    impl<T> Apiv2Schema for CreatedJson<T>
    where + T: Serialize + Apiv2Schema,

    source§

    impl<T> Apiv2Schema for ResponderWrapper<T>
    where + T: Responder,

    source§

    impl<T> Apiv2Schema for Data<T>

    source§

    impl<T> Apiv2Schema for Form<T>
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for Json<T>
    where T: Apiv2Schema,

    JSON needs specialization because it updates the global definitions.

    -
    source§

    impl<T> Apiv2Schema for Path<T>
    where - T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for Query<T>
    where +
    source§

    impl<T> Apiv2Schema for Path<T>
    where + T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for Query<T>
    where T: Apiv2Schema,

    source§

    impl<T> Apiv2Schema for ReqData<T>
    where - T: Clone,

    source§

    impl<T> Apiv2Schema for T
    where - T: TypedData,

    \ No newline at end of file + T: Clone,
    source§

    impl<T> Apiv2Schema for T
    where + T: TypedData,

    \ No newline at end of file diff --git a/paperclip/v2/schema/trait.Schema.html b/paperclip/v2/schema/trait.Schema.html index ec8374f04..dc61705a6 100644 --- a/paperclip/v2/schema/trait.Schema.html +++ b/paperclip/v2/schema/trait.Schema.html @@ -1,4 +1,4 @@ -Schema in paperclip::v2::schema - Rust

    Trait paperclip::v2::schema::Schema

    source ·
    pub trait Schema: Sized {
    +Schema in paperclip::v2::schema - Rust

    Trait paperclip::v2::schema::Schema

    source ·
    pub trait Schema: Sized {
     
    Show 18 methods // Required methods fn description(&self) -> Option<&str>; fn reference(&self) -> Option<&str>; @@ -15,7 +15,7 @@ &mut self, ) -> Option<&mut BTreeMap<String, Resolvable<Self>>>; fn required_properties(&self) -> Option<&BTreeSet<String>>; - fn enum_variants(&self) -> Option<&[Value]>; + fn enum_variants(&self) -> Option<&[Value]>; fn set_reference(&mut self, ref_: String); fn set_cyclic(&mut self, cyclic: bool); fn is_cyclic(&self) -> bool; @@ -41,7 +41,7 @@
    source

    fn properties(&self) -> Option<&BTreeMap<String, Resolvable<Self>>>

    Map of names and schema for properties, if it’s an object (properties field)

    source

    fn properties_mut(&mut self) -> Option<&mut BTreeMap<String, Resolvable<Self>>>

    Mutable access to properties field.

    source

    fn required_properties(&self) -> Option<&BTreeSet<String>>

    Returns the required properties (if any) for this object.

    -
    source

    fn enum_variants(&self) -> Option<&[Value]>

    Enum variants in this schema (if any). It’s serde_json::Value +

    source

    fn enum_variants(&self) -> Option<&[Value]>

    Enum variants in this schema (if any). It’s serde_json::Value because:

    source

    fn max() -> Option<f32>

    source

    fn min() -> Option<f32>

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl TypedData for IpAddr

    source§

    impl TypedData for bool

    source§

    impl TypedData for char

    source§

    impl TypedData for f32

    source§

    impl TypedData for f64

    source§

    impl TypedData for i8

    source§

    impl TypedData for i16

    source§

    impl TypedData for i32

    source§

    impl TypedData for i64

    source§

    impl TypedData for i128

    source§

    impl TypedData for isize

    source§

    impl TypedData for u8

    source§

    impl TypedData for u16

    source§

    impl TypedData for u32

    source§

    impl TypedData for u64

    source§

    impl TypedData for u128

    source§

    impl TypedData for usize

    source§

    impl TypedData for String

    source§

    impl TypedData for Ipv4Addr

    source§

    impl TypedData for Ipv6Addr

    source§

    impl TypedData for PathBuf

    source§

    impl TypedData for NaiveDate

    source§

    impl TypedData for NaiveDateTime

    source§

    impl TypedData for NaiveTime

    source§

    impl TypedData for Url

    source§

    impl TypedData for Uuid

    source§

    impl TypedData for Uuid

    source§

    impl<'a> TypedData for &'a str

    source§

    impl<'a, T> TypedData for &'a T
    where + T: TypedData,

    source§

    impl<T> TypedData for Date<T>
    where + T: TimeZone,

    source§

    impl<T> TypedData for DateTime<T>
    where + T: TimeZone,

    Implementors§

    \ No newline at end of file diff --git a/paperclip/v2/struct.DefaultSchema.html b/paperclip/v2/struct.DefaultSchema.html index 003892f9f..65bc393a2 100644 --- a/paperclip/v2/struct.DefaultSchema.html +++ b/paperclip/v2/struct.DefaultSchema.html @@ -1,4 +1,4 @@ -DefaultSchema in paperclip::v2 - Rust

    Struct paperclip::v2::DefaultSchema

    source ·
    pub struct DefaultSchema {
    Show 13 fields +DefaultSchema in paperclip::v2 - Rust

    Struct paperclip::v2::DefaultSchema

    source ·
    pub struct DefaultSchema {
    Show 13 fields pub reference: Option<String>, pub title: Option<String>, pub description: Option<String>, @@ -6,34 +6,34 @@ pub format: Option<DataTypeFormat>, pub maximum: Option<f32>, pub minimum: Option<f32>, - pub example: Option<Value>, + pub example: Option<Value>, pub properties: BTreeMap<String, Resolvable<DefaultSchema>>, pub items: Option<Resolvable<DefaultSchema>>, - pub enum_: Vec<Value>, + pub enum_: Vec<Value>, pub extra_props: Option<Either<bool, Resolvable<DefaultSchema>>>, pub required: BTreeSet<String>, /* private fields */
    }
    Expand description

    Default schema if your schema doesn’t have any custom fields.

    https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#schemaObject

    -

    Fields§

    §reference: Option<String>§title: Option<String>§description: Option<String>§data_type: Option<DataType>§format: Option<DataTypeFormat>§maximum: Option<f32>§minimum: Option<f32>§example: Option<Value>§properties: BTreeMap<String, Resolvable<DefaultSchema>>§items: Option<Resolvable<DefaultSchema>>§enum_: Vec<Value>§extra_props: Option<Either<bool, Resolvable<DefaultSchema>>>§required: BTreeSet<String>

    Trait Implementations§

    source§

    impl Clone for DefaultSchema

    source§

    fn clone(&self) -> DefaultSchema

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for DefaultSchema

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for DefaultSchema

    source§

    fn default() -> DefaultSchema

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for DefaultSchema

    Fields§

    §reference: Option<String>§title: Option<String>§description: Option<String>§data_type: Option<DataType>§format: Option<DataTypeFormat>§maximum: Option<f32>§minimum: Option<f32>§example: Option<Value>§properties: BTreeMap<String, Resolvable<DefaultSchema>>§items: Option<Resolvable<DefaultSchema>>§enum_: Vec<Value>§extra_props: Option<Either<bool, Resolvable<DefaultSchema>>>§required: BTreeSet<String>

    Trait Implementations§

    source§

    impl Clone for DefaultSchema

    source§

    fn clone(&self) -> DefaultSchema

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for DefaultSchema

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for DefaultSchema

    source§

    fn default() -> DefaultSchema

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for DefaultSchema

    source§

    fn deserialize<__D>( __deserializer: __D, -) -> Result<DefaultSchema, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Schema for DefaultSchema

    source§

    fn name(&self) -> Option<&str>

    Name of this schema, if any. Read more
    source§

    fn set_name(&mut self, name: &str)

    Sets the name for this schema. This is done by the resolver.
    source§

    fn set_cyclic(&mut self, cyclic: bool)

    Set whether this definition is cyclic. This is done by the resolver.
    source§

    fn is_cyclic(&self) -> bool

    Returns whether this definition is cyclic. Read more
    source§

    fn description(&self) -> Option<&str>

    Description for this schema, if any (description field).
    source§

    fn reference(&self) -> Option<&str>

    Reference to some other schema, if any ($ref field).
    source§

    fn set_reference(&mut self, ref_: String)

    Set the reference to this schema.
    source§

    fn data_type(&self) -> Option<DataType>

    Data type of this schema, if any (type field).
    source§

    fn format(&self) -> Option<&DataTypeFormat>

    Data type format used by this schema, if any (format field).
    source§

    fn items(&self) -> Option<&Resolvable<DefaultSchema>>

    Schema for array definitions, if any (items field).
    source§

    fn items_mut(&mut self) -> Option<&mut Resolvable<DefaultSchema>>

    Mutable access to the items field, if it exists.
    source§

    fn additional_properties( +) -> Result<DefaultSchema, <__D as Deserializer<'de>>::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Schema for DefaultSchema

    source§

    fn name(&self) -> Option<&str>

    Name of this schema, if any. Read more
    source§

    fn set_name(&mut self, name: &str)

    Sets the name for this schema. This is done by the resolver.
    source§

    fn set_cyclic(&mut self, cyclic: bool)

    Set whether this definition is cyclic. This is done by the resolver.
    source§

    fn is_cyclic(&self) -> bool

    Returns whether this definition is cyclic. Read more
    source§

    fn description(&self) -> Option<&str>

    Description for this schema, if any (description field).
    source§

    fn reference(&self) -> Option<&str>

    Reference to some other schema, if any ($ref field).
    source§

    fn set_reference(&mut self, ref_: String)

    Set the reference to this schema.
    source§

    fn data_type(&self) -> Option<DataType>

    Data type of this schema, if any (type field).
    source§

    fn format(&self) -> Option<&DataTypeFormat>

    Data type format used by this schema, if any (format field).
    source§

    fn items(&self) -> Option<&Resolvable<DefaultSchema>>

    Schema for array definitions, if any (items field).
    source§

    fn items_mut(&mut self) -> Option<&mut Resolvable<DefaultSchema>>

    Mutable access to the items field, if it exists.
    source§

    fn additional_properties( &self, ) -> Option<&Either<bool, Resolvable<DefaultSchema>>>

    Value schema for maps (additional_properties field).
    source§

    fn additional_properties_mut( &mut self, ) -> Option<&mut Either<bool, Resolvable<DefaultSchema>>>

    Mutable access to additional_properties field, if it’s a map.
    source§

    fn properties(&self) -> Option<&BTreeMap<String, Resolvable<DefaultSchema>>>

    Map of names and schema for properties, if it’s an object (properties field)
    source§

    fn properties_mut( &mut self, -) -> Option<&mut BTreeMap<String, Resolvable<DefaultSchema>>>

    Mutable access to properties field.
    source§

    fn required_properties(&self) -> Option<&BTreeSet<String>>

    Returns the required properties (if any) for this object.
    source§

    fn enum_variants(&self) -> Option<&[Value]>

    Enum variants in this schema (if any). It’s serde_json::Value -because: Read more
    source§

    fn contains_any(&self) -> bool

    Returns whether this definition “is” or “has” Any type.
    source§

    impl Serialize for DefaultSchema

    source§

    fn serialize<__S>( +) -> Option<&mut BTreeMap<String, Resolvable<DefaultSchema>>>

    Mutable access to properties field.
    source§

    fn required_properties(&self) -> Option<&BTreeSet<String>>

    Returns the required properties (if any) for this object.
    source§

    fn enum_variants(&self) -> Option<&[Value]>

    Enum variants in this schema (if any). It’s serde_json::Value +because: Read more
    source§

    fn contains_any(&self) -> bool

    Returns whether this definition “is” or “has” Any type.
    source§

    impl Serialize for DefaultSchema

    source§

    fn serialize<__S>( &self, __serializer: __S, -) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where + __S: Serializer,
    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -44,15 +44,15 @@ if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more

    source§

    fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
    where - F: FnOnce(&Self) -> bool,

    Converts self into a Left variant of Either<Self, Self> + F: FnOnce(&Self) -> bool,
    Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +otherwise. Read more

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip/v2/trait.Schema.html b/paperclip/v2/trait.Schema.html index f98ffcb21..de1c1e78e 100644 --- a/paperclip/v2/trait.Schema.html +++ b/paperclip/v2/trait.Schema.html @@ -1,4 +1,4 @@ -Schema in paperclip::v2 - Rust

    Trait paperclip::v2::Schema

    source ·
    pub trait Schema: Sized {
    +Schema in paperclip::v2 - Rust

    Trait paperclip::v2::Schema

    source ·
    pub trait Schema: Sized {
     
    Show 18 methods // Required methods fn description(&self) -> Option<&str>; fn reference(&self) -> Option<&str>; @@ -15,7 +15,7 @@ &mut self, ) -> Option<&mut BTreeMap<String, Resolvable<Self>>>; fn required_properties(&self) -> Option<&BTreeSet<String>>; - fn enum_variants(&self) -> Option<&[Value]>; + fn enum_variants(&self) -> Option<&[Value]>; fn set_reference(&mut self, ref_: String); fn set_cyclic(&mut self, cyclic: bool); fn is_cyclic(&self) -> bool; @@ -41,7 +41,7 @@
    source

    fn properties(&self) -> Option<&BTreeMap<String, Resolvable<Self>>>

    Map of names and schema for properties, if it’s an object (properties field)

    source

    fn properties_mut(&mut self) -> Option<&mut BTreeMap<String, Resolvable<Self>>>

    Mutable access to properties field.

    source

    fn required_properties(&self) -> Option<&BTreeSet<String>>

    Returns the required properties (if any) for this object.

    -
    source

    fn enum_variants(&self) -> Option<&[Value]>

    Enum variants in this schema (if any). It’s serde_json::Value +

    source

    fn enum_variants(&self) -> Option<&[Value]>

    Enum variants in this schema (if any). It’s serde_json::Value because:

    Auto Trait Implementations§

    §

    impl<T> Freeze for App<T>
    where T: Freeze,

    §

    impl<T> !RefUnwindSafe for App<T>

    §

    impl<T> !Send for App<T>

    §

    impl<T> !Sync for App<T>

    §

    impl<T> Unpin for App<T>
    where - T: Unpin,

    §

    impl<T> !UnwindSafe for App<T>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + T: Unpin,
    §

    impl<T> !UnwindSafe for App<T>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where diff --git a/paperclip_actix/app/trait.OpenApiExt.html b/paperclip_actix/app/trait.OpenApiExt.html index 0b22c90da..ddd95284c 100644 --- a/paperclip_actix/app/trait.OpenApiExt.html +++ b/paperclip_actix/app/trait.OpenApiExt.html @@ -1,4 +1,4 @@ -OpenApiExt in paperclip_actix::app - Rust

    Trait paperclip_actix::app::OpenApiExt

    source ·
    pub trait OpenApiExt<T> {
    +OpenApiExt in paperclip_actix::app - Rust

    Trait paperclip_actix::app::OpenApiExt

    source ·
    pub trait OpenApiExt<T> {
         type Wrapper;
     
         // Required methods
    diff --git a/paperclip_actix/attr.api_v2_errors.html b/paperclip_actix/attr.api_v2_errors.html
    index 8ef07de8e..a88460435 100644
    --- a/paperclip_actix/attr.api_v2_errors.html
    +++ b/paperclip_actix/attr.api_v2_errors.html
    @@ -1,3 +1,3 @@
    -api_v2_errors in paperclip_actix - Rust

    Attribute Macro paperclip_actix::api_v2_errors

    source ·
    #[api_v2_errors]
    Expand description

    Marker attribute for indicating that the marked object can represent non-2xx (error) +api_v2_errors in paperclip_actix - Rust

    Attribute Macro paperclip_actix::api_v2_errors

    source ·
    #[api_v2_errors]
    Expand description

    Marker attribute for indicating that the marked object can represent non-2xx (error) status codes with optional descriptions.

    \ No newline at end of file diff --git a/paperclip_actix/attr.api_v2_errors_overlay.html b/paperclip_actix/attr.api_v2_errors_overlay.html index 52a2dc933..1d203e9fc 100644 --- a/paperclip_actix/attr.api_v2_errors_overlay.html +++ b/paperclip_actix/attr.api_v2_errors_overlay.html @@ -1,3 +1,3 @@ -api_v2_errors_overlay in paperclip_actix - Rust

    Attribute Macro paperclip_actix::api_v2_errors_overlay

    source ·
    #[api_v2_errors_overlay]
    Expand description

    Marker attribute for indicating that the marked object can filter error responses from the +api_v2_errors_overlay in paperclip_actix - Rust

    Attribute Macro paperclip_actix::api_v2_errors_overlay

    source ·
    #[api_v2_errors_overlay]
    Expand description

    Marker attribute for indicating that the marked object can filter error responses from the the #[api_v2_errors] macro.

    \ No newline at end of file diff --git a/paperclip_actix/attr.api_v2_operation.html b/paperclip_actix/attr.api_v2_operation.html index 10dda29a1..ab047b4bf 100644 --- a/paperclip_actix/attr.api_v2_operation.html +++ b/paperclip_actix/attr.api_v2_operation.html @@ -1,2 +1,2 @@ -api_v2_operation in paperclip_actix - Rust

    Attribute Macro paperclip_actix::api_v2_operation

    source ·
    #[api_v2_operation]
    Expand description

    Marker attribute for indicating that a function is an OpenAPI v2 compatible operation.

    +api_v2_operation in paperclip_actix - Rust

    Attribute Macro paperclip_actix::api_v2_operation

    source ·
    #[api_v2_operation]
    Expand description

    Marker attribute for indicating that a function is an OpenAPI v2 compatible operation.

    \ No newline at end of file diff --git a/paperclip_actix/attr.delete.html b/paperclip_actix/attr.delete.html index 66433ba5b..d1be04abd 100644 --- a/paperclip_actix/attr.delete.html +++ b/paperclip_actix/attr.delete.html @@ -1,10 +1,10 @@ -delete in paperclip_actix - Rust

    Attribute Macro paperclip_actix::delete

    source ·
    #[delete]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. +delete in paperclip_actix - Rust

    Attribute Macro paperclip_actix::delete

    source ·
    #[delete]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.

    §Syntax

    #[delete("path"[, attributes])]
     

    §Attributes

      -
    • "path" - Raw literal string with path for which to register handler.
    • +
    • "path" - Raw literal string with path for which to register handler.

    §Example

    /// use paperclip::actix::web::Json; diff --git a/paperclip_actix/attr.get.html b/paperclip_actix/attr.get.html index 9fabf7474..544645d97 100644 --- a/paperclip_actix/attr.get.html +++ b/paperclip_actix/attr.get.html @@ -1,10 +1,10 @@ -get in paperclip_actix - Rust

    Attribute Macro paperclip_actix::get

    source ·
    #[get]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. +get in paperclip_actix - Rust

    Attribute Macro paperclip_actix::get

    source ·
    #[get]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.

    §Syntax

    #[get("path"[, attributes])]
     

    §Attributes

      -
    • "path" - Raw literal string with path for which to register handler.
    • +
    • "path" - Raw literal string with path for which to register handler.

    §Example

    /// use paperclip::actix::web::Json; diff --git a/paperclip_actix/attr.head.html b/paperclip_actix/attr.head.html index 4da612e03..b7115bb9e 100644 --- a/paperclip_actix/attr.head.html +++ b/paperclip_actix/attr.head.html @@ -1,10 +1,10 @@ -head in paperclip_actix - Rust

    Attribute Macro paperclip_actix::head

    source ·
    #[head]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. +head in paperclip_actix - Rust

    Attribute Macro paperclip_actix::head

    source ·
    #[head]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.

    §Syntax

    #[head("path"[, attributes])]
     

    §Attributes

      -
    • "path" - Raw literal string with path for which to register handler.
    • +
    • "path" - Raw literal string with path for which to register handler.

    §Example

    /// use paperclip::actix::web::Json; diff --git a/paperclip_actix/attr.patch.html b/paperclip_actix/attr.patch.html index d92419034..6b604a310 100644 --- a/paperclip_actix/attr.patch.html +++ b/paperclip_actix/attr.patch.html @@ -1,10 +1,10 @@ -patch in paperclip_actix - Rust

    Attribute Macro paperclip_actix::patch

    source ·
    #[patch]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. +patch in paperclip_actix - Rust

    Attribute Macro paperclip_actix::patch

    source ·
    #[patch]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.

    §Syntax

    #[patch("path"[, attributes])]
     

    §Attributes

      -
    • "path" - Raw literal string with path for which to register handler.
    • +
    • "path" - Raw literal string with path for which to register handler.

    §Example

    /// use paperclip::actix::web::Json; diff --git a/paperclip_actix/attr.post.html b/paperclip_actix/attr.post.html index 7094c7b8b..1cd5932ad 100644 --- a/paperclip_actix/attr.post.html +++ b/paperclip_actix/attr.post.html @@ -1,10 +1,10 @@ -post in paperclip_actix - Rust

    Attribute Macro paperclip_actix::post

    source ·
    #[post]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. +post in paperclip_actix - Rust

    Attribute Macro paperclip_actix::post

    source ·
    #[post]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.

    §Syntax

    #[post("path"[, attributes])]
     

    §Attributes

      -
    • "path" - Raw literal string with path for which to register handler.
    • +
    • "path" - Raw literal string with path for which to register handler.

    §Example

    /// use paperclip::actix::web::Json; diff --git a/paperclip_actix/attr.put.html b/paperclip_actix/attr.put.html index b4de09a41..be7208c9f 100644 --- a/paperclip_actix/attr.put.html +++ b/paperclip_actix/attr.put.html @@ -1,10 +1,10 @@ -put in paperclip_actix - Rust

    Attribute Macro paperclip_actix::put

    source ·
    #[put]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. +put in paperclip_actix - Rust

    Attribute Macro paperclip_actix::put

    source ·
    #[put]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.

    §Syntax

    #[put("path"[, attributes])]
     

    §Attributes

      -
    • "path" - Raw literal string with path for which to register handler.
    • +
    • "path" - Raw literal string with path for which to register handler.

    §Example

    /// use paperclip::actix::web::Json; diff --git a/paperclip_actix/derive.Apiv2Header.html b/paperclip_actix/derive.Apiv2Header.html index cb74cd3b9..c25690868 100644 --- a/paperclip_actix/derive.Apiv2Header.html +++ b/paperclip_actix/derive.Apiv2Header.html @@ -1,4 +1,4 @@ -Apiv2Header in paperclip_actix - Rust

    Derive Macro paperclip_actix::Apiv2Header

    source ·
    #[derive(Apiv2Header)]
    +Apiv2Header in paperclip_actix - Rust

    Derive Macro paperclip_actix::Apiv2Header

    source ·
    #[derive(Apiv2Header)]
     {
         // Attributes available to this derive:
         #[openapi]
    diff --git a/paperclip_actix/derive.Apiv2Schema.html b/paperclip_actix/derive.Apiv2Schema.html
    index 5cc5ad44d..1845444d0 100644
    --- a/paperclip_actix/derive.Apiv2Schema.html
    +++ b/paperclip_actix/derive.Apiv2Schema.html
    @@ -1,4 +1,4 @@
    -Apiv2Schema in paperclip_actix - Rust

    Derive Macro paperclip_actix::Apiv2Schema

    source ·
    #[derive(Apiv2Schema)]
    +Apiv2Schema in paperclip_actix - Rust

    Derive Macro paperclip_actix::Apiv2Schema

    source ·
    #[derive(Apiv2Schema)]
     {
         // Attributes available to this derive:
         #[openapi]
    diff --git a/paperclip_actix/derive.Apiv2Security.html b/paperclip_actix/derive.Apiv2Security.html
    index 3beca3939..bcab7d7fa 100644
    --- a/paperclip_actix/derive.Apiv2Security.html
    +++ b/paperclip_actix/derive.Apiv2Security.html
    @@ -1,4 +1,4 @@
    -Apiv2Security in paperclip_actix - Rust

    Derive Macro paperclip_actix::Apiv2Security

    source ·
    #[derive(Apiv2Security)]
    +Apiv2Security in paperclip_actix - Rust

    Derive Macro paperclip_actix::Apiv2Security

    source ·
    #[derive(Apiv2Security)]
     {
         // Attributes available to this derive:
         #[openapi]
    diff --git a/paperclip_actix/index.html b/paperclip_actix/index.html
    index a32249a6b..35391f094 100644
    --- a/paperclip_actix/index.html
    +++ b/paperclip_actix/index.html
    @@ -1,6 +1,6 @@
    -paperclip_actix - Rust

    Crate paperclip_actix

    source ·

    Re-exports§

    Modules§

    Traits§

    • Indicates that this thingmabob has a path and a bunch of definitions and operations.

    Attribute Macros§

    • Marker attribute for indicating that the marked object can represent non-2xx (error) -status codes with optional descriptions.
    • Marker attribute for indicating that the marked object can filter error responses from the -the #[api_v2_errors] macro.
    • Marker attribute for indicating that a function is an OpenAPI v2 compatible operation.
    • Creates route handler with paperclip::actix::web::Resource. +paperclip_actix - Rust

      Crate paperclip_actix

      source ·

      Re-exports§

      Modules§

      Traits§

      • Indicates that this thingmabob has a path and a bunch of definitions and operations.

      Attribute Macros§

      • Marker attribute for indicating that the marked object can represent non-2xx (error) +status codes with optional descriptions.
      • Marker attribute for indicating that the marked object can filter error responses from the +the #[api_v2_errors] macro.
      • Marker attribute for indicating that a function is an OpenAPI v2 compatible operation.
      • Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.
      • Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the @@ -12,4 +12,4 @@ In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.
      • Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the -trait actix_web::Responder.

      Derive Macros§

      • Derive attribute for indicating that a type is an OpenAPI v2 compatible header parameter.
      • Derive attribute for indicating that a type is an OpenAPI v2 compatible definition.
      • Marker attribute for indicating that an object forbids public access to operation (for example AccessToken).
      \ No newline at end of file +trait actix_web::Responder.

    Derive Macros§

    • Derive attribute for indicating that a type is an OpenAPI v2 compatible header parameter.
    • Derive attribute for indicating that a type is an OpenAPI v2 compatible definition.
    • Marker attribute for indicating that an object forbids public access to operation (for example AccessToken).
    \ No newline at end of file diff --git a/paperclip_actix/trait.Mountable.html b/paperclip_actix/trait.Mountable.html index 7322a1c88..b26f44513 100644 --- a/paperclip_actix/trait.Mountable.html +++ b/paperclip_actix/trait.Mountable.html @@ -1,4 +1,4 @@ -Mountable in paperclip_actix - Rust

    Trait paperclip_actix::Mountable

    source ·
    pub trait Mountable {
    +Mountable in paperclip_actix - Rust

    Trait paperclip_actix::Mountable

    source ·
    pub trait Mountable {
         // Required methods
         fn path(&self) -> &str;
         fn operations(&mut self) -> BTreeMap<HttpMethod, DefaultOperationRaw>;
    diff --git a/paperclip_actix/web/fn.block.html b/paperclip_actix/web/fn.block.html
    index 451448e5e..8c05ac613 100644
    --- a/paperclip_actix/web/fn.block.html
    +++ b/paperclip_actix/web/fn.block.html
    @@ -1,4 +1,4 @@
    -block in paperclip_actix::web - Rust

    Function paperclip_actix::web::block

    pub fn block<F, R>(f: F) -> impl Future<Output = Result<R, BlockingError>>
    where +block in paperclip_actix::web - Rust

    Function paperclip_actix::web::block

    pub fn block<F, R>(f: F) -> impl Future<Output = Result<R, BlockingError>>
    where F: FnOnce() -> R + Send + 'static, R: Send + 'static,
    Expand description

    Executes blocking function on a thread pool, returns future that resolves to result of the function execution.

    diff --git a/paperclip_actix/web/fn.delete.html b/paperclip_actix/web/fn.delete.html index fa524c454..f957b84a5 100644 --- a/paperclip_actix/web/fn.delete.html +++ b/paperclip_actix/web/fn.delete.html @@ -1,2 +1,2 @@ -delete in paperclip_actix::web - Rust

    Function paperclip_actix::web::delete

    source ·
    pub fn delete() -> Route
    Expand description

    Wrapper for actix_web::web::delete.

    +delete in paperclip_actix::web - Rust

    Function paperclip_actix::web::delete

    source ·
    pub fn delete() -> Route
    Expand description
    \ No newline at end of file diff --git a/paperclip_actix/web/fn.get.html b/paperclip_actix/web/fn.get.html index 3708c0a5a..d9a39ebdf 100644 --- a/paperclip_actix/web/fn.get.html +++ b/paperclip_actix/web/fn.get.html @@ -1,2 +1,2 @@ -get in paperclip_actix::web - Rust

    Function paperclip_actix::web::get

    source ·
    pub fn get() -> Route
    Expand description

    Wrapper for actix_web::web::get.

    +get in paperclip_actix::web - Rust

    Function paperclip_actix::web::get

    source ·
    pub fn get() -> Route
    Expand description

    Wrapper for actix_web::web::get.

    \ No newline at end of file diff --git a/paperclip_actix/web/fn.head.html b/paperclip_actix/web/fn.head.html index fbaebe9b4..314584a8f 100644 --- a/paperclip_actix/web/fn.head.html +++ b/paperclip_actix/web/fn.head.html @@ -1,2 +1,2 @@ -head in paperclip_actix::web - Rust

    Function paperclip_actix::web::head

    source ·
    pub fn head() -> Route
    Expand description

    Wrapper for actix_web::web::head.

    +head in paperclip_actix::web - Rust

    Function paperclip_actix::web::head

    source ·
    pub fn head() -> Route
    Expand description

    Wrapper for actix_web::web::head.

    \ No newline at end of file diff --git a/paperclip_actix/web/fn.method.html b/paperclip_actix/web/fn.method.html index e9828a299..4049bacfe 100644 --- a/paperclip_actix/web/fn.method.html +++ b/paperclip_actix/web/fn.method.html @@ -1,2 +1,2 @@ -method in paperclip_actix::web - Rust

    Function paperclip_actix::web::method

    source ·
    pub fn method(method: Method) -> Route
    Expand description

    Wrapper for actix_web::web::method.

    +method in paperclip_actix::web - Rust

    Function paperclip_actix::web::method

    source ·
    pub fn method(method: Method) -> Route
    Expand description
    \ No newline at end of file diff --git a/paperclip_actix/web/fn.options.html b/paperclip_actix/web/fn.options.html index a04da8305..9f8493180 100644 --- a/paperclip_actix/web/fn.options.html +++ b/paperclip_actix/web/fn.options.html @@ -1,2 +1,2 @@ -options in paperclip_actix::web - Rust

    Function paperclip_actix::web::options

    source ·
    pub fn options() -> Route
    Expand description

    Wrapper for actix_web::web::options.

    +options in paperclip_actix::web - Rust

    Function paperclip_actix::web::options

    source ·
    pub fn options() -> Route
    Expand description
    \ No newline at end of file diff --git a/paperclip_actix/web/fn.patch.html b/paperclip_actix/web/fn.patch.html index b4433146a..77c2fe0e8 100644 --- a/paperclip_actix/web/fn.patch.html +++ b/paperclip_actix/web/fn.patch.html @@ -1,2 +1,2 @@ -patch in paperclip_actix::web - Rust

    Function paperclip_actix::web::patch

    source ·
    pub fn patch() -> Route
    Expand description

    Wrapper for actix_web::web::patch.

    +patch in paperclip_actix::web - Rust

    Function paperclip_actix::web::patch

    source ·
    pub fn patch() -> Route
    Expand description

    Wrapper for actix_web::web::patch.

    \ No newline at end of file diff --git a/paperclip_actix/web/fn.post.html b/paperclip_actix/web/fn.post.html index cab2853a9..657f06924 100644 --- a/paperclip_actix/web/fn.post.html +++ b/paperclip_actix/web/fn.post.html @@ -1,2 +1,2 @@ -post in paperclip_actix::web - Rust

    Function paperclip_actix::web::post

    source ·
    pub fn post() -> Route
    Expand description

    Wrapper for actix_web::web::post.

    +post in paperclip_actix::web - Rust

    Function paperclip_actix::web::post

    source ·
    pub fn post() -> Route
    Expand description

    Wrapper for actix_web::web::post.

    \ No newline at end of file diff --git a/paperclip_actix/web/fn.put.html b/paperclip_actix/web/fn.put.html index e828abd36..b122bd8ec 100644 --- a/paperclip_actix/web/fn.put.html +++ b/paperclip_actix/web/fn.put.html @@ -1,2 +1,2 @@ -put in paperclip_actix::web - Rust

    Function paperclip_actix::web::put

    source ·
    pub fn put() -> Route
    Expand description

    Wrapper for actix_web::web::put.

    +put in paperclip_actix::web - Rust

    Function paperclip_actix::web::put

    source ·
    pub fn put() -> Route
    Expand description

    Wrapper for actix_web::web::put.

    \ No newline at end of file diff --git a/paperclip_actix/web/fn.resource.html b/paperclip_actix/web/fn.resource.html index 6d5297d34..478fda6cc 100644 --- a/paperclip_actix/web/fn.resource.html +++ b/paperclip_actix/web/fn.resource.html @@ -1,2 +1,2 @@ -resource in paperclip_actix::web - Rust

    Function paperclip_actix::web::resource

    source ·
    pub fn resource(path: &str) -> Resource
    Expand description

    Wrapper for actix_web::web::resource.

    +resource in paperclip_actix::web - Rust

    Function paperclip_actix::web::resource

    source ·
    pub fn resource(path: &str) -> Resource
    Expand description
    \ No newline at end of file diff --git a/paperclip_actix/web/fn.scope.html b/paperclip_actix/web/fn.scope.html index 4f045b025..68ab0b03d 100644 --- a/paperclip_actix/web/fn.scope.html +++ b/paperclip_actix/web/fn.scope.html @@ -1,2 +1,2 @@ -scope in paperclip_actix::web - Rust

    Function paperclip_actix::web::scope

    source ·
    pub fn scope(path: &str) -> Scope
    Expand description

    Wrapper for actix_web::web::scope.

    +scope in paperclip_actix::web - Rust

    Function paperclip_actix::web::scope

    source ·
    pub fn scope(path: &str) -> Scope
    Expand description

    Wrapper for actix_web::web::scope.

    \ No newline at end of file diff --git a/paperclip_actix/web/fn.service.html b/paperclip_actix/web/fn.service.html index 44169dab6..1f7d2bdb4 100644 --- a/paperclip_actix/web/fn.service.html +++ b/paperclip_actix/web/fn.service.html @@ -1,4 +1,4 @@ -service in paperclip_actix::web - Rust

    Function paperclip_actix::web::service

    pub fn service<T>(path: T) -> WebService
    where +service in paperclip_actix::web - Rust

    Function paperclip_actix::web::service

    pub fn service<T>(path: T) -> WebService
    where T: IntoPatterns,
    Expand description

    Creates a raw service for a specific path.

    use actix_web::{dev, web, guard, App, Error, HttpResponse};
    diff --git a/paperclip_actix/web/fn.to.html b/paperclip_actix/web/fn.to.html
    index 2d3b27d67..7fe002d5e 100644
    --- a/paperclip_actix/web/fn.to.html
    +++ b/paperclip_actix/web/fn.to.html
    @@ -1,4 +1,4 @@
    -to in paperclip_actix::web - Rust

    Function paperclip_actix::web::to

    pub fn to<F, Args>(handler: F) -> Route
    where +to in paperclip_actix::web - Rust

    Function paperclip_actix::web::to

    pub fn to<F, Args>(handler: F) -> Route
    where F: Handler<Args>, Args: FromRequest + 'static, <F as Handler<Args>>::Output: Responder + 'static,
    Expand description

    Creates a new any-method route with handler.

    diff --git a/paperclip_actix/web/index.html b/paperclip_actix/web/index.html index ca22d365c..81a2502e4 100644 --- a/paperclip_actix/web/index.html +++ b/paperclip_actix/web/index.html @@ -1,3 +1,3 @@ -paperclip_actix::web - Rust

    Module paperclip_actix::web

    source ·
    Expand description

    Proxy module for actix_web::web.

    -

    Structs§

    Functions§

    -

    Methods from Deref<Target = [u8]>§

    source

    pub fn as_str(&self) -> &str

    🔬This is a nightly-only experimental API. (ascii_char)

    Views this slice of ASCII characters as a UTF-8 str.

    -
    source

    pub fn as_bytes(&self) -> &[u8]

    🔬This is a nightly-only experimental API. (ascii_char)

    Views this slice of ASCII characters as a slice of u8 bytes.

    -
    1.79.0 · source

    pub fn utf8_chunks(&self) -> Utf8Chunks<'_>

    Creates an iterator over the contiguous valid UTF-8 ranges of this -slice, and the non-UTF-8 fragments in between.

    +

    pub fn try_into_mut(self) -> Result<BytesMut, Bytes>

    Try to convert self into BytesMut.

    +

    If self is unique for the entire original buffer, this will succeed +and return a BytesMut with the contents of self without copying. +If self is not unique for the entire original buffer, this will fail +and return self.

    §Examples
    -

    This function formats arbitrary but mostly-UTF-8 bytes into Rust source -code in the form of a C-string literal (c"...").

    +
    use bytes::{Bytes, BytesMut};
     
    -
    use std::fmt::Write as _;
    -
    -pub fn cstr_literal(bytes: &[u8]) -> String {
    -    let mut repr = String::new();
    -    repr.push_str("c\"");
    -    for chunk in bytes.utf8_chunks() {
    -        for ch in chunk.valid().chars() {
    -            // Escapes \0, \t, \r, \n, \\, \', \", and uses \u{...} for non-printable characters.
    -            write!(repr, "{}", ch.escape_debug()).unwrap();
    -        }
    -        for byte in chunk.invalid() {
    -            write!(repr, "\\x{:02X}", byte).unwrap();
    -        }
    -    }
    -    repr.push('"');
    -    repr
    -}
    -
    -fn main() {
    -    let lit = cstr_literal(b"\xferris the \xf0\x9f\xa6\x80\x07");
    -    let expected = stringify!(c"\xFErris the 🦀\u{7}");
    -    assert_eq!(lit, expected);
    -}
    -
    1.23.0 · source

    pub fn is_ascii(&self) -> bool

    Checks if all bytes in this slice are within the ASCII range.

    -
    source

    pub fn as_ascii(&self) -> Option<&[AsciiChar]>

    🔬This is a nightly-only experimental API. (ascii_char)

    If this slice is_ascii, returns it as a slice of +let bytes = Bytes::from(b"hello".to_vec()); +assert_eq!(bytes.try_into_mut(), Ok(BytesMut::from(&b"hello"[..])));

    +

    Methods from Deref<Target = [u8]>§

    source

    pub fn as_str(&self) -> &str

    🔬This is a nightly-only experimental API. (ascii_char)

    Views this slice of ASCII characters as a UTF-8 str.

    +
    source

    pub fn as_bytes(&self) -> &[u8]

    🔬This is a nightly-only experimental API. (ascii_char)

    Views this slice of ASCII characters as a slice of u8 bytes.

    +
    1.23.0 · source

    pub fn is_ascii(&self) -> bool

    Checks if all bytes in this slice are within the ASCII range.

    +
    source

    pub fn as_ascii(&self) -> Option<&[AsciiChar]>

    🔬This is a nightly-only experimental API. (ascii_char)

    If this slice is_ascii, returns it as a slice of ASCII characters, otherwise returns None.

    -
    source

    pub unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar]

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this slice of bytes into a slice of ASCII characters, +

    source

    pub unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar]

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this slice of bytes into a slice of ASCII characters, without checking whether they’re valid.

    §Safety

    Every byte in the slice must be in 0..=127, or else this is UB.

    -
    1.23.0 · source

    pub fn eq_ignore_ascii_case(&self, other: &[u8]) -> bool

    Checks that two slices are an ASCII case-insensitive match.

    +
    1.23.0 · source

    pub fn eq_ignore_ascii_case(&self, other: &[u8]) -> bool

    Checks that two slices are an ASCII case-insensitive match.

    Same as to_ascii_lowercase(a) == to_ascii_lowercase(b), but without allocating and copying temporaries.

    -
    1.60.0 · source

    pub fn escape_ascii(&self) -> EscapeAscii<'_>

    Returns an iterator that produces an escaped version of this slice, +

    1.60.0 · source

    pub fn escape_ascii(&self) -> EscapeAscii<'_>

    Returns an iterator that produces an escaped version of this slice, treating it as an ASCII string.

    §Examples
    
     let s = b"0\t\r\n'\"\\\x9d";
     let escaped = s.escape_ascii().to_string();
     assert_eq!(escaped, "0\\t\\r\\n\\'\\\"\\\\\\x9d");
    -
    1.80.0 · source

    pub fn trim_ascii_start(&self) -> &[u8]

    Returns a byte slice with leading ASCII whitespace bytes removed.

    +
    1.80.0 · source

    pub fn trim_ascii_start(&self) -> &[u8]

    Returns a byte slice with leading ASCII whitespace bytes removed.

    ‘Whitespace’ refers to the definition used by u8::is_ascii_whitespace.

    §Examples
    assert_eq!(b" \t hello world\n".trim_ascii_start(), b"hello world\n");
     assert_eq!(b"  ".trim_ascii_start(), b"");
     assert_eq!(b"".trim_ascii_start(), b"");
    -
    1.80.0 · source

    pub fn trim_ascii_end(&self) -> &[u8]

    Returns a byte slice with trailing ASCII whitespace bytes removed.

    +
    1.80.0 · source

    pub fn trim_ascii_end(&self) -> &[u8]

    Returns a byte slice with trailing ASCII whitespace bytes removed.

    ‘Whitespace’ refers to the definition used by u8::is_ascii_whitespace.

    §Examples
    assert_eq!(b"\r hello world\n ".trim_ascii_end(), b"\r hello world");
     assert_eq!(b"  ".trim_ascii_end(), b"");
     assert_eq!(b"".trim_ascii_end(), b"");
    -
    1.80.0 · source

    pub fn trim_ascii(&self) -> &[u8]

    Returns a byte slice with leading and trailing ASCII whitespace bytes +

    1.80.0 · source

    pub fn trim_ascii(&self) -> &[u8]

    Returns a byte slice with leading and trailing ASCII whitespace bytes removed.

    ‘Whitespace’ refers to the definition used by u8::is_ascii_whitespace.

    @@ -254,69 +235,50 @@
    §Examples
    assert_eq!(b"\r hello world\n ".trim_ascii(), b"hello world");
     assert_eq!(b"  ".trim_ascii(), b"");
     assert_eq!(b"".trim_ascii(), b"");
    -
    1.80.0 · source

    pub fn as_flattened(&self) -> &[T]

    Takes a &[[T; N]], and flattens it to a &[T].

    -
    §Panics
    -

    This panics if the length of the resulting slice would overflow a usize.

    -

    This is only possible when flattening a slice of arrays of zero-sized -types, and thus tends to be irrelevant in practice. If -size_of::<T>() > 0, this will never panic.

    +
    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the number of elements in the slice.

    §Examples
    -
    assert_eq!([[1, 2, 3], [4, 5, 6]].as_flattened(), &[1, 2, 3, 4, 5, 6]);
    -
    -assert_eq!(
    -    [[1, 2, 3], [4, 5, 6]].as_flattened(),
    -    [[1, 2], [3, 4], [5, 6]].as_flattened(),
    -);
    -
    -let slice_of_empty_arrays: &[[i32; 0]] = &[[], [], [], [], []];
    -assert!(slice_of_empty_arrays.as_flattened().is_empty());
    -
    -let empty_slice_of_arrays: &[[u32; 10]] = &[];
    -assert!(empty_slice_of_arrays.as_flattened().is_empty());
    -
    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the number of elements in the slice.

    -
    §Examples
    let a = [1, 2, 3];
     assert_eq!(a.len(), 3);
    -
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if the slice has a length of 0.

    -
    §Examples
    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if the slice has a length of 0.

    +
    §Examples
    let a = [1, 2, 3];
     assert!(!a.is_empty());
     
     let b: &[i32] = &[];
     assert!(b.is_empty());
    -
    1.0.0 · source

    pub fn first(&self) -> Option<&T>

    Returns the first element of the slice, or None if it is empty.

    -
    §Examples
    +
    1.0.0 · source

    pub fn first(&self) -> Option<&T>

    Returns the first element of the slice, or None if it is empty.

    +
    §Examples
    let v = [10, 40, 30];
     assert_eq!(Some(&10), v.first());
     
     let w: &[i32] = &[];
     assert_eq!(None, w.first());
    -
    1.5.0 · source

    pub fn split_first(&self) -> Option<(&T, &[T])>

    Returns the first and all the rest of the elements of the slice, or None if it is empty.

    -
    §Examples
    +
    1.5.0 · source

    pub fn split_first(&self) -> Option<(&T, &[T])>

    Returns the first and all the rest of the elements of the slice, or None if it is empty.

    +
    §Examples
    let x = &[0, 1, 2];
     
     if let Some((first, elements)) = x.split_first() {
         assert_eq!(first, &0);
         assert_eq!(elements, &[1, 2]);
     }
    -
    1.5.0 · source

    pub fn split_last(&self) -> Option<(&T, &[T])>

    Returns the last and all the rest of the elements of the slice, or None if it is empty.

    -
    §Examples
    +
    1.5.0 · source

    pub fn split_last(&self) -> Option<(&T, &[T])>

    Returns the last and all the rest of the elements of the slice, or None if it is empty.

    +
    §Examples
    let x = &[0, 1, 2];
     
     if let Some((last, elements)) = x.split_last() {
         assert_eq!(last, &2);
         assert_eq!(elements, &[0, 1]);
     }
    -
    1.0.0 · source

    pub fn last(&self) -> Option<&T>

    Returns the last element of the slice, or None if it is empty.

    -
    §Examples
    +
    1.0.0 · source

    pub fn last(&self) -> Option<&T>

    Returns the last element of the slice, or None if it is empty.

    +
    §Examples
    let v = [10, 40, 30];
     assert_eq!(Some(&30), v.last());
     
     let w: &[i32] = &[];
     assert_eq!(None, w.last());
    -
    1.77.0 · source

    pub fn first_chunk<const N: usize>(&self) -> Option<&[T; N]>

    Return an array reference to the first N items in the slice.

    +
    1.77.0 · source

    pub fn first_chunk<const N: usize>(&self) -> Option<&[T; N]>

    Returns an array reference to the first N items in the slice.

    If the slice is not at least N in length, this will return None.

    -
    §Examples
    +
    §Examples
    let u = [10, 40, 30];
     assert_eq!(Some(&[10, 40]), u.first_chunk::<2>());
     
    @@ -325,9 +287,9 @@ 
    §Exampleslet w: &[i32] = &[]; assert_eq!(Some(&[]), w.first_chunk::<0>());
    -
    1.77.0 · source

    pub fn split_first_chunk<const N: usize>(&self) -> Option<(&[T; N], &[T])>

    Return an array reference to the first N items in the slice and the remaining slice.

    +
    1.77.0 · source

    pub fn split_first_chunk<const N: usize>(&self) -> Option<(&[T; N], &[T])>

    Returns an array reference to the first N items in the slice and the remaining slice.

    If the slice is not at least N in length, this will return None.

    -
    §Examples
    +
    §Examples
    let x = &[0, 1, 2];
     
     if let Some((first, elements)) = x.split_first_chunk::<2>() {
    @@ -336,9 +298,9 @@ 
    §Examplesassert_eq!(None, x.split_first_chunk::<4>());
    -
    1.77.0 · source

    pub fn split_last_chunk<const N: usize>(&self) -> Option<(&[T], &[T; N])>

    Return an array reference to the last N items in the slice and the remaining slice.

    +
    1.77.0 · source

    pub fn split_last_chunk<const N: usize>(&self) -> Option<(&[T], &[T; N])>

    Returns an array reference to the last N items in the slice and the remaining slice.

    If the slice is not at least N in length, this will return None.

    -
    §Examples
    +
    §Examples
    let x = &[0, 1, 2];
     
     if let Some((elements, last)) = x.split_last_chunk::<2>() {
    @@ -347,9 +309,9 @@ 
    §Examplesassert_eq!(None, x.split_last_chunk::<4>());
    -
    1.77.0 · source

    pub fn last_chunk<const N: usize>(&self) -> Option<&[T; N]>

    Return an array reference to the last N items in the slice.

    +
    1.77.0 · source

    pub fn last_chunk<const N: usize>(&self) -> Option<&[T; N]>

    Returns an array reference to the last N items in the slice.

    If the slice is not at least N in length, this will return None.

    -
    §Examples
    +
    §Examples
    let u = [10, 40, 30];
     assert_eq!(Some(&[40, 30]), u.last_chunk::<2>());
     
    @@ -358,7 +320,7 @@ 
    §Exampleslet w: &[i32] = &[]; assert_eq!(Some(&[]), w.last_chunk::<0>());
    -
    1.0.0 · source

    pub fn get<I>(&self, index: I) -> Option<&<I as SliceIndex<[T]>>::Output>
    where +

    1.0.0 · source

    pub fn get<I>(&self, index: I) -> Option<&<I as SliceIndex<[T]>>::Output>
    where I: SliceIndex<[T]>,

    Returns a reference to an element or subslice depending on the type of index.

      @@ -367,13 +329,13 @@
      §ExamplesIf given a range, returns the subslice corresponding to that range, or None if out of bounds.
    -
    §Examples
    +
    §Examples
    let v = [10, 40, 30];
     assert_eq!(Some(&40), v.get(1));
     assert_eq!(Some(&[10, 40][..]), v.get(0..2));
     assert_eq!(None, v.get(3));
     assert_eq!(None, v.get(0..4));
    -
    1.0.0 · source

    pub unsafe fn get_unchecked<I>( +

    1.0.0 · source

    pub unsafe fn get_unchecked<I>( &self, index: I, ) -> &<I as SliceIndex<[T]>>::Output
    where @@ -387,21 +349,21 @@
    §Safety
    to call .get_unchecked(len), even if you immediately convert to a pointer. And it’s UB to call .get_unchecked(..len + 1), .get_unchecked(..=len), or similar.

    -
    §Examples
    +
    §Examples
    let x = &[1, 2, 4];
     
     unsafe {
         assert_eq!(x.get_unchecked(1), &2);
     }
    -

    1.0.0 · source

    pub fn as_ptr(&self) -> *const T

    Returns a raw pointer to the slice’s buffer.

    +
    1.0.0 · source

    pub fn as_ptr(&self) -> *const T

    Returns a raw pointer to the slice’s buffer.

    The caller must ensure that the slice outlives the pointer this -function returns, or else it will end up pointing to garbage.

    +function returns, or else it will end up dangling.

    The caller must also ensure that the memory the pointer (non-transitively) points to is never written to (except inside an UnsafeCell) using this pointer or any pointer derived from it. If you need to mutate the contents of the slice, use as_mut_ptr.

    Modifying the container referenced by this slice may cause its buffer to be reallocated, which would also make any pointers to it invalid.

    -
    §Examples
    +
    §Examples
    let x = &[1, 2, 4];
     let x_ptr = x.as_ptr();
     
    @@ -410,7 +372,7 @@ 
    §Examplesassert_eq!(x.get_unchecked(i), &*x_ptr.add(i)); } }
    -
    1.48.0 · source

    pub fn as_ptr_range(&self) -> Range<*const T>

    Returns the two raw pointers spanning the slice.

    +
    1.48.0 · source

    pub fn as_ptr_range(&self) -> Range<*const T>

    Returns the two raw pointers spanning the slice.

    The returned range is half-open, which means that the end pointer points one past the last element of the slice. This way, an empty slice is represented by two equal pointers, and the difference between @@ -430,9 +392,9 @@

    §Examplesassert!(a.as_ptr_range().contains(&x)); assert!(!a.as_ptr_range().contains(&y));
    -

    1.0.0 · source

    pub fn iter(&self) -> Iter<'_, T>

    Returns an iterator over the slice.

    +
    1.0.0 · source

    pub fn iter(&self) -> Iter<'_, T>

    Returns an iterator over the slice.

    The iterator yields all items from start to end.

    -
    §Examples
    +
    §Examples
    let x = &[1, 2, 4];
     let mut iterator = x.iter();
     
    @@ -440,12 +402,12 @@ 
    §Examplesassert_eq!(iterator.next(), Some(&2)); assert_eq!(iterator.next(), Some(&4)); assert_eq!(iterator.next(), None);
    -
    1.0.0 · source

    pub fn windows(&self, size: usize) -> Windows<'_, T>

    Returns an iterator over all contiguous windows of length +

    1.0.0 · source

    pub fn windows(&self, size: usize) -> Windows<'_, T>

    Returns an iterator over all contiguous windows of length size. The windows overlap. If the slice is shorter than size, the iterator returns no values.

    -
    §Panics
    +
    §Panics

    Panics if size is 0.

    -
    §Examples
    +
    §Examples
    let slice = ['l', 'o', 'r', 'e', 'm'];
     let mut iter = slice.windows(3);
     assert_eq!(iter.next().unwrap(), &['l', 'o', 'r']);
    @@ -471,23 +433,23 @@ 
    §Examples&w[0], &w[2]); } assert_eq!(array, ['s', 't', ' ', '2', '0', '1', '5', 'u', 'R']);
    -
    1.0.0 · source

    pub fn chunks(&self, chunk_size: usize) -> Chunks<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the +

    1.0.0 · source

    pub fn chunks(&self, chunk_size: usize) -> Chunks<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the beginning of the slice.

    The chunks are slices and do not overlap. If chunk_size does not divide the length of the slice, then the last chunk will not have length chunk_size.

    See chunks_exact for a variant of this iterator that returns chunks of always exactly chunk_size elements, and rchunks for the same iterator but starting at the end of the slice.

    -
    §Panics
    +
    §Panics

    Panics if chunk_size is 0.

    -
    §Examples
    +
    §Examples
    let slice = ['l', 'o', 'r', 'e', 'm'];
     let mut iter = slice.chunks(2);
     assert_eq!(iter.next().unwrap(), &['l', 'o']);
     assert_eq!(iter.next().unwrap(), &['r', 'e']);
     assert_eq!(iter.next().unwrap(), &['m']);
     assert!(iter.next().is_none());
    -
    1.31.0 · source

    pub fn chunks_exact(&self, chunk_size: usize) -> ChunksExact<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the +

    1.31.0 · source

    pub fn chunks_exact(&self, chunk_size: usize) -> ChunksExact<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the beginning of the slice.

    The chunks are slices and do not overlap. If chunk_size does not divide the length of the slice, then the last up to chunk_size-1 elements will be omitted and can be retrieved @@ -496,16 +458,16 @@

    §Exampleschunks.

    See chunks for a variant of this iterator that also returns the remainder as a smaller chunk, and rchunks_exact for the same iterator but starting at the end of the slice.

    -
    §Panics
    +
    §Panics

    Panics if chunk_size is 0.

    -
    §Examples
    +
    §Examples
    let slice = ['l', 'o', 'r', 'e', 'm'];
     let mut iter = slice.chunks_exact(2);
     assert_eq!(iter.next().unwrap(), &['l', 'o']);
     assert_eq!(iter.next().unwrap(), &['r', 'e']);
     assert!(iter.next().is_none());
     assert_eq!(iter.remainder(), &['m']);
    -
    source

    pub unsafe fn as_chunks_unchecked<const N: usize>(&self) -> &[[T; N]]

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, +

    source

    pub unsafe fn as_chunks_unchecked<const N: usize>(&self) -> &[[T; N]]

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, assuming that there’s no remainder.

    §Safety

    This may only be called when

    @@ -513,7 +475,7 @@
    §Safety
  • The slice splits exactly into N-element chunks (aka self.len() % N == 0).
  • N != 0.
  • -
    §Examples
    +
    §Examples
    #![feature(slice_as_chunks)]
     let slice: &[char] = &['l', 'o', 'r', 'e', 'm', '!'];
     let chunks: &[[char; 1]] =
    @@ -528,13 +490,13 @@ 
    §Examples// These would be unsound: // let chunks: &[[_; 5]] = slice.as_chunks_unchecked() // The slice length is not a multiple of 5 // let chunks: &[[_; 0]] = slice.as_chunks_unchecked() // Zero-length chunks are never allowed
    -
    source

    pub fn as_chunks<const N: usize>(&self) -> (&[[T; N]], &[T])

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, +

    source

    pub fn as_chunks<const N: usize>(&self) -> (&[[T; N]], &[T])

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, starting at the beginning of the slice, and a remainder slice with length strictly less than N.

    -
    §Panics
    +
    §Panics

    Panics if N is 0. This check will most probably get changed to a compile time error before this method gets stabilized.

    -
    §Examples
    +
    §Examples
    #![feature(slice_as_chunks)]
     let slice = ['l', 'o', 'r', 'e', 'm'];
     let (chunks, remainder) = slice.as_chunks();
    @@ -549,28 +511,28 @@ 
    §Examplespanic!("slice didn't have even length") }; assert_eq!(chunks, &[['R', 'u'], ['s', 't']]);
    -
    source

    pub fn as_rchunks<const N: usize>(&self) -> (&[T], &[[T; N]])

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, +

    source

    pub fn as_rchunks<const N: usize>(&self) -> (&[T], &[[T; N]])

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, starting at the end of the slice, and a remainder slice with length strictly less than N.

    -
    §Panics
    +
    §Panics

    Panics if N is 0. This check will most probably get changed to a compile time error before this method gets stabilized.

    -
    §Examples
    +
    §Examples
    #![feature(slice_as_chunks)]
     let slice = ['l', 'o', 'r', 'e', 'm'];
     let (remainder, chunks) = slice.as_rchunks();
     assert_eq!(remainder, &['l']);
     assert_eq!(chunks, &[['o', 'r'], ['e', 'm']]);
    -
    source

    pub fn array_chunks<const N: usize>(&self) -> ArrayChunks<'_, T, N>

    🔬This is a nightly-only experimental API. (array_chunks)

    Returns an iterator over N elements of the slice at a time, starting at the +

    source

    pub fn array_chunks<const N: usize>(&self) -> ArrayChunks<'_, T, N>

    🔬This is a nightly-only experimental API. (array_chunks)

    Returns an iterator over N elements of the slice at a time, starting at the beginning of the slice.

    The chunks are array references and do not overlap. If N does not divide the length of the slice, then the last up to N-1 elements will be omitted and can be retrieved from the remainder function of the iterator.

    This method is the const generic equivalent of chunks_exact.

    -
    §Panics
    +
    §Panics

    Panics if N is 0. This check will most probably get changed to a compile time error before this method gets stabilized.

    -
    §Examples
    +
    §Examples
    #![feature(array_chunks)]
     let slice = ['l', 'o', 'r', 'e', 'm'];
     let mut iter = slice.array_chunks();
    @@ -578,14 +540,14 @@ 
    §Examplesassert_eq!(iter.next().unwrap(), &['r', 'e']); assert!(iter.next().is_none()); assert_eq!(iter.remainder(), &['m']);
    -
    source

    pub fn array_windows<const N: usize>(&self) -> ArrayWindows<'_, T, N>

    🔬This is a nightly-only experimental API. (array_windows)

    Returns an iterator over overlapping windows of N elements of a slice, +

    source

    pub fn array_windows<const N: usize>(&self) -> ArrayWindows<'_, T, N>

    🔬This is a nightly-only experimental API. (array_windows)

    Returns an iterator over overlapping windows of N elements of a slice, starting at the beginning of the slice.

    This is the const generic equivalent of windows.

    If N is greater than the size of the slice, it will return no windows.

    -
    §Panics
    +
    §Panics

    Panics if N is 0. This check will most probably get changed to a compile time error before this method gets stabilized.

    -
    §Examples
    +
    §Examples
    #![feature(array_windows)]
     let slice = [0, 1, 2, 3];
     let mut iter = slice.array_windows();
    @@ -593,23 +555,23 @@ 
    §Examplesassert_eq!(iter.next().unwrap(), &[1, 2]); assert_eq!(iter.next().unwrap(), &[2, 3]); assert!(iter.next().is_none());
    -
    1.31.0 · source

    pub fn rchunks(&self, chunk_size: usize) -> RChunks<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the end +

    1.31.0 · source

    pub fn rchunks(&self, chunk_size: usize) -> RChunks<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the end of the slice.

    The chunks are slices and do not overlap. If chunk_size does not divide the length of the slice, then the last chunk will not have length chunk_size.

    See rchunks_exact for a variant of this iterator that returns chunks of always exactly chunk_size elements, and chunks for the same iterator but starting at the beginning of the slice.

    -
    §Panics
    +
    §Panics

    Panics if chunk_size is 0.

    -
    §Examples
    +
    §Examples
    let slice = ['l', 'o', 'r', 'e', 'm'];
     let mut iter = slice.rchunks(2);
     assert_eq!(iter.next().unwrap(), &['e', 'm']);
     assert_eq!(iter.next().unwrap(), &['o', 'r']);
     assert_eq!(iter.next().unwrap(), &['l']);
     assert!(iter.next().is_none());
    -
    1.31.0 · source

    pub fn rchunks_exact(&self, chunk_size: usize) -> RChunksExact<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the +

    1.31.0 · source

    pub fn rchunks_exact(&self, chunk_size: usize) -> RChunksExact<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the end of the slice.

    The chunks are slices and do not overlap. If chunk_size does not divide the length of the slice, then the last up to chunk_size-1 elements will be omitted and can be retrieved @@ -619,22 +581,22 @@

    §ExamplesSee rchunks for a variant of this iterator that also returns the remainder as a smaller chunk, and chunks_exact for the same iterator but starting at the beginning of the slice.

    -
    §Panics
    +
    §Panics

    Panics if chunk_size is 0.

    -
    §Examples
    +
    §Examples
    let slice = ['l', 'o', 'r', 'e', 'm'];
     let mut iter = slice.rchunks_exact(2);
     assert_eq!(iter.next().unwrap(), &['e', 'm']);
     assert_eq!(iter.next().unwrap(), &['o', 'r']);
     assert!(iter.next().is_none());
     assert_eq!(iter.remainder(), &['l']);
    -
    1.77.0 · source

    pub fn chunk_by<F>(&self, pred: F) -> ChunkBy<'_, T, F>
    where +

    1.77.0 · source

    pub fn chunk_by<F>(&self, pred: F) -> ChunkBy<'_, T, F>
    where F: FnMut(&T, &T) -> bool,

    Returns an iterator over the slice producing non-overlapping runs of elements using the predicate to separate them.

    The predicate is called for every pair of consecutive elements, meaning that it is called on slice[0] and slice[1], followed by slice[1] and slice[2], and so on.

    -
    §Examples
    +
    §Examples
    let slice = &[1, 1, 1, 3, 3, 2, 2, 2];
     
     let mut iter = slice.chunk_by(|a, b| a == b);
    @@ -653,14 +615,14 @@ 
    §Examplesassert_eq!(iter.next(), Some(&[2, 3][..])); assert_eq!(iter.next(), Some(&[2, 3, 4][..])); assert_eq!(iter.next(), None);
    -
    1.0.0 · source

    pub fn split_at(&self, mid: usize) -> (&[T], &[T])

    Divides one slice into two at an index.

    +
    1.0.0 · source

    pub fn split_at(&self, mid: usize) -> (&[T], &[T])

    Divides one slice into two at an index.

    The first will contain all indices from [0, mid) (excluding the index mid itself) and the second will contain all indices from [mid, len) (excluding the index len itself).

    -
    §Panics
    +
    §Panics

    Panics if mid > len. For a non-panicking alternative see split_at_checked.

    -
    §Examples
    +
    §Examples
    let v = [1, 2, 3, 4, 5, 6];
     
     {
    @@ -680,7 +642,7 @@ 
    §Examplesassert_eq!(left, [1, 2, 3, 4, 5, 6]); assert_eq!(right, []); }
    -
    1.79.0 · source

    pub unsafe fn split_at_unchecked(&self, mid: usize) -> (&[T], &[T])

    Divides one slice into two at an index, without doing bounds checking.

    +
    1.79.0 · source

    pub unsafe fn split_at_unchecked(&self, mid: usize) -> (&[T], &[T])

    Divides one slice into two at an index, without doing bounds checking.

    The first will contain all indices from [0, mid) (excluding the index mid itself) and the second will contain all indices from [mid, len) (excluding the index len itself).

    @@ -689,7 +651,7 @@
    §Safety

    Calling this method with an out-of-bounds index is undefined behavior even if the resulting reference is not used. The caller has to ensure that 0 <= mid <= self.len().

    -
    §Examples
    +
    §Examples
    let v = [1, 2, 3, 4, 5, 6];
     
     unsafe {
    @@ -709,14 +671,14 @@ 
    §Examplesassert_eq!(left, [1, 2, 3, 4, 5, 6]); assert_eq!(right, []); }
    -
    1.80.0 · source

    pub fn split_at_checked(&self, mid: usize) -> Option<(&[T], &[T])>

    Divides one slice into two at an index, returning None if the slice is +

    1.80.0 · source

    pub fn split_at_checked(&self, mid: usize) -> Option<(&[T], &[T])>

    Divides one slice into two at an index, returning None if the slice is too short.

    If mid ≤ len returns a pair of slices where the first will contain all indices from [0, mid) (excluding the index mid itself) and the second will contain all indices from [mid, len) (excluding the index len itself).

    Otherwise, if mid > len, returns None.

    -
    §Examples
    +
    §Examples
    let v = [1, -2, 3, -4, 5, -6];
     
     {
    @@ -738,10 +700,10 @@ 
    §Examplesassert_eq!(None, v.split_at_checked(7));
    -
    1.0.0 · source

    pub fn split<F>(&self, pred: F) -> Split<'_, T, F>
    where +

    1.0.0 · source

    pub fn split<F>(&self, pred: F) -> Split<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over subslices separated by elements that match pred. The matched element is not contained in the subslices.

    -
    §Examples
    +
    §Examples
    let slice = [10, 40, 33, 20];
     let mut iter = slice.split(|num| num % 3 == 0);
     
    @@ -769,11 +731,11 @@ 
    §Examplesassert_eq!(iter.next().unwrap(), &[]); assert_eq!(iter.next().unwrap(), &[20]); assert!(iter.next().is_none());
    -
    1.51.0 · source

    pub fn split_inclusive<F>(&self, pred: F) -> SplitInclusive<'_, T, F>
    where +

    1.51.0 · source

    pub fn split_inclusive<F>(&self, pred: F) -> SplitInclusive<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over subslices separated by elements that match pred. The matched element is contained in the end of the previous subslice as a terminator.

    -
    §Examples
    +
    §Examples
    let slice = [10, 40, 33, 20];
     let mut iter = slice.split_inclusive(|num| num % 3 == 0);
     
    @@ -790,11 +752,11 @@ 
    §Examplesassert_eq!(iter.next().unwrap(), &[3]); assert_eq!(iter.next().unwrap(), &[10, 40, 33]); assert!(iter.next().is_none());
    -
    1.27.0 · source

    pub fn rsplit<F>(&self, pred: F) -> RSplit<'_, T, F>
    where +

    1.27.0 · source

    pub fn rsplit<F>(&self, pred: F) -> RSplit<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over subslices separated by elements that match pred, starting at the end of the slice and working backwards. The matched element is not contained in the subslices.

    -
    §Examples
    +
    §Examples
    let slice = [11, 22, 33, 0, 44, 55];
     let mut iter = slice.rsplit(|num| *num == 0);
     
    @@ -811,13 +773,13 @@ 
    §Examplesassert_eq!(it.next().unwrap(), &[1, 1]); assert_eq!(it.next().unwrap(), &[]); assert_eq!(it.next(), None);
    -
    1.0.0 · source

    pub fn splitn<F>(&self, n: usize, pred: F) -> SplitN<'_, T, F>
    where +

    1.0.0 · source

    pub fn splitn<F>(&self, n: usize, pred: F) -> SplitN<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over subslices separated by elements that match pred, limited to returning at most n items. The matched element is not contained in the subslices.

    The last element returned, if any, will contain the remainder of the slice.

    -
    §Examples
    +
    §Examples

    Print the slice split once by numbers divisible by 3 (i.e., [10, 40], [20, 60, 50]):

    @@ -826,14 +788,14 @@
    §Examplesfor group in v.splitn(2, |num| *num % 3 == 0) { println!("{group:?}"); }
    -
    1.0.0 · source

    pub fn rsplitn<F>(&self, n: usize, pred: F) -> RSplitN<'_, T, F>
    where +

    1.0.0 · source

    pub fn rsplitn<F>(&self, n: usize, pred: F) -> RSplitN<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over subslices separated by elements that match pred limited to returning at most n items. This starts at the end of the slice and works backwards. The matched element is not contained in the subslices.

    The last element returned, if any, will contain the remainder of the slice.

    -
    §Examples
    +
    §Examples

    Print the slice split once, starting from the end, by numbers divisible by 3 (i.e., [50], [10, 40, 30, 20]):

    @@ -842,13 +804,13 @@
    §Examplesfor group in v.rsplitn(2, |num| *num % 3 == 0) { println!("{group:?}"); }
    -
    source

    pub fn split_once<F>(&self, pred: F) -> Option<(&[T], &[T])>
    where +

    source

    pub fn split_once<F>(&self, pred: F) -> Option<(&[T], &[T])>
    where F: FnMut(&T) -> bool,

    🔬This is a nightly-only experimental API. (slice_split_once)

    Splits the slice on the first element that matches the specified predicate.

    If any matching elements are present in the slice, returns the prefix before the match and suffix after. The matching element itself is not included. If no elements match, returns None.

    -
    §Examples
    +
    §Examples
    #![feature(slice_split_once)]
     let s = [1, 2, 3, 2, 4];
     assert_eq!(s.split_once(|&x| x == 2), Some((
    @@ -856,13 +818,13 @@ 
    §Examples&[3, 2, 4][..] ))); assert_eq!(s.split_once(|&x| x == 0), None);
    -
    source

    pub fn rsplit_once<F>(&self, pred: F) -> Option<(&[T], &[T])>
    where +

    source

    pub fn rsplit_once<F>(&self, pred: F) -> Option<(&[T], &[T])>
    where F: FnMut(&T) -> bool,

    🔬This is a nightly-only experimental API. (slice_split_once)

    Splits the slice on the last element that matches the specified predicate.

    If any matching elements are present in the slice, returns the prefix before the match and suffix after. The matching element itself is not included. If no elements match, returns None.

    -
    §Examples
    +
    §Examples
    #![feature(slice_split_once)]
     let s = [1, 2, 3, 2, 4];
     assert_eq!(s.rsplit_once(|&x| x == 2), Some((
    @@ -870,11 +832,11 @@ 
    §Examples&[4][..] ))); assert_eq!(s.rsplit_once(|&x| x == 0), None);
    -
    1.0.0 · source

    pub fn contains(&self, x: &T) -> bool
    where +

    1.0.0 · source

    pub fn contains(&self, x: &T) -> bool
    where T: PartialEq,

    Returns true if the slice contains an element with the given value.

    This operation is O(n).

    Note that if you have a sorted slice, binary_search may be faster.

    -
    §Examples
    +
    §Examples
    let v = [10, 40, 30];
     assert!(v.contains(&30));
     assert!(!v.contains(&50));
    @@ -885,9 +847,9 @@
    §Examples
    let v = [String::from("hello"), String::from("world")]; // slice of `String`
     assert!(v.iter().any(|e| e == "hello")); // search with `&str`
     assert!(!v.iter().any(|e| e == "hi"));
    -
    1.0.0 · source

    pub fn starts_with(&self, needle: &[T]) -> bool
    where +

    1.0.0 · source

    pub fn starts_with(&self, needle: &[T]) -> bool
    where T: PartialEq,

    Returns true if needle is a prefix of the slice or equal to the slice.

    -
    §Examples
    +
    §Examples
    let v = [10, 40, 30];
     assert!(v.starts_with(&[10]));
     assert!(v.starts_with(&[10, 40]));
    @@ -900,9 +862,9 @@ 
    §Examplesassert!(v.starts_with(&[])); let v: &[u8] = &[]; assert!(v.starts_with(&[]));
    -
    1.0.0 · source

    pub fn ends_with(&self, needle: &[T]) -> bool
    where +

    1.0.0 · source

    pub fn ends_with(&self, needle: &[T]) -> bool
    where T: PartialEq,

    Returns true if needle is a suffix of the slice or equal to the slice.

    -
    §Examples
    +
    §Examples
    let v = [10, 40, 30];
     assert!(v.ends_with(&[30]));
     assert!(v.ends_with(&[40, 30]));
    @@ -915,14 +877,14 @@ 
    §Examplesassert!(v.ends_with(&[])); let v: &[u8] = &[]; assert!(v.ends_with(&[]));
    -
    1.51.0 · source

    pub fn strip_prefix<P>(&self, prefix: &P) -> Option<&[T]>
    where +

    1.51.0 · source

    pub fn strip_prefix<P>(&self, prefix: &P) -> Option<&[T]>
    where P: SlicePattern<Item = T> + ?Sized, T: PartialEq,

    Returns a subslice with the prefix removed.

    If the slice starts with prefix, returns the subslice after the prefix, wrapped in Some. If prefix is empty, simply returns the original slice. If prefix is equal to the original slice, returns an empty slice.

    If the slice does not start with prefix, returns None.

    -
    §Examples
    +
    §Examples
    let v = &[10, 40, 30];
     assert_eq!(v.strip_prefix(&[10]), Some(&[40, 30][..]));
     assert_eq!(v.strip_prefix(&[10, 40]), Some(&[30][..]));
    @@ -933,21 +895,21 @@ 
    §Exampleslet prefix : &str = "he"; assert_eq!(b"hello".strip_prefix(prefix.as_bytes()), Some(b"llo".as_ref()));
    -
    1.51.0 · source

    pub fn strip_suffix<P>(&self, suffix: &P) -> Option<&[T]>
    where +

    1.51.0 · source

    pub fn strip_suffix<P>(&self, suffix: &P) -> Option<&[T]>
    where P: SlicePattern<Item = T> + ?Sized, T: PartialEq,

    Returns a subslice with the suffix removed.

    If the slice ends with suffix, returns the subslice before the suffix, wrapped in Some. If suffix is empty, simply returns the original slice. If suffix is equal to the original slice, returns an empty slice.

    If the slice does not end with suffix, returns None.

    -
    §Examples
    +
    §Examples
    let v = &[10, 40, 30];
     assert_eq!(v.strip_suffix(&[30]), Some(&[10, 40][..]));
     assert_eq!(v.strip_suffix(&[40, 30]), Some(&[10][..]));
     assert_eq!(v.strip_suffix(&[10, 40, 30]), Some(&[][..]));
     assert_eq!(v.strip_suffix(&[50]), None);
     assert_eq!(v.strip_suffix(&[50, 30]), None);
    -

    Binary searches this slice for a given element. If the slice is not sorted, the returned result is unspecified and meaningless.

    @@ -959,7 +921,7 @@
    §Examples

    See also binary_search_by, binary_search_by_key, and partition_point.

    -
    §Examples
    +
    §Examples

    Looks up a series of four elements. The first is found, with a uniquely determined position; the second and third are not found; the fourth could match any position in [1, 4].

    @@ -1002,7 +964,7 @@
    §Exampless.insert(idx, num); assert_eq!(s, [0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 42, 55]);
    -
    1.0.0 · source

    pub fn binary_search_by<'a, F>(&'a self, f: F) -> Result<usize, usize>
    where +

    1.0.0 · source

    pub fn binary_search_by<'a, F>(&'a self, f: F) -> Result<usize, usize>
    where F: FnMut(&'a T) -> Ordering,

    Binary searches this slice with a comparator function.

    The comparator function should return an order code that indicates whether its argument is Less, Equal or Greater the desired @@ -1018,7 +980,7 @@

    §Examples

    See also binary_search, binary_search_by_key, and partition_point.

    -
    §Examples
    +
    §Examples

    Looks up a series of four elements. The first is found, with a uniquely determined position; the second and third are not found; the fourth could match any position in [1, 4].

    @@ -1034,7 +996,7 @@
    §Exampleslet seek = 1; let r = s.binary_search_by(|probe| probe.cmp(&seek)); assert!(match r { Ok(1..=4) => true, _ => false, });
    -
    1.10.0 · source

    pub fn binary_search_by_key<'a, B, F>( +

    1.10.0 · source

    pub fn binary_search_by_key<'a, B, F>( &'a self, b: &B, f: F, @@ -1053,7 +1015,7 @@

    §Examples

    See also binary_search, binary_search_by, and partition_point.

    -
    §Examples
    +
    §Examples

    Looks up a series of four elements in a slice of pairs sorted by their second elements. The first is found, with a uniquely determined position; the second and third are not found; the @@ -1068,7 +1030,7 @@

    §Examplesassert_eq!(s.binary_search_by_key(&100, |&(a, b)| b), Err(13)); let r = s.binary_search_by_key(&1, |&(a, b)| b); assert!(match r { Ok(1..=4) => true, _ => false, }); -
    1.30.0 · source

    pub unsafe fn align_to<U>(&self) -> (&[T], &[U], &[T])

    Transmute the slice to a slice of another type, ensuring alignment of the types is +

    1.30.0 · source

    pub unsafe fn align_to<U>(&self) -> (&[T], &[U], &[T])

    Transmutes the slice to a slice of another type, ensuring alignment of the types is maintained.

    This method splits the slice into three distinct slices: prefix, correctly aligned middle slice of a new type, and the suffix slice. The middle part will be as big as possible under @@ -1078,7 +1040,7 @@

    §Examples§Safety

    This method is essentially a transmute with respect to the elements in the returned middle slice, so all the usual caveats pertaining to transmute::<T, U> also apply here.

    -
    §Examples
    +
    §Examples

    Basic usage:

    unsafe {
    @@ -1088,22 +1050,13 @@ 
    §Examples}
    -
    source

    pub fn as_simd<const LANES: usize>(&self) -> (&[T], &[Simd<T, LANES>], &[T])
    where +

    source

    pub fn as_simd<const LANES: usize>(&self) -> (&[T], &[Simd<T, LANES>], &[T])
    where Simd<T, LANES>: AsRef<[T; LANES]>, T: SimdElement, - LaneCount<LANES>: SupportedLaneCount,

    🔬This is a nightly-only experimental API. (portable_simd)

    Split a slice into a prefix, a middle of aligned SIMD types, and a suffix.

    -

    This is a safe wrapper around slice::align_to, so has the same weak -postconditions as that method. You’re only assured that -self.len() == prefix.len() + middle.len() * LANES + suffix.len().

    -

    Notably, all of the following are possible:

    -
      -
    • prefix.len() >= LANES.
    • -
    • middle.is_empty() despite self.len() >= 3 * LANES.
    • -
    • suffix.len() >= LANES.
    • -
    -

    That said, this is a safe method, so if you’re only writing safe code, -then this can at most cause incorrect logic, not unsoundness.

    -
    §Panics
    + LaneCount<LANES>: SupportedLaneCount,
    🔬This is a nightly-only experimental API. (portable_simd)

    Splits a slice into a prefix, a middle of aligned SIMD types, and a suffix.

    +

    This is a safe wrapper around slice::align_to, so inherits the same +guarantees as that method.

    +
    §Panics

    This will panic if the size of the SIMD type is different from LANES times that of the scalar.

    At the time of writing, the trait restrictions on Simd<T, LANES> keeps @@ -1111,7 +1064,7 @@

    §Panics
    supported. It’s possible that, in the future, those restrictions might be lifted in a way that would make it possible to see panics from this method for something like LANES == 3.

    -
    §Examples
    +
    §Examples
    #![feature(portable_simd)]
     use core::simd::prelude::*;
     
    @@ -1138,30 +1091,27 @@ 
    §Exampleslet numbers: Vec<f32> = (1..101).map(|x| x as _).collect(); assert_eq!(basic_simd_sum(&numbers[1..99]), 4949.0);
    -
    source

    pub fn is_sorted(&self) -> bool
    where - T: PartialOrd,

    🔬This is a nightly-only experimental API. (is_sorted)

    Checks if the elements of this slice are sorted.

    +
    1.82.0 · source

    pub fn is_sorted(&self) -> bool
    where + T: PartialOrd,

    Checks if the elements of this slice are sorted.

    That is, for each element a and its following element b, a <= b must hold. If the slice yields exactly zero or one element, true is returned.

    Note that if Self::Item is only PartialOrd, but not Ord, the above definition implies that this function returns false if any two consecutive items are not comparable.

    -
    §Examples
    -
    #![feature(is_sorted)]
    -let empty: [i32; 0] = [];
    +
    §Examples
    +
    let empty: [i32; 0] = [];
     
     assert!([1, 2, 2, 9].is_sorted());
     assert!(![1, 3, 2, 4].is_sorted());
     assert!([0].is_sorted());
     assert!(empty.is_sorted());
     assert!(![0.0, 1.0, f32::NAN].is_sorted());
    -
    source

    pub fn is_sorted_by<'a, F>(&'a self, compare: F) -> bool
    where - F: FnMut(&'a T, &'a T) -> bool,

    🔬This is a nightly-only experimental API. (is_sorted)

    Checks if the elements of this slice are sorted using the given comparator function.

    +
    1.82.0 · source

    pub fn is_sorted_by<'a, F>(&'a self, compare: F) -> bool
    where + F: FnMut(&'a T, &'a T) -> bool,

    Checks if the elements of this slice are sorted using the given comparator function.

    Instead of using PartialOrd::partial_cmp, this function uses the given compare function to determine whether two elements are to be considered in sorted order.

    -
    §Examples
    -
    #![feature(is_sorted)]
    -
    -assert!([1, 2, 2, 9].is_sorted_by(|a, b| a <= b));
    +
    §Examples
    +
    assert!([1, 2, 2, 9].is_sorted_by(|a, b| a <= b));
     assert!(![1, 2, 2, 9].is_sorted_by(|a, b| a < b));
     
     assert!([0].is_sorted_by(|a, b| true));
    @@ -1170,18 +1120,16 @@ 
    §Exampleslet empty: [i32; 0] = []; assert!(empty.is_sorted_by(|a, b| false)); assert!(empty.is_sorted_by(|a, b| true));
    -
    source

    pub fn is_sorted_by_key<'a, F, K>(&'a self, f: F) -> bool
    where +

    1.82.0 · source

    pub fn is_sorted_by_key<'a, F, K>(&'a self, f: F) -> bool
    where F: FnMut(&'a T) -> K, - K: PartialOrd,

    🔬This is a nightly-only experimental API. (is_sorted)

    Checks if the elements of this slice are sorted using the given key extraction function.

    + K: PartialOrd,

    Checks if the elements of this slice are sorted using the given key extraction function.

    Instead of comparing the slice’s elements directly, this function compares the keys of the elements, as determined by f. Apart from that, it’s equivalent to is_sorted; see its documentation for more information.

    -
    §Examples
    -
    #![feature(is_sorted)]
    -
    -assert!(["c", "bb", "aaa"].is_sorted_by_key(|s| s.len()));
    +
    §Examples
    +
    assert!(["c", "bb", "aaa"].is_sorted_by_key(|s| s.len()));
     assert!(![-2i32, -1, 0, 3].is_sorted_by_key(|n| n.abs()));
    -
    1.52.0 · source

    pub fn partition_point<P>(&self, pred: P) -> usize
    where +

    1.52.0 · source

    pub fn partition_point<P>(&self, pred: P) -> usize
    where P: FnMut(&T) -> bool,

    Returns the index of the partition point according to the given predicate (the index of the first element of the second partition).

    The slice is assumed to be partitioned according to the given predicate. @@ -1192,7 +1140,7 @@

    §ExamplesIf this slice is not partitioned, the returned result is unspecified and meaningless, as this method performs a kind of binary search.

    See also binary_search, binary_search_by, and binary_search_by_key.

    -
    §Examples
    +
    §Examples
    let v = [1, 2, 3, 3, 5, 6, 7];
     let i = v.partition_point(|&x| x < 5);
     
    @@ -1214,26 +1162,122 @@ 
    §Exampleslet idx = s.partition_point(|&x| x <= num); s.insert(idx, num); assert_eq!(s, [0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 42, 55]);
    -
    1.23.0 · source

    pub fn to_ascii_uppercase(&self) -> Vec<u8>

    Returns a vector containing a copy of this slice where each byte -is mapped to its ASCII upper case equivalent.

    -

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, -but non-ASCII letters are unchanged.

    -

    To uppercase the value in-place, use make_ascii_uppercase.

    -
    1.23.0 · source

    pub fn to_ascii_lowercase(&self) -> Vec<u8>

    Returns a vector containing a copy of this slice where each byte -is mapped to its ASCII lower case equivalent.

    -

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, -but non-ASCII letters are unchanged.

    -

    To lowercase the value in-place, use make_ascii_lowercase.

    -
    1.0.0 · source

    pub fn to_vec(&self) -> Vec<T>
    where - T: Clone,

    Copies self into a new Vec.

    +
    source

    pub fn elem_offset(&self, element: &T) -> Option<usize>

    🔬This is a nightly-only experimental API. (substr_range)

    Returns the index that an element reference points to.

    +

    Returns None if element does not point within the slice or if it points between elements.

    +

    This method is useful for extending slice iterators like slice::split.

    +

    Note that this uses pointer arithmetic and does not compare elements. +To find the index of an element via comparison, use +.iter().position() instead.

    +
    §Panics
    +

    Panics if T is zero-sized.

    +
    §Examples
    +

    Basic usage:

    + +
    #![feature(substr_range)]
    +
    +let nums: &[u32] = &[1, 7, 1, 1];
    +let num = &nums[2];
    +
    +assert_eq!(num, &1);
    +assert_eq!(nums.elem_offset(num), Some(2));
    +

    Returning None with an in-between element:

    + +
    #![feature(substr_range)]
    +
    +let arr: &[[u32; 2]] = &[[0, 1], [2, 3]];
    +let flat_arr: &[u32] = arr.as_flattened();
    +
    +let ok_elm: &[u32; 2] = flat_arr[0..2].try_into().unwrap();
    +let weird_elm: &[u32; 2] = flat_arr[1..3].try_into().unwrap();
    +
    +assert_eq!(ok_elm, &[0, 1]);
    +assert_eq!(weird_elm, &[1, 2]);
    +
    +assert_eq!(arr.elem_offset(ok_elm), Some(0)); // Points to element 0
    +assert_eq!(arr.elem_offset(weird_elm), None); // Points between element 0 and 1
    +
    source

    pub fn subslice_range(&self, subslice: &[T]) -> Option<Range<usize>>

    🔬This is a nightly-only experimental API. (substr_range)

    Returns the range of indices that a subslice points to.

    +

    Returns None if subslice does not point within the slice or if it points between elements.

    +

    This method does not compare elements. Instead, this method finds the location in the slice that +subslice was obtained from. To find the index of a subslice via comparison, instead use +.windows().position().

    +

    This method is useful for extending slice iterators like slice::split.

    +

    Note that this may return a false positive (either Some(0..0) or Some(self.len()..self.len())) +if subslice has a length of zero and points to the beginning or end of another, separate, slice.

    +
    §Panics
    +

    Panics if T is zero-sized.

    §Examples
    +

    Basic usage:

    + +
    #![feature(substr_range)]
    +
    +let nums = &[0, 5, 10, 0, 0, 5];
    +
    +let mut iter = nums
    +    .split(|t| *t == 0)
    +    .map(|n| nums.subslice_range(n).unwrap());
    +
    +assert_eq!(iter.next(), Some(0..0));
    +assert_eq!(iter.next(), Some(1..3));
    +assert_eq!(iter.next(), Some(4..4));
    +assert_eq!(iter.next(), Some(5..6));
    +
    1.80.0 · source

    pub fn as_flattened(&self) -> &[T]

    Takes a &[[T; N]], and flattens it to a &[T].

    +
    §Panics
    +

    This panics if the length of the resulting slice would overflow a usize.

    +

    This is only possible when flattening a slice of arrays of zero-sized +types, and thus tends to be irrelevant in practice. If +size_of::<T>() > 0, this will never panic.

    +
    §Examples
    +
    assert_eq!([[1, 2, 3], [4, 5, 6]].as_flattened(), &[1, 2, 3, 4, 5, 6]);
    +
    +assert_eq!(
    +    [[1, 2, 3], [4, 5, 6]].as_flattened(),
    +    [[1, 2], [3, 4], [5, 6]].as_flattened(),
    +);
    +
    +let slice_of_empty_arrays: &[[i32; 0]] = &[[], [], [], [], []];
    +assert!(slice_of_empty_arrays.as_flattened().is_empty());
    +
    +let empty_slice_of_arrays: &[[u32; 10]] = &[];
    +assert!(empty_slice_of_arrays.as_flattened().is_empty());
    +
    1.79.0 · source

    pub fn utf8_chunks(&self) -> Utf8Chunks<'_>

    Creates an iterator over the contiguous valid UTF-8 ranges of this +slice, and the non-UTF-8 fragments in between.

    +
    §Examples
    +

    This function formats arbitrary but mostly-UTF-8 bytes into Rust source +code in the form of a C-string literal (c"...").

    + +
    use std::fmt::Write as _;
    +
    +pub fn cstr_literal(bytes: &[u8]) -> String {
    +    let mut repr = String::new();
    +    repr.push_str("c\"");
    +    for chunk in bytes.utf8_chunks() {
    +        for ch in chunk.valid().chars() {
    +            // Escapes \0, \t, \r, \n, \\, \', \", and uses \u{...} for non-printable characters.
    +            write!(repr, "{}", ch.escape_debug()).unwrap();
    +        }
    +        for byte in chunk.invalid() {
    +            write!(repr, "\\x{:02X}", byte).unwrap();
    +        }
    +    }
    +    repr.push('"');
    +    repr
    +}
    +
    +fn main() {
    +    let lit = cstr_literal(b"\xferris the \xf0\x9f\xa6\x80\x07");
    +    let expected = stringify!(c"\xFErris the 🦀\u{7}");
    +    assert_eq!(lit, expected);
    +}
    +
    1.0.0 · source

    pub fn to_vec(&self) -> Vec<T>
    where + T: Clone,

    Copies self into a new Vec.

    +
    §Examples
    let s = [10, 40, 30];
     let x = s.to_vec();
     // Here, `s` and `x` can be modified independently.
    -
    source

    pub fn to_vec_in<A>(&self, alloc: A) -> Vec<T, A>
    where +

    source

    pub fn to_vec_in<A>(&self, alloc: A) -> Vec<T, A>
    where A: Allocator, T: Clone,

    🔬This is a nightly-only experimental API. (allocator_api)

    Copies self into a new Vec with an allocator.

    -
    §Examples
    +
    §Examples
    #![feature(allocator_api)]
     
     use std::alloc::System;
    @@ -1241,11 +1285,11 @@ 
    §Exampleslet s = [10, 40, 30]; let x = s.to_vec_in(System); // Here, `s` and `x` can be modified independently.
    -
    1.40.0 · source

    pub fn repeat(&self, n: usize) -> Vec<T>
    where +

    1.40.0 · source

    pub fn repeat(&self, n: usize) -> Vec<T>
    where T: Copy,

    Creates a vector by copying a slice n times.

    -
    §Panics
    +
    §Panics

    This function will panic if the capacity would overflow.

    -
    §Examples
    +
    §Examples

    Basic usage:

    assert_eq!([1, 2].repeat(3), vec![1, 2, 1, 2, 1, 2]);
    @@ -1253,31 +1297,41 @@
    §Examples
    // this will panic at runtime
     b"0123456789abcdef".repeat(usize::MAX);
    -
    1.0.0 · source

    pub fn concat<Item>(&self) -> <[T] as Concat<Item>>::Output
    where +

    1.0.0 · source

    pub fn concat<Item>(&self) -> <[T] as Concat<Item>>::Output
    where [T]: Concat<Item>, Item: ?Sized,

    Flattens a slice of T into a single value Self::Output.

    -
    §Examples
    +
    §Examples
    assert_eq!(["hello", "world"].concat(), "helloworld");
     assert_eq!([[1, 2], [3, 4]].concat(), [1, 2, 3, 4]);
    -
    1.3.0 · source

    pub fn join<Separator>( +

    1.3.0 · source

    pub fn join<Separator>( &self, sep: Separator, ) -> <[T] as Join<Separator>>::Output
    where [T]: Join<Separator>,

    Flattens a slice of T into a single value Self::Output, placing a given separator between each.

    -
    §Examples
    +
    §Examples
    assert_eq!(["hello", "world"].join(" "), "hello world");
     assert_eq!([[1, 2], [3, 4]].join(&0), [1, 2, 0, 3, 4]);
     assert_eq!([[1, 2], [3, 4]].join(&[0, 0][..]), [1, 2, 0, 0, 3, 4]);
    -
    1.0.0 · source

    pub fn connect<Separator>( +

    1.0.0 · source

    pub fn connect<Separator>( &self, sep: Separator, ) -> <[T] as Join<Separator>>::Output
    where [T]: Join<Separator>,

    👎Deprecated since 1.3.0: renamed to join

    Flattens a slice of T into a single value Self::Output, placing a given separator between each.

    -
    §Examples
    +
    §Examples
    assert_eq!(["hello", "world"].connect(" "), "hello world");
     assert_eq!([[1, 2], [3, 4]].connect(&0), [1, 2, 0, 3, 4]);
    +
    1.23.0 · source

    pub fn to_ascii_uppercase(&self) -> Vec<u8>

    Returns a vector containing a copy of this slice where each byte +is mapped to its ASCII upper case equivalent.

    +

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, +but non-ASCII letters are unchanged.

    +

    To uppercase the value in-place, use make_ascii_uppercase.

    +
    1.23.0 · source

    pub fn to_ascii_lowercase(&self) -> Vec<u8>

    Returns a vector containing a copy of this slice where each byte +is mapped to its ASCII lower case equivalent.

    +

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, +but non-ASCII letters are unchanged.

    +

    To lowercase the value in-place, use make_ascii_lowercase.

    Trait Implementations§

    §

    impl Apiv2Schema for Bytes

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    §

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl AsRef<[u8]> for Bytes

    §

    fn as_ref(&self) -> &[u8]

    Converts this type into a shared reference of the (usually inferred) input type.
    §

    impl Borrow<[u8]> for Bytes

    §

    fn borrow(&self) -> &[u8]

    Immutably borrows from an owned value. Read more
    §

    impl Buf for Bytes

    §

    fn remaining(&self) -> usize

    Returns the number of bytes between the current position and the end of the buffer. Read more
    §

    fn chunk(&self) -> &[u8]

    Returns a slice starting at the current position and of length between 0 and Buf::remaining(). Note that this can return shorter slice (this allows @@ -1293,12 +1347,22 @@
    §ExamplesSized,
    Creates an adaptor which will read at most limit bytes from self. Read more
    §

    fn chain<U>(self, next: U) -> Chain<Self, U>
    where U: Buf, Self: Sized,

    Creates an adaptor which will chain this buffer with another. Read more
    §

    fn reader(self) -> Reader<Self>
    where - Self: Sized,

    Creates an adaptor which implements the Read trait for self. Read more
    §

    impl Clone for Bytes

    §

    fn clone(&self) -> Bytes

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Bytes

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for Bytes

    §

    fn default() -> Bytes

    Returns the “default value” for a type. Read more
    §

    impl Deref for Bytes

    §

    type Target = [u8]

    The resulting type after dereferencing.
    §

    fn deref(&self) -> &[u8]

    Dereferences the value.
    §

    impl Drop for Bytes

    §

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    §

    impl Extend<Bytes> for BytesMut

    §

    fn extend<T>(&mut self, iter: T)
    where - T: IntoIterator<Item = Bytes>,

    Extends a collection with the contents of an iterator. Read more
    source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    §

    impl From<&'static [u8]> for Bytes

    §

    fn from(slice: &'static [u8]) -> Bytes

    Converts to this type from the input type.
    §

    impl From<&'static str> for Bytes

    §

    fn from(slice: &'static str) -> Bytes

    Converts to this type from the input type.
    §

    impl From<Box<[u8]>> for Bytes

    §

    fn from(slice: Box<[u8]>) -> Bytes

    Converts to this type from the input type.
    source§

    impl From<ByteStr> for Bytes

    source§

    fn from(src: ByteStr) -> Bytes

    Converts to this type from the input type.
    §

    impl From<Bytes> for Vec<u8>

    §

    fn from(bytes: Bytes) -> Vec<u8>

    Converts to this type from the input type.
    §

    impl From<BytesMut> for Bytes

    §

    fn from(src: BytesMut) -> Bytes

    Converts to this type from the input type.
    source§

    impl From<Custom> for Bytes

    source§

    fn from(_: Custom) -> Bytes

    Converts to this type from the input type.
    §

    impl From<String> for Bytes

    §

    fn from(s: String) -> Bytes

    Converts to this type from the input type.
    §

    impl From<Vec<u8>> for Bytes

    §

    fn from(vec: Vec<u8>) -> Bytes

    Converts to this type from the input type.
    §

    impl FromIterator<u8> for Bytes

    §

    fn from_iter<T>(into_iter: T) -> Bytes
    where + Self: Sized,

    Creates an adaptor which implements the Read trait for self. Read more
    §

    impl Clone for Bytes

    §

    fn clone(&self) -> Bytes

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Bytes

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for Bytes

    §

    fn default() -> Bytes

    Returns the “default value” for a type. Read more
    §

    impl Deref for Bytes

    §

    type Target = [u8]

    The resulting type after dereferencing.
    §

    fn deref(&self) -> &[u8]

    Dereferences the value.
    §

    impl Drop for Bytes

    §

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    §

    impl Extend<Bytes> for BytesMut

    §

    fn extend<T>(&mut self, iter: T)
    where + T: IntoIterator<Item = Bytes>,

    Extends a collection with the contents of an iterator. Read more
    source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    §

    impl From<&'static [u8]> for Bytes

    §

    fn from(slice: &'static [u8]) -> Bytes

    Converts to this type from the input type.
    §

    impl From<&'static str> for Bytes

    §

    fn from(slice: &'static str) -> Bytes

    Converts to this type from the input type.
    §

    impl From<Box<[u8]>> for Bytes

    §

    fn from(slice: Box<[u8]>) -> Bytes

    Converts to this type from the input type.
    source§

    impl From<ByteStr> for Bytes

    source§

    fn from(src: ByteStr) -> Bytes

    Converts to this type from the input type.
    §

    impl From<Bytes> for BytesMut

    §

    fn from(bytes: Bytes) -> BytesMut

    Convert self into BytesMut.

    +

    If bytes is unique for the entire original buffer, this will return a +BytesMut with the contents of bytes without copying. +If bytes is not unique for the entire original buffer, this will make +a copy of bytes subset of the original buffer in a new BytesMut.

    +
    §Examples
    +
    use bytes::{Bytes, BytesMut};
    +
    +let bytes = Bytes::from(b"hello".to_vec());
    +assert_eq!(BytesMut::from(bytes), BytesMut::from(&b"hello"[..]));
    +
    §

    impl From<Bytes> for Vec<u8>

    §

    fn from(bytes: Bytes) -> Vec<u8>

    Converts to this type from the input type.
    §

    impl From<BytesMut> for Bytes

    §

    fn from(src: BytesMut) -> Bytes

    Converts to this type from the input type.
    source§

    impl From<Custom> for Bytes

    source§

    fn from(_: Custom) -> Bytes

    Converts to this type from the input type.
    §

    impl From<String> for Bytes

    §

    fn from(s: String) -> Bytes

    Converts to this type from the input type.
    §

    impl From<Vec<u8>> for Bytes

    §

    fn from(vec: Vec<u8>) -> Bytes

    Converts to this type from the input type.
    §

    impl FromIterator<u8> for Bytes

    §

    fn from_iter<T>(into_iter: T) -> Bytes
    where T: IntoIterator<Item = u8>,

    Creates a value from an iterator. Read more
    §

    impl FromRequest for Bytes

    Extract binary data from a request’s payload.

    Collects request payload stream into a Bytes instance.

    Use PayloadConfig to configure extraction process.

    -

    §Examples

    +

    §Examples

    use actix_web::{post, web};
     
     /// extract binary data from request
    @@ -1310,9 +1374,9 @@ 

    §ExamplesHttpRequest, payload: &mut Payload, ) -> <Bytes as FromRequest>::Future

    Create a Self from request parts asynchronously.
    §

    fn extract(req: &HttpRequest) -> Self::Future

    Create a Self from request head asynchronously. Read more
    §

    impl Hash for Bytes

    §

    fn hash<H>(&self, state: &mut H)
    where - H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    §

    impl<'a> IntoIterator for &'a Bytes

    §

    type Item = &'a u8

    The type of the elements being iterated over.
    §

    type IntoIter = Iter<'a, u8>

    Which kind of iterator are we turning this into?
    §

    fn into_iter(self) -> <&'a Bytes as IntoIterator>::IntoIter

    Creates an iterator from a value. Read more
    §

    impl IntoIterator for Bytes

    §

    type Item = u8

    The type of the elements being iterated over.
    §

    type IntoIter = IntoIter<Bytes>

    Which kind of iterator are we turning this into?
    §

    fn into_iter(self) -> <Bytes as IntoIterator>::IntoIter

    Creates an iterator from a value. Read more
    §

    impl LowerHex for Bytes

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl MessageBody for Bytes

    §

    type Error = Infallible

    The type of error that will be returned if streaming body fails. Read more
    §

    fn size(&self) -> BodySize

    Body size hint. Read more
    §

    fn poll_next( + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    §

    impl<'a> IntoIterator for &'a Bytes

    §

    type Item = &'a u8

    The type of the elements being iterated over.
    §

    type IntoIter = Iter<'a, u8>

    Which kind of iterator are we turning this into?
    §

    fn into_iter(self) -> <&'a Bytes as IntoIterator>::IntoIter

    Creates an iterator from a value. Read more
    §

    impl IntoIterator for Bytes

    §

    type Item = u8

    The type of the elements being iterated over.
    §

    type IntoIter = IntoIter<Bytes>

    Which kind of iterator are we turning this into?
    §

    fn into_iter(self) -> <Bytes as IntoIterator>::IntoIter

    Creates an iterator from a value. Read more
    §

    impl LowerHex for Bytes

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl MessageBody for Bytes

    §

    type Error = Infallible

    The type of error that will be returned if streaming body fails. Read more
    §

    fn size(&self) -> BodySize

    Body size hint. Read more
    §

    fn poll_next( self: Pin<&mut Bytes>, _cx: &mut Context<'_>, ) -> Poll<Option<Result<Bytes, <Bytes as MessageBody>::Error>>>

    Attempt to pull out the next chunk of body bytes. Read more
    §

    fn try_into_bytes(self) -> Result<Bytes, Bytes>

    Try to convert into the complete chunk of body bytes. Read more
    §

    fn boxed(self) -> BoxBody
    where @@ -1322,69 +1386,67 @@

    §Examples

    Update the responses map in the given operation (if needed).
    §

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    §

    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>)

    Update the security definition map (if needed).
    §

    impl Ord for Bytes

    §

    fn cmp(&self, other: &Bytes) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where +)

    Update the security map in the given operation (if needed).
    §

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    §

    impl Ord for Bytes

    §

    fn cmp(&self, other: &Bytes) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    §

    impl<'a, T> PartialEq<&'a T> for Bytes
    where Bytes: PartialEq<T>, - T: ?Sized,

    §

    fn eq(&self, other: &&'a T) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<[u8]> for Bytes

    §

    fn eq(&self, other: &[u8]) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for &[u8]

    §

    fn eq(&self, other: &Bytes) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for &str

    §

    fn eq(&self, other: &Bytes) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for [u8]

    §

    fn eq(&self, other: &Bytes) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for BytesMut

    §

    fn eq(&self, other: &Bytes) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for Vec<u8>

    §

    fn eq(&self, other: &Bytes) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for str

    §

    fn eq(&self, other: &Bytes) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for Bytes

    §

    fn eq(&self, other: &BytesMut) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<String> for Bytes

    §

    fn eq(&self, other: &String) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<Vec<u8>> for Bytes

    §

    fn eq(&self, other: &Vec<u8>) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<str> for Bytes

    §

    fn eq(&self, other: &str) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq for Bytes

    §

    fn eq(&self, other: &Bytes) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl<'a, T> PartialOrd<&'a T> for Bytes
    where + T: ?Sized,

    §

    fn eq(&self, other: &&'a T) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<[u8]> for Bytes

    §

    fn eq(&self, other: &[u8]) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for &[u8]

    §

    fn eq(&self, other: &Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for &str

    §

    fn eq(&self, other: &Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for [u8]

    §

    fn eq(&self, other: &Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for BytesMut

    §

    fn eq(&self, other: &Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for Vec<u8>

    §

    fn eq(&self, other: &Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for str

    §

    fn eq(&self, other: &Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for Bytes

    §

    fn eq(&self, other: &BytesMut) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<String> for Bytes

    §

    fn eq(&self, other: &String) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<Vec<u8>> for Bytes

    §

    fn eq(&self, other: &Vec<u8>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<str> for Bytes

    §

    fn eq(&self, other: &str) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq for Bytes

    §

    fn eq(&self, other: &Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl<'a, T> PartialOrd<&'a T> for Bytes
    where Bytes: PartialOrd<T>, - T: ?Sized,

    §

    fn partial_cmp(&self, other: &&'a T) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<[u8]> for Bytes

    §

    fn partial_cmp(&self, other: &[u8]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<Bytes> for &[u8]

    §

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<Bytes> for &str

    §

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<Bytes> for [u8]

    §

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<Bytes> for Vec<u8>

    §

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<Bytes> for str

    §

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<String> for Bytes

    §

    fn partial_cmp(&self, other: &String) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<Vec<u8>> for Bytes

    §

    fn partial_cmp(&self, other: &Vec<u8>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<str> for Bytes

    §

    fn partial_cmp(&self, other: &str) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd for Bytes

    §

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl Responder for Bytes

    §

    type Body = Bytes

    §

    fn respond_to(self, _: &HttpRequest) -> HttpResponse<<Bytes as Responder>::Body>

    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>
    where + T: ?Sized,

    §

    fn partial_cmp(&self, other: &&'a T) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<[u8]> for Bytes

    §

    fn partial_cmp(&self, other: &[u8]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<Bytes> for &[u8]

    §

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<Bytes> for &str

    §

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<Bytes> for [u8]

    §

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<Bytes> for Vec<u8>

    §

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<Bytes> for str

    §

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<String> for Bytes

    §

    fn partial_cmp(&self, other: &String) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<Vec<u8>> for Bytes

    §

    fn partial_cmp(&self, other: &Vec<u8>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<str> for Bytes

    §

    fn partial_cmp(&self, other: &str) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd for Bytes

    §

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl Responder for Bytes

    §

    type Body = Bytes

    §

    fn respond_to(self, _: &HttpRequest) -> HttpResponse<<Bytes as Responder>::Body>

    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>
    where Self: Sized,

    Wraps responder to allow alteration of its response. Read more
    §

    impl TryIntoHeaderValue for Bytes

    §

    type Error = InvalidHeaderValue

    The type returned in the event of a conversion error.
    §

    fn try_into_value( self, -) -> Result<HeaderValue, <Bytes as TryIntoHeaderValue>::Error>

    Try to convert value to a HeaderValue.
    §

    impl UpperHex for Bytes

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Eq for Bytes

    §

    impl Send for Bytes

    §

    impl Sync for Bytes

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where +) -> Result<HeaderValue, <Bytes as TryIntoHeaderValue>::Error>

    Try to convert value to a HeaderValue.
    §

    impl UpperHex for Bytes

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Eq for Bytes

    §

    impl Send for Bytes

    §

    impl Sync for Bytes

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn compare(&self, key: &K) -> Ordering

    Compare self to key and return their ordering.
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, @@ -1392,18 +1454,18 @@

    §ExamplesEq + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn equivalent(&self, key: &K) -> bool

    Compare self to key and return true if they are equal.
    source§

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

    source§

    fn equivalent(&self, key: &K) -> bool

    Compare self to key and return true if they are equal.
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + K: Borrow<Q> + ?Sized,
    source§

    fn equivalent(&self, key: &K) -> bool

    Compare self to key and return true if they are equal.
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    \ No newline at end of file +[WithDispatch] wrapper. Read more \ No newline at end of file diff --git a/paperclip_actix/web/struct.BytesMut.html b/paperclip_actix/web/struct.BytesMut.html index 31fe87847..63e1a35f0 100644 --- a/paperclip_actix/web/struct.BytesMut.html +++ b/paperclip_actix/web/struct.BytesMut.html @@ -1,4 +1,4 @@ -BytesMut in paperclip_actix::web - Rust

    Struct paperclip_actix::web::BytesMut

    pub struct BytesMut { /* private fields */ }
    Expand description

    A unique reference to a contiguous slice of memory.

    +BytesMut in paperclip_actix::web - Rust

    Struct paperclip_actix::web::BytesMut

    pub struct BytesMut { /* private fields */ }
    Expand description

    A unique reference to a contiguous slice of memory.

    BytesMut represents a unique view into a potentially shared memory region. Given the uniqueness guarantee, owners of BytesMut handles are able to mutate the memory.

    @@ -96,12 +96,18 @@
    §Examples
    assert_eq!(&b2[..], b"hello world"); th.join().unwrap();
    -

    pub fn zeroed(len: usize) -> BytesMut

    Creates a new BytesMut, which is initialized with zero.

    +

    pub fn zeroed(len: usize) -> BytesMut

    Creates a new BytesMut containing len zeros.

    +

    The resulting object has a length of len and a capacity greater +than or equal to len. The entire length of the object will be filled +with zeros.

    +

    On some platforms or allocators this function may be faster than +a manual implementation.

    §Examples
    use bytes::BytesMut;
     
     let zeros = BytesMut::zeroed(42);
     
    +assert!(zeros.capacity() >= 42);
     assert_eq!(zeros.len(), 42);
     zeros.into_iter().for_each(|x| assert_eq!(x, 0));

    pub fn split_off(&mut self, at: usize) -> BytesMut

    Splits the bytes into two at the given index.

    @@ -262,10 +268,48 @@
    §Examplesassert_eq!(buf.as_ptr(), ptr);
    §Panics

    Panics if the new capacity overflows usize.

    +

    pub fn try_reclaim(&mut self, additional: usize) -> bool

    Attempts to cheaply reclaim already allocated capacity for at least additional more +bytes to be inserted into the given BytesMut and returns true if it succeeded.

    +

    try_reclaim behaves exactly like reserve, except that it never allocates new storage +and returns a bool indicating whether it was successful in doing so:

    +

    try_reclaim returns false under these conditions:

    +
      +
    • The spare capacity left is less than additional bytes AND
    • +
    • The existing allocation cannot be reclaimed cheaply or it was less than +additional bytes in size
    • +
    +

    Reclaiming the allocation cheaply is possible if the BytesMut has no outstanding +references through other BytesMuts or Bytes which point to the same underlying +storage.

    +
    §Examples
    +
    use bytes::BytesMut;
    +
    +let mut buf = BytesMut::with_capacity(64);
    +assert_eq!(true, buf.try_reclaim(64));
    +assert_eq!(64, buf.capacity());
    +
    +buf.extend_from_slice(b"abcd");
    +let mut split = buf.split();
    +assert_eq!(60, buf.capacity());
    +assert_eq!(4, split.capacity());
    +assert_eq!(false, split.try_reclaim(64));
    +assert_eq!(false, buf.try_reclaim(64));
    +// The split buffer is filled with "abcd"
    +assert_eq!(false, split.try_reclaim(4));
    +// buf is empty and has capacity for 60 bytes
    +assert_eq!(true, buf.try_reclaim(60));
    +
    +drop(buf);
    +assert_eq!(false, split.try_reclaim(64));
    +
    +split.clear();
    +assert_eq!(4, split.capacity());
    +assert_eq!(true, split.try_reclaim(64));
    +assert_eq!(64, split.capacity());

    pub fn extend_from_slice(&mut self, extend: &[u8])

    Appends given bytes to this BytesMut.

    If this BytesMut object does not have enough capacity, it is resized first.

    -
    §Examples
    +
    §Examples
    use bytes::BytesMut;
     
     let mut buf = BytesMut::with_capacity(0);
    @@ -280,7 +324,7 @@ 
    §Examplesself.extend_from_slice(other.as_ref()).

    -
    §Examples
    +
    §Examples
    use bytes::BytesMut;
     
     let mut buf = BytesMut::with_capacity(64);
    @@ -296,7 +340,7 @@ 
    §ExamplesThe returned slice can be used to fill the buffer with data (e.g. by reading from a file) before marking the data as initialized using the set_len method.

    -
    §Examples
    +
    §Examples
    use bytes::BytesMut;
     
     // Allocate buffer big enough for 10 bytes.
    @@ -316,165 +360,75 @@ 
    §Examplesassert_eq!(&buf[..], &[0, 1, 2]);

    Methods from Deref<Target = [u8]>§

    source

    pub fn as_str(&self) -> &str

    🔬This is a nightly-only experimental API. (ascii_char)

    Views this slice of ASCII characters as a UTF-8 str.

    source

    pub fn as_bytes(&self) -> &[u8]

    🔬This is a nightly-only experimental API. (ascii_char)

    Views this slice of ASCII characters as a slice of u8 bytes.

    -
    1.79.0 · source

    pub fn utf8_chunks(&self) -> Utf8Chunks<'_>

    Creates an iterator over the contiguous valid UTF-8 ranges of this -slice, and the non-UTF-8 fragments in between.

    -
    §Examples
    -

    This function formats arbitrary but mostly-UTF-8 bytes into Rust source -code in the form of a C-string literal (c"...").

    - -
    use std::fmt::Write as _;
    -
    -pub fn cstr_literal(bytes: &[u8]) -> String {
    -    let mut repr = String::new();
    -    repr.push_str("c\"");
    -    for chunk in bytes.utf8_chunks() {
    -        for ch in chunk.valid().chars() {
    -            // Escapes \0, \t, \r, \n, \\, \', \", and uses \u{...} for non-printable characters.
    -            write!(repr, "{}", ch.escape_debug()).unwrap();
    -        }
    -        for byte in chunk.invalid() {
    -            write!(repr, "\\x{:02X}", byte).unwrap();
    -        }
    -    }
    -    repr.push('"');
    -    repr
    -}
    -
    -fn main() {
    -    let lit = cstr_literal(b"\xferris the \xf0\x9f\xa6\x80\x07");
    -    let expected = stringify!(c"\xFErris the 🦀\u{7}");
    -    assert_eq!(lit, expected);
    -}
    -
    source

    pub fn sort_floats(&mut self)

    🔬This is a nightly-only experimental API. (sort_floats)

    Sorts the slice of floats.

    -

    This sort is in-place (i.e. does not allocate), O(n * log(n)) worst-case, and uses -the ordering defined by f64::total_cmp.

    -
    §Current implementation
    -

    This uses the same sorting algorithm as sort_unstable_by.

    -
    §Examples
    -
    #![feature(sort_floats)]
    -let mut v = [2.6, -5e-8, f64::NAN, 8.29, f64::INFINITY, -1.0, 0.0, -f64::INFINITY, -0.0];
    -
    -v.sort_floats();
    -let sorted = [-f64::INFINITY, -1.0, -5e-8, -0.0, 0.0, 2.6, 8.29, f64::INFINITY, f64::NAN];
    -assert_eq!(&v[..8], &sorted[..8]);
    -assert!(v[8].is_nan());
    -
    1.23.0 · source

    pub fn is_ascii(&self) -> bool

    Checks if all bytes in this slice are within the ASCII range.

    -
    source

    pub fn as_ascii(&self) -> Option<&[AsciiChar]>

    🔬This is a nightly-only experimental API. (ascii_char)

    If this slice is_ascii, returns it as a slice of +

    1.23.0 · source

    pub fn is_ascii(&self) -> bool

    Checks if all bytes in this slice are within the ASCII range.

    +
    source

    pub fn as_ascii(&self) -> Option<&[AsciiChar]>

    🔬This is a nightly-only experimental API. (ascii_char)

    If this slice is_ascii, returns it as a slice of ASCII characters, otherwise returns None.

    -
    source

    pub unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar]

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this slice of bytes into a slice of ASCII characters, +

    source

    pub unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar]

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this slice of bytes into a slice of ASCII characters, without checking whether they’re valid.

    §Safety

    Every byte in the slice must be in 0..=127, or else this is UB.

    -
    1.23.0 · source

    pub fn eq_ignore_ascii_case(&self, other: &[u8]) -> bool

    Checks that two slices are an ASCII case-insensitive match.

    +
    1.23.0 · source

    pub fn eq_ignore_ascii_case(&self, other: &[u8]) -> bool

    Checks that two slices are an ASCII case-insensitive match.

    Same as to_ascii_lowercase(a) == to_ascii_lowercase(b), but without allocating and copying temporaries.

    -
    1.23.0 · source

    pub fn make_ascii_uppercase(&mut self)

    Converts this slice to its ASCII upper case equivalent in-place.

    +
    1.23.0 · source

    pub fn make_ascii_uppercase(&mut self)

    Converts this slice to its ASCII upper case equivalent in-place.

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

    To return a new uppercased value without modifying the existing one, use to_ascii_uppercase.

    -
    1.23.0 · source

    pub fn make_ascii_lowercase(&mut self)

    Converts this slice to its ASCII lower case equivalent in-place.

    +
    1.23.0 · source

    pub fn make_ascii_lowercase(&mut self)

    Converts this slice to its ASCII lower case equivalent in-place.

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    To return a new lowercased value without modifying the existing one, use to_ascii_lowercase.

    -
    1.60.0 · source

    pub fn escape_ascii(&self) -> EscapeAscii<'_>

    Returns an iterator that produces an escaped version of this slice, +

    1.60.0 · source

    pub fn escape_ascii(&self) -> EscapeAscii<'_>

    Returns an iterator that produces an escaped version of this slice, treating it as an ASCII string.

    -
    §Examples
    +
    §Examples
    
     let s = b"0\t\r\n'\"\\\x9d";
     let escaped = s.escape_ascii().to_string();
     assert_eq!(escaped, "0\\t\\r\\n\\'\\\"\\\\\\x9d");
    -
    1.80.0 · source

    pub fn trim_ascii_start(&self) -> &[u8]

    Returns a byte slice with leading ASCII whitespace bytes removed.

    +
    1.80.0 · source

    pub fn trim_ascii_start(&self) -> &[u8]

    Returns a byte slice with leading ASCII whitespace bytes removed.

    ‘Whitespace’ refers to the definition used by u8::is_ascii_whitespace.

    -
    §Examples
    +
    §Examples
    assert_eq!(b" \t hello world\n".trim_ascii_start(), b"hello world\n");
     assert_eq!(b"  ".trim_ascii_start(), b"");
     assert_eq!(b"".trim_ascii_start(), b"");
    -
    1.80.0 · source

    pub fn trim_ascii_end(&self) -> &[u8]

    Returns a byte slice with trailing ASCII whitespace bytes removed.

    +
    1.80.0 · source

    pub fn trim_ascii_end(&self) -> &[u8]

    Returns a byte slice with trailing ASCII whitespace bytes removed.

    ‘Whitespace’ refers to the definition used by u8::is_ascii_whitespace.

    -
    §Examples
    +
    §Examples
    assert_eq!(b"\r hello world\n ".trim_ascii_end(), b"\r hello world");
     assert_eq!(b"  ".trim_ascii_end(), b"");
     assert_eq!(b"".trim_ascii_end(), b"");
    -
    1.80.0 · source

    pub fn trim_ascii(&self) -> &[u8]

    Returns a byte slice with leading and trailing ASCII whitespace bytes +

    1.80.0 · source

    pub fn trim_ascii(&self) -> &[u8]

    Returns a byte slice with leading and trailing ASCII whitespace bytes removed.

    ‘Whitespace’ refers to the definition used by u8::is_ascii_whitespace.

    -
    §Examples
    +
    §Examples
    assert_eq!(b"\r hello world\n ".trim_ascii(), b"hello world");
     assert_eq!(b"  ".trim_ascii(), b"");
     assert_eq!(b"".trim_ascii(), b"");
    -
    1.80.0 · source

    pub fn as_flattened(&self) -> &[T]

    Takes a &[[T; N]], and flattens it to a &[T].

    -
    §Panics
    -

    This panics if the length of the resulting slice would overflow a usize.

    -

    This is only possible when flattening a slice of arrays of zero-sized -types, and thus tends to be irrelevant in practice. If -size_of::<T>() > 0, this will never panic.

    -
    §Examples
    -
    assert_eq!([[1, 2, 3], [4, 5, 6]].as_flattened(), &[1, 2, 3, 4, 5, 6]);
    -
    -assert_eq!(
    -    [[1, 2, 3], [4, 5, 6]].as_flattened(),
    -    [[1, 2], [3, 4], [5, 6]].as_flattened(),
    -);
    -
    -let slice_of_empty_arrays: &[[i32; 0]] = &[[], [], [], [], []];
    -assert!(slice_of_empty_arrays.as_flattened().is_empty());
    -
    -let empty_slice_of_arrays: &[[u32; 10]] = &[];
    -assert!(empty_slice_of_arrays.as_flattened().is_empty());
    -
    1.80.0 · source

    pub fn as_flattened_mut(&mut self) -> &mut [T]

    Takes a &mut [[T; N]], and flattens it to a &mut [T].

    -
    §Panics
    -

    This panics if the length of the resulting slice would overflow a usize.

    -

    This is only possible when flattening a slice of arrays of zero-sized -types, and thus tends to be irrelevant in practice. If -size_of::<T>() > 0, this will never panic.

    -
    §Examples
    -
    fn add_5_to_all(slice: &mut [i32]) {
    -    for i in slice {
    -        *i += 5;
    -    }
    -}
    -
    -let mut array = [[1, 2, 3], [4, 5, 6], [7, 8, 9]];
    -add_5_to_all(array.as_flattened_mut());
    -assert_eq!(array, [[6, 7, 8], [9, 10, 11], [12, 13, 14]]);
    -
    source

    pub fn sort_floats(&mut self)

    🔬This is a nightly-only experimental API. (sort_floats)

    Sorts the slice of floats.

    -

    This sort is in-place (i.e. does not allocate), O(n * log(n)) worst-case, and uses -the ordering defined by f32::total_cmp.

    -
    §Current implementation
    -

    This uses the same sorting algorithm as sort_unstable_by.

    -
    §Examples
    -
    #![feature(sort_floats)]
    -let mut v = [2.6, -5e-8, f32::NAN, 8.29, f32::INFINITY, -1.0, 0.0, -f32::INFINITY, -0.0];
    -
    -v.sort_floats();
    -let sorted = [-f32::INFINITY, -1.0, -5e-8, -0.0, 0.0, 2.6, 8.29, f32::INFINITY, f32::NAN];
    -assert_eq!(&v[..8], &sorted[..8]);
    -assert!(v[8].is_nan());
    -
    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the number of elements in the slice.

    -
    §Examples
    +
    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the number of elements in the slice.

    +
    §Examples
    let a = [1, 2, 3];
     assert_eq!(a.len(), 3);
    -
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if the slice has a length of 0.

    -
    §Examples
    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if the slice has a length of 0.

    +
    §Examples
    let a = [1, 2, 3];
     assert!(!a.is_empty());
     
     let b: &[i32] = &[];
     assert!(b.is_empty());
    -
    1.0.0 · source

    pub fn first(&self) -> Option<&T>

    Returns the first element of the slice, or None if it is empty.

    -
    §Examples
    +
    1.0.0 · source

    pub fn first(&self) -> Option<&T>

    Returns the first element of the slice, or None if it is empty.

    +
    §Examples
    let v = [10, 40, 30];
     assert_eq!(Some(&10), v.first());
     
     let w: &[i32] = &[];
     assert_eq!(None, w.first());
    -
    1.0.0 · source

    pub fn first_mut(&mut self) -> Option<&mut T>

    Returns a mutable pointer to the first element of the slice, or None if it is empty.

    -
    §Examples
    +
    1.0.0 · source

    pub fn first_mut(&mut self) -> Option<&mut T>

    Returns a mutable pointer to the first element of the slice, or None if it is empty.

    +
    §Examples
    let x = &mut [0, 1, 2];
     
     if let Some(first) = x.first_mut() {
    @@ -484,16 +438,16 @@ 
    §Exampleslet y: &mut [i32] = &mut []; assert_eq!(None, y.first_mut());
    -
    1.5.0 · source

    pub fn split_first(&self) -> Option<(&T, &[T])>

    Returns the first and all the rest of the elements of the slice, or None if it is empty.

    -
    §Examples
    +
    1.5.0 · source

    pub fn split_first(&self) -> Option<(&T, &[T])>

    Returns the first and all the rest of the elements of the slice, or None if it is empty.

    +
    §Examples
    let x = &[0, 1, 2];
     
     if let Some((first, elements)) = x.split_first() {
         assert_eq!(first, &0);
         assert_eq!(elements, &[1, 2]);
     }
    -
    1.5.0 · source

    pub fn split_first_mut(&mut self) -> Option<(&mut T, &mut [T])>

    Returns the first and all the rest of the elements of the slice, or None if it is empty.

    -
    §Examples
    +
    1.5.0 · source

    pub fn split_first_mut(&mut self) -> Option<(&mut T, &mut [T])>

    Returns the first and all the rest of the elements of the slice, or None if it is empty.

    +
    §Examples
    let x = &mut [0, 1, 2];
     
     if let Some((first, elements)) = x.split_first_mut() {
    @@ -502,16 +456,16 @@ 
    §Examples1] = 5; } assert_eq!(x, &[3, 4, 5]);
    -
    1.5.0 · source

    pub fn split_last(&self) -> Option<(&T, &[T])>

    Returns the last and all the rest of the elements of the slice, or None if it is empty.

    -
    §Examples
    +
    1.5.0 · source

    pub fn split_last(&self) -> Option<(&T, &[T])>

    Returns the last and all the rest of the elements of the slice, or None if it is empty.

    +
    §Examples
    let x = &[0, 1, 2];
     
     if let Some((last, elements)) = x.split_last() {
         assert_eq!(last, &2);
         assert_eq!(elements, &[0, 1]);
     }
    -
    1.5.0 · source

    pub fn split_last_mut(&mut self) -> Option<(&mut T, &mut [T])>

    Returns the last and all the rest of the elements of the slice, or None if it is empty.

    -
    §Examples
    +
    1.5.0 · source

    pub fn split_last_mut(&mut self) -> Option<(&mut T, &mut [T])>

    Returns the last and all the rest of the elements of the slice, or None if it is empty.

    +
    §Examples
    let x = &mut [0, 1, 2];
     
     if let Some((last, elements)) = x.split_last_mut() {
    @@ -520,15 +474,15 @@ 
    §Examples1] = 5; } assert_eq!(x, &[4, 5, 3]);
    -
    1.0.0 · source

    pub fn last(&self) -> Option<&T>

    Returns the last element of the slice, or None if it is empty.

    -
    §Examples
    +
    1.0.0 · source

    pub fn last(&self) -> Option<&T>

    Returns the last element of the slice, or None if it is empty.

    +
    §Examples
    let v = [10, 40, 30];
     assert_eq!(Some(&30), v.last());
     
     let w: &[i32] = &[];
     assert_eq!(None, w.last());
    -
    1.0.0 · source

    pub fn last_mut(&mut self) -> Option<&mut T>

    Returns a mutable reference to the last item in the slice, or None if it is empty.

    -
    §Examples
    +
    1.0.0 · source

    pub fn last_mut(&mut self) -> Option<&mut T>

    Returns a mutable reference to the last item in the slice, or None if it is empty.

    +
    §Examples
    let x = &mut [0, 1, 2];
     
     if let Some(last) = x.last_mut() {
    @@ -538,9 +492,9 @@ 
    §Exampleslet y: &mut [i32] = &mut []; assert_eq!(None, y.last_mut());
    -
    1.77.0 · source

    pub fn first_chunk<const N: usize>(&self) -> Option<&[T; N]>

    Return an array reference to the first N items in the slice.

    +
    1.77.0 · source

    pub fn first_chunk<const N: usize>(&self) -> Option<&[T; N]>

    Returns an array reference to the first N items in the slice.

    If the slice is not at least N in length, this will return None.

    -
    §Examples
    +
    §Examples
    let u = [10, 40, 30];
     assert_eq!(Some(&[10, 40]), u.first_chunk::<2>());
     
    @@ -549,9 +503,9 @@ 
    §Exampleslet w: &[i32] = &[]; assert_eq!(Some(&[]), w.first_chunk::<0>());
    -
    1.77.0 · source

    pub fn first_chunk_mut<const N: usize>(&mut self) -> Option<&mut [T; N]>

    Return a mutable array reference to the first N items in the slice.

    +
    1.77.0 · source

    pub fn first_chunk_mut<const N: usize>(&mut self) -> Option<&mut [T; N]>

    Returns a mutable array reference to the first N items in the slice.

    If the slice is not at least N in length, this will return None.

    -
    §Examples
    +
    §Examples
    let x = &mut [0, 1, 2];
     
     if let Some(first) = x.first_chunk_mut::<2>() {
    @@ -561,9 +515,9 @@ 
    §Examplesassert_eq!(x, &[5, 4, 2]); assert_eq!(None, x.first_chunk_mut::<4>());
    -
    1.77.0 · source

    pub fn split_first_chunk<const N: usize>(&self) -> Option<(&[T; N], &[T])>

    Return an array reference to the first N items in the slice and the remaining slice.

    +
    1.77.0 · source

    pub fn split_first_chunk<const N: usize>(&self) -> Option<(&[T; N], &[T])>

    Returns an array reference to the first N items in the slice and the remaining slice.

    If the slice is not at least N in length, this will return None.

    -
    §Examples
    +
    §Examples
    let x = &[0, 1, 2];
     
     if let Some((first, elements)) = x.split_first_chunk::<2>() {
    @@ -572,12 +526,12 @@ 
    §Examplesassert_eq!(None, x.split_first_chunk::<4>());
    -
    1.77.0 · source

    pub fn split_first_chunk_mut<const N: usize>( +

    1.77.0 · source

    pub fn split_first_chunk_mut<const N: usize>( &mut self, -) -> Option<(&mut [T; N], &mut [T])>

    Return a mutable array reference to the first N items in the slice and the remaining +) -> Option<(&mut [T; N], &mut [T])>

    Returns a mutable array reference to the first N items in the slice and the remaining slice.

    If the slice is not at least N in length, this will return None.

    -
    §Examples
    +
    §Examples
    let x = &mut [0, 1, 2];
     
     if let Some((first, elements)) = x.split_first_chunk_mut::<2>() {
    @@ -588,9 +542,9 @@ 
    §Examplesassert_eq!(x, &[3, 4, 5]); assert_eq!(None, x.split_first_chunk_mut::<4>());
    -
    1.77.0 · source

    pub fn split_last_chunk<const N: usize>(&self) -> Option<(&[T], &[T; N])>

    Return an array reference to the last N items in the slice and the remaining slice.

    +
    1.77.0 · source

    pub fn split_last_chunk<const N: usize>(&self) -> Option<(&[T], &[T; N])>

    Returns an array reference to the last N items in the slice and the remaining slice.

    If the slice is not at least N in length, this will return None.

    -
    §Examples
    +
    §Examples
    let x = &[0, 1, 2];
     
     if let Some((elements, last)) = x.split_last_chunk::<2>() {
    @@ -599,12 +553,12 @@ 
    §Examplesassert_eq!(None, x.split_last_chunk::<4>());
    -
    1.77.0 · source

    pub fn split_last_chunk_mut<const N: usize>( +

    1.77.0 · source

    pub fn split_last_chunk_mut<const N: usize>( &mut self, -) -> Option<(&mut [T], &mut [T; N])>

    Return a mutable array reference to the last N items in the slice and the remaining +) -> Option<(&mut [T], &mut [T; N])>

    Returns a mutable array reference to the last N items in the slice and the remaining slice.

    If the slice is not at least N in length, this will return None.

    -
    §Examples
    +
    §Examples
    let x = &mut [0, 1, 2];
     
     if let Some((elements, last)) = x.split_last_chunk_mut::<2>() {
    @@ -615,9 +569,9 @@ 
    §Examplesassert_eq!(x, &[5, 3, 4]); assert_eq!(None, x.split_last_chunk_mut::<4>());
    -
    1.77.0 · source

    pub fn last_chunk<const N: usize>(&self) -> Option<&[T; N]>

    Return an array reference to the last N items in the slice.

    +
    1.77.0 · source

    pub fn last_chunk<const N: usize>(&self) -> Option<&[T; N]>

    Returns an array reference to the last N items in the slice.

    If the slice is not at least N in length, this will return None.

    -
    §Examples
    +
    §Examples
    let u = [10, 40, 30];
     assert_eq!(Some(&[40, 30]), u.last_chunk::<2>());
     
    @@ -626,9 +580,9 @@ 
    §Exampleslet w: &[i32] = &[]; assert_eq!(Some(&[]), w.last_chunk::<0>());
    -
    1.77.0 · source

    pub fn last_chunk_mut<const N: usize>(&mut self) -> Option<&mut [T; N]>

    Return a mutable array reference to the last N items in the slice.

    +
    1.77.0 · source

    pub fn last_chunk_mut<const N: usize>(&mut self) -> Option<&mut [T; N]>

    Returns a mutable array reference to the last N items in the slice.

    If the slice is not at least N in length, this will return None.

    -
    §Examples
    +
    §Examples
    let x = &mut [0, 1, 2];
     
     if let Some(last) = x.last_chunk_mut::<2>() {
    @@ -638,7 +592,7 @@ 
    §Examplesassert_eq!(x, &[0, 10, 20]); assert_eq!(None, x.last_chunk_mut::<4>());
    -
    1.0.0 · source

    pub fn get<I>(&self, index: I) -> Option<&<I as SliceIndex<[T]>>::Output>
    where +

    1.0.0 · source

    pub fn get<I>(&self, index: I) -> Option<&<I as SliceIndex<[T]>>::Output>
    where I: SliceIndex<[T]>,

    Returns a reference to an element or subslice depending on the type of index.

      @@ -647,26 +601,26 @@
      §ExamplesIf given a range, returns the subslice corresponding to that range, or None if out of bounds.
    -
    §Examples
    +
    §Examples
    let v = [10, 40, 30];
     assert_eq!(Some(&40), v.get(1));
     assert_eq!(Some(&[10, 40][..]), v.get(0..2));
     assert_eq!(None, v.get(3));
     assert_eq!(None, v.get(0..4));
    -
    1.0.0 · source

    pub fn get_mut<I>( +

    1.0.0 · source

    pub fn get_mut<I>( &mut self, index: I, ) -> Option<&mut <I as SliceIndex<[T]>>::Output>
    where I: SliceIndex<[T]>,

    Returns a mutable reference to an element or subslice depending on the type of index (see get) or None if the index is out of bounds.

    -
    §Examples
    +
    §Examples
    let x = &mut [0, 1, 2];
     
     if let Some(elem) = x.get_mut(1) {
         *elem = 42;
     }
     assert_eq!(x, &[0, 42, 2]);
    -
    1.0.0 · source

    pub unsafe fn get_unchecked<I>( +

    1.0.0 · source

    pub unsafe fn get_unchecked<I>( &self, index: I, ) -> &<I as SliceIndex<[T]>>::Output
    where @@ -680,13 +634,13 @@
    §Safety
    to call .get_unchecked(len), even if you immediately convert to a pointer. And it’s UB to call .get_unchecked(..len + 1), .get_unchecked(..=len), or similar.

    -
    §Examples
    +
    §Examples
    let x = &[1, 2, 4];
     
     unsafe {
         assert_eq!(x.get_unchecked(1), &2);
     }
    -

    1.0.0 · source

    pub unsafe fn get_unchecked_mut<I>( +

    1.0.0 · source

    pub unsafe fn get_unchecked_mut<I>( &mut self, index: I, ) -> &mut <I as SliceIndex<[T]>>::Output
    where @@ -700,7 +654,7 @@
    §Safety
    UB to call .get_unchecked_mut(len), even if you immediately convert to a pointer. And it’s UB to call .get_unchecked_mut(..len + 1), .get_unchecked_mut(..=len), or similar.

    -
    §Examples
    +
    §Examples
    let x = &mut [1, 2, 4];
     
     unsafe {
    @@ -708,15 +662,15 @@ 
    §Examples*elem = 13; } assert_eq!(x, &[1, 13, 4]);
    -

    1.0.0 · source

    pub fn as_ptr(&self) -> *const T

    Returns a raw pointer to the slice’s buffer.

    +
    1.0.0 · source

    pub fn as_ptr(&self) -> *const T

    Returns a raw pointer to the slice’s buffer.

    The caller must ensure that the slice outlives the pointer this -function returns, or else it will end up pointing to garbage.

    +function returns, or else it will end up dangling.

    The caller must also ensure that the memory the pointer (non-transitively) points to is never written to (except inside an UnsafeCell) using this pointer or any pointer derived from it. If you need to mutate the contents of the slice, use as_mut_ptr.

    Modifying the container referenced by this slice may cause its buffer to be reallocated, which would also make any pointers to it invalid.

    -
    §Examples
    +
    §Examples
    let x = &[1, 2, 4];
     let x_ptr = x.as_ptr();
     
    @@ -725,12 +679,12 @@ 
    §Examplesassert_eq!(x.get_unchecked(i), &*x_ptr.add(i)); } }
    -
    1.0.0 · source

    pub fn as_mut_ptr(&mut self) -> *mut T

    Returns an unsafe mutable pointer to the slice’s buffer.

    +
    1.0.0 · source

    pub fn as_mut_ptr(&mut self) -> *mut T

    Returns an unsafe mutable pointer to the slice’s buffer.

    The caller must ensure that the slice outlives the pointer this -function returns, or else it will end up pointing to garbage.

    +function returns, or else it will end up dangling.

    Modifying the container referenced by this slice may cause its buffer to be reallocated, which would also make any pointers to it invalid.

    -
    §Examples
    +
    §Examples
    let x = &mut [1, 2, 4];
     let x_ptr = x.as_mut_ptr();
     
    @@ -740,7 +694,7 @@ 
    §Examplesassert_eq!(x, &[3, 4, 6]);
    -
    1.48.0 · source

    pub fn as_ptr_range(&self) -> Range<*const T>

    Returns the two raw pointers spanning the slice.

    +
    1.48.0 · source

    pub fn as_ptr_range(&self) -> Range<*const T>

    Returns the two raw pointers spanning the slice.

    The returned range is half-open, which means that the end pointer points one past the last element of the slice. This way, an empty slice is represented by two equal pointers, and the difference between @@ -760,7 +714,7 @@

    §Examplesassert!(a.as_ptr_range().contains(&x)); assert!(!a.as_ptr_range().contains(&y));
    -
    1.48.0 · source

    pub fn as_mut_ptr_range(&mut self) -> Range<*mut T>

    Returns the two unsafe mutable pointers spanning the slice.

    +
    1.48.0 · source

    pub fn as_mut_ptr_range(&mut self) -> Range<*mut T>

    Returns the two unsafe mutable pointers spanning the slice.

    The returned range is half-open, which means that the end pointer points one past the last element of the slice. This way, an empty slice is represented by two equal pointers, and the difference between @@ -771,20 +725,20 @@

    §ExamplesThis function is useful for interacting with foreign interfaces which use two pointers to refer to a range of elements in memory, as is common in C++.

    -
    1.0.0 · source

    pub fn swap(&mut self, a: usize, b: usize)

    Swaps two elements in the slice.

    +
    1.0.0 · source

    pub fn swap(&mut self, a: usize, b: usize)

    Swaps two elements in the slice.

    If a equals to b, it’s guaranteed that elements won’t change value.

    §Arguments
    • a - The index of the first element
    • b - The index of the second element
    -
    §Panics
    +
    §Panics

    Panics if a or b are out of bounds.

    -
    §Examples
    +
    §Examples
    let mut v = ["a", "b", "c", "d", "e"];
     v.swap(2, 4);
     assert!(v == ["a", "b", "e", "d", "c"]);
    -
    source

    pub unsafe fn swap_unchecked(&mut self, a: usize, b: usize)

    🔬This is a nightly-only experimental API. (slice_swap_unchecked)

    Swaps two elements in the slice, without doing bounds checking.

    +
    source

    pub unsafe fn swap_unchecked(&mut self, a: usize, b: usize)

    🔬This is a nightly-only experimental API. (slice_swap_unchecked)

    Swaps two elements in the slice, without doing bounds checking.

    For a safe alternative see swap.

    §Arguments
      @@ -794,21 +748,21 @@
      §Arguments§Safety

      Calling this method with an out-of-bounds index is undefined behavior. The caller has to ensure that a < self.len() and b < self.len().

      -
      §Examples
      +
      §Examples
      #![feature(slice_swap_unchecked)]
       
       let mut v = ["a", "b", "c", "d"];
       // SAFETY: we know that 1 and 3 are both indices of the slice
       unsafe { v.swap_unchecked(1, 3) };
       assert!(v == ["a", "d", "c", "b"]);
      -
    1.0.0 · source

    pub fn reverse(&mut self)

    Reverses the order of elements in the slice, in place.

    -
    §Examples
    +
    1.0.0 · source

    pub fn reverse(&mut self)

    Reverses the order of elements in the slice, in place.

    +
    §Examples
    let mut v = [1, 2, 3];
     v.reverse();
     assert!(v == [3, 2, 1]);
    -
    1.0.0 · source

    pub fn iter(&self) -> Iter<'_, T>

    Returns an iterator over the slice.

    +
    1.0.0 · source

    pub fn iter(&self) -> Iter<'_, T>

    Returns an iterator over the slice.

    The iterator yields all items from start to end.

    -
    §Examples
    +
    §Examples
    let x = &[1, 2, 4];
     let mut iterator = x.iter();
     
    @@ -816,20 +770,20 @@ 
    §Examplesassert_eq!(iterator.next(), Some(&2)); assert_eq!(iterator.next(), Some(&4)); assert_eq!(iterator.next(), None);
    -
    1.0.0 · source

    pub fn iter_mut(&mut self) -> IterMut<'_, T>

    Returns an iterator that allows modifying each value.

    +
    1.0.0 · source

    pub fn iter_mut(&mut self) -> IterMut<'_, T>

    Returns an iterator that allows modifying each value.

    The iterator yields all items from start to end.

    -
    §Examples
    +
    §Examples
    let x = &mut [1, 2, 4];
     for elem in x.iter_mut() {
         *elem += 2;
     }
     assert_eq!(x, &[3, 4, 6]);
    -
    1.0.0 · source

    pub fn windows(&self, size: usize) -> Windows<'_, T>

    Returns an iterator over all contiguous windows of length +

    1.0.0 · source

    pub fn windows(&self, size: usize) -> Windows<'_, T>

    Returns an iterator over all contiguous windows of length size. The windows overlap. If the slice is shorter than size, the iterator returns no values.

    -
    §Panics
    +
    §Panics

    Panics if size is 0.

    -
    §Examples
    +
    §Examples
    let slice = ['l', 'o', 'r', 'e', 'm'];
     let mut iter = slice.windows(3);
     assert_eq!(iter.next().unwrap(), &['l', 'o', 'r']);
    @@ -855,32 +809,32 @@ 
    §Examples&w[0], &w[2]); } assert_eq!(array, ['s', 't', ' ', '2', '0', '1', '5', 'u', 'R']);
    -
    1.0.0 · source

    pub fn chunks(&self, chunk_size: usize) -> Chunks<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the +

    1.0.0 · source

    pub fn chunks(&self, chunk_size: usize) -> Chunks<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the beginning of the slice.

    The chunks are slices and do not overlap. If chunk_size does not divide the length of the slice, then the last chunk will not have length chunk_size.

    See chunks_exact for a variant of this iterator that returns chunks of always exactly chunk_size elements, and rchunks for the same iterator but starting at the end of the slice.

    -
    §Panics
    +
    §Panics

    Panics if chunk_size is 0.

    -
    §Examples
    +
    §Examples
    let slice = ['l', 'o', 'r', 'e', 'm'];
     let mut iter = slice.chunks(2);
     assert_eq!(iter.next().unwrap(), &['l', 'o']);
     assert_eq!(iter.next().unwrap(), &['r', 'e']);
     assert_eq!(iter.next().unwrap(), &['m']);
     assert!(iter.next().is_none());
    -
    1.0.0 · source

    pub fn chunks_mut(&mut self, chunk_size: usize) -> ChunksMut<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the +

    1.0.0 · source

    pub fn chunks_mut(&mut self, chunk_size: usize) -> ChunksMut<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the beginning of the slice.

    The chunks are mutable slices, and do not overlap. If chunk_size does not divide the length of the slice, then the last chunk will not have length chunk_size.

    See chunks_exact_mut for a variant of this iterator that returns chunks of always exactly chunk_size elements, and rchunks_mut for the same iterator but starting at the end of the slice.

    -
    §Panics
    +
    §Panics

    Panics if chunk_size is 0.

    -
    §Examples
    +
    §Examples
    let v = &mut [0, 0, 0, 0, 0];
     let mut count = 1;
     
    @@ -891,7 +845,7 @@ 
    §Examples1; } assert_eq!(v, &[1, 1, 2, 2, 3]);
    -
    1.31.0 · source

    pub fn chunks_exact(&self, chunk_size: usize) -> ChunksExact<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the +

    1.31.0 · source

    pub fn chunks_exact(&self, chunk_size: usize) -> ChunksExact<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the beginning of the slice.

    The chunks are slices and do not overlap. If chunk_size does not divide the length of the slice, then the last up to chunk_size-1 elements will be omitted and can be retrieved @@ -900,16 +854,16 @@

    §Exampleschunks.

    See chunks for a variant of this iterator that also returns the remainder as a smaller chunk, and rchunks_exact for the same iterator but starting at the end of the slice.

    -
    §Panics
    +
    §Panics

    Panics if chunk_size is 0.

    -
    §Examples
    +
    §Examples
    let slice = ['l', 'o', 'r', 'e', 'm'];
     let mut iter = slice.chunks_exact(2);
     assert_eq!(iter.next().unwrap(), &['l', 'o']);
     assert_eq!(iter.next().unwrap(), &['r', 'e']);
     assert!(iter.next().is_none());
     assert_eq!(iter.remainder(), &['m']);
    -
    1.31.0 · source

    pub fn chunks_exact_mut(&mut self, chunk_size: usize) -> ChunksExactMut<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the +

    1.31.0 · source

    pub fn chunks_exact_mut(&mut self, chunk_size: usize) -> ChunksExactMut<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the beginning of the slice.

    The chunks are mutable slices, and do not overlap. If chunk_size does not divide the length of the slice, then the last up to chunk_size-1 elements will be omitted and can be @@ -919,9 +873,9 @@

    §ExamplesSee chunks_mut for a variant of this iterator that also returns the remainder as a smaller chunk, and rchunks_exact_mut for the same iterator but starting at the end of the slice.

    -
    §Panics
    +
    §Panics

    Panics if chunk_size is 0.

    -
    §Examples
    +
    §Examples
    let v = &mut [0, 0, 0, 0, 0];
     let mut count = 1;
     
    @@ -932,7 +886,7 @@ 
    §Examples1; } assert_eq!(v, &[1, 1, 2, 2, 0]);
    -
    source

    pub unsafe fn as_chunks_unchecked<const N: usize>(&self) -> &[[T; N]]

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, +

    source

    pub unsafe fn as_chunks_unchecked<const N: usize>(&self) -> &[[T; N]]

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, assuming that there’s no remainder.

    §Safety

    This may only be called when

    @@ -940,7 +894,7 @@
    §Safety
  • The slice splits exactly into N-element chunks (aka self.len() % N == 0).
  • N != 0.
  • -
    §Examples
    +
    §Examples
    #![feature(slice_as_chunks)]
     let slice: &[char] = &['l', 'o', 'r', 'e', 'm', '!'];
     let chunks: &[[char; 1]] =
    @@ -955,13 +909,13 @@ 
    §Examples// These would be unsound: // let chunks: &[[_; 5]] = slice.as_chunks_unchecked() // The slice length is not a multiple of 5 // let chunks: &[[_; 0]] = slice.as_chunks_unchecked() // Zero-length chunks are never allowed
    -
    source

    pub fn as_chunks<const N: usize>(&self) -> (&[[T; N]], &[T])

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, +

    source

    pub fn as_chunks<const N: usize>(&self) -> (&[[T; N]], &[T])

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, starting at the beginning of the slice, and a remainder slice with length strictly less than N.

    -
    §Panics
    +
    §Panics

    Panics if N is 0. This check will most probably get changed to a compile time error before this method gets stabilized.

    -
    §Examples
    +
    §Examples
    #![feature(slice_as_chunks)]
     let slice = ['l', 'o', 'r', 'e', 'm'];
     let (chunks, remainder) = slice.as_chunks();
    @@ -976,28 +930,28 @@ 
    §Examplespanic!("slice didn't have even length") }; assert_eq!(chunks, &[['R', 'u'], ['s', 't']]);
    -
    source

    pub fn as_rchunks<const N: usize>(&self) -> (&[T], &[[T; N]])

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, +

    source

    pub fn as_rchunks<const N: usize>(&self) -> (&[T], &[[T; N]])

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, starting at the end of the slice, and a remainder slice with length strictly less than N.

    -
    §Panics
    +
    §Panics

    Panics if N is 0. This check will most probably get changed to a compile time error before this method gets stabilized.

    -
    §Examples
    +
    §Examples
    #![feature(slice_as_chunks)]
     let slice = ['l', 'o', 'r', 'e', 'm'];
     let (remainder, chunks) = slice.as_rchunks();
     assert_eq!(remainder, &['l']);
     assert_eq!(chunks, &[['o', 'r'], ['e', 'm']]);
    -
    source

    pub fn array_chunks<const N: usize>(&self) -> ArrayChunks<'_, T, N>

    🔬This is a nightly-only experimental API. (array_chunks)

    Returns an iterator over N elements of the slice at a time, starting at the +

    source

    pub fn array_chunks<const N: usize>(&self) -> ArrayChunks<'_, T, N>

    🔬This is a nightly-only experimental API. (array_chunks)

    Returns an iterator over N elements of the slice at a time, starting at the beginning of the slice.

    The chunks are array references and do not overlap. If N does not divide the length of the slice, then the last up to N-1 elements will be omitted and can be retrieved from the remainder function of the iterator.

    This method is the const generic equivalent of chunks_exact.

    -
    §Panics
    +
    §Panics

    Panics if N is 0. This check will most probably get changed to a compile time error before this method gets stabilized.

    -
    §Examples
    +
    §Examples
    #![feature(array_chunks)]
     let slice = ['l', 'o', 'r', 'e', 'm'];
     let mut iter = slice.array_chunks();
    @@ -1005,7 +959,7 @@ 
    §Examplesassert_eq!(iter.next().unwrap(), &['r', 'e']); assert!(iter.next().is_none()); assert_eq!(iter.remainder(), &['m']);
    -
    source

    pub unsafe fn as_chunks_unchecked_mut<const N: usize>( +

    source

    pub unsafe fn as_chunks_unchecked_mut<const N: usize>( &mut self, ) -> &mut [[T; N]]

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, assuming that there’s no remainder.

    @@ -1015,7 +969,7 @@
    §Safety
  • The slice splits exactly into N-element chunks (aka self.len() % N == 0).
  • N != 0.
  • -
    §Examples
    +
    §Examples
    #![feature(slice_as_chunks)]
     let slice: &mut [char] = &mut ['l', 'o', 'r', 'e', 'm', '!'];
     let chunks: &mut [[char; 1]] =
    @@ -1032,13 +986,13 @@ 
    §Examples// These would be unsound: // let chunks: &[[_; 5]] = slice.as_chunks_unchecked_mut() // The slice length is not a multiple of 5 // let chunks: &[[_; 0]] = slice.as_chunks_unchecked_mut() // Zero-length chunks are never allowed
    -
    source

    pub fn as_chunks_mut<const N: usize>(&mut self) -> (&mut [[T; N]], &mut [T])

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, +

    source

    pub fn as_chunks_mut<const N: usize>(&mut self) -> (&mut [[T; N]], &mut [T])

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, starting at the beginning of the slice, and a remainder slice with length strictly less than N.

    -
    §Panics
    +
    §Panics

    Panics if N is 0. This check will most probably get changed to a compile time error before this method gets stabilized.

    -
    §Examples
    +
    §Examples
    #![feature(slice_as_chunks)]
     let v = &mut [0, 0, 0, 0, 0];
     let mut count = 1;
    @@ -1050,13 +1004,13 @@ 
    §Examples1; } assert_eq!(v, &[1, 1, 2, 2, 9]);
    -
    source

    pub fn as_rchunks_mut<const N: usize>(&mut self) -> (&mut [T], &mut [[T; N]])

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, +

    source

    pub fn as_rchunks_mut<const N: usize>(&mut self) -> (&mut [T], &mut [[T; N]])

    🔬This is a nightly-only experimental API. (slice_as_chunks)

    Splits the slice into a slice of N-element arrays, starting at the end of the slice, and a remainder slice with length strictly less than N.

    -
    §Panics
    +
    §Panics

    Panics if N is 0. This check will most probably get changed to a compile time error before this method gets stabilized.

    -
    §Examples
    +
    §Examples
    #![feature(slice_as_chunks)]
     let v = &mut [0, 0, 0, 0, 0];
     let mut count = 1;
    @@ -1068,16 +1022,16 @@ 
    §Examples1; } assert_eq!(v, &[9, 1, 1, 2, 2]);
    -
    source

    pub fn array_chunks_mut<const N: usize>(&mut self) -> ArrayChunksMut<'_, T, N>

    🔬This is a nightly-only experimental API. (array_chunks)

    Returns an iterator over N elements of the slice at a time, starting at the +

    source

    pub fn array_chunks_mut<const N: usize>(&mut self) -> ArrayChunksMut<'_, T, N>

    🔬This is a nightly-only experimental API. (array_chunks)

    Returns an iterator over N elements of the slice at a time, starting at the beginning of the slice.

    The chunks are mutable array references and do not overlap. If N does not divide the length of the slice, then the last up to N-1 elements will be omitted and can be retrieved from the into_remainder function of the iterator.

    This method is the const generic equivalent of chunks_exact_mut.

    -
    §Panics
    +
    §Panics

    Panics if N is 0. This check will most probably get changed to a compile time error before this method gets stabilized.

    -
    §Examples
    +
    §Examples
    #![feature(array_chunks)]
     let v = &mut [0, 0, 0, 0, 0];
     let mut count = 1;
    @@ -1087,14 +1041,14 @@ 
    §Examples1; } assert_eq!(v, &[1, 1, 2, 2, 0]);
    -
    source

    pub fn array_windows<const N: usize>(&self) -> ArrayWindows<'_, T, N>

    🔬This is a nightly-only experimental API. (array_windows)

    Returns an iterator over overlapping windows of N elements of a slice, +

    source

    pub fn array_windows<const N: usize>(&self) -> ArrayWindows<'_, T, N>

    🔬This is a nightly-only experimental API. (array_windows)

    Returns an iterator over overlapping windows of N elements of a slice, starting at the beginning of the slice.

    This is the const generic equivalent of windows.

    If N is greater than the size of the slice, it will return no windows.

    -
    §Panics
    +
    §Panics

    Panics if N is 0. This check will most probably get changed to a compile time error before this method gets stabilized.

    -
    §Examples
    +
    §Examples
    #![feature(array_windows)]
     let slice = [0, 1, 2, 3];
     let mut iter = slice.array_windows();
    @@ -1102,32 +1056,32 @@ 
    §Examplesassert_eq!(iter.next().unwrap(), &[1, 2]); assert_eq!(iter.next().unwrap(), &[2, 3]); assert!(iter.next().is_none());
    -
    1.31.0 · source

    pub fn rchunks(&self, chunk_size: usize) -> RChunks<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the end +

    1.31.0 · source

    pub fn rchunks(&self, chunk_size: usize) -> RChunks<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the end of the slice.

    The chunks are slices and do not overlap. If chunk_size does not divide the length of the slice, then the last chunk will not have length chunk_size.

    See rchunks_exact for a variant of this iterator that returns chunks of always exactly chunk_size elements, and chunks for the same iterator but starting at the beginning of the slice.

    -
    §Panics
    +
    §Panics

    Panics if chunk_size is 0.

    -
    §Examples
    +
    §Examples
    let slice = ['l', 'o', 'r', 'e', 'm'];
     let mut iter = slice.rchunks(2);
     assert_eq!(iter.next().unwrap(), &['e', 'm']);
     assert_eq!(iter.next().unwrap(), &['o', 'r']);
     assert_eq!(iter.next().unwrap(), &['l']);
     assert!(iter.next().is_none());
    -
    1.31.0 · source

    pub fn rchunks_mut(&mut self, chunk_size: usize) -> RChunksMut<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the end +

    1.31.0 · source

    pub fn rchunks_mut(&mut self, chunk_size: usize) -> RChunksMut<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the end of the slice.

    The chunks are mutable slices, and do not overlap. If chunk_size does not divide the length of the slice, then the last chunk will not have length chunk_size.

    See rchunks_exact_mut for a variant of this iterator that returns chunks of always exactly chunk_size elements, and chunks_mut for the same iterator but starting at the beginning of the slice.

    -
    §Panics
    +
    §Panics

    Panics if chunk_size is 0.

    -
    §Examples
    +
    §Examples
    let v = &mut [0, 0, 0, 0, 0];
     let mut count = 1;
     
    @@ -1138,7 +1092,7 @@ 
    §Examples1; } assert_eq!(v, &[3, 2, 2, 1, 1]);
    -
    1.31.0 · source

    pub fn rchunks_exact(&self, chunk_size: usize) -> RChunksExact<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the +

    1.31.0 · source

    pub fn rchunks_exact(&self, chunk_size: usize) -> RChunksExact<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the end of the slice.

    The chunks are slices and do not overlap. If chunk_size does not divide the length of the slice, then the last up to chunk_size-1 elements will be omitted and can be retrieved @@ -1148,16 +1102,16 @@

    §ExamplesSee rchunks for a variant of this iterator that also returns the remainder as a smaller chunk, and chunks_exact for the same iterator but starting at the beginning of the slice.

    -
    §Panics
    +
    §Panics

    Panics if chunk_size is 0.

    -
    §Examples
    +
    §Examples
    let slice = ['l', 'o', 'r', 'e', 'm'];
     let mut iter = slice.rchunks_exact(2);
     assert_eq!(iter.next().unwrap(), &['e', 'm']);
     assert_eq!(iter.next().unwrap(), &['o', 'r']);
     assert!(iter.next().is_none());
     assert_eq!(iter.remainder(), &['l']);
    -
    1.31.0 · source

    pub fn rchunks_exact_mut(&mut self, chunk_size: usize) -> RChunksExactMut<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the end +

    1.31.0 · source

    pub fn rchunks_exact_mut(&mut self, chunk_size: usize) -> RChunksExactMut<'_, T>

    Returns an iterator over chunk_size elements of the slice at a time, starting at the end of the slice.

    The chunks are mutable slices, and do not overlap. If chunk_size does not divide the length of the slice, then the last up to chunk_size-1 elements will be omitted and can be @@ -1167,9 +1121,9 @@

    §ExamplesSee rchunks_mut for a variant of this iterator that also returns the remainder as a smaller chunk, and chunks_exact_mut for the same iterator but starting at the beginning of the slice.

    -
    §Panics
    +
    §Panics

    Panics if chunk_size is 0.

    -
    §Examples
    +
    §Examples
    let v = &mut [0, 0, 0, 0, 0];
     let mut count = 1;
     
    @@ -1180,13 +1134,13 @@ 
    §Examples1; } assert_eq!(v, &[0, 2, 2, 1, 1]);
    -
    1.77.0 · source

    pub fn chunk_by<F>(&self, pred: F) -> ChunkBy<'_, T, F>
    where +

    1.77.0 · source

    pub fn chunk_by<F>(&self, pred: F) -> ChunkBy<'_, T, F>
    where F: FnMut(&T, &T) -> bool,

    Returns an iterator over the slice producing non-overlapping runs of elements using the predicate to separate them.

    The predicate is called for every pair of consecutive elements, meaning that it is called on slice[0] and slice[1], followed by slice[1] and slice[2], and so on.

    -
    §Examples
    +
    §Examples
    let slice = &[1, 1, 1, 3, 3, 2, 2, 2];
     
     let mut iter = slice.chunk_by(|a, b| a == b);
    @@ -1205,13 +1159,13 @@ 
    §Examplesassert_eq!(iter.next(), Some(&[2, 3][..])); assert_eq!(iter.next(), Some(&[2, 3, 4][..])); assert_eq!(iter.next(), None);
    -
    1.77.0 · source

    pub fn chunk_by_mut<F>(&mut self, pred: F) -> ChunkByMut<'_, T, F>
    where +

    1.77.0 · source

    pub fn chunk_by_mut<F>(&mut self, pred: F) -> ChunkByMut<'_, T, F>
    where F: FnMut(&T, &T) -> bool,

    Returns an iterator over the slice producing non-overlapping mutable runs of elements using the predicate to separate them.

    The predicate is called for every pair of consecutive elements, meaning that it is called on slice[0] and slice[1], followed by slice[1] and slice[2], and so on.

    -
    §Examples
    +
    §Examples
    let slice = &mut [1, 1, 1, 3, 3, 2, 2, 2];
     
     let mut iter = slice.chunk_by_mut(|a, b| a == b);
    @@ -1230,14 +1184,14 @@ 
    §Examplesassert_eq!(iter.next(), Some(&mut [2, 3][..])); assert_eq!(iter.next(), Some(&mut [2, 3, 4][..])); assert_eq!(iter.next(), None);
    -
    1.0.0 · source

    pub fn split_at(&self, mid: usize) -> (&[T], &[T])

    Divides one slice into two at an index.

    +
    1.0.0 · source

    pub fn split_at(&self, mid: usize) -> (&[T], &[T])

    Divides one slice into two at an index.

    The first will contain all indices from [0, mid) (excluding the index mid itself) and the second will contain all indices from [mid, len) (excluding the index len itself).

    -
    §Panics
    +
    §Panics

    Panics if mid > len. For a non-panicking alternative see split_at_checked.

    -
    §Examples
    +
    §Examples
    let v = [1, 2, 3, 4, 5, 6];
     
     {
    @@ -1257,14 +1211,14 @@ 
    §Examplesassert_eq!(left, [1, 2, 3, 4, 5, 6]); assert_eq!(right, []); }
    -
    1.0.0 · source

    pub fn split_at_mut(&mut self, mid: usize) -> (&mut [T], &mut [T])

    Divides one mutable slice into two at an index.

    +
    1.0.0 · source

    pub fn split_at_mut(&mut self, mid: usize) -> (&mut [T], &mut [T])

    Divides one mutable slice into two at an index.

    The first will contain all indices from [0, mid) (excluding the index mid itself) and the second will contain all indices from [mid, len) (excluding the index len itself).

    -
    §Panics
    +
    §Panics

    Panics if mid > len. For a non-panicking alternative see split_at_mut_checked.

    -
    §Examples
    +
    §Examples
    let mut v = [1, 0, 3, 0, 5, 6];
     let (left, right) = v.split_at_mut(2);
     assert_eq!(left, [1, 0]);
    @@ -1272,7 +1226,7 @@ 
    §Examples1] = 2; right[1] = 4; assert_eq!(v, [1, 2, 3, 4, 5, 6]);
    -
    1.79.0 · source

    pub unsafe fn split_at_unchecked(&self, mid: usize) -> (&[T], &[T])

    Divides one slice into two at an index, without doing bounds checking.

    +
    1.79.0 · source

    pub unsafe fn split_at_unchecked(&self, mid: usize) -> (&[T], &[T])

    Divides one slice into two at an index, without doing bounds checking.

    The first will contain all indices from [0, mid) (excluding the index mid itself) and the second will contain all indices from [mid, len) (excluding the index len itself).

    @@ -1281,7 +1235,7 @@
    §Safety

    Calling this method with an out-of-bounds index is undefined behavior even if the resulting reference is not used. The caller has to ensure that 0 <= mid <= self.len().

    -
    §Examples
    +
    §Examples
    let v = [1, 2, 3, 4, 5, 6];
     
     unsafe {
    @@ -1301,7 +1255,7 @@ 
    §Examplesassert_eq!(left, [1, 2, 3, 4, 5, 6]); assert_eq!(right, []); }
    -
    1.79.0 · source

    pub unsafe fn split_at_mut_unchecked( +

    1.79.0 · source

    pub unsafe fn split_at_mut_unchecked( &mut self, mid: usize, ) -> (&mut [T], &mut [T])

    Divides one mutable slice into two at an index, without doing bounds checking.

    @@ -1313,7 +1267,7 @@
    §Safety

    Calling this method with an out-of-bounds index is undefined behavior even if the resulting reference is not used. The caller has to ensure that 0 <= mid <= self.len().

    -
    §Examples
    +
    §Examples
    let mut v = [1, 0, 3, 0, 5, 6];
     // scoped to restrict the lifetime of the borrows
     unsafe {
    @@ -1324,14 +1278,14 @@ 
    §Examples1] = 4; } assert_eq!(v, [1, 2, 3, 4, 5, 6]);
    -
    1.80.0 · source

    pub fn split_at_checked(&self, mid: usize) -> Option<(&[T], &[T])>

    Divides one slice into two at an index, returning None if the slice is +

    1.80.0 · source

    pub fn split_at_checked(&self, mid: usize) -> Option<(&[T], &[T])>

    Divides one slice into two at an index, returning None if the slice is too short.

    If mid ≤ len returns a pair of slices where the first will contain all indices from [0, mid) (excluding the index mid itself) and the second will contain all indices from [mid, len) (excluding the index len itself).

    Otherwise, if mid > len, returns None.

    -
    §Examples
    +
    §Examples
    let v = [1, -2, 3, -4, 5, -6];
     
     {
    @@ -1353,7 +1307,7 @@ 
    §Examplesassert_eq!(None, v.split_at_checked(7));
    -
    1.80.0 · source

    pub fn split_at_mut_checked( +

    1.80.0 · source

    pub fn split_at_mut_checked( &mut self, mid: usize, ) -> Option<(&mut [T], &mut [T])>

    Divides one mutable slice into two at an index, returning None if the @@ -1363,7 +1317,7 @@

    §Examples[mid, len) (excluding the index len itself).

    Otherwise, if mid > len, returns None.

    -
    §Examples
    +
    §Examples
    let mut v = [1, 0, 3, 0, 5, 6];
     
     if let Some((left, right)) = v.split_at_mut_checked(2) {
    @@ -1375,10 +1329,10 @@ 
    §Examplesassert_eq!(v, [1, 2, 3, 4, 5, 6]); assert_eq!(None, v.split_at_mut_checked(7));
    -
    1.0.0 · source

    pub fn split<F>(&self, pred: F) -> Split<'_, T, F>
    where +

    1.0.0 · source

    pub fn split<F>(&self, pred: F) -> Split<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over subslices separated by elements that match pred. The matched element is not contained in the subslices.

    -
    §Examples
    +
    §Examples
    let slice = [10, 40, 33, 20];
     let mut iter = slice.split(|num| num % 3 == 0);
     
    @@ -1406,21 +1360,21 @@ 
    §Examplesassert_eq!(iter.next().unwrap(), &[]); assert_eq!(iter.next().unwrap(), &[20]); assert!(iter.next().is_none());
    -
    1.0.0 · source

    pub fn split_mut<F>(&mut self, pred: F) -> SplitMut<'_, T, F>
    where +

    1.0.0 · source

    pub fn split_mut<F>(&mut self, pred: F) -> SplitMut<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over mutable subslices separated by elements that match pred. The matched element is not contained in the subslices.

    -
    §Examples
    +
    §Examples
    let mut v = [10, 40, 30, 20, 60, 50];
     
     for group in v.split_mut(|num| *num % 3 == 0) {
         group[0] = 1;
     }
     assert_eq!(v, [1, 40, 30, 1, 60, 1]);
    -
    1.51.0 · source

    pub fn split_inclusive<F>(&self, pred: F) -> SplitInclusive<'_, T, F>
    where +

    1.51.0 · source

    pub fn split_inclusive<F>(&self, pred: F) -> SplitInclusive<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over subslices separated by elements that match pred. The matched element is contained in the end of the previous subslice as a terminator.

    -
    §Examples
    +
    §Examples
    let slice = [10, 40, 33, 20];
     let mut iter = slice.split_inclusive(|num| num % 3 == 0);
     
    @@ -1437,11 +1391,11 @@ 
    §Examplesassert_eq!(iter.next().unwrap(), &[3]); assert_eq!(iter.next().unwrap(), &[10, 40, 33]); assert!(iter.next().is_none());
    -
    1.51.0 · source

    pub fn split_inclusive_mut<F>(&mut self, pred: F) -> SplitInclusiveMut<'_, T, F>
    where +

    1.51.0 · source

    pub fn split_inclusive_mut<F>(&mut self, pred: F) -> SplitInclusiveMut<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over mutable subslices separated by elements that match pred. The matched element is contained in the previous subslice as a terminator.

    -
    §Examples
    +
    §Examples
    let mut v = [10, 40, 30, 20, 60, 50];
     
     for group in v.split_inclusive_mut(|num| *num % 3 == 0) {
    @@ -1449,11 +1403,11 @@ 
    §Examples1; } assert_eq!(v, [10, 40, 1, 20, 1, 1]);
    -
    1.27.0 · source

    pub fn rsplit<F>(&self, pred: F) -> RSplit<'_, T, F>
    where +

    1.27.0 · source

    pub fn rsplit<F>(&self, pred: F) -> RSplit<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over subslices separated by elements that match pred, starting at the end of the slice and working backwards. The matched element is not contained in the subslices.

    -
    §Examples
    +
    §Examples
    let slice = [11, 22, 33, 0, 44, 55];
     let mut iter = slice.rsplit(|num| *num == 0);
     
    @@ -1470,11 +1424,11 @@ 
    §Examplesassert_eq!(it.next().unwrap(), &[1, 1]); assert_eq!(it.next().unwrap(), &[]); assert_eq!(it.next(), None);
    -
    1.27.0 · source

    pub fn rsplit_mut<F>(&mut self, pred: F) -> RSplitMut<'_, T, F>
    where +

    1.27.0 · source

    pub fn rsplit_mut<F>(&mut self, pred: F) -> RSplitMut<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over mutable subslices separated by elements that match pred, starting at the end of the slice and working backwards. The matched element is not contained in the subslices.

    -
    §Examples
    +
    §Examples
    let mut v = [100, 400, 300, 200, 600, 500];
     
     let mut count = 0;
    @@ -1483,13 +1437,13 @@ 
    §Examples0] = count; } assert_eq!(v, [3, 400, 300, 2, 600, 1]);
    -
    1.0.0 · source

    pub fn splitn<F>(&self, n: usize, pred: F) -> SplitN<'_, T, F>
    where +

    1.0.0 · source

    pub fn splitn<F>(&self, n: usize, pred: F) -> SplitN<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over subslices separated by elements that match pred, limited to returning at most n items. The matched element is not contained in the subslices.

    The last element returned, if any, will contain the remainder of the slice.

    -
    §Examples
    +
    §Examples

    Print the slice split once by numbers divisible by 3 (i.e., [10, 40], [20, 60, 50]):

    @@ -1498,27 +1452,27 @@
    §Examplesfor group in v.splitn(2, |num| *num % 3 == 0) { println!("{group:?}"); }
    -
    1.0.0 · source

    pub fn splitn_mut<F>(&mut self, n: usize, pred: F) -> SplitNMut<'_, T, F>
    where +

    1.0.0 · source

    pub fn splitn_mut<F>(&mut self, n: usize, pred: F) -> SplitNMut<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over mutable subslices separated by elements that match pred, limited to returning at most n items. The matched element is not contained in the subslices.

    The last element returned, if any, will contain the remainder of the slice.

    -
    §Examples
    +
    §Examples
    let mut v = [10, 40, 30, 20, 60, 50];
     
     for group in v.splitn_mut(2, |num| *num % 3 == 0) {
         group[0] = 1;
     }
     assert_eq!(v, [1, 40, 30, 1, 60, 50]);
    -
    1.0.0 · source

    pub fn rsplitn<F>(&self, n: usize, pred: F) -> RSplitN<'_, T, F>
    where +

    1.0.0 · source

    pub fn rsplitn<F>(&self, n: usize, pred: F) -> RSplitN<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over subslices separated by elements that match pred limited to returning at most n items. This starts at the end of the slice and works backwards. The matched element is not contained in the subslices.

    The last element returned, if any, will contain the remainder of the slice.

    -
    §Examples
    +
    §Examples

    Print the slice split once, starting from the end, by numbers divisible by 3 (i.e., [50], [10, 40, 30, 20]):

    @@ -1527,27 +1481,27 @@
    §Examplesfor group in v.rsplitn(2, |num| *num % 3 == 0) { println!("{group:?}"); }
    -
    1.0.0 · source

    pub fn rsplitn_mut<F>(&mut self, n: usize, pred: F) -> RSplitNMut<'_, T, F>
    where +

    1.0.0 · source

    pub fn rsplitn_mut<F>(&mut self, n: usize, pred: F) -> RSplitNMut<'_, T, F>
    where F: FnMut(&T) -> bool,

    Returns an iterator over subslices separated by elements that match pred limited to returning at most n items. This starts at the end of the slice and works backwards. The matched element is not contained in the subslices.

    The last element returned, if any, will contain the remainder of the slice.

    -
    §Examples
    +
    §Examples
    let mut s = [10, 40, 30, 20, 60, 50];
     
     for group in s.rsplitn_mut(2, |num| *num % 3 == 0) {
         group[0] = 1;
     }
     assert_eq!(s, [1, 40, 30, 20, 60, 1]);
    -
    source

    pub fn split_once<F>(&self, pred: F) -> Option<(&[T], &[T])>
    where +

    source

    pub fn split_once<F>(&self, pred: F) -> Option<(&[T], &[T])>
    where F: FnMut(&T) -> bool,

    🔬This is a nightly-only experimental API. (slice_split_once)

    Splits the slice on the first element that matches the specified predicate.

    If any matching elements are present in the slice, returns the prefix before the match and suffix after. The matching element itself is not included. If no elements match, returns None.

    -
    §Examples
    +
    §Examples
    #![feature(slice_split_once)]
     let s = [1, 2, 3, 2, 4];
     assert_eq!(s.split_once(|&x| x == 2), Some((
    @@ -1555,13 +1509,13 @@ 
    §Examples&[3, 2, 4][..] ))); assert_eq!(s.split_once(|&x| x == 0), None);
    -
    source

    pub fn rsplit_once<F>(&self, pred: F) -> Option<(&[T], &[T])>
    where +

    source

    pub fn rsplit_once<F>(&self, pred: F) -> Option<(&[T], &[T])>
    where F: FnMut(&T) -> bool,

    🔬This is a nightly-only experimental API. (slice_split_once)

    Splits the slice on the last element that matches the specified predicate.

    If any matching elements are present in the slice, returns the prefix before the match and suffix after. The matching element itself is not included. If no elements match, returns None.

    -
    §Examples
    +
    §Examples
    #![feature(slice_split_once)]
     let s = [1, 2, 3, 2, 4];
     assert_eq!(s.rsplit_once(|&x| x == 2), Some((
    @@ -1569,11 +1523,11 @@ 
    §Examples&[4][..] ))); assert_eq!(s.rsplit_once(|&x| x == 0), None);
    -
    1.0.0 · source

    pub fn contains(&self, x: &T) -> bool
    where +

    1.0.0 · source

    pub fn contains(&self, x: &T) -> bool
    where T: PartialEq,

    Returns true if the slice contains an element with the given value.

    This operation is O(n).

    Note that if you have a sorted slice, binary_search may be faster.

    -
    §Examples
    +
    §Examples
    let v = [10, 40, 30];
     assert!(v.contains(&30));
     assert!(!v.contains(&50));
    @@ -1584,9 +1538,9 @@
    §Examples
    let v = [String::from("hello"), String::from("world")]; // slice of `String`
     assert!(v.iter().any(|e| e == "hello")); // search with `&str`
     assert!(!v.iter().any(|e| e == "hi"));
    -
    1.0.0 · source

    pub fn starts_with(&self, needle: &[T]) -> bool
    where +

    1.0.0 · source

    pub fn starts_with(&self, needle: &[T]) -> bool
    where T: PartialEq,

    Returns true if needle is a prefix of the slice or equal to the slice.

    -
    §Examples
    +
    §Examples
    let v = [10, 40, 30];
     assert!(v.starts_with(&[10]));
     assert!(v.starts_with(&[10, 40]));
    @@ -1599,9 +1553,9 @@ 
    §Examplesassert!(v.starts_with(&[])); let v: &[u8] = &[]; assert!(v.starts_with(&[]));
    -
    1.0.0 · source

    pub fn ends_with(&self, needle: &[T]) -> bool
    where +

    1.0.0 · source

    pub fn ends_with(&self, needle: &[T]) -> bool
    where T: PartialEq,

    Returns true if needle is a suffix of the slice or equal to the slice.

    -
    §Examples
    +
    §Examples
    let v = [10, 40, 30];
     assert!(v.ends_with(&[30]));
     assert!(v.ends_with(&[40, 30]));
    @@ -1614,14 +1568,14 @@ 
    §Examplesassert!(v.ends_with(&[])); let v: &[u8] = &[]; assert!(v.ends_with(&[]));
    -
    1.51.0 · source

    pub fn strip_prefix<P>(&self, prefix: &P) -> Option<&[T]>
    where +

    1.51.0 · source

    pub fn strip_prefix<P>(&self, prefix: &P) -> Option<&[T]>
    where P: SlicePattern<Item = T> + ?Sized, T: PartialEq,

    Returns a subslice with the prefix removed.

    If the slice starts with prefix, returns the subslice after the prefix, wrapped in Some. If prefix is empty, simply returns the original slice. If prefix is equal to the original slice, returns an empty slice.

    If the slice does not start with prefix, returns None.

    -
    §Examples
    +
    §Examples
    let v = &[10, 40, 30];
     assert_eq!(v.strip_prefix(&[10]), Some(&[40, 30][..]));
     assert_eq!(v.strip_prefix(&[10, 40]), Some(&[30][..]));
    @@ -1632,21 +1586,21 @@ 
    §Exampleslet prefix : &str = "he"; assert_eq!(b"hello".strip_prefix(prefix.as_bytes()), Some(b"llo".as_ref()));
    -
    1.51.0 · source

    pub fn strip_suffix<P>(&self, suffix: &P) -> Option<&[T]>
    where +

    1.51.0 · source

    pub fn strip_suffix<P>(&self, suffix: &P) -> Option<&[T]>
    where P: SlicePattern<Item = T> + ?Sized, T: PartialEq,

    Returns a subslice with the suffix removed.

    If the slice ends with suffix, returns the subslice before the suffix, wrapped in Some. If suffix is empty, simply returns the original slice. If suffix is equal to the original slice, returns an empty slice.

    If the slice does not end with suffix, returns None.

    -
    §Examples
    +
    §Examples
    let v = &[10, 40, 30];
     assert_eq!(v.strip_suffix(&[30]), Some(&[10, 40][..]));
     assert_eq!(v.strip_suffix(&[40, 30]), Some(&[10][..]));
     assert_eq!(v.strip_suffix(&[10, 40, 30]), Some(&[][..]));
     assert_eq!(v.strip_suffix(&[50]), None);
     assert_eq!(v.strip_suffix(&[50, 30]), None);
    -

    Binary searches this slice for a given element. If the slice is not sorted, the returned result is unspecified and meaningless.

    @@ -1658,7 +1612,7 @@
    §Examples

    See also binary_search_by, binary_search_by_key, and partition_point.

    -
    §Examples
    +
    §Examples

    Looks up a series of four elements. The first is found, with a uniquely determined position; the second and third are not found; the fourth could match any position in [1, 4].

    @@ -1701,7 +1655,7 @@
    §Examples< // to shift less elements. s.insert(idx, num); assert_eq!(s, [0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 42, 55]);
    -
    1.0.0 · source

    pub fn binary_search_by<'a, F>(&'a self, f: F) -> Result<usize, usize>
    where +

    1.0.0 · source

    pub fn binary_search_by<'a, F>(&'a self, f: F) -> Result<usize, usize>
    where F: FnMut(&'a T) -> Ordering,

    Binary searches this slice with a comparator function.

    The comparator function should return an order code that indicates whether its argument is Less, Equal or Greater the desired @@ -1717,7 +1671,7 @@

    §Examples< the index where a matching element could be inserted while maintaining sorted order.

    See also binary_search, binary_search_by_key, and partition_point.

    -
    §Examples
    +
    §Examples

    Looks up a series of four elements. The first is found, with a uniquely determined position; the second and third are not found; the fourth could match any position in [1, 4].

    @@ -1733,7 +1687,7 @@
    §Examples< let seek = 1; let r = s.binary_search_by(|probe| probe.cmp(&seek)); assert!(match r { Ok(1..=4) => true, _ => false, });
    -
    1.10.0 · source

    pub fn binary_search_by_key<'a, B, F>( +

    1.10.0 · source

    pub fn binary_search_by_key<'a, B, F>( &'a self, b: &B, f: F, @@ -1752,7 +1706,7 @@

    §Examples< the index where a matching element could be inserted while maintaining sorted order.

    See also binary_search, binary_search_by, and partition_point.

    -
    §Examples
    +
    §Examples

    Looks up a series of four elements in a slice of pairs sorted by their second elements. The first is found, with a uniquely determined position; the second and third are not found; the @@ -1767,90 +1721,93 @@

    §Examples< assert_eq!(s.binary_search_by_key(&100, |&(a, b)| b), Err(13)); let r = s.binary_search_by_key(&1, |&(a, b)| b); assert!(match r { Ok(1..=4) => true, _ => false, }); -
    1.20.0 · source

    pub fn sort_unstable(&mut self)
    where +

    1.20.0 · source

    pub fn sort_unstable(&mut self)
    where T: Ord,

    Sorts the slice without preserving the initial order of equal elements.

    This sort is unstable (i.e., may reorder equal elements), in-place (i.e., does not allocate), and O(n * log(n)) worst-case.

    -

    If T: Ord does not implement a total order the resulting order is unspecified. All -original elements will remain in the slice and any possible modifications via interior -mutability are observed in the input. Same is true if T: Ord panics.

    -
    §Current implementation
    +

    If the implementation of Ord for T does not implement a total order the resulting +order of elements in the slice is unspecified. All original elements will remain in the +slice and any possible modifications via interior mutability are observed in the input. Same +is true if the implementation of Ord for T panics.

    +

    Sorting types that only implement PartialOrd such as f32 and f64 require +additional precautions. For example, f32::NAN != f32::NAN, which doesn’t fulfill the +reflexivity requirement of Ord. By using an alternative comparison function with +slice::sort_unstable_by such as f32::total_cmp or f64::total_cmp that defines a +total order users can sort slices containing floating-point values. Alternatively, if all +values in the slice are guaranteed to be in a subset for which PartialOrd::partial_cmp +forms a total order, it’s possible to sort the slice with sort_unstable_by(|a, b| a.partial_cmp(b).unwrap()).

    +
    §Current implementation

    The current implementation is based on ipnsort by Lukas Bergdoll and Orson Peters, which combines the fast average case of quicksort with the fast worst case of heapsort, achieving linear time on fully sorted and reversed inputs. On inputs with k distinct elements, the expected time to sort the data is O(n * log(k)).

    It is typically faster than stable sorting, except in a few special cases, e.g., when the slice is partially sorted.

    -

    If T: Ord does not implement a total order, the implementation may panic.

    -
    §Examples
    -
    let mut v = [-5, 4, 1, -3, 2];
    +
    §Panics
    +

    May panic if the implementation of Ord for T does not implement a total order.

    +
    §Examples
    +
    let mut v = [4, -5, 1, -3, 2];
     
     v.sort_unstable();
    -assert!(v == [-5, -3, 1, 2, 4]);
    -
    1.20.0 · source

    pub fn sort_unstable_by<F>(&mut self, compare: F)
    where - F: FnMut(&T, &T) -> Ordering,

    Sorts the slice with a comparator function, without preserving the initial order of +assert_eq!(v, [-5, -3, 1, 2, 4]);

    +
    1.20.0 · source

    pub fn sort_unstable_by<F>(&mut self, compare: F)
    where + F: FnMut(&T, &T) -> Ordering,

    Sorts the slice with a comparison function, without preserving the initial order of equal elements.

    This sort is unstable (i.e., may reorder equal elements), in-place (i.e., does not allocate), and O(n * log(n)) worst-case.

    -

    The comparator function should define a total ordering for the elements in the slice. If the -ordering is not total, the order of the elements is unspecified.

    -

    If the comparator function does not implement a total order the resulting order is -unspecified. All original elements will remain in the slice and any possible modifications -via interior mutability are observed in the input. Same is true if the comparator function -panics. A total order (for all a, b and c):

    -
      -
    • total and antisymmetric: exactly one of a < b, a == b or a > b is true, and
    • -
    • transitive, a < b and b < c implies a < c. The same must hold for both == and >.
    • -
    -

    For example, while f64 doesn’t implement Ord because NaN != NaN, we can use -partial_cmp as our sort function when we know the slice doesn’t contain a NaN.

    - -
    let mut floats = [5f64, 4.0, 1.0, 3.0, 2.0];
    -floats.sort_unstable_by(|a, b| a.partial_cmp(b).unwrap());
    -assert_eq!(floats, [1.0, 2.0, 3.0, 4.0, 5.0]);
    -
    §Current implementation
    +

    If the comparison function compare does not implement a total order the resulting order +of elements in the slice is unspecified. All original elements will remain in the slice and +any possible modifications via interior mutability are observed in the input. Same is true +if compare panics.

    +

    For example |a, b| (a - b).cmp(a) is a comparison function that is neither transitive nor +reflexive nor total, a < b < c < a with a = 1, b = 2, c = 3. For more information and +examples see the Ord documentation.

    +
    §Current implementation

    The current implementation is based on ipnsort by Lukas Bergdoll and Orson Peters, which combines the fast average case of quicksort with the fast worst case of heapsort, achieving linear time on fully sorted and reversed inputs. On inputs with k distinct elements, the expected time to sort the data is O(n * log(k)).

    It is typically faster than stable sorting, except in a few special cases, e.g., when the slice is partially sorted.

    -

    If T: Ord does not implement a total order, the implementation may panic.

    -
    §Examples
    -
    let mut v = [5, 4, 1, 3, 2];
    +
    §Panics
    +

    May panic if compare does not implement a total order.

    +
    §Examples
    +
    let mut v = [4, -5, 1, -3, 2];
     v.sort_unstable_by(|a, b| a.cmp(b));
    -assert!(v == [1, 2, 3, 4, 5]);
    +assert_eq!(v, [-5, -3, 1, 2, 4]);
     
     // reverse sorting
     v.sort_unstable_by(|a, b| b.cmp(a));
    -assert!(v == [5, 4, 3, 2, 1]);
    -
    1.20.0 · source

    pub fn sort_unstable_by_key<K, F>(&mut self, f: F)
    where +assert_eq!(v, [4, 2, 1, -3, -5]);
    +

    1.20.0 · source

    pub fn sort_unstable_by_key<K, F>(&mut self, f: F)
    where F: FnMut(&T) -> K, K: Ord,

    Sorts the slice with a key extraction function, without preserving the initial order of equal elements.

    This sort is unstable (i.e., may reorder equal elements), in-place (i.e., does not allocate), and O(n * log(n)) worst-case.

    -

    If K: Ord does not implement a total order the resulting order is unspecified. -All original elements will remain in the slice and any possible modifications via interior -mutability are observed in the input. Same is true if K: Ord panics.

    -
    §Current implementation
    +

    If the implementation of Ord for K does not implement a total order the resulting +order of elements in the slice is unspecified. All original elements will remain in the +slice and any possible modifications via interior mutability are observed in the input. Same +is true if the implementation of Ord for K panics.

    +
    §Current implementation

    The current implementation is based on ipnsort by Lukas Bergdoll and Orson Peters, which combines the fast average case of quicksort with the fast worst case of heapsort, achieving linear time on fully sorted and reversed inputs. On inputs with k distinct elements, the expected time to sort the data is O(n * log(k)).

    It is typically faster than stable sorting, except in a few special cases, e.g., when the slice is partially sorted.

    -

    If K: Ord does not implement a total order, the implementation may panic.

    -
    §Examples
    -
    let mut v = [-5i32, 4, 1, -3, 2];
    +
    §Panics
    +

    May panic if the implementation of Ord for K does not implement a total order.

    +
    §Examples
    +
    let mut v = [4i32, -5, 1, -3, 2];
     
     v.sort_unstable_by_key(|k| k.abs());
    -assert!(v == [1, 2, -3, 4, -5]);
    -
    1.49.0 · source

    pub fn select_nth_unstable( +assert_eq!(v, [1, 2, -3, 4, -5]); +

    1.49.0 · source

    pub fn select_nth_unstable( &mut self, index: usize, ) -> (&mut [T], &mut T, &mut [T])
    where - T: Ord,

    Reorder the slice such that the element at index after the reordering is at its final + T: Ord,

    Reorders the slice such that the element at index after the reordering is at its final sorted position.

    This reordering has the additional property that any value at position i < index will be less than or equal to any value at a position j > index. Additionally, this reordering is @@ -1861,16 +1818,15 @@

    §Examples< index, the element at index, and the subslice after index; accordingly, the values in those two subslices will respectively all be less-than-or-equal-to and greater-than-or-equal-to the value of the element at index.

    -
    §Current implementation
    +
    §Current implementation

    The current algorithm is an introselect implementation based on ipnsort by Lukas Bergdoll and Orson Peters, which is also the basis for sort_unstable. The fallback algorithm is Median of Medians using Tukey’s Ninther for pivot selection, which guarantees linear runtime for all inputs.

    -

    It is typically faster than stable sorting, except in a few special cases, e.g., when the -slice is nearly fully sorted, where slice::sort may be faster.

    -
    §Panics
    +
    §Panics

    Panics when index >= len(), meaning it always panics on empty slices.

    -
    §Examples
    +

    May panic if the implementation of Ord for T does not implement a total order.

    +
    §Examples
    let mut v = [-5i32, 4, 2, -3, 1];
     
     // Find the items less than or equal to the median, the median, and greater than or equal to
    @@ -1887,12 +1843,12 @@ 
    §Examples< v == [-5, -3, 1, 2, 4] || v == [-3, -5, 1, 4, 2] || v == [-5, -3, 1, 4, 2]);
    -
    1.49.0 · source

    pub fn select_nth_unstable_by<F>( +

    1.49.0 · source

    pub fn select_nth_unstable_by<F>( &mut self, index: usize, compare: F, ) -> (&mut [T], &mut T, &mut [T])
    where - F: FnMut(&T, &T) -> Ordering,

    Reorder the slice with a comparator function such that the element at index after the + F: FnMut(&T, &T) -> Ordering,

    Reorders the slice with a comparator function such that the element at index after the reordering is at its final sorted position.

    This reordering has the additional property that any value at position i < index will be less than or equal to any value at a position j > index using the comparator function. @@ -1903,16 +1859,15 @@

    §Examples< comparator function: the subslice prior to index, the element at index, and the subslice after index; accordingly, the values in those two subslices will respectively all be less-than-or-equal-to and greater-than-or-equal-to the value of the element at index.

    -
    §Current implementation
    +
    §Current implementation

    The current algorithm is an introselect implementation based on ipnsort by Lukas Bergdoll and Orson Peters, which is also the basis for sort_unstable. The fallback algorithm is Median of Medians using Tukey’s Ninther for pivot selection, which guarantees linear runtime for all inputs.

    -

    It is typically faster than stable sorting, except in a few special cases, e.g., when the -slice is nearly fully sorted, where slice::sort may be faster.

    -
    §Panics
    +
    §Panics

    Panics when index >= len(), meaning it always panics on empty slices.

    -
    §Examples
    +

    May panic if compare does not implement a total order.

    +
    §Examples
    let mut v = [-5i32, 4, 2, -3, 1];
     
     // Find the items less than or equal to the median, the median, and greater than or equal to
    @@ -1929,13 +1884,13 @@ 
    §Examples< v == [2, 4, 1, -3, -5] || v == [4, 2, 1, -5, -3] || v == [4, 2, 1, -3, -5]);
    -
    1.49.0 · source

    pub fn select_nth_unstable_by_key<K, F>( +

    1.49.0 · source

    pub fn select_nth_unstable_by_key<K, F>( &mut self, index: usize, f: F, ) -> (&mut [T], &mut T, &mut [T])
    where F: FnMut(&T) -> K, - K: Ord,

    Reorder the slice with a key extraction function such that the element at index after the + K: Ord,

    Reorders the slice with a key extraction function such that the element at index after the reordering is at its final sorted position.

    This reordering has the additional property that any value at position i < index will be less than or equal to any value at a position j > index using the key extraction function. @@ -1946,16 +1901,15 @@

    §Examples< extraction function: the subslice prior to index, the element at index, and the subslice after index; accordingly, the values in those two subslices will respectively all be less-than-or-equal-to and greater-than-or-equal-to the value of the element at index.

    -
    §Current implementation
    +
    §Current implementation

    The current algorithm is an introselect implementation based on ipnsort by Lukas Bergdoll and Orson Peters, which is also the basis for sort_unstable. The fallback algorithm is Median of Medians using Tukey’s Ninther for pivot selection, which guarantees linear runtime for all inputs.

    -

    It is typically faster than stable sorting, except in a few special cases, e.g., when the -slice is nearly fully sorted, where slice::sort may be faster.

    -
    §Panics
    +
    §Panics

    Panics when index >= len(), meaning it always panics on empty slices.

    -
    §Examples
    +

    May panic if K: Ord does not implement a total order.

    +
    §Examples
    let mut v = [-5i32, 4, 1, -3, 2];
     
     // Find the items less than or equal to the median, the median, and greater than or equal to
    @@ -1972,13 +1926,13 @@ 
    §Examples< v == [1, 2, -3, -5, 4] || v == [2, 1, -3, 4, -5] || v == [2, 1, -3, -5, 4]);
    -
    source

    pub fn partition_dedup(&mut self) -> (&mut [T], &mut [T])
    where +

    source

    pub fn partition_dedup(&mut self) -> (&mut [T], &mut [T])
    where T: PartialEq,

    🔬This is a nightly-only experimental API. (slice_partition_dedup)

    Moves all consecutive repeated elements to the end of the slice according to the PartialEq trait implementation.

    Returns two slices. The first contains no consecutive repeated elements. The second contains all the duplicates in no specified order.

    If the slice is sorted, the first returned slice contains no duplicates.

    -
    §Examples
    +
    §Examples
    #![feature(slice_partition_dedup)]
     
     let mut slice = [1, 2, 2, 3, 3, 2, 1, 1];
    @@ -1987,7 +1941,7 @@ 
    §Examples< assert_eq!(dedup, [1, 2, 3, 2, 1]); assert_eq!(duplicates, [2, 3, 1]);
    -
    source

    pub fn partition_dedup_by<F>(&mut self, same_bucket: F) -> (&mut [T], &mut [T])
    where +

    source

    pub fn partition_dedup_by<F>(&mut self, same_bucket: F) -> (&mut [T], &mut [T])
    where F: FnMut(&mut T, &mut T) -> bool,

    🔬This is a nightly-only experimental API. (slice_partition_dedup)

    Moves all but the first of consecutive elements to the end of the slice satisfying a given equality relation.

    Returns two slices. The first contains no consecutive repeated elements. @@ -1997,7 +1951,7 @@

    §Examples< from their order in the slice, so if same_bucket(a, b) returns true, a is moved at the end of the slice.

    If the slice is sorted, the first returned slice contains no duplicates.

    -
    §Examples
    +
    §Examples
    #![feature(slice_partition_dedup)]
     
     let mut slice = ["foo", "Foo", "BAZ", "Bar", "bar", "baz", "BAZ"];
    @@ -2006,14 +1960,14 @@ 
    §Examples< assert_eq!(dedup, ["foo", "BAZ", "Bar", "baz"]); assert_eq!(duplicates, ["bar", "Foo", "BAZ"]);
    -
    source

    pub fn partition_dedup_by_key<K, F>(&mut self, key: F) -> (&mut [T], &mut [T])
    where +

    source

    pub fn partition_dedup_by_key<K, F>(&mut self, key: F) -> (&mut [T], &mut [T])
    where F: FnMut(&mut T) -> K, K: PartialEq,

    🔬This is a nightly-only experimental API. (slice_partition_dedup)

    Moves all but the first of consecutive elements to the end of the slice that resolve to the same key.

    Returns two slices. The first contains no consecutive repeated elements. The second contains all the duplicates in no specified order.

    If the slice is sorted, the first returned slice contains no duplicates.

    -
    §Examples
    +
    §Examples
    #![feature(slice_partition_dedup)]
     
     let mut slice = [10, 20, 21, 30, 30, 20, 11, 13];
    @@ -2022,17 +1976,18 @@ 
    §Examples< assert_eq!(dedup, [10, 20, 30, 20, 11]); assert_eq!(duplicates, [21, 30, 13]);
    -
    1.26.0 · source

    pub fn rotate_left(&mut self, mid: usize)

    Rotates the slice in-place such that the first mid elements of the +

    1.26.0 · source

    pub fn rotate_left(&mut self, mid: usize)

    Rotates the slice in-place such that the first mid elements of the slice move to the end while the last self.len() - mid elements move to -the front. After calling rotate_left, the element previously at index -mid will become the first element in the slice.

    -
    §Panics
    +the front.

    +

    After calling rotate_left, the element previously at index mid will +become the first element in the slice.

    +
    §Panics

    This function will panic if mid is greater than the length of the slice. Note that mid == self.len() does not panic and is a no-op rotation.

    §Complexity

    Takes linear (in self.len()) time.

    -
    §Examples
    +
    §Examples
    let mut a = ['a', 'b', 'c', 'd', 'e', 'f'];
     a.rotate_left(2);
     assert_eq!(a, ['c', 'd', 'e', 'f', 'a', 'b']);
    @@ -2041,17 +1996,18 @@
    §Examples<
    let mut a = ['a', 'b', 'c', 'd', 'e', 'f'];
     a[1..5].rotate_left(1);
     assert_eq!(a, ['a', 'c', 'd', 'e', 'b', 'f']);
    -
    1.26.0 · source

    pub fn rotate_right(&mut self, k: usize)

    Rotates the slice in-place such that the first self.len() - k +

    1.26.0 · source

    pub fn rotate_right(&mut self, k: usize)

    Rotates the slice in-place such that the first self.len() - k elements of the slice move to the end while the last k elements move -to the front. After calling rotate_right, the element previously at -index self.len() - k will become the first element in the slice.

    -
    §Panics
    +to the front.

    +

    After calling rotate_right, the element previously at index +self.len() - k will become the first element in the slice.

    +
    §Panics

    This function will panic if k is greater than the length of the slice. Note that k == self.len() does not panic and is a no-op rotation.

    §Complexity

    Takes linear (in self.len()) time.

    -
    §Examples
    +
    §Examples
    let mut a = ['a', 'b', 'c', 'd', 'e', 'f'];
     a.rotate_right(2);
     assert_eq!(a, ['e', 'f', 'a', 'b', 'c', 'd']);
    @@ -2060,28 +2016,28 @@
    §Examples<
    let mut a = ['a', 'b', 'c', 'd', 'e', 'f'];
     a[1..5].rotate_right(1);
     assert_eq!(a, ['a', 'e', 'b', 'c', 'd', 'f']);
    -
    1.50.0 · source

    pub fn fill(&mut self, value: T)
    where +

    1.50.0 · source

    pub fn fill(&mut self, value: T)
    where T: Clone,

    Fills self with elements by cloning value.

    -
    §Examples
    +
    §Examples
    let mut buf = vec![0; 10];
     buf.fill(1);
     assert_eq!(buf, vec![1; 10]);
    -
    1.51.0 · source

    pub fn fill_with<F>(&mut self, f: F)
    where +

    1.51.0 · source

    pub fn fill_with<F>(&mut self, f: F)
    where F: FnMut() -> T,

    Fills self with elements returned by calling a closure repeatedly.

    This method uses a closure to create new values. If you’d rather Clone a given value, use fill. If you want to use the Default trait to generate values, you can pass Default::default as the argument.

    -
    §Examples
    +
    §Examples
    let mut buf = vec![1; 10];
     buf.fill_with(Default::default);
     assert_eq!(buf, vec![0; 10]);
    -
    1.7.0 · source

    pub fn clone_from_slice(&mut self, src: &[T])
    where +

    1.7.0 · source

    pub fn clone_from_slice(&mut self, src: &[T])
    where T: Clone,

    Copies the elements from src into self.

    The length of src must be the same as self.

    -
    §Panics
    +
    §Panics

    This function will panic if the two slices have different lengths.

    -
    §Examples
    +
    §Examples

    Cloning two elements from a slice into another:

    let src = [1, 2, 3, 4];
    @@ -2113,13 +2069,13 @@ 
    §Examples< } assert_eq!(slice, [4, 5, 3, 4, 5]);
    -
    1.9.0 · source

    pub fn copy_from_slice(&mut self, src: &[T])
    where +

    1.9.0 · source

    pub fn copy_from_slice(&mut self, src: &[T])
    where T: Copy,

    Copies all elements from src into self, using a memcpy.

    The length of src must be the same as self.

    If T does not implement Copy, use clone_from_slice.

    -
    §Panics
    +
    §Panics

    This function will panic if the two slices have different lengths.

    -
    §Examples
    +
    §Examples

    Copying two elements from a slice into another:

    let src = [1, 2, 3, 4];
    @@ -2151,7 +2107,7 @@ 
    §Examples< } assert_eq!(slice, [4, 5, 3, 4, 5]);
    -
    1.37.0 · source

    pub fn copy_within<R>(&mut self, src: R, dest: usize)
    where +

    1.37.0 · source

    pub fn copy_within<R>(&mut self, src: R, dest: usize)
    where R: RangeBounds<usize>, T: Copy,

    Copies elements from one part of the slice to another part of itself, using a memmove.

    @@ -2159,10 +2115,10 @@
    §Examples< index of the range within self to copy to, which will have the same length as src. The two ranges may overlap. The ends of the two ranges must be less than or equal to self.len().

    -
    §Panics
    +
    §Panics

    This function will panic if either range exceeds the end of the slice, or if the end of src is before the start.

    -
    §Examples
    +
    §Examples

    Copying four bytes within a slice:

    let mut bytes = *b"Hello, World!";
    @@ -2170,9 +2126,9 @@ 
    §Examples< bytes.copy_within(1..5, 8); assert_eq!(&bytes, b"Hello, Wello!");
    -
    1.27.0 · source

    pub fn swap_with_slice(&mut self, other: &mut [T])

    Swaps all elements in self with those in other.

    +
    1.27.0 · source

    pub fn swap_with_slice(&mut self, other: &mut [T])

    Swaps all elements in self with those in other.

    The length of other must be the same as self.

    -
    §Panics
    +
    §Panics

    This function will panic if the two slices have different lengths.

    §Example

    Swapping two elements across slices:

    @@ -2202,7 +2158,7 @@
    §Example
    } assert_eq!(slice, [4, 5, 3, 1, 2]);
    -
    1.30.0 · source

    pub unsafe fn align_to<U>(&self) -> (&[T], &[U], &[T])

    Transmute the slice to a slice of another type, ensuring alignment of the types is +

    1.30.0 · source

    pub unsafe fn align_to<U>(&self) -> (&[T], &[U], &[T])

    Transmutes the slice to a slice of another type, ensuring alignment of the types is maintained.

    This method splits the slice into three distinct slices: prefix, correctly aligned middle slice of a new type, and the suffix slice. The middle part will be as big as possible under @@ -2212,7 +2168,7 @@

    §Example
    §Safety

    This method is essentially a transmute with respect to the elements in the returned middle slice, so all the usual caveats pertaining to transmute::<T, U> also apply here.

    -
    §Examples
    +
    §Examples

    Basic usage:

    unsafe {
    @@ -2222,7 +2178,7 @@ 
    §Examples< // more_efficient_algorithm_for_aligned_shorts(shorts); // less_efficient_algorithm_for_bytes(suffix); }
    -
    1.30.0 · source

    pub unsafe fn align_to_mut<U>(&mut self) -> (&mut [T], &mut [U], &mut [T])

    Transmute the mutable slice to a mutable slice of another type, ensuring alignment of the +

    1.30.0 · source

    pub unsafe fn align_to_mut<U>(&mut self) -> (&mut [T], &mut [U], &mut [T])

    Transmutes the mutable slice to a mutable slice of another type, ensuring alignment of the types is maintained.

    This method splits the slice into three distinct slices: prefix, correctly aligned middle slice of a new type, and the suffix slice. The middle part will be as big as possible under @@ -2232,7 +2188,7 @@

    §Examples<
    §Safety

    This method is essentially a transmute with respect to the elements in the returned middle slice, so all the usual caveats pertaining to transmute::<T, U> also apply here.

    -
    §Examples
    +
    §Examples

    Basic usage:

    unsafe {
    @@ -2242,22 +2198,13 @@ 
    §Examples< // more_efficient_algorithm_for_aligned_shorts(shorts); // less_efficient_algorithm_for_bytes(suffix); }
    -
    source

    pub fn as_simd<const LANES: usize>(&self) -> (&[T], &[Simd<T, LANES>], &[T])
    where +

    source

    pub fn as_simd<const LANES: usize>(&self) -> (&[T], &[Simd<T, LANES>], &[T])
    where Simd<T, LANES>: AsRef<[T; LANES]>, T: SimdElement, - LaneCount<LANES>: SupportedLaneCount,

    🔬This is a nightly-only experimental API. (portable_simd)

    Split a slice into a prefix, a middle of aligned SIMD types, and a suffix.

    -

    This is a safe wrapper around slice::align_to, so has the same weak -postconditions as that method. You’re only assured that -self.len() == prefix.len() + middle.len() * LANES + suffix.len().

    -

    Notably, all of the following are possible:

    -
      -
    • prefix.len() >= LANES.
    • -
    • middle.is_empty() despite self.len() >= 3 * LANES.
    • -
    • suffix.len() >= LANES.
    • -
    -

    That said, this is a safe method, so if you’re only writing safe code, -then this can at most cause incorrect logic, not unsoundness.

    -
    §Panics
    + LaneCount<LANES>: SupportedLaneCount,
    🔬This is a nightly-only experimental API. (portable_simd)

    Splits a slice into a prefix, a middle of aligned SIMD types, and a suffix.

    +

    This is a safe wrapper around slice::align_to, so inherits the same +guarantees as that method.

    +
    §Panics

    This will panic if the size of the SIMD type is different from LANES times that of the scalar.

    At the time of writing, the trait restrictions on Simd<T, LANES> keeps @@ -2265,7 +2212,7 @@

    §Panics
    supported. It’s possible that, in the future, those restrictions might be lifted in a way that would make it possible to see panics from this method for something like LANES == 3.

    -
    §Examples
    +
    §Examples
    #![feature(portable_simd)]
     use core::simd::prelude::*;
     
    @@ -2292,26 +2239,17 @@ 
    §Examples< let numbers: Vec<f32> = (1..101).map(|x| x as _).collect(); assert_eq!(basic_simd_sum(&numbers[1..99]), 4949.0);
    -
    source

    pub fn as_simd_mut<const LANES: usize>( +

    source

    pub fn as_simd_mut<const LANES: usize>( &mut self, ) -> (&mut [T], &mut [Simd<T, LANES>], &mut [T])
    where Simd<T, LANES>: AsMut<[T; LANES]>, T: SimdElement, - LaneCount<LANES>: SupportedLaneCount,

    🔬This is a nightly-only experimental API. (portable_simd)

    Split a mutable slice into a mutable prefix, a middle of aligned SIMD types, + LaneCount<LANES>: SupportedLaneCount,

    🔬This is a nightly-only experimental API. (portable_simd)

    Splits a mutable slice into a mutable prefix, a middle of aligned SIMD types, and a mutable suffix.

    -

    This is a safe wrapper around slice::align_to_mut, so has the same weak -postconditions as that method. You’re only assured that -self.len() == prefix.len() + middle.len() * LANES + suffix.len().

    -

    Notably, all of the following are possible:

    -
      -
    • prefix.len() >= LANES.
    • -
    • middle.is_empty() despite self.len() >= 3 * LANES.
    • -
    • suffix.len() >= LANES.
    • -
    -

    That said, this is a safe method, so if you’re only writing safe code, -then this can at most cause incorrect logic, not unsoundness.

    +

    This is a safe wrapper around slice::align_to_mut, so inherits the same +guarantees as that method.

    This is the mutable version of slice::as_simd; see that for examples.

    -
    §Panics
    +
    §Panics

    This will panic if the size of the SIMD type is different from LANES times that of the scalar.

    At the time of writing, the trait restrictions on Simd<T, LANES> keeps @@ -2319,30 +2257,27 @@

    §Panics
    supported. It’s possible that, in the future, those restrictions might be lifted in a way that would make it possible to see panics from this method for something like LANES == 3.

    -
    source

    pub fn is_sorted(&self) -> bool
    where - T: PartialOrd,

    🔬This is a nightly-only experimental API. (is_sorted)

    Checks if the elements of this slice are sorted.

    +
    1.82.0 · source

    pub fn is_sorted(&self) -> bool
    where + T: PartialOrd,

    Checks if the elements of this slice are sorted.

    That is, for each element a and its following element b, a <= b must hold. If the slice yields exactly zero or one element, true is returned.

    Note that if Self::Item is only PartialOrd, but not Ord, the above definition implies that this function returns false if any two consecutive items are not comparable.

    -
    §Examples
    -
    #![feature(is_sorted)]
    -let empty: [i32; 0] = [];
    +
    §Examples
    +
    let empty: [i32; 0] = [];
     
     assert!([1, 2, 2, 9].is_sorted());
     assert!(![1, 3, 2, 4].is_sorted());
     assert!([0].is_sorted());
     assert!(empty.is_sorted());
     assert!(![0.0, 1.0, f32::NAN].is_sorted());
    -
    source

    pub fn is_sorted_by<'a, F>(&'a self, compare: F) -> bool
    where - F: FnMut(&'a T, &'a T) -> bool,

    🔬This is a nightly-only experimental API. (is_sorted)

    Checks if the elements of this slice are sorted using the given comparator function.

    +
    1.82.0 · source

    pub fn is_sorted_by<'a, F>(&'a self, compare: F) -> bool
    where + F: FnMut(&'a T, &'a T) -> bool,

    Checks if the elements of this slice are sorted using the given comparator function.

    Instead of using PartialOrd::partial_cmp, this function uses the given compare function to determine whether two elements are to be considered in sorted order.

    -
    §Examples
    -
    #![feature(is_sorted)]
    -
    -assert!([1, 2, 2, 9].is_sorted_by(|a, b| a <= b));
    +
    §Examples
    +
    assert!([1, 2, 2, 9].is_sorted_by(|a, b| a <= b));
     assert!(![1, 2, 2, 9].is_sorted_by(|a, b| a < b));
     
     assert!([0].is_sorted_by(|a, b| true));
    @@ -2351,18 +2286,16 @@ 
    §Examples< let empty: [i32; 0] = []; assert!(empty.is_sorted_by(|a, b| false)); assert!(empty.is_sorted_by(|a, b| true));
    -
    source

    pub fn is_sorted_by_key<'a, F, K>(&'a self, f: F) -> bool
    where +

    1.82.0 · source

    pub fn is_sorted_by_key<'a, F, K>(&'a self, f: F) -> bool
    where F: FnMut(&'a T) -> K, - K: PartialOrd,

    🔬This is a nightly-only experimental API. (is_sorted)

    Checks if the elements of this slice are sorted using the given key extraction function.

    + K: PartialOrd,

    Checks if the elements of this slice are sorted using the given key extraction function.

    Instead of comparing the slice’s elements directly, this function compares the keys of the elements, as determined by f. Apart from that, it’s equivalent to is_sorted; see its documentation for more information.

    -
    §Examples
    -
    #![feature(is_sorted)]
    -
    -assert!(["c", "bb", "aaa"].is_sorted_by_key(|s| s.len()));
    +
    §Examples
    +
    assert!(["c", "bb", "aaa"].is_sorted_by_key(|s| s.len()));
     assert!(![-2i32, -1, 0, 3].is_sorted_by_key(|n| n.abs()));
    -
    1.52.0 · source

    pub fn partition_point<P>(&self, pred: P) -> usize
    where +

    1.52.0 · source

    pub fn partition_point<P>(&self, pred: P) -> usize
    where P: FnMut(&T) -> bool,

    Returns the index of the partition point according to the given predicate (the index of the first element of the second partition).

    The slice is assumed to be partitioned according to the given predicate. @@ -2373,7 +2306,7 @@

    §Examples<

    If this slice is not partitioned, the returned result is unspecified and meaningless, as this method performs a kind of binary search.

    See also binary_search, binary_search_by, and binary_search_by_key.

    -
    §Examples
    +
    §Examples
    let v = [1, 2, 3, 3, 5, 6, 7];
     let i = v.partition_point(|&x| x < 5);
     
    @@ -2395,14 +2328,14 @@ 
    §Examples< let idx = s.partition_point(|&x| x <= num); s.insert(idx, num); assert_eq!(s, [0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 42, 55]);
    -
    source

    pub fn take<'a, R>(self: &mut &'a [T], range: R) -> Option<&'a [T]>
    where +

    source

    pub fn take<'a, R>(self: &mut &'a [T], range: R) -> Option<&'a [T]>
    where R: OneSidedRange<usize>,

    🔬This is a nightly-only experimental API. (slice_take)

    Removes the subslice corresponding to the given range and returns a reference to it.

    Returns None and does not modify the slice if the given range is out of bounds.

    Note that this method only accepts one-sided ranges such as 2.. or ..6, but not 2..6.

    -
    §Examples
    +
    §Examples

    Taking the first three elements of a slice:

    #![feature(slice_take)]
    @@ -2432,14 +2365,14 @@ 
    §Examples< assert_eq!(None, slice.take(..=4)); let expected: &[char] = &['a', 'b', 'c', 'd']; assert_eq!(Some(expected), slice.take(..4));
    -
    source

    pub fn take_mut<'a, R>(self: &mut &'a mut [T], range: R) -> Option<&'a mut [T]>
    where +

    source

    pub fn take_mut<'a, R>(self: &mut &'a mut [T], range: R) -> Option<&'a mut [T]>
    where R: OneSidedRange<usize>,

    🔬This is a nightly-only experimental API. (slice_take)

    Removes the subslice corresponding to the given range and returns a mutable reference to it.

    Returns None and does not modify the slice if the given range is out of bounds.

    Note that this method only accepts one-sided ranges such as 2.. or ..6, but not 2..6.

    -
    §Examples
    +
    §Examples

    Taking the first three elements of a slice:

    #![feature(slice_take)]
    @@ -2469,10 +2402,10 @@ 
    §Examples< assert_eq!(None, slice.take_mut(..=4)); let expected: &mut [_] = &mut ['a', 'b', 'c', 'd']; assert_eq!(Some(expected), slice.take_mut(..4));
    -
    source

    pub fn take_first<'a>(self: &mut &'a [T]) -> Option<&'a T>

    🔬This is a nightly-only experimental API. (slice_take)

    Removes the first element of the slice and returns a reference +

    source

    pub fn take_first<'a>(self: &mut &'a [T]) -> Option<&'a T>

    🔬This is a nightly-only experimental API. (slice_take)

    Removes the first element of the slice and returns a reference to it.

    Returns None if the slice is empty.

    -
    §Examples
    +
    §Examples
    #![feature(slice_take)]
     
     let mut slice: &[_] = &['a', 'b', 'c'];
    @@ -2480,10 +2413,10 @@ 
    §Examples< assert_eq!(slice, &['b', 'c']); assert_eq!(first, &'a');
    -
    source

    pub fn take_first_mut<'a>(self: &mut &'a mut [T]) -> Option<&'a mut T>

    🔬This is a nightly-only experimental API. (slice_take)

    Removes the first element of the slice and returns a mutable +

    source

    pub fn take_first_mut<'a>(self: &mut &'a mut [T]) -> Option<&'a mut T>

    🔬This is a nightly-only experimental API. (slice_take)

    Removes the first element of the slice and returns a mutable reference to it.

    Returns None if the slice is empty.

    -
    §Examples
    +
    §Examples
    #![feature(slice_take)]
     
     let mut slice: &mut [_] = &mut ['a', 'b', 'c'];
    @@ -2492,10 +2425,10 @@ 
    §Examples< assert_eq!(slice, &['b', 'c']); assert_eq!(first, &'d');
    -
    source

    pub fn take_last<'a>(self: &mut &'a [T]) -> Option<&'a T>

    🔬This is a nightly-only experimental API. (slice_take)

    Removes the last element of the slice and returns a reference +

    source

    pub fn take_last<'a>(self: &mut &'a [T]) -> Option<&'a T>

    🔬This is a nightly-only experimental API. (slice_take)

    Removes the last element of the slice and returns a reference to it.

    Returns None if the slice is empty.

    -
    §Examples
    +
    §Examples
    #![feature(slice_take)]
     
     let mut slice: &[_] = &['a', 'b', 'c'];
    @@ -2503,10 +2436,10 @@ 
    §Examples< assert_eq!(slice, &['a', 'b']); assert_eq!(last, &'c');
    -
    source

    pub fn take_last_mut<'a>(self: &mut &'a mut [T]) -> Option<&'a mut T>

    🔬This is a nightly-only experimental API. (slice_take)

    Removes the last element of the slice and returns a mutable +

    source

    pub fn take_last_mut<'a>(self: &mut &'a mut [T]) -> Option<&'a mut T>

    🔬This is a nightly-only experimental API. (slice_take)

    Removes the last element of the slice and returns a mutable reference to it.

    Returns None if the slice is empty.

    -
    §Examples
    +
    §Examples
    #![feature(slice_take)]
     
     let mut slice: &mut [_] = &mut ['a', 'b', 'c'];
    @@ -2515,7 +2448,7 @@ 
    §Examples< assert_eq!(slice, &['a', 'b']); assert_eq!(last, &'d');
    -
    source

    pub unsafe fn get_many_unchecked_mut<const N: usize>( +

    source

    pub unsafe fn get_many_unchecked_mut<const N: usize>( &mut self, indices: [usize; N], ) -> [&mut T; N]

    🔬This is a nightly-only experimental API. (get_many_mut)

    Returns mutable references to many indices at once, without doing any checks.

    @@ -2523,7 +2456,7 @@
    §Examples<
    §Safety

    Calling this method with overlapping or out-of-bounds indices is undefined behavior even if the resulting references are not used.

    -
    §Examples
    +
    §Examples
    #![feature(get_many_mut)]
     
     let x = &mut [1, 2, 4];
    @@ -2534,13 +2467,13 @@ 
    §Examples< *b *= 100; } assert_eq!(x, &[10, 2, 400]);
    -
    source

    pub fn get_many_mut<const N: usize>( +

    source

    pub fn get_many_mut<const N: usize>( &mut self, indices: [usize; N], ) -> Result<[&mut T; N], GetManyMutError<N>>

    🔬This is a nightly-only experimental API. (get_many_mut)

    Returns mutable references to many indices at once.

    Returns an error if any index is out-of-bounds, or if the same index was passed more than once.

    -
    §Examples
    +
    §Examples
    #![feature(get_many_mut)]
     
     let v = &mut [1, 2, 3];
    @@ -2549,27 +2482,173 @@ 
    §Examples< *b = 612; } assert_eq!(v, &[413, 2, 612]);
    -
    1.23.0 · source

    pub fn to_ascii_uppercase(&self) -> Vec<u8>

    Returns a vector containing a copy of this slice where each byte -is mapped to its ASCII upper case equivalent.

    -

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, -but non-ASCII letters are unchanged.

    -

    To uppercase the value in-place, use make_ascii_uppercase.

    -
    1.23.0 · source

    pub fn to_ascii_lowercase(&self) -> Vec<u8>

    Returns a vector containing a copy of this slice where each byte -is mapped to its ASCII lower case equivalent.

    -

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, -but non-ASCII letters are unchanged.

    -

    To lowercase the value in-place, use make_ascii_lowercase.

    -
    1.0.0 · source

    pub fn sort(&mut self)
    where +

    source

    pub fn elem_offset(&self, element: &T) -> Option<usize>

    🔬This is a nightly-only experimental API. (substr_range)

    Returns the index that an element reference points to.

    +

    Returns None if element does not point within the slice or if it points between elements.

    +

    This method is useful for extending slice iterators like slice::split.

    +

    Note that this uses pointer arithmetic and does not compare elements. +To find the index of an element via comparison, use +.iter().position() instead.

    +
    §Panics
    +

    Panics if T is zero-sized.

    +
    §Examples
    +

    Basic usage:

    + +
    #![feature(substr_range)]
    +
    +let nums: &[u32] = &[1, 7, 1, 1];
    +let num = &nums[2];
    +
    +assert_eq!(num, &1);
    +assert_eq!(nums.elem_offset(num), Some(2));
    +

    Returning None with an in-between element:

    + +
    #![feature(substr_range)]
    +
    +let arr: &[[u32; 2]] = &[[0, 1], [2, 3]];
    +let flat_arr: &[u32] = arr.as_flattened();
    +
    +let ok_elm: &[u32; 2] = flat_arr[0..2].try_into().unwrap();
    +let weird_elm: &[u32; 2] = flat_arr[1..3].try_into().unwrap();
    +
    +assert_eq!(ok_elm, &[0, 1]);
    +assert_eq!(weird_elm, &[1, 2]);
    +
    +assert_eq!(arr.elem_offset(ok_elm), Some(0)); // Points to element 0
    +assert_eq!(arr.elem_offset(weird_elm), None); // Points between element 0 and 1
    +
    source

    pub fn subslice_range(&self, subslice: &[T]) -> Option<Range<usize>>

    🔬This is a nightly-only experimental API. (substr_range)

    Returns the range of indices that a subslice points to.

    +

    Returns None if subslice does not point within the slice or if it points between elements.

    +

    This method does not compare elements. Instead, this method finds the location in the slice that +subslice was obtained from. To find the index of a subslice via comparison, instead use +.windows().position().

    +

    This method is useful for extending slice iterators like slice::split.

    +

    Note that this may return a false positive (either Some(0..0) or Some(self.len()..self.len())) +if subslice has a length of zero and points to the beginning or end of another, separate, slice.

    +
    §Panics
    +

    Panics if T is zero-sized.

    +
    §Examples
    +

    Basic usage:

    + +
    #![feature(substr_range)]
    +
    +let nums = &[0, 5, 10, 0, 0, 5];
    +
    +let mut iter = nums
    +    .split(|t| *t == 0)
    +    .map(|n| nums.subslice_range(n).unwrap());
    +
    +assert_eq!(iter.next(), Some(0..0));
    +assert_eq!(iter.next(), Some(1..3));
    +assert_eq!(iter.next(), Some(4..4));
    +assert_eq!(iter.next(), Some(5..6));
    +
    1.80.0 · source

    pub fn as_flattened(&self) -> &[T]

    Takes a &[[T; N]], and flattens it to a &[T].

    +
    §Panics
    +

    This panics if the length of the resulting slice would overflow a usize.

    +

    This is only possible when flattening a slice of arrays of zero-sized +types, and thus tends to be irrelevant in practice. If +size_of::<T>() > 0, this will never panic.

    +
    §Examples
    +
    assert_eq!([[1, 2, 3], [4, 5, 6]].as_flattened(), &[1, 2, 3, 4, 5, 6]);
    +
    +assert_eq!(
    +    [[1, 2, 3], [4, 5, 6]].as_flattened(),
    +    [[1, 2], [3, 4], [5, 6]].as_flattened(),
    +);
    +
    +let slice_of_empty_arrays: &[[i32; 0]] = &[[], [], [], [], []];
    +assert!(slice_of_empty_arrays.as_flattened().is_empty());
    +
    +let empty_slice_of_arrays: &[[u32; 10]] = &[];
    +assert!(empty_slice_of_arrays.as_flattened().is_empty());
    +
    1.80.0 · source

    pub fn as_flattened_mut(&mut self) -> &mut [T]

    Takes a &mut [[T; N]], and flattens it to a &mut [T].

    +
    §Panics
    +

    This panics if the length of the resulting slice would overflow a usize.

    +

    This is only possible when flattening a slice of arrays of zero-sized +types, and thus tends to be irrelevant in practice. If +size_of::<T>() > 0, this will never panic.

    +
    §Examples
    +
    fn add_5_to_all(slice: &mut [i32]) {
    +    for i in slice {
    +        *i += 5;
    +    }
    +}
    +
    +let mut array = [[1, 2, 3], [4, 5, 6], [7, 8, 9]];
    +add_5_to_all(array.as_flattened_mut());
    +assert_eq!(array, [[6, 7, 8], [9, 10, 11], [12, 13, 14]]);
    +
    source

    pub fn sort_floats(&mut self)

    🔬This is a nightly-only experimental API. (sort_floats)

    Sorts the slice of floats.

    +

    This sort is in-place (i.e. does not allocate), O(n * log(n)) worst-case, and uses +the ordering defined by f32::total_cmp.

    +
    §Current implementation
    +

    This uses the same sorting algorithm as sort_unstable_by.

    +
    §Examples
    +
    #![feature(sort_floats)]
    +let mut v = [2.6, -5e-8, f32::NAN, 8.29, f32::INFINITY, -1.0, 0.0, -f32::INFINITY, -0.0];
    +
    +v.sort_floats();
    +let sorted = [-f32::INFINITY, -1.0, -5e-8, -0.0, 0.0, 2.6, 8.29, f32::INFINITY, f32::NAN];
    +assert_eq!(&v[..8], &sorted[..8]);
    +assert!(v[8].is_nan());
    +
    source

    pub fn sort_floats(&mut self)

    🔬This is a nightly-only experimental API. (sort_floats)

    Sorts the slice of floats.

    +

    This sort is in-place (i.e. does not allocate), O(n * log(n)) worst-case, and uses +the ordering defined by f64::total_cmp.

    +
    §Current implementation
    +

    This uses the same sorting algorithm as sort_unstable_by.

    +
    §Examples
    +
    #![feature(sort_floats)]
    +let mut v = [2.6, -5e-8, f64::NAN, 8.29, f64::INFINITY, -1.0, 0.0, -f64::INFINITY, -0.0];
    +
    +v.sort_floats();
    +let sorted = [-f64::INFINITY, -1.0, -5e-8, -0.0, 0.0, 2.6, 8.29, f64::INFINITY, f64::NAN];
    +assert_eq!(&v[..8], &sorted[..8]);
    +assert!(v[8].is_nan());
    +
    1.79.0 · source

    pub fn utf8_chunks(&self) -> Utf8Chunks<'_>

    Creates an iterator over the contiguous valid UTF-8 ranges of this +slice, and the non-UTF-8 fragments in between.

    +
    §Examples
    +

    This function formats arbitrary but mostly-UTF-8 bytes into Rust source +code in the form of a C-string literal (c"...").

    + +
    use std::fmt::Write as _;
    +
    +pub fn cstr_literal(bytes: &[u8]) -> String {
    +    let mut repr = String::new();
    +    repr.push_str("c\"");
    +    for chunk in bytes.utf8_chunks() {
    +        for ch in chunk.valid().chars() {
    +            // Escapes \0, \t, \r, \n, \\, \', \", and uses \u{...} for non-printable characters.
    +            write!(repr, "{}", ch.escape_debug()).unwrap();
    +        }
    +        for byte in chunk.invalid() {
    +            write!(repr, "\\x{:02X}", byte).unwrap();
    +        }
    +    }
    +    repr.push('"');
    +    repr
    +}
    +
    +fn main() {
    +    let lit = cstr_literal(b"\xferris the \xf0\x9f\xa6\x80\x07");
    +    let expected = stringify!(c"\xFErris the 🦀\u{7}");
    +    assert_eq!(lit, expected);
    +}
    +
    1.0.0 · source

    pub fn sort(&mut self)
    where T: Ord,

    Sorts the slice, preserving initial order of equal elements.

    This sort is stable (i.e., does not reorder equal elements) and O(n * log(n)) worst-case.

    -

    If T: Ord does not implement a total order the resulting order is unspecified. All -original elements will remain in the slice and any possible modifications via interior -mutability are observed in the input. Same is true if T: Ord panics.

    +

    If the implementation of Ord for T does not implement a total order the resulting +order of elements in the slice is unspecified. All original elements will remain in the +slice and any possible modifications via interior mutability are observed in the input. Same +is true if the implementation of Ord for T panics.

    When applicable, unstable sorting is preferred because it is generally faster than stable sorting and it doesn’t allocate auxiliary memory. See sort_unstable. The exception are partially sorted slices, which may be better served with slice::sort.

    +

    Sorting types that only implement PartialOrd such as f32 and f64 require +additional precautions. For example, f32::NAN != f32::NAN, which doesn’t fulfill the +reflexivity requirement of Ord. By using an alternative comparison function with +slice::sort_by such as f32::total_cmp or f64::total_cmp that defines a total +order users can sort slices containing floating-point values. Alternatively, if all values +in the slice are guaranteed to be in a subset for which PartialOrd::partial_cmp forms a +total order, it’s possible to sort the slice with sort_by(|a, b| a.partial_cmp(b).unwrap()).

    §Current implementation

    The current implementation is based on driftsort by Orson Peters and Lukas Bergdoll, which combines the fast average case of quicksort with the fast worst case and partial run @@ -2578,32 +2657,24 @@

    §Examples
    -
    let mut v = [-5, 4, 1, -3, 2];
    +
    §Panics
    +

    May panic if the implementation of Ord for T does not implement a total order.

    +
    §Examples
    +
    let mut v = [4, -5, 1, -3, 2];
     
     v.sort();
    -assert!(v == [-5, -3, 1, 2, 4]);
    -
    1.0.0 · source

    pub fn sort_by<F>(&mut self, compare: F)
    where - F: FnMut(&T, &T) -> Ordering,

    Sorts the slice with a comparator function, preserving initial order of equal elements.

    +assert_eq!(v, [-5, -3, 1, 2, 4]);
    +
    1.0.0 · source

    pub fn sort_by<F>(&mut self, compare: F)
    where + F: FnMut(&T, &T) -> Ordering,

    Sorts the slice with a comparison function, preserving initial order of equal elements.

    This sort is stable (i.e., does not reorder equal elements) and O(n * log(n)) worst-case.

    -

    The comparator function should define a total ordering for the elements in the slice. If the -ordering is not total, the order of the elements is unspecified.

    -

    If the comparator function does not implement a total order the resulting order is -unspecified. All original elements will remain in the slice and any possible modifications -via interior mutability are observed in the input. Same is true if the comparator function -panics. A total order (for all a, b and c):

    -
      -
    • total and antisymmetric: exactly one of a < b, a == b or a > b is true, and
    • -
    • transitive, a < b and b < c implies a < c. The same must hold for both == and >.
    • -
    -

    For example, while f64 doesn’t implement Ord because NaN != NaN, we can use -partial_cmp as our sort function when we know the slice doesn’t contain a NaN.

    - -
    let mut floats = [5f64, 4.0, 1.0, 3.0, 2.0];
    -floats.sort_unstable_by(|a, b| a.partial_cmp(b).unwrap());
    -assert_eq!(floats, [1.0, 2.0, 3.0, 4.0, 5.0]);
    +

    If the comparison function compare does not implement a total order the resulting order +of elements in the slice is unspecified. All original elements will remain in the slice and +any possible modifications via interior mutability are observed in the input. Same is true +if compare panics.

    +

    For example |a, b| (a - b).cmp(a) is a comparison function that is neither transitive nor +reflexive nor total, a < b < c < a with a = 1, b = 2, c = 3. For more information and +examples see the Ord documentation.

    §Current implementation

    The current implementation is based on driftsort by Orson Peters and Lukas Bergdoll, which combines the fast average case of quicksort with the fast worst case and partial run @@ -2612,23 +2683,25 @@

    §Examples
    -
    let mut v = [5, 4, 1, 3, 2];
    +
    §Panics
    +

    May panic if compare does not implement a total order.

    +
    §Examples
    +
    let mut v = [4, -5, 1, -3, 2];
     v.sort_by(|a, b| a.cmp(b));
    -assert!(v == [1, 2, 3, 4, 5]);
    +assert_eq!(v, [-5, -3, 1, 2, 4]);
     
     // reverse sorting
     v.sort_by(|a, b| b.cmp(a));
    -assert!(v == [5, 4, 3, 2, 1]);
    -
    1.7.0 · source

    pub fn sort_by_key<K, F>(&mut self, f: F)
    where +assert_eq!(v, [4, 2, 1, -3, -5]);
    +

    1.7.0 · source

    pub fn sort_by_key<K, F>(&mut self, f: F)
    where F: FnMut(&T) -> K, K: Ord,

    Sorts the slice with a key extraction function, preserving initial order of equal elements.

    This sort is stable (i.e., does not reorder equal elements) and O(m * n * log(n)) worst-case, where the key function is O(m).

    -

    If K: Ord does not implement a total order the resulting order is unspecified. -All original elements will remain in the slice and any possible modifications via interior -mutability are observed in the input. Same is true if K: Ord panics.

    +

    If the implementation of Ord for K does not implement a total order the resulting +order of elements in the slice is unspecified. All original elements will remain in the +slice and any possible modifications via interior mutability are observed in the input. Same +is true if the implementation of Ord for K panics.

    §Current implementation

    The current implementation is based on driftsort by Orson Peters and Lukas Bergdoll, which combines the fast average case of quicksort with the fast worst case and partial run @@ -2637,13 +2710,14 @@

    §Examples
    -
    let mut v = [-5i32, 4, 1, -3, 2];
    +
    §Panics
    +

    May panic if the implementation of Ord for K does not implement a total order.

    +
    §Examples
    +
    let mut v = [4i32, -5, 1, -3, 2];
     
     v.sort_by_key(|k| k.abs());
    -assert!(v == [1, 2, -3, 4, -5]);
    -
    1.34.0 · source

    pub fn sort_by_cached_key<K, F>(&mut self, f: F)
    where +assert_eq!(v, [1, 2, -3, 4, -5]);
    +

    1.34.0 · source

    pub fn sort_by_cached_key<K, F>(&mut self, f: F)
    where F: FnMut(&T) -> K, K: Ord,

    Sorts the slice with a key extraction function, preserving initial order of equal elements.

    This sort is stable (i.e., does not reorder equal elements) and O(m * n + n * @@ -2651,9 +2725,10 @@

    §Examples<

    During sorting, the key function is called at most once per element, by using temporary storage to remember the results of key evaluation. The order of calls to the key function is unspecified and may change in future versions of the standard library.

    -

    If K: Ord does not implement a total order the resulting order is unspecified. -All original elements will remain in the slice and any possible modifications via interior -mutability are observed in the input. Same is true if K: Ord panics.

    +

    If the implementation of Ord for K does not implement a total order the resulting +order of elements in the slice is unspecified. All original elements will remain in the +slice and any possible modifications via interior mutability are observed in the input. Same +is true if the implementation of Ord for K panics.

    For simple key functions (e.g., functions that are property accesses or basic operations), sort_by_key is likely to be faster.

    §Current implementation
    @@ -2665,21 +2740,24 @@
    §Examples
    -
    let mut v = [-5i32, 4, 32, -3, 2];
    +
    §Panics
    +

    May panic if the implementation of Ord for K does not implement a total order.

    +
    §Examples
    +
    let mut v = [4i32, -5, 1, -3, 2, 10];
     
    -v.sort_by_cached_key(|k| k.to_string());
    -assert!(v == [-3, -5, 2, 32, 4]);
    -
    1.0.0 · source

    pub fn to_vec(&self) -> Vec<T>
    where +// Strings are sorted by lexicographical order. +v.sort_by_cached_key(|k| k.to_string()); +assert_eq!(v, [-3, -5, 1, 10, 2, 4]);
    +

    1.0.0 · source

    pub fn to_vec(&self) -> Vec<T>
    where T: Clone,

    Copies self into a new Vec.

    -
    §Examples
    +
    §Examples
    let s = [10, 40, 30];
     let x = s.to_vec();
     // Here, `s` and `x` can be modified independently.
    -
    source

    pub fn to_vec_in<A>(&self, alloc: A) -> Vec<T, A>
    where +

    source

    pub fn to_vec_in<A>(&self, alloc: A) -> Vec<T, A>
    where A: Allocator, T: Clone,

    🔬This is a nightly-only experimental API. (allocator_api)

    Copies self into a new Vec with an allocator.

    -
    §Examples
    +
    §Examples
    #![feature(allocator_api)]
     
     use std::alloc::System;
    @@ -2687,11 +2765,11 @@ 
    §Examples< let s = [10, 40, 30]; let x = s.to_vec_in(System); // Here, `s` and `x` can be modified independently.
    -
    1.40.0 · source

    pub fn repeat(&self, n: usize) -> Vec<T>
    where +

    1.40.0 · source

    pub fn repeat(&self, n: usize) -> Vec<T>
    where T: Copy,

    Creates a vector by copying a slice n times.

    -
    §Panics
    +
    §Panics

    This function will panic if the capacity would overflow.

    -
    §Examples
    +
    §Examples

    Basic usage:

    assert_eq!([1, 2].repeat(3), vec![1, 2, 1, 2, 1, 2]);
    @@ -2699,31 +2777,41 @@
    §Examples<
    // this will panic at runtime
     b"0123456789abcdef".repeat(usize::MAX);
    -
    1.0.0 · source

    pub fn concat<Item>(&self) -> <[T] as Concat<Item>>::Output
    where +

    1.0.0 · source

    pub fn concat<Item>(&self) -> <[T] as Concat<Item>>::Output
    where [T]: Concat<Item>, Item: ?Sized,

    Flattens a slice of T into a single value Self::Output.

    -
    §Examples
    +
    §Examples
    assert_eq!(["hello", "world"].concat(), "helloworld");
     assert_eq!([[1, 2], [3, 4]].concat(), [1, 2, 3, 4]);
    -
    1.3.0 · source

    pub fn join<Separator>( +

    1.3.0 · source

    pub fn join<Separator>( &self, sep: Separator, ) -> <[T] as Join<Separator>>::Output
    where [T]: Join<Separator>,

    Flattens a slice of T into a single value Self::Output, placing a given separator between each.

    -
    §Examples
    +
    §Examples
    assert_eq!(["hello", "world"].join(" "), "hello world");
     assert_eq!([[1, 2], [3, 4]].join(&0), [1, 2, 0, 3, 4]);
     assert_eq!([[1, 2], [3, 4]].join(&[0, 0][..]), [1, 2, 0, 0, 3, 4]);
    -
    1.0.0 · source

    pub fn connect<Separator>( +

    1.0.0 · source

    pub fn connect<Separator>( &self, sep: Separator, ) -> <[T] as Join<Separator>>::Output
    where [T]: Join<Separator>,

    👎Deprecated since 1.3.0: renamed to join

    Flattens a slice of T into a single value Self::Output, placing a given separator between each.

    -
    §Examples
    +
    §Examples
    assert_eq!(["hello", "world"].connect(" "), "hello world");
     assert_eq!([[1, 2], [3, 4]].connect(&0), [1, 2, 0, 3, 4]);
    +
    1.23.0 · source

    pub fn to_ascii_uppercase(&self) -> Vec<u8>

    Returns a vector containing a copy of this slice where each byte +is mapped to its ASCII upper case equivalent.

    +

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, +but non-ASCII letters are unchanged.

    +

    To uppercase the value in-place, use make_ascii_uppercase.

    +
    1.23.0 · source

    pub fn to_ascii_lowercase(&self) -> Vec<u8>

    Returns a vector containing a copy of this slice where each byte +is mapped to its ASCII lower case equivalent.

    +

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, +but non-ASCII letters are unchanged.

    +

    To lowercase the value in-place, use make_ascii_lowercase.

    Trait Implementations§

    §

    impl AsMut<[u8]> for BytesMut

    §

    fn as_mut(&mut self) -> &mut [u8]

    Converts this type into a mutable reference of the (usually inferred) input type.
    §

    impl AsRef<[u8]> for BytesMut

    §

    fn as_ref(&self) -> &[u8]

    Converts this type into a shared reference of the (usually inferred) input type.
    §

    impl Borrow<[u8]> for BytesMut

    §

    fn borrow(&self) -> &[u8]

    Immutably borrows from an owned value. Read more
    §

    impl BorrowMut<[u8]> for BytesMut

    §

    fn borrow_mut(&mut self) -> &mut [u8]

    Mutably borrows from an owned value. Read more
    §

    impl Buf for BytesMut

    §

    fn remaining(&self) -> usize

    Returns the number of bytes between the current position and the end of the buffer. Read more
    §

    fn chunk(&self) -> &[u8]

    Returns a slice starting at the current position and of length between 0 and Buf::remaining(). Note that this can return shorter slice (this allows @@ -2756,83 +2844,91 @@
    §Examples< Self: Sized,
    Creates an adaptor which can write at most limit bytes to self. Read more
    §

    fn writer(self) -> Writer<Self>
    where Self: Sized,

    Creates an adaptor which implements the Write trait for self. Read more
    §

    fn chain_mut<U>(self, next: U) -> Chain<Self, U>
    where U: BufMut, - Self: Sized,

    Creates an adapter which will chain this buffer with another. Read more
    §

    impl Clone for BytesMut

    §

    fn clone(&self) -> BytesMut

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for BytesMut

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for BytesMut

    §

    fn default() -> BytesMut

    Returns the “default value” for a type. Read more
    §

    impl Deref for BytesMut

    §

    type Target = [u8]

    The resulting type after dereferencing.
    §

    fn deref(&self) -> &[u8]

    Dereferences the value.
    §

    impl DerefMut for BytesMut

    §

    fn deref_mut(&mut self) -> &mut [u8]

    Mutably dereferences the value.
    §

    impl Drop for BytesMut

    §

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    §

    impl<'a> Extend<&'a u8> for BytesMut

    §

    fn extend<T>(&mut self, iter: T)
    where - T: IntoIterator<Item = &'a u8>,

    Extends a collection with the contents of an iterator. Read more
    source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    §

    impl Extend<Bytes> for BytesMut

    §

    fn extend<T>(&mut self, iter: T)
    where - T: IntoIterator<Item = Bytes>,

    Extends a collection with the contents of an iterator. Read more
    source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    §

    impl Extend<u8> for BytesMut

    §

    fn extend<T>(&mut self, iter: T)
    where - T: IntoIterator<Item = u8>,

    Extends a collection with the contents of an iterator. Read more
    source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    §

    impl<'a> From<&'a [u8]> for BytesMut

    §

    fn from(src: &'a [u8]) -> BytesMut

    Converts to this type from the input type.
    §

    impl<'a> From<&'a str> for BytesMut

    §

    fn from(src: &'a str) -> BytesMut

    Converts to this type from the input type.
    §

    impl From<BytesMut> for Bytes

    §

    fn from(src: BytesMut) -> Bytes

    Converts to this type from the input type.
    §

    impl From<BytesMut> for Vec<u8>

    §

    fn from(bytes: BytesMut) -> Vec<u8>

    Converts to this type from the input type.
    §

    impl<'a> FromIterator<&'a u8> for BytesMut

    §

    fn from_iter<T>(into_iter: T) -> BytesMut
    where + Self: Sized,

    Creates an adapter which will chain this buffer with another. Read more
    §

    impl Clone for BytesMut

    §

    fn clone(&self) -> BytesMut

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for BytesMut

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for BytesMut

    §

    fn default() -> BytesMut

    Returns the “default value” for a type. Read more
    §

    impl Deref for BytesMut

    §

    type Target = [u8]

    The resulting type after dereferencing.
    §

    fn deref(&self) -> &[u8]

    Dereferences the value.
    §

    impl DerefMut for BytesMut

    §

    fn deref_mut(&mut self) -> &mut [u8]

    Mutably dereferences the value.
    §

    impl Drop for BytesMut

    §

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    §

    impl<'a> Extend<&'a u8> for BytesMut

    §

    fn extend<T>(&mut self, iter: T)
    where + T: IntoIterator<Item = &'a u8>,

    Extends a collection with the contents of an iterator. Read more
    source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    §

    impl Extend<Bytes> for BytesMut

    §

    fn extend<T>(&mut self, iter: T)
    where + T: IntoIterator<Item = Bytes>,

    Extends a collection with the contents of an iterator. Read more
    source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    §

    impl Extend<u8> for BytesMut

    §

    fn extend<T>(&mut self, iter: T)
    where + T: IntoIterator<Item = u8>,

    Extends a collection with the contents of an iterator. Read more
    source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    §

    impl<'a> From<&'a [u8]> for BytesMut

    §

    fn from(src: &'a [u8]) -> BytesMut

    Converts to this type from the input type.
    §

    impl<'a> From<&'a str> for BytesMut

    §

    fn from(src: &'a str) -> BytesMut

    Converts to this type from the input type.
    §

    impl From<Bytes> for BytesMut

    §

    fn from(bytes: Bytes) -> BytesMut

    Convert self into BytesMut.

    +

    If bytes is unique for the entire original buffer, this will return a +BytesMut with the contents of bytes without copying. +If bytes is not unique for the entire original buffer, this will make +a copy of bytes subset of the original buffer in a new BytesMut.

    +
    §Examples
    +
    use bytes::{Bytes, BytesMut};
    +
    +let bytes = Bytes::from(b"hello".to_vec());
    +assert_eq!(BytesMut::from(bytes), BytesMut::from(&b"hello"[..]));
    +
    §

    impl From<BytesMut> for Bytes

    §

    fn from(src: BytesMut) -> Bytes

    Converts to this type from the input type.
    §

    impl From<BytesMut> for Vec<u8>

    §

    fn from(bytes: BytesMut) -> Vec<u8>

    Converts to this type from the input type.
    §

    impl<'a> FromIterator<&'a u8> for BytesMut

    §

    fn from_iter<T>(into_iter: T) -> BytesMut
    where T: IntoIterator<Item = &'a u8>,

    Creates a value from an iterator. Read more
    §

    impl FromIterator<u8> for BytesMut

    §

    fn from_iter<T>(into_iter: T) -> BytesMut
    where T: IntoIterator<Item = u8>,

    Creates a value from an iterator. Read more
    §

    impl Hash for BytesMut

    §

    fn hash<H>(&self, state: &mut H)
    where - H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    §

    impl<'a> IntoIterator for &'a BytesMut

    §

    type Item = &'a u8

    The type of the elements being iterated over.
    §

    type IntoIter = Iter<'a, u8>

    Which kind of iterator are we turning this into?
    §

    fn into_iter(self) -> <&'a BytesMut as IntoIterator>::IntoIter

    Creates an iterator from a value. Read more
    §

    impl IntoIterator for BytesMut

    §

    type Item = u8

    The type of the elements being iterated over.
    §

    type IntoIter = IntoIter<BytesMut>

    Which kind of iterator are we turning this into?
    §

    fn into_iter(self) -> <BytesMut as IntoIterator>::IntoIter

    Creates an iterator from a value. Read more
    §

    impl LowerHex for BytesMut

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl MessageBody for BytesMut

    §

    type Error = Infallible

    The type of error that will be returned if streaming body fails. Read more
    §

    fn size(&self) -> BodySize

    Body size hint. Read more
    §

    fn poll_next( + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    §

    impl<'a> IntoIterator for &'a BytesMut

    §

    type Item = &'a u8

    The type of the elements being iterated over.
    §

    type IntoIter = Iter<'a, u8>

    Which kind of iterator are we turning this into?
    §

    fn into_iter(self) -> <&'a BytesMut as IntoIterator>::IntoIter

    Creates an iterator from a value. Read more
    §

    impl IntoIterator for BytesMut

    §

    type Item = u8

    The type of the elements being iterated over.
    §

    type IntoIter = IntoIter<BytesMut>

    Which kind of iterator are we turning this into?
    §

    fn into_iter(self) -> <BytesMut as IntoIterator>::IntoIter

    Creates an iterator from a value. Read more
    §

    impl LowerHex for BytesMut

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl MessageBody for BytesMut

    §

    type Error = Infallible

    The type of error that will be returned if streaming body fails. Read more
    §

    fn size(&self) -> BodySize

    Body size hint. Read more
    §

    fn poll_next( self: Pin<&mut BytesMut>, _cx: &mut Context<'_>, ) -> Poll<Option<Result<Bytes, <BytesMut as MessageBody>::Error>>>

    Attempt to pull out the next chunk of body bytes. Read more
    §

    fn try_into_bytes(self) -> Result<Bytes, BytesMut>

    Try to convert into the complete chunk of body bytes. Read more
    §

    fn boxed(self) -> BoxBody
    where - Self: Sized + 'static,

    Wraps this body into a BoxBody. Read more
    §

    impl Ord for BytesMut

    §

    fn cmp(&self, other: &BytesMut) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + 'static,

    Wraps this body into a BoxBody. Read more
    §

    impl Ord for BytesMut

    §

    fn cmp(&self, other: &BytesMut) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    §

    impl<'a, T> PartialEq<&'a T> for BytesMut
    where BytesMut: PartialEq<T>, - T: ?Sized,

    §

    fn eq(&self, other: &&'a T) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<[u8]> for BytesMut

    §

    fn eq(&self, other: &[u8]) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for BytesMut

    §

    fn eq(&self, other: &Bytes) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for &[u8]

    §

    fn eq(&self, other: &BytesMut) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for &str

    §

    fn eq(&self, other: &BytesMut) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for [u8]

    §

    fn eq(&self, other: &BytesMut) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for Bytes

    §

    fn eq(&self, other: &BytesMut) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for Vec<u8>

    §

    fn eq(&self, other: &BytesMut) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for str

    §

    fn eq(&self, other: &BytesMut) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<String> for BytesMut

    §

    fn eq(&self, other: &String) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<Vec<u8>> for BytesMut

    §

    fn eq(&self, other: &Vec<u8>) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq<str> for BytesMut

    §

    fn eq(&self, other: &str) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl PartialEq for BytesMut

    §

    fn eq(&self, other: &BytesMut) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl<'a, T> PartialOrd<&'a T> for BytesMut
    where + T: ?Sized,

    §

    fn eq(&self, other: &&'a T) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<[u8]> for BytesMut

    §

    fn eq(&self, other: &[u8]) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<Bytes> for BytesMut

    §

    fn eq(&self, other: &Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for &[u8]

    §

    fn eq(&self, other: &BytesMut) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for &str

    §

    fn eq(&self, other: &BytesMut) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for [u8]

    §

    fn eq(&self, other: &BytesMut) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for Bytes

    §

    fn eq(&self, other: &BytesMut) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for Vec<u8>

    §

    fn eq(&self, other: &BytesMut) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<BytesMut> for str

    §

    fn eq(&self, other: &BytesMut) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<String> for BytesMut

    §

    fn eq(&self, other: &String) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<Vec<u8>> for BytesMut

    §

    fn eq(&self, other: &Vec<u8>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq<str> for BytesMut

    §

    fn eq(&self, other: &str) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialEq for BytesMut

    §

    fn eq(&self, other: &BytesMut) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl<'a, T> PartialOrd<&'a T> for BytesMut
    where BytesMut: PartialOrd<T>, - T: ?Sized,

    §

    fn partial_cmp(&self, other: &&'a T) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<[u8]> for BytesMut

    §

    fn partial_cmp(&self, other: &[u8]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<BytesMut> for &[u8]

    §

    fn partial_cmp(&self, other: &BytesMut) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<BytesMut> for &str

    §

    fn partial_cmp(&self, other: &BytesMut) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<BytesMut> for [u8]

    §

    fn partial_cmp(&self, other: &BytesMut) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<BytesMut> for Vec<u8>

    §

    fn partial_cmp(&self, other: &BytesMut) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<BytesMut> for str

    §

    fn partial_cmp(&self, other: &BytesMut) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<String> for BytesMut

    §

    fn partial_cmp(&self, other: &String) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<Vec<u8>> for BytesMut

    §

    fn partial_cmp(&self, other: &Vec<u8>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd<str> for BytesMut

    §

    fn partial_cmp(&self, other: &str) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl PartialOrd for BytesMut

    §

    fn partial_cmp(&self, other: &BytesMut) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl Responder for BytesMut

    §

    fn partial_cmp(&self, other: &&'a T) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<[u8]> for BytesMut

    §

    fn partial_cmp(&self, other: &[u8]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<BytesMut> for &[u8]

    §

    fn partial_cmp(&self, other: &BytesMut) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<BytesMut> for &str

    §

    fn partial_cmp(&self, other: &BytesMut) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<BytesMut> for [u8]

    §

    fn partial_cmp(&self, other: &BytesMut) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<BytesMut> for Vec<u8>

    §

    fn partial_cmp(&self, other: &BytesMut) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<BytesMut> for str

    §

    fn partial_cmp(&self, other: &BytesMut) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<String> for BytesMut

    §

    fn partial_cmp(&self, other: &String) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<Vec<u8>> for BytesMut

    §

    fn partial_cmp(&self, other: &Vec<u8>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd<str> for BytesMut

    §

    fn partial_cmp(&self, other: &str) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl PartialOrd for BytesMut

    §

    fn partial_cmp(&self, other: &BytesMut) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl Responder for BytesMut

    §

    type Body = BytesMut

    §

    fn respond_to( self, _: &HttpRequest, ) -> HttpResponse<<BytesMut as Responder>::Body>

    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>
    where - Self: Sized,

    Wraps responder to allow alteration of its response. Read more
    §

    impl UpperHex for BytesMut

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Write for BytesMut

    §

    fn write_str(&mut self, s: &str) -> Result<(), Error>

    Writes a string slice into this writer, returning whether the write -succeeded. Read more
    §

    fn write_fmt(&mut self, args: Arguments<'_>) -> Result<(), Error>

    Glue for usage of the write! macro with implementors of this trait. Read more
    1.1.0 · source§

    fn write_char(&mut self, c: char) -> Result<(), Error>

    Writes a char into this writer, returning whether the write succeeded. Read more
    §

    impl Eq for BytesMut

    §

    impl Send for BytesMut

    §

    impl Sync for BytesMut

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where + Self: Sized,

    Wraps responder to allow alteration of its response. Read more
    §

    impl UpperHex for BytesMut

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Write for BytesMut

    §

    fn write_str(&mut self, s: &str) -> Result<(), Error>

    Writes a string slice into this writer, returning whether the write +succeeded. Read more
    §

    fn write_fmt(&mut self, args: Arguments<'_>) -> Result<(), Error>

    Glue for usage of the write! macro with implementors of this trait. Read more
    1.1.0 · source§

    fn write_char(&mut self, c: char) -> Result<(), Error>

    Writes a char into this writer, returning whether the write succeeded. Read more
    §

    impl Eq for BytesMut

    §

    impl Send for BytesMut

    §

    impl Sync for BytesMut

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn compare(&self, key: &K) -> Ordering

    Compare self to key and return their ordering.
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, @@ -2840,19 +2936,19 @@
    §Examples< Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn equivalent(&self, key: &K) -> bool

    Compare self to key and return true if they are equal.
    source§

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

    source§

    fn equivalent(&self, key: &K) -> bool

    Compare self to key and return true if they are equal.
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + K: Borrow<Q> + ?Sized,
    source§

    fn equivalent(&self, key: &K) -> bool

    Compare self to key and return true if they are equal.
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    source§

    impl<T> NumBytes for T
    where - T: Debug + AsRef<[u8]> + AsMut<[u8]> + PartialEq + Eq + PartialOrd + Ord + Hash + Borrow<[u8]> + BorrowMut<[u8]> + ?Sized,

    \ No newline at end of file + T: Debug + AsRef<[u8]> + AsMut<[u8]> + PartialEq + Eq + PartialOrd + Ord + Hash + Borrow<[u8]> + BorrowMut<[u8]> + ?Sized, \ No newline at end of file diff --git a/paperclip_actix/web/struct.Data.html b/paperclip_actix/web/struct.Data.html index 651196f7c..e514ffd10 100644 --- a/paperclip_actix/web/struct.Data.html +++ b/paperclip_actix/web/struct.Data.html @@ -1,4 +1,4 @@ -Data in paperclip_actix::web - Rust

    Struct paperclip_actix::web::Data

    pub struct Data<T>(/* private fields */)
    +Data in paperclip_actix::web - Rust

    Struct paperclip_actix::web::Data

    pub struct Data<T>(/* private fields */)
     where
         T: ?Sized;
    Expand description

    Application data wrapper and extractor.

    §Setting Data

    @@ -59,14 +59,14 @@

    §Examples

    T: ?Sized,

    pub fn get_ref(&self) -> &T

    Returns reference to inner T.

    pub fn into_inner(self) -> Arc<T>

    Unwraps to the internal Arc<T>

    Trait Implementations§

    §

    impl<T> Apiv2Schema for Data<T>

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    §

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl<T> Clone for Data<T>
    where - T: ?Sized,

    §

    fn clone(&self) -> Data<T>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl<T> Debug for Data<T>
    where + T: ?Sized,

    §

    fn clone(&self) -> Data<T>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl<T> Debug for Data<T>
    where T: Debug + ?Sized,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<T> Default for Data<T>
    where T: Default,

    §

    fn default() -> Data<T>

    Returns the “default value” for a type. Read more
    §

    impl<T> Deref for Data<T>
    where - T: ?Sized,

    §

    type Target = Arc<T>

    The resulting type after dereferencing.
    §

    fn deref(&self) -> &Arc<T>

    Dereferences the value.
    §

    impl<'de, T> Deserialize<'de> for Data<T>
    where - T: Deserialize<'de>,

    §

    fn deserialize<D>( + T: ?Sized,

    §

    type Target = Arc<T>

    The resulting type after dereferencing.
    §

    fn deref(&self) -> &Arc<T>

    Dereferences the value.
    §

    impl<'de, T> Deserialize<'de> for Data<T>
    where + T: Deserialize<'de>,

    §

    fn deserialize<D>( deserializer: D, -) -> Result<Data<T>, <D as Deserializer<'de>>::Error>
    where - D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    §

    impl<T> From<Arc<T>> for Data<T>
    where +) -> Result<Data<T>, <D as Deserializer<'de>>::Error>
    where + D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    §

    impl<T> From<Arc<T>> for Data<T>
    where T: ?Sized,

    §

    fn from(arc: Arc<T>) -> Data<T>

    Converts to this type from the input type.
    §

    impl<T> FromRequest for Data<T>
    where T: 'static + ?Sized,

    §

    type Error = Error

    The associated error which can be returned.
    §

    type Future = Ready<Result<Data<T>, Error>>

    Future that resolves to a Self. Read more
    §

    fn from_request( req: &HttpRequest, @@ -77,36 +77,36 @@

    §Examples

    _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>)

    Update the definitions map (if needed).
    §

    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>)

    Update the security definition map (if needed).
    §

    impl<T> Serialize for Data<T>
    where - T: Serialize,

    §

    fn serialize<S>( +)

    Update the security map in the given operation (if needed).
    §

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    §

    impl<T> Serialize for Data<T>
    where + T: Serialize,

    §

    fn serialize<S>( &self, serializer: S, -) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where - S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<T> Freeze for Data<T>
    where +) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where + S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<T> Freeze for Data<T>
    where T: ?Sized,

    §

    impl<T> RefUnwindSafe for Data<T>
    where T: RefUnwindSafe + ?Sized,

    §

    impl<T> Send for Data<T>
    where T: Sync + Send + ?Sized,

    §

    impl<T> Sync for Data<T>
    where T: Sync + Send + ?Sized,

    §

    impl<T> Unpin for Data<T>
    where T: ?Sized,

    §

    impl<T> UnwindSafe for Data<T>
    where - T: RefUnwindSafe + ?Sized,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + T: RefUnwindSafe + ?Sized,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    §

    impl<T> Formattable for T
    where +[WithDispatch] wrapper. Read more

    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    §

    impl<T> Formattable for T
    where T: Deref, <T as Deref>::Target: Formattable,

    \ No newline at end of file diff --git a/paperclip_actix/web/struct.Form.html b/paperclip_actix/web/struct.Form.html index b30e22dd9..80989dde1 100644 --- a/paperclip_actix/web/struct.Form.html +++ b/paperclip_actix/web/struct.Form.html @@ -1,8 +1,8 @@ -Form in paperclip_actix::web - Rust

    Struct paperclip_actix::web::Form

    pub struct Form<T>(pub T);
    Expand description

    URL encoded payload extractor and responder.

    +Form in paperclip_actix::web - Rust

    Struct paperclip_actix::web::Form

    pub struct Form<T>(pub T);
    Expand description

    URL encoded payload extractor and responder.

    Form has two uses: URL encoded responses, and extracting typed data from URL request payloads.

    §Extractor

    To extract typed data from a request body, the inner type T must implement the -DeserializeOwned trait.

    +DeserializeOwned trait.

    Use FormConfig to configure extraction options.

    §Examples

    use actix_web::{post, web};
    @@ -22,7 +22,7 @@ 

    §Examples

    }

    §Responder

    The Form type also allows you to create URL encoded responses by returning a value of type -Form<T> where T is the type to be URL encoded, as long as T implements Serialize.

    +Form<T> where T is the type to be URL encoded, as long as T implements Serialize.

    §Examples

    use actix_web::{get, web};
     use serde::Serialize;
    @@ -52,7 +52,7 @@ 

    §Panics

    T: Apiv2Schema,
    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    §

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl<T> Debug for Form<T>
    where T: Debug,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<T> Deref for Form<T>

    §

    type Target = T

    The resulting type after dereferencing.
    §

    fn deref(&self) -> &T

    Dereferences the value.
    §

    impl<T> DerefMut for Form<T>

    §

    fn deref_mut(&mut self) -> &mut T

    Mutably dereferences the value.
    §

    impl<T> Display for Form<T>
    where T: Display,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<T> FromRequest for Form<T>
    where - T: DeserializeOwned + 'static,

    See here for example of usage as an extractor.

    + T: DeserializeOwned + 'static,

    See here for example of usage as an extractor.

    §

    type Error = Error

    The associated error which can be returned.
    §

    type Future = FormExtractFut<T>

    Future that resolves to a Self. Read more
    §

    fn from_request( req: &HttpRequest, payload: &mut Payload, @@ -64,37 +64,37 @@

    §Panics

    )
    Update the responses map in the given operation (if needed).
    §

    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>)

    Update the security definition map (if needed).
    §

    impl<T> Ord for Form<T>
    where - T: Ord,

    §

    fn cmp(&self, other: &Form<T>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + T: Ord,

    §

    fn cmp(&self, other: &Form<T>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    §

    impl<T> PartialEq for Form<T>
    where - T: PartialEq,

    §

    fn eq(&self, other: &Form<T>) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl<T> PartialOrd for Form<T>
    where - T: PartialOrd,

    §

    fn partial_cmp(&self, other: &Form<T>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl<T> Responder for Form<T>
    where - T: Serialize,

    See here for example of usage as a handler return type.

    + T: PartialEq,
    §

    fn eq(&self, other: &Form<T>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl<T> PartialOrd for Form<T>
    where + T: PartialOrd,

    §

    fn partial_cmp(&self, other: &Form<T>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl<T> Responder for Form<T>
    where + T: Serialize,

    See here for example of usage as a handler return type.

    §

    type Body = EitherBody<String>

    §

    fn respond_to( self, _: &HttpRequest, ) -> HttpResponse<<Form<T> as Responder>::Body>

    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>
    where - Self: Sized,

    Wraps responder to allow alteration of its response. Read more
    §

    impl<T> Serialize for Form<T>
    where - T: Serialize,

    §

    fn serialize<S>( + Self: Sized,

    Wraps responder to allow alteration of its response. Read more
    §

    impl<T> Serialize for Form<T>
    where + T: Serialize,

    §

    fn serialize<S>( &self, serializer: S, -) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where - S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    §

    impl<T> Eq for Form<T>
    where +) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where + S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    §

    impl<T> Eq for Form<T>
    where T: Eq,

    §

    impl<T> StructuralPartialEq for Form<T>

    Auto Trait Implementations§

    §

    impl<T> Freeze for Form<T>
    where T: Freeze,

    §

    impl<T> RefUnwindSafe for Form<T>
    where T: RefUnwindSafe,

    §

    impl<T> Send for Form<T>
    where T: Send,

    §

    impl<T> Sync for Form<T>
    where T: Sync,

    §

    impl<T> Unpin for Form<T>
    where T: Unpin,

    §

    impl<T> UnwindSafe for Form<T>
    where - T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where + T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn compare(&self, key: &K) -> Ordering

    Compare self to key and return their ordering.
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, @@ -111,8 +111,8 @@

    §Panics

    From<T> for U chooses to do.

    §

    impl<T, P> Resource for T
    where T: DerefMut<Target = Path<P>>, - P: ResourcePath,

    §

    type Path = P

    Type of resource’s path returned in resource_path.
    §

    fn resource_path(&mut self) -> &mut Path<<T as Resource>::Path>

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + P: ResourcePath,

    §

    type Path = P

    Type of resource’s path returned in resource_path.
    §

    fn resource_path(&mut self) -> &mut Path<<T as Resource>::Path>

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip_actix/web/struct.FormConfig.html b/paperclip_actix/web/struct.FormConfig.html index 1676d254e..e656f0261 100644 --- a/paperclip_actix/web/struct.FormConfig.html +++ b/paperclip_actix/web/struct.FormConfig.html @@ -1,4 +1,4 @@ -FormConfig in paperclip_actix::web - Rust

    Struct paperclip_actix::web::FormConfig

    pub struct FormConfig { /* private fields */ }
    Expand description

    Form extractor configuration.

    +FormConfig in paperclip_actix::web - Rust

    Struct paperclip_actix::web::FormConfig

    pub struct FormConfig { /* private fields */ }
    Expand description

    Form extractor configuration.

    use actix_web::{post, web, App, FromRequest, Result};
     use serde::Deserialize;
    @@ -21,19 +21,19 @@
     

    Implementations§

    §

    impl FormConfig

    pub fn limit(self, limit: usize) -> FormConfig

    Set maximum accepted payload size. By default this limit is 16kB.

    pub fn error_handler<F>(self, f: F) -> FormConfig
    where F: Fn(UrlencodedError, &HttpRequest) -> Error + 'static,

    Set custom error handler

    -

    Trait Implementations§

    §

    impl Clone for FormConfig

    §

    fn clone(&self) -> FormConfig

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Default for FormConfig

    §

    fn default() -> FormConfig

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    §

    impl Clone for FormConfig

    §

    fn clone(&self) -> FormConfig

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Default for FormConfig

    §

    fn default() -> FormConfig

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip_actix/web/struct.HttpRequest.html b/paperclip_actix/web/struct.HttpRequest.html index 06843a43f..cb9f67c25 100644 --- a/paperclip_actix/web/struct.HttpRequest.html +++ b/paperclip_actix/web/struct.HttpRequest.html @@ -1,4 +1,4 @@ -HttpRequest in paperclip_actix::web - Rust

    Struct paperclip_actix::web::HttpRequest

    pub struct HttpRequest { /* private fields */ }
    Expand description

    An incoming request.

    +HttpRequest in paperclip_actix::web - Rust

    Struct paperclip_actix::web::HttpRequest

    pub struct HttpRequest { /* private fields */ }
    Expand description

    An incoming request.

    Implementations§

    §

    impl HttpRequest

    pub fn head(&self) -> &RequestHead

    This method returns reference to the request head

    pub fn uri(&self) -> &Uri

    Request’s uri.

    pub fn full_url(&self) -> Url

    Returns request’s original full URL.

    @@ -25,13 +25,13 @@ later in a request handler to access the matched value for that parameter.

    §Percent Encoding and URL Parameters

    Because each URL parameter is able to capture multiple path segments, none of -["%2F", "%25", "%2B"] found in the request URI are decoded into ["/", "%", "+"] in order +["%2F", "%25", "%2B"] found in the request URI are decoded into ["/", "%", "+"] in order to preserve path integrity. If a URL parameter is expected to contain these characters, then it is on the user to decode them or use the web::Path extractor which will decode these special sequences.

    pub fn match_pattern(&self) -> Option<String>

    The resource definition pattern that matched the path. Useful for logging and metrics.

    For example, when a resource with pattern /user/{id}/profile is defined and a call is made -to /user/123/profile this function would return Some("/user/{id}/profile").

    +to /user/123/profile this function would return Some("/user/{id}/profile").

    Returns a None when no resource is fully matched, including default services.

    pub fn match_name(&self) -> Option<&str>

    The resource name that matched the path. Useful for logging and metrics.

    Returns a None when no resource is fully matched, including default services.

    @@ -93,7 +93,7 @@
    §Panics

    See also the Data extractor.

    §Examples
    let opt_t: Option<&Data<T>> = req.app_data::<Data<T>>();
    -

    Trait Implementations§

    §

    impl Apiv2Schema for HttpRequest

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    §

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl Clone for HttpRequest

    §

    fn clone(&self) -> HttpRequest

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for HttpRequest

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Drop for HttpRequest

    §

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    §

    impl FromRequest for HttpRequest

    It is possible to get HttpRequest as an extractor handler parameter

    +

    Trait Implementations§

    §

    impl Apiv2Schema for HttpRequest

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    §

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl Clone for HttpRequest

    §

    fn clone(&self) -> HttpRequest

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for HttpRequest

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Drop for HttpRequest

    §

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    §

    impl FromRequest for HttpRequest

    It is possible to get HttpRequest as an extractor handler parameter

    §Examples

    use actix_web::{web, App, HttpRequest};
     use serde::Deserialize;
    @@ -117,19 +117,19 @@ 

    §Examples

    _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>)

    Update the definitions map (if needed).
    §

    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>)

    Update the security definition map (if needed).

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +)

    Update the security map in the given operation (if needed).
    §

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip_actix/web/struct.HttpResponse.html b/paperclip_actix/web/struct.HttpResponse.html index 242738a24..ce85ab26c 100644 --- a/paperclip_actix/web/struct.HttpResponse.html +++ b/paperclip_actix/web/struct.HttpResponse.html @@ -1,4 +1,4 @@ -HttpResponse in paperclip_actix::web - Rust

    Struct paperclip_actix::web::HttpResponse

    pub struct HttpResponse<B = BoxBody> { /* private fields */ }
    Expand description

    An outgoing response.

    +HttpResponse in paperclip_actix::web - Rust

    Struct paperclip_actix::web::HttpResponse

    pub struct HttpResponse<B = BoxBody> { /* private fields */ }
    Expand description

    An outgoing response.

    Implementations§

    §

    impl HttpResponse

    pub fn Continue() -> HttpResponseBuilder

    pub fn SwitchingProtocols() -> HttpResponseBuilder

    pub fn Processing() -> HttpResponseBuilder

    pub fn Ok() -> HttpResponseBuilder

    pub fn Created() -> HttpResponseBuilder

    pub fn Accepted() -> HttpResponseBuilder

    pub fn NonAuthoritativeInformation() -> HttpResponseBuilder

    pub fn NoContent() -> HttpResponseBuilder

    pub fn ResetContent() -> HttpResponseBuilder

    pub fn PartialContent() -> HttpResponseBuilder

    pub fn MultiStatus() -> HttpResponseBuilder

    pub fn AlreadyReported() -> HttpResponseBuilder

    pub fn ImUsed() -> HttpResponseBuilder

    pub fn MultipleChoices() -> HttpResponseBuilder

    pub fn MovedPermanently() -> HttpResponseBuilder

    pub fn Found() -> HttpResponseBuilder

    pub fn SeeOther() -> HttpResponseBuilder

    pub fn NotModified() -> HttpResponseBuilder

    pub fn UseProxy() -> HttpResponseBuilder

    pub fn TemporaryRedirect() -> HttpResponseBuilder

    pub fn PermanentRedirect() -> HttpResponseBuilder

    pub fn BadRequest() -> HttpResponseBuilder

    pub fn Unauthorized() -> HttpResponseBuilder

    pub fn PaymentRequired() -> HttpResponseBuilder

    pub fn Forbidden() -> HttpResponseBuilder

    pub fn NotFound() -> HttpResponseBuilder

    pub fn MethodNotAllowed() -> HttpResponseBuilder

    pub fn NotAcceptable() -> HttpResponseBuilder

    pub fn ProxyAuthenticationRequired() -> HttpResponseBuilder

    pub fn RequestTimeout() -> HttpResponseBuilder

    pub fn Conflict() -> HttpResponseBuilder

    pub fn Gone() -> HttpResponseBuilder

    pub fn LengthRequired() -> HttpResponseBuilder

    pub fn PreconditionFailed() -> HttpResponseBuilder

    pub fn PayloadTooLarge() -> HttpResponseBuilder

    pub fn UriTooLong() -> HttpResponseBuilder

    pub fn UnsupportedMediaType() -> HttpResponseBuilder

    pub fn RangeNotSatisfiable() -> HttpResponseBuilder

    pub fn ExpectationFailed() -> HttpResponseBuilder

    pub fn ImATeapot() -> HttpResponseBuilder

    pub fn MisdirectedRequest() -> HttpResponseBuilder

    pub fn UnprocessableEntity() -> HttpResponseBuilder

    pub fn Locked() -> HttpResponseBuilder

    pub fn FailedDependency() -> HttpResponseBuilder

    pub fn UpgradeRequired() -> HttpResponseBuilder

    pub fn PreconditionRequired() -> HttpResponseBuilder

    pub fn TooManyRequests() -> HttpResponseBuilder

    pub fn RequestHeaderFieldsTooLarge() -> HttpResponseBuilder

    pub fn UnavailableForLegalReasons() -> HttpResponseBuilder

    pub fn InternalServerError() -> HttpResponseBuilder

    pub fn NotImplemented() -> HttpResponseBuilder

    pub fn BadGateway() -> HttpResponseBuilder

    pub fn ServiceUnavailable() -> HttpResponseBuilder

    pub fn GatewayTimeout() -> HttpResponseBuilder

    pub fn VersionNotSupported() -> HttpResponseBuilder

    pub fn VariantAlsoNegotiates() -> HttpResponseBuilder

    pub fn InsufficientStorage() -> HttpResponseBuilder

    pub fn LoopDetected() -> HttpResponseBuilder

    pub fn NotExtended() -> HttpResponseBuilder

    pub fn NetworkAuthenticationRequired() -> HttpResponseBuilder

    §

    impl HttpResponse

    pub fn new(status: StatusCode) -> HttpResponse

    Constructs a response.

    pub fn build(status: StatusCode) -> HttpResponseBuilder

    Constructs a response builder with specific HTTP status.

    pub fn from_error(error: impl Into<Error>) -> HttpResponse

    Create an error response.

    @@ -32,7 +32,7 @@

    pub fn into_body(self) -> B

    Returns the response body, dropping all other parts.

    Trait Implementations§

    §

    impl Apiv2Schema for HttpResponse

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    §

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl<B> Debug for HttpResponse<B>
    where - B: MessageBody,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl From<Error> for HttpResponse

    §

    fn from(err: Error) -> HttpResponse

    Converts to this type from the input type.
    §

    impl From<HttpResponseBuilder> for HttpResponse

    §

    fn from(builder: HttpResponseBuilder) -> HttpResponse

    Converts to this type from the input type.
    §

    impl<B> From<Response<B>> for HttpResponse<B>

    §

    fn from(res: Response<B>) -> HttpResponse<B>

    Converts to this type from the input type.
    §

    impl<B> From<ServiceResponse<B>> for HttpResponse<B>

    §

    fn from(res: ServiceResponse<B>) -> HttpResponse<B>

    Converts to this type from the input type.
    §

    impl OperationModifier for HttpResponse

    §

    fn update_parameter( + B: MessageBody,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl From<Error> for HttpResponse

    §

    fn from(err: Error) -> HttpResponse

    Converts to this type from the input type.
    §

    impl From<HttpResponseBuilder> for HttpResponse

    §

    fn from(builder: HttpResponseBuilder) -> HttpResponse

    Converts to this type from the input type.
    §

    impl<B> From<Response<B>> for HttpResponse<B>

    §

    fn from(res: Response<B>) -> HttpResponse<B>

    Converts to this type from the input type.
    §

    impl<B> From<ServiceResponse<B>> for HttpResponse<B>

    §

    fn from(res: ServiceResponse<B>) -> HttpResponse<B>

    Converts to this type from the input type.
    §

    impl OperationModifier for HttpResponse

    §

    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>>, @@ -44,10 +44,10 @@

    HttpRequest, ) -> HttpResponse<<HttpResponse<B> as Responder>::Body>
    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>
    where Self: Sized,

    Wraps responder to allow alteration of its response. Read more

    Auto Trait Implementations§

    §

    impl<B = BoxBody> !Freeze for HttpResponse<B>

    §

    impl<B = BoxBody> !RefUnwindSafe for HttpResponse<B>

    §

    impl<B = BoxBody> !Send for HttpResponse<B>

    §

    impl<B = BoxBody> !Sync for HttpResponse<B>

    §

    impl<B> Unpin for HttpResponse<B>
    where - B: Unpin,

    §

    impl<B = BoxBody> !UnwindSafe for HttpResponse<B>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + B: Unpin,
    §

    impl<B = BoxBody> !UnwindSafe for HttpResponse<B>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where diff --git a/paperclip_actix/web/struct.Json.html b/paperclip_actix/web/struct.Json.html index a296aec99..d95777b62 100644 --- a/paperclip_actix/web/struct.Json.html +++ b/paperclip_actix/web/struct.Json.html @@ -1,8 +1,8 @@ -Json in paperclip_actix::web - Rust

    Struct paperclip_actix::web::Json

    pub struct Json<T>(pub T);
    Expand description

    JSON extractor and responder.

    +Json in paperclip_actix::web - Rust

    Struct paperclip_actix::web::Json

    pub struct Json<T>(pub T);
    Expand description

    JSON extractor and responder.

    Json has two uses: JSON responses, and extracting typed data from JSON request payloads.

    §Extractor

    To extract typed data from a request body, the inner type T must implement the -serde::Deserialize trait.

    +serde::Deserialize trait.

    Use JsonConfig to configure extraction options.

    use actix_web::{post, web, App};
    @@ -21,7 +21,7 @@ 

    §Extractor

    §Responder

    The Json type JSON formatted responses. A handler may return a value of type Json<T> where T is the type of a structure to serialize into JSON. The type T must -implement serde::Serialize.

    +implement serde::Serialize.

    use actix_web::{post, web, HttpRequest};
     use serde::Serialize;
    @@ -43,7 +43,7 @@ 

    §Responder

    §

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    §

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl<T> Debug for Json<T>
    where T: Debug,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<T> Deref for Json<T>

    §

    type Target = T

    The resulting type after dereferencing.
    §

    fn deref(&self) -> &T

    Dereferences the value.
    §

    impl<T> DerefMut for Json<T>

    §

    fn deref_mut(&mut self) -> &mut T

    Mutably dereferences the value.
    §

    impl<T> Display for Json<T>
    where T: Display,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<T> FromRequest for Json<T>
    where - T: DeserializeOwned,

    See here for example of usage as an extractor.

    + T: DeserializeOwned,

    See here for example of usage as an extractor.

    §

    type Error = Error

    The associated error which can be returned.
    §

    type Future = JsonExtractFut<T>

    Future that resolves to a Self. Read more
    §

    fn from_request( req: &HttpRequest, payload: &mut Payload, @@ -55,27 +55,27 @@

    §Responder

    )
    Update the responses map in the given operation (if needed).
    §

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    §

    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>)

    Update the security definition map (if needed).
    §

    impl<T> Responder for Json<T>
    where - T: Serialize,

    Creates response with OK status code, correct content type header, and serialized JSON payload.

    + T: Serialize,

    Creates response with OK status code, correct content type header, and serialized JSON payload.

    If serialization failed

    §

    type Body = EitherBody<String>

    §

    fn respond_to( self, _: &HttpRequest, ) -> HttpResponse<<Json<T> as Responder>::Body>

    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>
    where - Self: Sized,

    Wraps responder to allow alteration of its response. Read more
    §

    impl<T> Serialize for Json<T>
    where - T: Serialize,

    §

    fn serialize<S>( + Self: Sized,

    Wraps responder to allow alteration of its response. Read more
    §

    impl<T> Serialize for Json<T>
    where + T: Serialize,

    §

    fn serialize<S>( &self, serializer: S, -) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where - S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<T> Freeze for Json<T>
    where +) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where + S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<T> Freeze for Json<T>
    where T: Freeze,

    §

    impl<T> RefUnwindSafe for Json<T>
    where T: RefUnwindSafe,

    §

    impl<T> Send for Json<T>
    where T: Send,

    §

    impl<T> Sync for Json<T>
    where T: Sync,

    §

    impl<T> Unpin for Json<T>
    where T: Unpin,

    §

    impl<T> UnwindSafe for Json<T>
    where - T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -84,8 +84,8 @@

    §Responder

    From<T> for U chooses to do.

    §

    impl<T, P> Resource for T
    where T: DerefMut<Target = Path<P>>, - P: ResourcePath,

    §

    type Path = P

    Type of resource’s path returned in resource_path.
    §

    fn resource_path(&mut self) -> &mut Path<<T as Resource>::Path>

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + P: ResourcePath,

    §

    type Path = P

    Type of resource’s path returned in resource_path.
    §

    fn resource_path(&mut self) -> &mut Path<<T as Resource>::Path>

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip_actix/web/struct.JsonConfig.html b/paperclip_actix/web/struct.JsonConfig.html index 8201b3ab5..0fe2b35b3 100644 --- a/paperclip_actix/web/struct.JsonConfig.html +++ b/paperclip_actix/web/struct.JsonConfig.html @@ -1,4 +1,4 @@ -JsonConfig in paperclip_actix::web - Rust

    Struct paperclip_actix::web::JsonConfig

    pub struct JsonConfig { /* private fields */ }
    Expand description

    Json extractor configuration.

    +JsonConfig in paperclip_actix::web - Rust

    Struct paperclip_actix::web::JsonConfig

    pub struct JsonConfig { /* private fields */ }
    Expand description

    Json extractor configuration.

    §Examples

    use actix_web::{error, post, web, App, FromRequest, HttpResponse};
     use serde::Deserialize;
    @@ -34,19 +34,19 @@ 

    §Examples

    pub fn content_type<F>(self, predicate: F) -> JsonConfig
    where F: Fn(Mime) -> bool + Send + Sync + 'static,

    Set predicate for allowed content types.

    pub fn content_type_required(self, content_type_required: bool) -> JsonConfig

    Sets whether or not the request must have a Content-Type header to be parsed.

    -

    Trait Implementations§

    §

    impl Clone for JsonConfig

    §

    fn clone(&self) -> JsonConfig

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Default for JsonConfig

    §

    fn default() -> JsonConfig

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    §

    impl Clone for JsonConfig

    §

    fn clone(&self) -> JsonConfig

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Default for JsonConfig

    §

    fn default() -> JsonConfig

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip_actix/web/struct.Path.html b/paperclip_actix/web/struct.Path.html index 772c65995..d7c377eab 100644 --- a/paperclip_actix/web/struct.Path.html +++ b/paperclip_actix/web/struct.Path.html @@ -1,4 +1,4 @@ -Path in paperclip_actix::web - Rust

    Struct paperclip_actix::web::Path

    pub struct Path<T>(/* private fields */);
    Expand description

    Extract typed data from request path segments.

    +Path in paperclip_actix::web - Rust

    Struct paperclip_actix::web::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 +.

    @@ -13,7 +13,7 @@

    §Examples

    let (name, count) = path.into_inner(); format!("Welcome {}! {}", name, count) }
    -

    Path segments also can be deserialized into any type that implements serde::Deserialize. +

    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};
    @@ -31,34 +31,34 @@ 

    §Examples

    }

    Implementations§

    §

    impl<T> Path<T>

    pub fn into_inner(self) -> T

    Unwrap into inner T value.

    Trait Implementations§

    §

    impl<A> Apiv2Schema for Path<(A,)>
    where - A: Apiv2Schema,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    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,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    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,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    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 + B: Apiv2Schema,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    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,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    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,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    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 + D: Apiv2Schema,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    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,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    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 + E: Apiv2Schema,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    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,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    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 + F: Apiv2Schema,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    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,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    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 + G: Apiv2Schema,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    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, @@ -66,7 +66,7 @@

    §Examples

    E: Apiv2Schema, F: Apiv2Schema, G: Apiv2Schema, - H: Apiv2Schema,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    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 + H: Apiv2Schema,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    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, @@ -75,7 +75,7 @@

    §Examples

    F: Apiv2Schema, G: Apiv2Schema, H: Apiv2Schema, - I: Apiv2Schema,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    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 + I: Apiv2Schema,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    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, @@ -85,7 +85,7 @@

    §Examples

    G: Apiv2Schema, H: Apiv2Schema, I: Apiv2Schema, - J: Apiv2Schema,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    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 + J: Apiv2Schema,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    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, @@ -96,7 +96,7 @@

    §Examples

    H: Apiv2Schema, I: Apiv2Schema, J: Apiv2Schema, - K: Apiv2Schema,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    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 + K: Apiv2Schema,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    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, @@ -108,7 +108,7 @@

    §Examples

    I: Apiv2Schema, J: Apiv2Schema, K: Apiv2Schema, - L: Apiv2Schema,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    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 + L: Apiv2Schema,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    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, @@ -121,88 +121,88 @@

    §Examples

    J: Apiv2Schema, K: Apiv2Schema, L: Apiv2Schema, - M: Apiv2Schema,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    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,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    §

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl<T> AsRef<T> for Path<T>

    §

    fn as_ref(&self) -> &T

    Converts this type into a shared reference of the (usually inferred) input type.
    §

    impl<T> Debug for Path<T>
    where + M: Apiv2Schema,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    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,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    §

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl<T> AsRef<T> for Path<T>

    §

    fn as_ref(&self) -> &T

    Converts this type into a shared reference of the (usually inferred) input type.
    §

    impl<T> Debug for Path<T>
    where T: Debug,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<T> Deref for Path<T>

    §

    type Target = T

    The resulting type after dereferencing.
    §

    fn deref(&self) -> &<Path<T> as Deref>::Target

    Dereferences the value.
    §

    impl<T> DerefMut for Path<T>

    §

    fn deref_mut(&mut self) -> &mut <Path<T> as Deref>::Target

    Mutably dereferences the value.
    §

    impl<T> Display for Path<T>
    where T: Display,

    §

    fn fmt( &self, _derive_more_display_formatter: &mut Formatter<'_>, ) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<T> From<T> for Path<T>

    §

    fn from(original: T) -> Path<T>

    Converts to this type from the input type.
    §

    impl<T> FromRequest for Path<T>
    where - T: DeserializeOwned,

    See here for example of usage as an extractor.

    + T: DeserializeOwned,

    See here for example of usage as an extractor.

    §

    type Error = Error

    The associated error which can be returned.
    §

    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

    Create a Self from request parts asynchronously.
    §

    fn extract(req: &HttpRequest) -> Self::Future

    Create a Self from request head asynchronously. Read more
    §

    impl<A> OperationModifier for Path<(A,)>
    where - A: Apiv2Schema,

    §

    fn update_parameter( + A: Apiv2Schema,

    §

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    §

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    §

    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>)

    Update the definitions map (if needed).
    §

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    §

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    §

    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>)

    Update the security definition map (if needed).
    §

    impl<A, B> OperationModifier for Path<(A, B)>
    where +)

    Update the security map in the given operation (if needed).
    §

    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,

    §

    fn update_parameter( + B: Apiv2Schema,

    §

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    §

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    §

    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>)

    Update the definitions map (if needed).
    §

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    §

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    §

    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>)

    Update the security definition map (if needed).
    §

    impl<A, B, C> OperationModifier for Path<(A, B, C)>
    where +)

    Update the security map in the given operation (if needed).
    §

    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,

    §

    fn update_parameter( + C: Apiv2Schema,

    §

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    §

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    §

    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>)

    Update the definitions map (if needed).
    §

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    §

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    §

    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>)

    Update the security definition map (if needed).
    §

    impl<A, B, C, D> OperationModifier for Path<(A, B, C, D)>
    where +)

    Update the security map in the given operation (if needed).
    §

    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,

    §

    fn update_parameter( + D: Apiv2Schema,

    §

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    §

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    §

    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>)

    Update the definitions map (if needed).
    §

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    §

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    §

    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>)

    Update the security definition map (if needed).
    §

    impl<A, B, C, D, E> OperationModifier for Path<(A, B, C, D, E)>
    where +)

    Update the security map in the given operation (if needed).
    §

    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,

    §

    fn update_parameter( + E: Apiv2Schema,

    §

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    §

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    §

    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>)

    Update the definitions map (if needed).
    §

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    §

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    §

    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>)

    Update the security definition map (if needed).
    §

    impl<A, B, C, D, E, F> OperationModifier for Path<(A, B, C, D, E, F)>
    where +)

    Update the security map in the given operation (if needed).
    §

    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,

    §

    fn update_parameter( + F: Apiv2Schema,

    §

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    §

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    §

    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>)

    Update the definitions map (if needed).
    §

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    §

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    §

    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>)

    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 +)

    Update the security map in the given operation (if needed).
    §

    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,

    §

    fn update_parameter( + G: Apiv2Schema,

    §

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    §

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    §

    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>)

    Update the definitions map (if needed).
    §

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    §

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    §

    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>)

    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 +)

    Update the security map in the given operation (if needed).
    §

    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, @@ -210,13 +210,13 @@

    §Examples

    E: Apiv2Schema, F: Apiv2Schema, G: Apiv2Schema, - H: Apiv2Schema,

    §

    fn update_parameter( + H: Apiv2Schema,

    §

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    §

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    §

    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>)

    Update the definitions map (if needed).
    §

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    §

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    §

    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>)

    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 +)

    Update the security map in the given operation (if needed).
    §

    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, @@ -225,13 +225,13 @@

    §Examples

    F: Apiv2Schema, G: Apiv2Schema, H: Apiv2Schema, - I: Apiv2Schema,

    §

    fn update_parameter( + I: Apiv2Schema,

    §

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    §

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    §

    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>)

    Update the definitions map (if needed).
    §

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    §

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    §

    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>)

    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 +)

    Update the security map in the given operation (if needed).
    §

    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, @@ -241,13 +241,13 @@

    §Examples

    G: Apiv2Schema, H: Apiv2Schema, I: Apiv2Schema, - J: Apiv2Schema,

    §

    fn update_parameter( + J: Apiv2Schema,

    §

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    §

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    §

    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>)

    Update the definitions map (if needed).
    §

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    §

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    §

    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>)

    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 +)

    Update the security map in the given operation (if needed).
    §

    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, @@ -258,13 +258,13 @@

    §Examples

    H: Apiv2Schema, I: Apiv2Schema, J: Apiv2Schema, - K: Apiv2Schema,

    §

    fn update_parameter( + K: Apiv2Schema,

    §

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    §

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    §

    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>)

    Update the definitions map (if needed).
    §

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    §

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    §

    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>)

    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 +)

    Update the security map in the given operation (if needed).
    §

    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, @@ -276,13 +276,13 @@

    §Examples

    I: Apiv2Schema, J: Apiv2Schema, K: Apiv2Schema, - L: Apiv2Schema,

    §

    fn update_parameter( + L: Apiv2Schema,

    §

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    §

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    §

    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>)

    Update the definitions map (if needed).
    §

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    §

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    §

    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>)

    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 +)

    Update the security map in the given operation (if needed).
    §

    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, @@ -295,40 +295,40 @@

    §Examples

    J: Apiv2Schema, K: Apiv2Schema, L: Apiv2Schema, - M: Apiv2Schema,

    §

    fn update_parameter( + M: Apiv2Schema,

    §

    fn update_parameter( op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the parameters list in the given operation (if needed).
    §

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    §

    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>)

    Update the definitions map (if needed).
    §

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    §

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    §

    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>)

    Update the security definition map (if needed).
    §

    impl<T> OperationModifier for Path<T>
    where - T: Apiv2Schema,

    §

    fn update_parameter( +)

    Update the security map in the given operation (if needed).
    §

    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,

    §

    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>)

    Update the definitions map (if needed).
    §

    fn update_response( +)

    Update the parameters list in the given operation (if needed).
    §

    fn update_definitions(_map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    §

    fn update_response( _op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>, -)

    Update the responses map in the given operation (if needed).
    §

    fn update_security( +)

    Update the responses map in the given operation (if needed).
    §

    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>)

    Update the security definition map (if needed).
    §

    impl<T> Ord for Path<T>
    where - T: Ord,

    §

    fn cmp(&self, other: &Path<T>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where +)

    Update the security map in the given operation (if needed).
    §

    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,

    §

    fn cmp(&self, other: &Path<T>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    §

    impl<T> PartialEq for Path<T>
    where - T: PartialEq,

    §

    fn eq(&self, other: &Path<T>) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl<T> PartialOrd for Path<T>
    where - T: PartialOrd,

    §

    fn partial_cmp(&self, other: &Path<T>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl<T> Eq for Path<T>
    where + T: PartialEq,

    §

    fn eq(&self, other: &Path<T>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl<T> PartialOrd for Path<T>
    where + T: PartialOrd,

    §

    fn partial_cmp(&self, other: &Path<T>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    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> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where + T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn compare(&self, key: &K) -> Ordering

    Compare self to key and return their ordering.
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, @@ -336,7 +336,7 @@

    §Examples

    Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn equivalent(&self, key: &K) -> bool

    Compare self to key and return true if they are equal.
    source§

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

    source§

    fn equivalent(&self, key: &K) -> bool

    Compare self to key and return true if they are equal.
    source§

    impl<T> From<!> for T

    source§

    fn from(t: !) -> T

    Converts to this type from the input type.
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + K: Borrow<Q> + ?Sized,
    source§

    fn equivalent(&self, key: &K) -> bool

    Compare self to key and return true if they are equal.
    source§

    impl<T> From<!> for T

    source§

    fn from(t: !) -> T

    Converts to this type from the input type.
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -345,8 +345,8 @@

    §Examples

    From<T> for U chooses to do.

    §

    impl<T, P> Resource for T
    where T: DerefMut<Target = Path<P>>, - P: ResourcePath,

    §

    type Path = P

    Type of resource’s path returned in resource_path.
    §

    fn resource_path(&mut self) -> &mut Path<<T as Resource>::Path>

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + P: ResourcePath,

    §

    type Path = P

    Type of resource’s path returned in resource_path.
    §

    fn resource_path(&mut self) -> &mut Path<<T as Resource>::Path>

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip_actix/web/struct.PathConfig.html b/paperclip_actix/web/struct.PathConfig.html index 8c84f8e42..96ae503ad 100644 --- a/paperclip_actix/web/struct.PathConfig.html +++ b/paperclip_actix/web/struct.PathConfig.html @@ -1,4 +1,4 @@ -PathConfig in paperclip_actix::web - Rust

    Struct paperclip_actix::web::PathConfig

    pub struct PathConfig { /* private fields */ }
    Expand description

    Path extractor configuration

    +PathConfig in paperclip_actix::web - Rust

    Struct paperclip_actix::web::PathConfig

    pub struct PathConfig { /* private fields */ }
    Expand description

    Path extractor configuration

    use actix_web::web::PathConfig;
     use actix_web::{error, web, App, FromRequest, HttpResponse};
    @@ -31,19 +31,19 @@
     );

    Implementations§

    §

    impl PathConfig

    pub fn error_handler<F>(self, f: F) -> PathConfig
    where F: Fn(PathError, &HttpRequest) -> Error + Send + Sync + 'static,

    Set custom error handler.

    -

    Trait Implementations§

    §

    impl Clone for PathConfig

    §

    fn clone(&self) -> PathConfig

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Default for PathConfig

    §

    fn default() -> PathConfig

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    §

    impl Clone for PathConfig

    §

    fn clone(&self) -> PathConfig

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Default for PathConfig

    §

    fn default() -> PathConfig

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip_actix/web/struct.Payload.html b/paperclip_actix/web/struct.Payload.html index b784a5569..dda768f72 100644 --- a/paperclip_actix/web/struct.Payload.html +++ b/paperclip_actix/web/struct.Payload.html @@ -1,4 +1,4 @@ -Payload in paperclip_actix::web - Rust

    Struct paperclip_actix::web::Payload

    pub struct Payload(/* private fields */);
    Expand description

    Extract a request’s raw payload stream.

    +Payload in paperclip_actix::web - Rust

    Struct paperclip_actix::web::Payload

    pub struct Payload(/* private fields */);
    Expand description

    Extract a request’s raw payload stream.

    See PayloadConfig for important notes when using this advanced extractor.

    §Examples

    use std::future::Future;
    @@ -72,10 +72,10 @@ 
    §Examples
    cx: &mut Context<'_>, ) -> Poll<Option<<Payload as Stream>::Item>>

    Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning -None if the stream is exhausted. Read more
    §

    fn size_hint(&self) -> (usize, Option<usize>)

    Returns the bounds on the remaining length of the stream. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Payload

    §

    impl !RefUnwindSafe for Payload

    §

    impl !Send for Payload

    §

    impl !Sync for Payload

    §

    impl Unpin for Payload

    §

    impl !UnwindSafe for Payload

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +None if the stream is exhausted. Read more
    §

    fn size_hint(&self) -> (usize, Option<usize>)

    Returns the bounds on the remaining length of the stream. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Payload

    §

    impl !RefUnwindSafe for Payload

    §

    impl !Send for Payload

    §

    impl !Sync for Payload

    §

    impl Unpin for Payload

    §

    impl !UnwindSafe for Payload

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -177,7 +177,7 @@
    §Examples
    Self: Sized,

    Creates a new stream which skips n items of the underlying stream. Read more
    §

    fn fuse(self) -> Fuse<Self>
    where Self: Sized,

    Fuse a stream such that poll_next will never again be called once it has finished. This method can be used to turn -any Stream into a FusedStream. Read more
    §

    fn by_ref(&mut self) -> &mut Self

    Borrows a stream, rather than consuming it. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>
    where +any Stream into a FusedStream. Read more

    §

    fn by_ref(&mut self) -> &mut Self

    Borrows a stream, rather than consuming it. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>
    where Self: Sized + UnwindSafe,

    Catches unwinding panics while polling the stream. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + Send + 'a>>
    where Self: Sized + Send + 'a,

    Wrap the stream in a Box, pinning it. Read more
    §

    fn boxed_local<'a>(self) -> Pin<Box<dyn Stream<Item = Self::Item> + 'a>>
    where Self: Sized + 'a,

    Wrap the stream in a Box, pinning it. Read more
    §

    fn buffered(self, n: usize) -> Buffered<Self>
    where diff --git a/paperclip_actix/web/struct.PayloadConfig.html b/paperclip_actix/web/struct.PayloadConfig.html index 76d827196..de1ae4ccf 100644 --- a/paperclip_actix/web/struct.PayloadConfig.html +++ b/paperclip_actix/web/struct.PayloadConfig.html @@ -1,4 +1,4 @@ -PayloadConfig in paperclip_actix::web - Rust

    Struct paperclip_actix::web::PayloadConfig

    pub struct PayloadConfig { /* private fields */ }
    Expand description

    Configuration for request payloads.

    +PayloadConfig in paperclip_actix::web - Rust

    Struct paperclip_actix::web::PayloadConfig

    pub struct PayloadConfig { /* private fields */ }
    Expand description

    Configuration for request payloads.

    Applies to the built-in Bytes and String extractors. Note that the Payload extractor does not automatically check conformance with this configuration to allow more flexibility when @@ -9,19 +9,19 @@

    Implementations§

    §

    impl PayloadConfig

    pub fn new(limit: usize) -> PayloadConfig

    Create new instance with a size limit (in bytes) and no mime type condition.

    pub fn limit(self, limit: usize) -> PayloadConfig

    Set maximum accepted payload size in bytes. The default limit is 256KiB.

    pub fn mimetype(self, mt: Mime) -> PayloadConfig

    Set required mime type of the request. By default mime type is not enforced.

    -

    Trait Implementations§

    §

    impl Clone for PayloadConfig

    §

    fn clone(&self) -> PayloadConfig

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Default for PayloadConfig

    §

    fn default() -> PayloadConfig

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    §

    impl Clone for PayloadConfig

    §

    fn clone(&self) -> PayloadConfig

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Default for PayloadConfig

    §

    fn default() -> PayloadConfig

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip_actix/web/struct.Query.html b/paperclip_actix/web/struct.Query.html index 9085f1be1..c457cc729 100644 --- a/paperclip_actix/web/struct.Query.html +++ b/paperclip_actix/web/struct.Query.html @@ -1,6 +1,6 @@ -Query in paperclip_actix::web - Rust

    Struct paperclip_actix::web::Query

    pub struct Query<T>(pub T);
    Expand description

    Extract typed information from the request’s query.

    +Query in paperclip_actix::web - Rust

    Struct paperclip_actix::web::Query

    pub struct Query<T>(pub T);
    Expand description

    Extract typed information from the request’s query.

    To extract typed data from the URL query string, the inner type T must implement the -DeserializeOwned trait.

    +DeserializeOwned trait.

    Use QueryConfig to configure extraction process.

    §Panics

    A query string consists of unordered key=value pairs, therefore it cannot be decoded into any @@ -44,7 +44,7 @@

    §Examples

    }

    Tuple Fields§

    §0: T

    Implementations§

    §

    impl<T> Query<T>

    pub fn into_inner(self) -> T

    Unwrap into inner T value.

    §

    impl<T> Query<T>
    where - T: DeserializeOwned,

    pub fn from_query(query_str: &str) -> Result<Query<T>, QueryPayloadError>

    Deserialize a T from the URL encoded query parameter string.

    + T: DeserializeOwned,

    pub fn from_query(query_str: &str) -> Result<Query<T>, QueryPayloadError>

    Deserialize a T from the URL encoded query parameter string.

    let numbers = Query::<HashMap<String, u32>>::from_query("one=1&two=2").unwrap();
     assert_eq!(numbers.get("one"), Some(&1));
    @@ -52,10 +52,10 @@ 

    §Examples

    assert!(numbers.get("three").is_none());

    Trait Implementations§

    §

    impl<T> Apiv2Schema for Query<T>
    where T: Apiv2Schema,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    §

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl<T> Clone for Query<T>
    where - T: Clone,

    §

    fn clone(&self) -> Query<T>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl<T> Debug for Query<T>
    where + T: Clone,

    §

    fn clone(&self) -> Query<T>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl<T> Debug for Query<T>
    where T: Debug,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<T> Deref for Query<T>

    §

    type Target = T

    The resulting type after dereferencing.
    §

    fn deref(&self) -> &T

    Dereferences the value.
    §

    impl<T> DerefMut for Query<T>

    §

    fn deref_mut(&mut self) -> &mut T

    Mutably dereferences the value.
    §

    impl<T> Display for Query<T>
    where T: Display,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<T> FromRequest for Query<T>
    where - T: DeserializeOwned,

    See here for example of usage as an extractor.

    + T: DeserializeOwned,

    See here for example of usage as an extractor.

    §

    type Error = Error

    The associated error which can be returned.
    §

    type Future = Ready<Result<Query<T>, Error>>

    Future that resolves to a Self. Read more
    §

    fn from_request( req: &HttpRequest, _: &mut Payload, @@ -67,27 +67,27 @@

    §Examples

    )

    Update the responses map in the given operation (if needed).
    §

    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>)

    Update the security definition map (if needed).
    §

    impl<T> Ord for Query<T>
    where - T: Ord,

    §

    fn cmp(&self, other: &Query<T>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + T: Ord,

    §

    fn cmp(&self, other: &Query<T>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    §

    impl<T> PartialEq for Query<T>
    where - T: PartialEq,

    §

    fn eq(&self, other: &Query<T>) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    §

    impl<T> PartialOrd for Query<T>
    where - T: PartialOrd,

    §

    fn partial_cmp(&self, other: &Query<T>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    §

    impl<T> Eq for Query<T>
    where + T: PartialEq,

    §

    fn eq(&self, other: &Query<T>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl<T> PartialOrd for Query<T>
    where + T: PartialOrd,

    §

    fn partial_cmp(&self, other: &Query<T>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    §

    impl<T> Eq for Query<T>
    where T: Eq,

    §

    impl<T> StructuralPartialEq for Query<T>

    Auto Trait Implementations§

    §

    impl<T> Freeze for Query<T>
    where T: Freeze,

    §

    impl<T> RefUnwindSafe for Query<T>
    where T: RefUnwindSafe,

    §

    impl<T> Send for Query<T>
    where T: Send,

    §

    impl<T> Sync for Query<T>
    where T: Sync,

    §

    impl<T> Unpin for Query<T>
    where T: Unpin,

    §

    impl<T> UnwindSafe for Query<T>
    where - T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where + T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn compare(&self, key: &K) -> Ordering

    Compare self to key and return their ordering.
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, @@ -104,9 +104,9 @@

    §Examples

    From<T> for U chooses to do.

    §

    impl<T, P> Resource for T
    where T: DerefMut<Target = Path<P>>, - P: ResourcePath,

    §

    type Path = P

    Type of resource’s path returned in resource_path.
    §

    fn resource_path(&mut self) -> &mut Path<<T as Resource>::Path>

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T> ToString for T
    where - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + P: ResourcePath,

    §

    type Path = P

    Type of resource’s path returned in resource_path.
    §

    fn resource_path(&mut self) -> &mut Path<<T as Resource>::Path>

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip_actix/web/struct.QueryConfig.html b/paperclip_actix/web/struct.QueryConfig.html index e93b65560..d3812a2f8 100644 --- a/paperclip_actix/web/struct.QueryConfig.html +++ b/paperclip_actix/web/struct.QueryConfig.html @@ -1,4 +1,4 @@ -QueryConfig in paperclip_actix::web - Rust

    Struct paperclip_actix::web::QueryConfig

    pub struct QueryConfig { /* private fields */ }
    Expand description

    Query extractor configuration.

    +QueryConfig in paperclip_actix::web - Rust

    Struct paperclip_actix::web::QueryConfig

    pub struct QueryConfig { /* private fields */ }
    Expand description

    Query extractor configuration.

    §Examples

    use actix_web::{error, get, web, App, FromRequest, HttpResponse};
     use serde::Deserialize;
    @@ -26,19 +26,19 @@ 

    §Examples

    .service(index);

    Implementations§

    §

    impl QueryConfig

    pub fn error_handler<F>(self, f: F) -> QueryConfig
    where F: Fn(QueryPayloadError, &HttpRequest) -> Error + Send + Sync + 'static,

    Set custom error handler

    -

    Trait Implementations§

    §

    impl Clone for QueryConfig

    §

    fn clone(&self) -> QueryConfig

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Default for QueryConfig

    §

    fn default() -> QueryConfig

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    §

    impl Clone for QueryConfig

    §

    fn clone(&self) -> QueryConfig

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Default for QueryConfig

    §

    fn default() -> QueryConfig

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip_actix/web/struct.ReqData.html b/paperclip_actix/web/struct.ReqData.html index 3224d7f82..8bd773d3f 100644 --- a/paperclip_actix/web/struct.ReqData.html +++ b/paperclip_actix/web/struct.ReqData.html @@ -1,4 +1,4 @@ -ReqData in paperclip_actix::web - Rust

    Struct paperclip_actix::web::ReqData

    pub struct ReqData<T>(/* private fields */)
    +ReqData in paperclip_actix::web - Rust

    Struct paperclip_actix::web::ReqData

    pub struct ReqData<T>(/* private fields */)
     where
         T: Clone + 'static;
    Expand description

    Request-local data extractor.

    Request-local data is arbitrary data attached to an individual request, usually @@ -33,7 +33,7 @@

    §Examples

    T: Clone + 'static,

    pub fn into_inner(self) -> T

    Consumes the ReqData, returning its wrapped data.

    Trait Implementations§

    §

    impl<T> Apiv2Schema for ReqData<T>
    where T: Clone,

    §

    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

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    §

    fn required() -> bool

    Indicates the requirement of this schema.
    §

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    §

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    §

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    §

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    §

    impl<T> Clone for ReqData<T>
    where - T: Clone + 'static,

    §

    fn clone(&self) -> ReqData<T>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl<T> Debug for ReqData<T>
    where + T: Clone + 'static,

    §

    fn clone(&self) -> ReqData<T>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl<T> Debug for ReqData<T>
    where T: Debug + Clone + 'static,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<T> Deref for ReqData<T>
    where T: Clone + 'static,

    §

    type Target = T

    The resulting type after dereferencing.
    §

    fn deref(&self) -> &T

    Dereferences the value.
    §

    impl<T> FromRequest for ReqData<T>
    where T: Clone + 'static,

    §

    type Error = Error

    The associated error which can be returned.
    §

    type Future = Ready<Result<ReqData<T>, Error>>

    Future that resolves to a Self. Read more
    §

    fn from_request( @@ -52,19 +52,19 @@

    §Examples

    T: Send,

    §

    impl<T> Sync for ReqData<T>
    where T: Sync,

    §

    impl<T> Unpin for ReqData<T>
    where T: Unpin,

    §

    impl<T> UnwindSafe for ReqData<T>
    where - T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip_actix/web/struct.Resource.html b/paperclip_actix/web/struct.Resource.html index b8468c07f..c474fd530 100644 --- a/paperclip_actix/web/struct.Resource.html +++ b/paperclip_actix/web/struct.Resource.html @@ -1,4 +1,4 @@ -Resource in paperclip_actix::web - Rust

    Struct paperclip_actix::web::Resource

    source ·
    pub struct Resource<R = Resource> { /* private fields */ }
    Expand description

    Wrapper for actix_web::Resource

    +Resource in paperclip_actix::web - Rust

    Struct paperclip_actix::web::Resource

    source ·
    pub struct Resource<R = Resource> { /* private fields */ }
    Expand description

    Wrapper for actix_web::Resource

    Implementations§

    source§

    impl Resource

    source

    pub fn new(path: &str) -> Resource

    source§

    impl<T> Resource<Resource<T>>
    where T: ServiceFactory<ServiceRequest, Config = (), Error = Error, InitError = ()>,

    source

    pub fn name(self, name: &str) -> Self

    Proxy for actix_web::Resource::name.

    @@ -41,10 +41,10 @@ R: Send,

    §

    impl<R> Sync for Resource<R>
    where R: Sync,

    §

    impl<R> Unpin for Resource<R>
    where R: Unpin,

    §

    impl<R> UnwindSafe for Resource<R>
    where - R: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + R: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where diff --git a/paperclip_actix/web/struct.Route.html b/paperclip_actix/web/struct.Route.html index 8ca15c1fc..b63af40d0 100644 --- a/paperclip_actix/web/struct.Route.html +++ b/paperclip_actix/web/struct.Route.html @@ -1,4 +1,4 @@ -Route in paperclip_actix::web - Rust

    Struct paperclip_actix::web::Route

    source ·
    pub struct Route { /* private fields */ }
    Expand description

    Wrapper for actix_web::Route

    +Route in paperclip_actix::web - Rust

    Struct paperclip_actix::web::Route

    source ·
    pub struct Route { /* private fields */ }
    Expand description

    Wrapper for actix_web::Route

    Implementations§

    source§

    impl Route

    source

    pub fn new() -> Route

    source

    pub fn method(self, method: Method) -> Self

    source

    pub fn guard<G: Guard + 'static>(self, guard: G) -> Self

    Proxy for actix_web::Route::guard.

    @@ -8,10 +8,10 @@ Args: FromRequest + 'static, F::Output: Responder + 'static, F::Future: Apiv2Operation,

    Wrapper for actix_web::Route::to

    -

    Trait Implementations§

    source§

    impl ServiceFactory<ServiceRequest> for Route

    §

    type Config = ()

    Service factory configuration.
    §

    type Error = Error

    Errors produced by the created services.
    §

    type InitError = ()

    Errors potentially raised while building a service.
    §

    type Service = <Route as ServiceFactory<ServiceRequest>>::Service

    The kind of Service created by this factory.
    §

    type Future = <Route as ServiceFactory<ServiceRequest>>::Future

    The future of the Service instance.g
    §

    type Response = <<Route as ServiceFactory<ServiceRequest>>::Service as Service<ServiceRequest>>::Response

    Responses given by the created services.
    source§

    fn new_service(&self, cfg: Self::Config) -> Self::Future

    Create and return a new service asynchronously.

    Auto Trait Implementations§

    §

    impl Freeze for Route

    §

    impl !RefUnwindSafe for Route

    §

    impl !Send for Route

    §

    impl !Sync for Route

    §

    impl Unpin for Route

    §

    impl !UnwindSafe for Route

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl ServiceFactory<ServiceRequest> for Route

    §

    type Config = ()

    Service factory configuration.
    §

    type Error = Error

    Errors produced by the created services.
    §

    type InitError = ()

    Errors potentially raised while building a service.
    §

    type Service = <Route as ServiceFactory<ServiceRequest>>::Service

    The kind of Service created by this factory.
    §

    type Future = <Route as ServiceFactory<ServiceRequest>>::Future

    The future of the Service instance.g
    §

    type Response = <<Route as ServiceFactory<ServiceRequest>>::Service as Service<ServiceRequest>>::Response

    Responses given by the created services.
    source§

    fn new_service(&self, cfg: Self::Config) -> Self::Future

    Create and return a new service asynchronously.

    Auto Trait Implementations§

    §

    impl Freeze for Route

    §

    impl !RefUnwindSafe for Route

    §

    impl !Send for Route

    §

    impl !Sync for Route

    §

    impl Unpin for Route

    §

    impl !UnwindSafe for Route

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where diff --git a/paperclip_actix/web/struct.Scope.html b/paperclip_actix/web/struct.Scope.html index c0ddf8006..a36a882e1 100644 --- a/paperclip_actix/web/struct.Scope.html +++ b/paperclip_actix/web/struct.Scope.html @@ -1,4 +1,4 @@ -Scope in paperclip_actix::web - Rust

    Struct paperclip_actix::web::Scope

    source ·
    pub struct Scope<S = Scope> { /* private fields */ }
    Expand description

    Wrapper for actix_web::Scope

    +Scope in paperclip_actix::web - Rust

    Struct paperclip_actix::web::Scope

    source ·
    pub struct Scope<S = Scope> { /* private fields */ }
    Expand description

    Wrapper for actix_web::Scope

    Implementations§

    source§

    impl Scope

    source

    pub fn new(path: &str) -> Self

    source§

    impl<T> Scope<Scope<T>>
    where T: ServiceFactory<ServiceRequest, Config = (), Error = Error, InitError = ()>,

    source

    pub fn guard<G: Guard + 'static>(self, guard: G) -> Self

    Proxy for actix_web::Scope::guard.

    @@ -37,10 +37,10 @@ S: Send,

    §

    impl<S> Sync for Scope<S>
    where S: Sync,

    §

    impl<S> Unpin for Scope<S>
    where S: Unpin,

    §

    impl<S> UnwindSafe for Scope<S>
    where - S: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + S: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where diff --git a/paperclip_actix/web/struct.ServiceConfig.html b/paperclip_actix/web/struct.ServiceConfig.html index d18605c0e..9eda076b3 100644 --- a/paperclip_actix/web/struct.ServiceConfig.html +++ b/paperclip_actix/web/struct.ServiceConfig.html @@ -1,17 +1,17 @@ -ServiceConfig in paperclip_actix::web - Rust

    Struct paperclip_actix::web::ServiceConfig

    source ·
    pub struct ServiceConfig<'a> { /* private fields */ }
    Expand description

    Implementations§

    source§

    impl<'a> ServiceConfig<'a>

    source

    pub fn route(&mut self, path: &str, route: Route) -> &mut Self

    source

    pub fn service<F>(&mut self, factory: F) -> &mut Self
    where +ServiceConfig in paperclip_actix::web - Rust

    Struct paperclip_actix::web::ServiceConfig

    source ·
    pub struct ServiceConfig<'a> { /* private fields */ }
    Expand description

    Implementations§

    source§

    impl<'a> ServiceConfig<'a>

    source

    pub fn route(&mut self, path: &str, route: Route) -> &mut Self

    source

    pub fn service<F>(&mut self, factory: F) -> &mut Self
    where F: Mountable + HttpServiceFactory + 'static,

    source

    pub fn external_resource<N, U>(&mut self, name: N, url: U) -> &mut Self
    where +

    source

    pub fn external_resource<N, U>(&mut self, name: N, url: U) -> &mut Self
    where N: AsRef<str>, U: AsRef<str>,

    Proxy for actix_web::web::ServiceConfig::external_resource.

    NOTE: This doesn’t affect spec generation.

    -
    source

    pub fn app_data<U: 'static>(&mut self, data: U) -> &mut Self

    source

    pub fn app_data<U: 'static>(&mut self, data: U) -> &mut Self

    Proxy for actix_web::web::ServiceConfig::app_data.

    NOTE: This doesn’t affect spec generation.

    -

    Trait Implementations§

    source§

    impl<'a> From<&'a mut ServiceConfig> for ServiceConfig<'a>

    source§

    fn from(cfg: &'a mut ServiceConfig) -> Self

    Converts to this type from the input type.
    source§

    impl<'a> Mountable for ServiceConfig<'a>

    source§

    fn path(&self) -> &str

    Where this thing gets mounted.
    source§

    fn operations(&mut self) -> BTreeMap<HttpMethod, DefaultOperationRaw>

    Map of HTTP methods and the associated API operations.
    source§

    fn security_definitions(&mut self) -> BTreeMap<String, SecurityScheme>

    The security definitions recorded by this object.
    source§

    fn definitions(&mut self) -> BTreeMap<String, DefaultSchemaRaw>

    The definitions recorded by this object.
    source§

    fn update_operations(&mut self, map: &mut BTreeMap<String, DefaultPathItemRaw>)

    Updates the given map of operations with operations tracked by this object. Read more

    Auto Trait Implementations§

    §

    impl<'a> Freeze for ServiceConfig<'a>

    §

    impl<'a> !RefUnwindSafe for ServiceConfig<'a>

    §

    impl<'a> !Send for ServiceConfig<'a>

    §

    impl<'a> !Sync for ServiceConfig<'a>

    §

    impl<'a> Unpin for ServiceConfig<'a>

    §

    impl<'a> !UnwindSafe for ServiceConfig<'a>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl<'a> From<&'a mut ServiceConfig> for ServiceConfig<'a>

    source§

    fn from(cfg: &'a mut ServiceConfig) -> Self

    Converts to this type from the input type.
    source§

    impl<'a> Mountable for ServiceConfig<'a>

    source§

    fn path(&self) -> &str

    Where this thing gets mounted.
    source§

    fn operations(&mut self) -> BTreeMap<HttpMethod, DefaultOperationRaw>

    Map of HTTP methods and the associated API operations.
    source§

    fn security_definitions(&mut self) -> BTreeMap<String, SecurityScheme>

    The security definitions recorded by this object.
    source§

    fn definitions(&mut self) -> BTreeMap<String, DefaultSchemaRaw>

    The definitions recorded by this object.
    source§

    fn update_operations(&mut self, map: &mut BTreeMap<String, DefaultPathItemRaw>)

    Updates the given map of operations with operations tracked by this object. Read more

    Auto Trait Implementations§

    §

    impl<'a> Freeze for ServiceConfig<'a>

    §

    impl<'a> !RefUnwindSafe for ServiceConfig<'a>

    §

    impl<'a> !Send for ServiceConfig<'a>

    §

    impl<'a> !Sync for ServiceConfig<'a>

    §

    impl<'a> Unpin for ServiceConfig<'a>

    §

    impl<'a> !UnwindSafe for ServiceConfig<'a>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where diff --git a/paperclip_core/all.html b/paperclip_core/all.html index fe6370734..7e530a3af 100644 --- a/paperclip_core/all.html +++ b/paperclip_core/all.html @@ -1 +1 @@ -List of all items in this crate

    List of all items

    Structs

    Enums

    Traits

    Attribute Macros

    Derive Macros

    Functions

    Type Aliases

    Statics

    \ No newline at end of file +List of all items in this crate

    List of all items

    Structs

    Enums

    Traits

    Attribute Macros

    Derive Macros

    Functions

    Type Aliases

    Statics

    \ No newline at end of file diff --git a/paperclip_core/enum.ValidationError.html b/paperclip_core/enum.ValidationError.html index 2b36fd893..88cfcc85d 100644 --- a/paperclip_core/enum.ValidationError.html +++ b/paperclip_core/enum.ValidationError.html @@ -1,4 +1,4 @@ -ValidationError in paperclip_core - Rust

    Enum paperclip_core::ValidationError

    source ·
    pub enum ValidationError {
    +ValidationError in paperclip_core - Rust

    Enum paperclip_core::ValidationError

    source ·
    pub enum ValidationError {
         InvalidRefUri(String),
         MissingReference(String),
         MissingSchemaForBodyParameter(String, String),
    @@ -13,18 +13,18 @@
     
    §

    InvalidHeader(String, String)

    Some headers have special meaning in OpenAPI. The user cannot have these headers in their API spec.

    §

    InvalidParameterType(String, String, Option<DataType>, ParameterIn)

    Only arrays and primitive types are allowed in parameters.

    -

    Trait Implementations§

    source§

    impl Debug for ValidationError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for ValidationError

    source§

    fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Error for ValidationError

    1.30.0 · source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Debug for ValidationError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for ValidationError

    source§

    fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Error for ValidationError

    1.30.0 · source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip_core/im/index.html b/paperclip_core/im/index.html index 93c780873..f497e98d6 100644 --- a/paperclip_core/im/index.html +++ b/paperclip_core/im/index.html @@ -1,2 +1,2 @@ -paperclip_core::im - Rust

    Module paperclip_core::im

    source ·
    Expand description

    Interior mutability stuff.

    +paperclip_core::im - Rust

    Module paperclip_core::im

    source ·
    Expand description

    Interior mutability stuff.

    \ No newline at end of file diff --git a/paperclip_core/index.html b/paperclip_core/index.html index fe5ceb818..b285665d3 100644 --- a/paperclip_core/index.html +++ b/paperclip_core/index.html @@ -1,4 +1,4 @@ -paperclip_core - Rust

    Crate paperclip_core

    source ·
    Expand description

    Core structs and traits for paperclip.

    +paperclip_core - Rust

    Crate paperclip_core

    source ·
    Expand description

    Core structs and traits for paperclip.

    Modules§

    • Interior mutability stuff.
    • Core types and traits associated with the OpenAPI v2 specification.
    • Conversion traits and helps functions that help converting openapi v2 types to openapi v3. -For the OpenAPI v3 types the crate openapiv3 is used.

    Enums§

    \ No newline at end of file +For the OpenAPI v3 types the crate openapiv3 is used.

    Enums§

    \ No newline at end of file diff --git a/paperclip_core/util/fn.ready.html b/paperclip_core/util/fn.ready.html index adb3af453..9f35d3da7 100644 --- a/paperclip_core/util/fn.ready.html +++ b/paperclip_core/util/fn.ready.html @@ -1,2 +1,2 @@ -ready in paperclip_core::util - Rust

    Function paperclip_core::util::ready

    source ·
    pub fn ready<T>(t: T) -> Ready<T> 
    Expand description

    Unstabilized ready function.

    +ready in paperclip_core::util - Rust

    Function paperclip_core::util::ready

    source ·
    pub fn ready<T>(t: T) -> Ready<T> 
    Expand description

    Unstabilized ready function.

    \ No newline at end of file diff --git a/paperclip_core/util/index.html b/paperclip_core/util/index.html index 2a0e637af..6b02848e1 100644 --- a/paperclip_core/util/index.html +++ b/paperclip_core/util/index.html @@ -1 +1 @@ -paperclip_core::util - Rust

    Module paperclip_core::util

    source ·

    Structs§

    Functions§

    \ No newline at end of file +paperclip_core::util - Rust

    Module paperclip_core::util

    source ·

    Structs§

    Functions§

    \ No newline at end of file diff --git a/paperclip_core/util/struct.Ready.html b/paperclip_core/util/struct.Ready.html index a0b22f251..15620b730 100644 --- a/paperclip_core/util/struct.Ready.html +++ b/paperclip_core/util/struct.Ready.html @@ -1,15 +1,15 @@ -Ready in paperclip_core::util - Rust

    Struct paperclip_core::util::Ready

    source ·
    pub struct Ready<T>(/* private fields */);
    Expand description

    Unstabilized Ready future.

    -

    Trait Implementations§

    source§

    impl<T> Future for Ready<T>

    §

    type Output = T

    The type of value produced on completion.
    source§

    fn poll(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<T>

    Attempt to resolve the future to a final value, registering +Ready in paperclip_core::util - Rust

    Struct paperclip_core::util::Ready

    source ·
    pub struct Ready<T>(/* private fields */);
    Expand description

    Unstabilized Ready future.

    +

    Trait Implementations§

    source§

    impl<T> Future for Ready<T>

    §

    type Output = T

    The type of value produced on completion.
    source§

    fn poll(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<T>

    Attempts to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more
    source§

    impl<T> Unpin for Ready<T>

    Auto Trait Implementations§

    §

    impl<T> Freeze for Ready<T>
    where T: Freeze,

    §

    impl<T> RefUnwindSafe for Ready<T>
    where T: RefUnwindSafe,

    §

    impl<T> Send for Ready<T>
    where T: Send,

    §

    impl<T> Sync for Ready<T>
    where T: Sync,

    §

    impl<T> UnwindSafe for Ready<T>
    where - T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<F> Apiv2Operation for F
    where - F: Future<Output = HttpResponseWrapper>,

    source§

    fn operation() -> Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>

    Returns the definition for this operation.
    source§

    fn security_definitions() -> BTreeMap<String, SecurityScheme>

    Returns a map of security definitions that will be merged globally.
    source§

    fn definitions() -> BTreeMap<String, DefaultSchemaRaw>

    Returns the definitions used by this operation.
    source§

    fn is_visible() -> bool

    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<F> Apiv2Operation for F
    where + F: Future<Output = HttpResponseWrapper>,

    source§

    fn operation() -> Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>

    Returns the definition for this operation.
    source§

    fn security_definitions() -> BTreeMap<String, SecurityScheme>

    Returns a map of security definitions that will be merged globally.
    source§

    fn definitions() -> BTreeMap<String, DefaultSchemaRaw>

    Returns the definitions used by this operation.
    source§

    fn is_visible() -> bool

    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> FutureExt for T
    where T: Future + ?Sized,

    §

    fn map<U, F>(self, f: F) -> Map<Self, F>
    where F: FnOnce(Self::Output) -> U, diff --git a/paperclip_core/v2/attr.api_v2_errors.html b/paperclip_core/v2/attr.api_v2_errors.html index fbd85d20a..77fa7f117 100644 --- a/paperclip_core/v2/attr.api_v2_errors.html +++ b/paperclip_core/v2/attr.api_v2_errors.html @@ -1,3 +1,3 @@ -api_v2_errors in paperclip_core::v2 - Rust

    Attribute Macro paperclip_core::v2::api_v2_errors

    source ·
    #[api_v2_errors]
    Expand description

    Marker attribute for indicating that the marked object can represent non-2xx (error) +api_v2_errors in paperclip_core::v2 - Rust

    Attribute Macro paperclip_core::v2::api_v2_errors

    source ·
    #[api_v2_errors]
    Expand description

    Marker attribute for indicating that the marked object can represent non-2xx (error) status codes with optional descriptions.

    \ No newline at end of file diff --git a/paperclip_core/v2/attr.api_v2_errors_overlay.html b/paperclip_core/v2/attr.api_v2_errors_overlay.html index 736ff1554..67ab8ccf2 100644 --- a/paperclip_core/v2/attr.api_v2_errors_overlay.html +++ b/paperclip_core/v2/attr.api_v2_errors_overlay.html @@ -1,3 +1,3 @@ -api_v2_errors_overlay in paperclip_core::v2 - Rust

    Attribute Macro paperclip_core::v2::api_v2_errors_overlay

    source ·
    #[api_v2_errors_overlay]
    Expand description

    Marker attribute for indicating that the marked object can filter error responses from the +api_v2_errors_overlay in paperclip_core::v2 - Rust

    Attribute Macro paperclip_core::v2::api_v2_errors_overlay

    source ·
    #[api_v2_errors_overlay]
    Expand description

    Marker attribute for indicating that the marked object can filter error responses from the the #[api_v2_errors] macro.

    \ No newline at end of file diff --git a/paperclip_core/v2/attr.api_v2_operation.html b/paperclip_core/v2/attr.api_v2_operation.html index 4e8c94662..7bd265e92 100644 --- a/paperclip_core/v2/attr.api_v2_operation.html +++ b/paperclip_core/v2/attr.api_v2_operation.html @@ -1,2 +1,2 @@ -api_v2_operation in paperclip_core::v2 - Rust

    Attribute Macro paperclip_core::v2::api_v2_operation

    source ·
    #[api_v2_operation]
    Expand description

    Marker attribute for indicating that a function is an OpenAPI v2 compatible operation.

    +api_v2_operation in paperclip_core::v2 - Rust

    Attribute Macro paperclip_core::v2::api_v2_operation

    source ·
    #[api_v2_operation]
    Expand description

    Marker attribute for indicating that a function is an OpenAPI v2 compatible operation.

    \ No newline at end of file diff --git a/paperclip_core/v2/attr.api_v2_schema_struct.html b/paperclip_core/v2/attr.api_v2_schema_struct.html index 52f5caba2..d177b6e73 100644 --- a/paperclip_core/v2/attr.api_v2_schema_struct.html +++ b/paperclip_core/v2/attr.api_v2_schema_struct.html @@ -1,4 +1,4 @@ -api_v2_schema_struct in paperclip_core::v2 - Rust

    Attribute Macro paperclip_core::v2::api_v2_schema_struct

    source ·
    #[api_v2_schema_struct]
    Expand description

    Converts your struct to support deserializing from an OpenAPI v2 +api_v2_schema_struct in paperclip_core::v2 - Rust

    Attribute Macro paperclip_core::v2::api_v2_schema_struct

    source ·
    #[api_v2_schema_struct]
    Expand description

    Converts your struct to support deserializing from an OpenAPI v2 Schema object (example). This adds the necessary fields (in addition to your own fields) and implements the Schema trait for parsing and codegen.

    diff --git a/paperclip_core/v2/attr.delete.html b/paperclip_core/v2/attr.delete.html index 51b8b3109..7bdfc3cd5 100644 --- a/paperclip_core/v2/attr.delete.html +++ b/paperclip_core/v2/attr.delete.html @@ -1,10 +1,10 @@ -delete in paperclip_core::v2 - Rust

    Attribute Macro paperclip_core::v2::delete

    source ·
    #[delete]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. +delete in paperclip_core::v2 - Rust

    Attribute Macro paperclip_core::v2::delete

    source ·
    #[delete]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.

    §Syntax

    #[delete("path"[, attributes])]
     

    §Attributes

      -
    • "path" - Raw literal string with path for which to register handler.
    • +
    • "path" - Raw literal string with path for which to register handler.

    §Example

    /// use paperclip::actix::web::Json; diff --git a/paperclip_core/v2/attr.get.html b/paperclip_core/v2/attr.get.html index 7b97be6e0..67cbf235d 100644 --- a/paperclip_core/v2/attr.get.html +++ b/paperclip_core/v2/attr.get.html @@ -1,10 +1,10 @@ -get in paperclip_core::v2 - Rust

    Attribute Macro paperclip_core::v2::get

    source ·
    #[get]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. +get in paperclip_core::v2 - Rust

    Attribute Macro paperclip_core::v2::get

    source ·
    #[get]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.

    §Syntax

    #[get("path"[, attributes])]
     

    §Attributes

      -
    • "path" - Raw literal string with path for which to register handler.
    • +
    • "path" - Raw literal string with path for which to register handler.

    §Example

    /// use paperclip::actix::web::Json; diff --git a/paperclip_core/v2/attr.head.html b/paperclip_core/v2/attr.head.html index be7117012..1c530bd13 100644 --- a/paperclip_core/v2/attr.head.html +++ b/paperclip_core/v2/attr.head.html @@ -1,10 +1,10 @@ -head in paperclip_core::v2 - Rust

    Attribute Macro paperclip_core::v2::head

    source ·
    #[head]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. +head in paperclip_core::v2 - Rust

    Attribute Macro paperclip_core::v2::head

    source ·
    #[head]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.

    §Syntax

    #[head("path"[, attributes])]
     

    §Attributes

      -
    • "path" - Raw literal string with path for which to register handler.
    • +
    • "path" - Raw literal string with path for which to register handler.

    §Example

    /// use paperclip::actix::web::Json; diff --git a/paperclip_core/v2/attr.patch.html b/paperclip_core/v2/attr.patch.html index e85957ad6..350e7270a 100644 --- a/paperclip_core/v2/attr.patch.html +++ b/paperclip_core/v2/attr.patch.html @@ -1,10 +1,10 @@ -patch in paperclip_core::v2 - Rust

    Attribute Macro paperclip_core::v2::patch

    source ·
    #[patch]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. +patch in paperclip_core::v2 - Rust

    Attribute Macro paperclip_core::v2::patch

    source ·
    #[patch]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.

    §Syntax

    #[patch("path"[, attributes])]
     

    §Attributes

      -
    • "path" - Raw literal string with path for which to register handler.
    • +
    • "path" - Raw literal string with path for which to register handler.

    §Example

    /// use paperclip::actix::web::Json; diff --git a/paperclip_core/v2/attr.post.html b/paperclip_core/v2/attr.post.html index 1d169d262..b6000cf8c 100644 --- a/paperclip_core/v2/attr.post.html +++ b/paperclip_core/v2/attr.post.html @@ -1,10 +1,10 @@ -post in paperclip_core::v2 - Rust

    Attribute Macro paperclip_core::v2::post

    source ·
    #[post]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. +post in paperclip_core::v2 - Rust

    Attribute Macro paperclip_core::v2::post

    source ·
    #[post]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.

    §Syntax

    #[post("path"[, attributes])]
     

    §Attributes

      -
    • "path" - Raw literal string with path for which to register handler.
    • +
    • "path" - Raw literal string with path for which to register handler.

    §Example

    /// use paperclip::actix::web::Json; diff --git a/paperclip_core/v2/attr.put.html b/paperclip_core/v2/attr.put.html index 36d8f3126..fd3700e86 100644 --- a/paperclip_core/v2/attr.put.html +++ b/paperclip_core/v2/attr.put.html @@ -1,10 +1,10 @@ -put in paperclip_core::v2 - Rust

    Attribute Macro paperclip_core::v2::put

    source ·
    #[put]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. +put in paperclip_core::v2 - Rust

    Attribute Macro paperclip_core::v2::put

    source ·
    #[put]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.

    §Syntax

    #[put("path"[, attributes])]
     

    §Attributes

      -
    • "path" - Raw literal string with path for which to register handler.
    • +
    • "path" - Raw literal string with path for which to register handler.

    §Example

    /// use paperclip::actix::web::Json; diff --git a/paperclip_core/v2/derive.Apiv2Header.html b/paperclip_core/v2/derive.Apiv2Header.html index 2823e790e..32428ff5b 100644 --- a/paperclip_core/v2/derive.Apiv2Header.html +++ b/paperclip_core/v2/derive.Apiv2Header.html @@ -1,4 +1,4 @@ -Apiv2Header in paperclip_core::v2 - Rust

    Derive Macro paperclip_core::v2::Apiv2Header

    source ·
    #[derive(Apiv2Header)]
    +Apiv2Header in paperclip_core::v2 - Rust

    Derive Macro paperclip_core::v2::Apiv2Header

    source ·
    #[derive(Apiv2Header)]
     {
         // Attributes available to this derive:
         #[openapi]
    diff --git a/paperclip_core/v2/derive.Apiv2Schema.html b/paperclip_core/v2/derive.Apiv2Schema.html
    index f78c3f320..34fabb28c 100644
    --- a/paperclip_core/v2/derive.Apiv2Schema.html
    +++ b/paperclip_core/v2/derive.Apiv2Schema.html
    @@ -1,4 +1,4 @@
    -Apiv2Schema in paperclip_core::v2 - Rust

    Derive Macro paperclip_core::v2::Apiv2Schema

    source ·
    #[derive(Apiv2Schema)]
    +Apiv2Schema in paperclip_core::v2 - Rust

    Derive Macro paperclip_core::v2::Apiv2Schema

    source ·
    #[derive(Apiv2Schema)]
     {
         // Attributes available to this derive:
         #[openapi]
    diff --git a/paperclip_core/v2/derive.Apiv2Security.html b/paperclip_core/v2/derive.Apiv2Security.html
    index 9c7682d7b..d02db931e 100644
    --- a/paperclip_core/v2/derive.Apiv2Security.html
    +++ b/paperclip_core/v2/derive.Apiv2Security.html
    @@ -1,4 +1,4 @@
    -Apiv2Security in paperclip_core::v2 - Rust

    Derive Macro paperclip_core::v2::Apiv2Security

    source ·
    #[derive(Apiv2Security)]
    +Apiv2Security in paperclip_core::v2 - Rust

    Derive Macro paperclip_core::v2::Apiv2Security

    source ·
    #[derive(Apiv2Security)]
     {
         // Attributes available to this derive:
         #[openapi]
    diff --git a/paperclip_core/v2/index.html b/paperclip_core/v2/index.html
    index a9643639e..87711e41a 100644
    --- a/paperclip_core/v2/index.html
    +++ b/paperclip_core/v2/index.html
    @@ -1,9 +1,9 @@
    -paperclip_core::v2 - Rust

    Module paperclip_core::v2

    source ·
    Expand description

    Core types and traits associated with the +paperclip_core::v2 - Rust

    Module paperclip_core::v2

    source ·
    Expand description

    Core types and traits associated with the OpenAPI v2 specification.

    -

    Re-exports§

    Modules§

    • Models used by OpenAPI v2.
    • Traits used for code and spec generation.

    Structs§

    Traits§

    • Actix-specific trait for indicating that this entity can modify an operation -and/or update the global map of definitions.

    Attribute Macros§

    • Marker attribute for indicating that the marked object can represent non-2xx (error) -status codes with optional descriptions.
    • Marker attribute for indicating that the marked object can filter error responses from the -the #[api_v2_errors] macro.
    • Marker attribute for indicating that a function is an OpenAPI v2 compatible operation.
    • Converts your struct to support deserializing from an OpenAPI v2 +

    Re-exports§

    Modules§

    • Models used by OpenAPI v2.
    • Traits used for code and spec generation.

    Structs§

    Traits§

    • Actix-specific trait for indicating that this entity can modify an operation +and/or update the global map of definitions.

    Attribute Macros§

    • Marker attribute for indicating that the marked object can represent non-2xx (error) +status codes with optional descriptions.
    • Marker attribute for indicating that the marked object can filter error responses from the +the #[api_v2_errors] macro.
    • Marker attribute for indicating that a function is an OpenAPI v2 compatible operation.
    • Converts your struct to support deserializing from an OpenAPI v2 Schema object (example). This adds the necessary fields (in addition to your own fields) and implements the Schema trait for parsing and codegen.
    • Creates route handler with paperclip::actix::web::Resource. @@ -18,4 +18,4 @@ In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.
    • Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the -trait actix_web::Responder.

    Derive Macros§

    • Derive attribute for indicating that a type is an OpenAPI v2 compatible header parameter.
    • Derive attribute for indicating that a type is an OpenAPI v2 compatible definition.
    • Marker attribute for indicating that an object forbids public access to operation (for example AccessToken).
    \ No newline at end of file +trait actix_web::Responder.

    Derive Macros§

    • Derive attribute for indicating that a type is an OpenAPI v2 compatible header parameter.
    • Derive attribute for indicating that a type is an OpenAPI v2 compatible definition.
    • Marker attribute for indicating that an object forbids public access to operation (for example AccessToken).
    \ No newline at end of file diff --git a/paperclip_core/v2/models/enum.CollectionFormat.html b/paperclip_core/v2/models/enum.CollectionFormat.html index 578e38eb7..274ee0aa6 100644 --- a/paperclip_core/v2/models/enum.CollectionFormat.html +++ b/paperclip_core/v2/models/enum.CollectionFormat.html @@ -1,25 +1,25 @@ -CollectionFormat in paperclip_core::v2::models - Rust

    Enum paperclip_core::v2::models::CollectionFormat

    source ·
    pub enum CollectionFormat {
    +CollectionFormat in paperclip_core::v2::models - Rust

    Enum paperclip_core::v2::models::CollectionFormat

    source ·
    pub enum CollectionFormat {
         Csv,
         Ssv,
         Tsv,
         Pipes,
         Multi,
     }
    Expand description

    Possible formats for array values in parameter.

    -

    Variants§

    §

    Csv

    §

    Ssv

    §

    Tsv

    §

    Pipes

    §

    Multi

    Trait Implementations§

    source§

    impl Clone for CollectionFormat

    source§

    fn clone(&self) -> CollectionFormat

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for CollectionFormat

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for CollectionFormat

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for CollectionFormat

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Ord for CollectionFormat

    source§

    fn cmp(&self, other: &CollectionFormat) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for CollectionFormat

    source§

    fn eq(&self, other: &CollectionFormat) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for CollectionFormat

    source§

    fn partial_cmp(&self, other: &CollectionFormat) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Serialize for CollectionFormat

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Copy for CollectionFormat

    source§

    impl Eq for CollectionFormat

    source§

    impl StructuralPartialEq for CollectionFormat

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where +

    Variants§

    §

    Csv

    §

    Ssv

    §

    Tsv

    §

    Pipes

    §

    Multi

    Trait Implementations§

    source§

    impl Clone for CollectionFormat

    source§

    fn clone(&self) -> CollectionFormat

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for CollectionFormat

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for CollectionFormat

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for CollectionFormat

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Ord for CollectionFormat

    source§

    fn cmp(&self, other: &CollectionFormat) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for CollectionFormat

    source§

    fn eq(&self, other: &CollectionFormat) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl PartialOrd for CollectionFormat

    source§

    fn partial_cmp(&self, other: &CollectionFormat) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    source§

    impl Serialize for CollectionFormat

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Copy for CollectionFormat

    source§

    impl Eq for CollectionFormat

    source§

    impl StructuralPartialEq for CollectionFormat

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn compare(&self, key: &K) -> Ordering

    Compare self to key and return their ordering.
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, @@ -34,12 +34,12 @@ U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/enum.DataType.html b/paperclip_core/v2/models/enum.DataType.html index 13633b314..08a23ab12 100644 --- a/paperclip_core/v2/models/enum.DataType.html +++ b/paperclip_core/v2/models/enum.DataType.html @@ -1,4 +1,4 @@ -DataType in paperclip_core::v2::models - Rust

    Enum paperclip_core::v2::models::DataType

    source ·
    pub enum DataType {
    +DataType in paperclip_core::v2::models - Rust

    Enum paperclip_core::v2::models::DataType

    source ·
    pub enum DataType {
         Integer,
         Number,
         String,
    @@ -8,16 +8,15 @@
         File,
     }
    Expand description

    Supported data types.

    Variants§

    §

    Integer

    §

    Number

    §

    String

    §

    Boolean

    §

    Array

    §

    Object

    §

    File

    Implementations§

    source§

    impl DataType

    source

    pub fn is_primitive(self) -> bool

    Checks if this is a primitive type.

    -

    Trait Implementations§

    source§

    impl Clone for DataType

    source§

    fn clone(&self) -> DataType

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for DataType

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for DataType

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<DataTypeFormat> for DataType

    source§

    fn from(src: DataTypeFormat) -> Self

    Converts to this type from the input type.
    source§

    impl PartialEq for DataType

    source§

    fn eq(&self, other: &DataType) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Serialize for DataType

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Copy for DataType

    source§

    impl Eq for DataType

    source§

    impl StructuralPartialEq for DataType

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Equivalent<K> for Q
    where +

    Trait Implementations§

    source§

    impl Clone for DataType

    source§

    fn clone(&self) -> DataType

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for DataType

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for DataType

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<DataTypeFormat> for DataType

    source§

    fn from(src: DataTypeFormat) -> Self

    Converts to this type from the input type.
    source§

    impl PartialEq for DataType

    source§

    fn eq(&self, other: &DataType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl Serialize for DataType

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Copy for DataType

    source§

    impl Eq for DataType

    source§

    impl StructuralPartialEq for DataType

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

    §

    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
    where Q: Eq + ?Sized, @@ -30,12 +29,12 @@ U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/enum.DataTypeFormat.html b/paperclip_core/v2/models/enum.DataTypeFormat.html index 485eb028b..780c659f2 100644 --- a/paperclip_core/v2/models/enum.DataTypeFormat.html +++ b/paperclip_core/v2/models/enum.DataTypeFormat.html @@ -1,4 +1,4 @@ -DataTypeFormat in paperclip_core::v2::models - Rust

    Enum paperclip_core::v2::models::DataTypeFormat

    source ·
    pub enum DataTypeFormat {
    +DataTypeFormat in paperclip_core::v2::models - Rust

    Enum paperclip_core::v2::models::DataTypeFormat

    source ·
    pub enum DataTypeFormat {
     
    Show 15 variants Int32, Int64, Float, @@ -15,15 +15,14 @@ IpV6, Other,
    }
    Expand description

    Supported data type formats.

    -

    Variants§

    §

    Int32

    §

    Int64

    §

    Float

    §

    Double

    §

    Byte

    §

    Binary

    §

    Date

    §

    DateTime

    §

    Password

    §

    Url

    §

    Uuid

    §

    Ip

    §

    IpV4

    §

    IpV6

    §

    Other

    Trait Implementations§

    source§

    impl Clone for DataTypeFormat

    source§

    fn clone(&self) -> DataTypeFormat

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for DataTypeFormat

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for DataTypeFormat

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<DataTypeFormat> for DataType

    source§

    fn from(src: DataTypeFormat) -> Self

    Converts to this type from the input type.
    source§

    impl PartialEq for DataTypeFormat

    source§

    fn eq(&self, other: &DataTypeFormat) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Serialize for DataTypeFormat

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl ToString for DataTypeFormat

    source§

    fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl Eq for DataTypeFormat

    source§

    impl StructuralPartialEq for DataTypeFormat

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Equivalent<K> for Q
    where +

    Variants§

    §

    Int32

    §

    Int64

    §

    Float

    §

    Double

    §

    Byte

    §

    Binary

    §

    Date

    §

    DateTime

    §

    Password

    §

    Url

    §

    Uuid

    §

    Ip

    §

    IpV4

    §

    IpV6

    §

    Other

    Trait Implementations§

    source§

    impl Clone for DataTypeFormat

    source§

    fn clone(&self) -> DataTypeFormat

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for DataTypeFormat

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for DataTypeFormat

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<DataTypeFormat> for DataType

    source§

    fn from(src: DataTypeFormat) -> Self

    Converts to this type from the input type.
    source§

    impl PartialEq for DataTypeFormat

    source§

    fn eq(&self, other: &DataTypeFormat) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl Serialize for DataTypeFormat

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl ToString for DataTypeFormat

    source§

    fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl Eq for DataTypeFormat

    source§

    impl StructuralPartialEq for DataTypeFormat

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

    §

    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
    where Q: Eq + ?Sized, @@ -36,12 +35,12 @@ U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/enum.Either.html b/paperclip_core/v2/models/enum.Either.html index e8731f360..ad429a48a 100644 --- a/paperclip_core/v2/models/enum.Either.html +++ b/paperclip_core/v2/models/enum.Either.html @@ -1,4 +1,4 @@ -Either in paperclip_core::v2::models - Rust

    Enum paperclip_core::v2::models::Either

    source ·
    pub enum Either<L, R> {
    +Either in paperclip_core::v2::models - Rust

    Enum paperclip_core::v2::models::Either

    source ·
    pub enum Either<L, R> {
         Left(L),
         Right(R),
     }
    Expand description

    Either from “either” crate. We can’t use that crate because @@ -7,13 +7,13 @@

    source

    pub fn right_mut(&mut self) -> Option<&mut R>

    Get a mutable reference to the right variant (if it exists).

    source

    pub fn left(&self) -> Option<&L>

    Get a readable reference to the left variant (if it exists).

    source

    pub fn left_mut(&mut self) -> Option<&mut L>

    Get a mutable reference to the left variant (if it exists).

    -

    Trait Implementations§

    source§

    impl<L: Clone, R: Clone> Clone for Either<L, R>

    source§

    fn clone(&self) -> Either<L, R>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<L: Debug, R: Debug> Debug for Either<L, R>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<T> Deref for Either<Reference, T>

    §

    type Target = T

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    source§

    impl<T> DerefMut for Either<Reference, T>

    source§

    fn deref_mut(&mut self) -> &mut Self::Target

    Mutably dereferences the value.
    source§

    impl<'de, L, R> Deserialize<'de> for Either<L, R>
    where - L: Deserialize<'de>, - R: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Parameter<DefaultSchemaRaw>> for Either<Parameter, Either<RequestBody, Option<Schema>>>

    source§

    fn from(v2: DefaultParameterRaw) -> Self

    Converts to this type from the input type.
    source§

    impl<L, R> Serialize for Either<L, R>
    where - L: Serialize, - R: Serialize,

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<L, R> Freeze for Either<L, R>
    where +

    Trait Implementations§

    source§

    impl<L: Clone, R: Clone> Clone for Either<L, R>

    source§

    fn clone(&self) -> Either<L, R>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<L: Debug, R: Debug> Debug for Either<L, R>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<T> Deref for Either<Reference, T>

    §

    type Target = T

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    source§

    impl<T> DerefMut for Either<Reference, T>

    source§

    fn deref_mut(&mut self) -> &mut Self::Target

    Mutably dereferences the value.
    source§

    impl<'de, L, R> Deserialize<'de> for Either<L, R>
    where + L: Deserialize<'de>, + R: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Parameter<DefaultSchemaRaw>> for Either<Parameter, Either<RequestBody, Option<Schema>>>

    source§

    fn from(v2: DefaultParameterRaw) -> Self

    Converts to this type from the input type.
    source§

    impl<L, R> Serialize for Either<L, R>
    where + L: Serialize, + R: Serialize,

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<L, R> Freeze for Either<L, R>
    where L: Freeze, R: Freeze,

    §

    impl<L, R> RefUnwindSafe for Either<L, R>
    where L: RefUnwindSafe, @@ -25,11 +25,11 @@ L: Unpin, R: Unpin,

    §

    impl<L, R> UnwindSafe for Either<L, R>
    where L: UnwindSafe, - R: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + R: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where @@ -38,14 +38,14 @@ From<T> for U chooses to do.

    §

    impl<T, P> Resource for T
    where T: DerefMut<Target = Path<P>>, - P: ResourcePath,

    §

    type Path = P

    Type of resource’s path returned in resource_path.
    §

    fn resource_path(&mut self) -> &mut Path<<T as Resource>::Path>

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + P: ResourcePath,

    §

    type Path = P

    Type of resource’s path returned in resource_path.
    §

    fn resource_path(&mut self) -> &mut Path<<T as Resource>::Path>

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    §

    impl<T> Formattable for T
    where +[WithDispatch] wrapper. Read more

    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    §

    impl<T> Formattable for T
    where T: Deref, <T as Deref>::Target: Formattable,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/enum.HttpMethod.html b/paperclip_core/v2/models/enum.HttpMethod.html index 9986a53b1..65a319131 100644 --- a/paperclip_core/v2/models/enum.HttpMethod.html +++ b/paperclip_core/v2/models/enum.HttpMethod.html @@ -1,4 +1,4 @@ -HttpMethod in paperclip_core::v2::models - Rust

    Enum paperclip_core::v2::models::HttpMethod

    source ·
    pub enum HttpMethod {
    +HttpMethod in paperclip_core::v2::models - Rust

    Enum paperclip_core::v2::models::HttpMethod

    source ·
    pub enum HttpMethod {
         Get,
         Put,
         Post,
    @@ -8,21 +8,21 @@
         Patch,
     }
    Expand description

    The HTTP method used for an operation.

    Variants§

    §

    Get

    §

    Put

    §

    Post

    §

    Delete

    §

    Options

    §

    Head

    §

    Patch

    Implementations§

    source§

    impl HttpMethod

    source

    pub fn allows_body(self) -> bool

    Whether this method allows body in requests.

    -

    Trait Implementations§

    source§

    impl Clone for HttpMethod

    source§

    fn clone(&self) -> HttpMethod

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for HttpMethod

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for HttpMethod

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Display for HttpMethod

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl From<&Method> for HttpMethod

    source§

    fn from(method: &Method) -> HttpMethod

    Converts to this type from the input type.
    source§

    impl Ord for HttpMethod

    source§

    fn cmp(&self, other: &HttpMethod) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for HttpMethod

    source§

    fn eq(&self, other: &HttpMethod) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for HttpMethod

    source§

    fn partial_cmp(&self, other: &HttpMethod) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Serialize for HttpMethod

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Copy for HttpMethod

    source§

    impl Eq for HttpMethod

    source§

    impl StructuralPartialEq for HttpMethod

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where +

    Trait Implementations§

    source§

    impl Clone for HttpMethod

    source§

    fn clone(&self) -> HttpMethod

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for HttpMethod

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for HttpMethod

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Display for HttpMethod

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl From<&Method> for HttpMethod

    source§

    fn from(method: &Method) -> HttpMethod

    Converts to this type from the input type.
    source§

    impl Ord for HttpMethod

    source§

    fn cmp(&self, other: &HttpMethod) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for HttpMethod

    source§

    fn eq(&self, other: &HttpMethod) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl PartialOrd for HttpMethod

    source§

    fn partial_cmp(&self, other: &HttpMethod) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    source§

    impl Serialize for HttpMethod

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Copy for HttpMethod

    source§

    impl Eq for HttpMethod

    source§

    impl StructuralPartialEq for HttpMethod

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn compare(&self, key: &K) -> Ordering

    Compare self to key and return their ordering.
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, @@ -37,13 +37,13 @@ U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T> ToString for T
    where - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/enum.OperationProtocol.html b/paperclip_core/v2/models/enum.OperationProtocol.html index 5073e26a1..4927378da 100644 --- a/paperclip_core/v2/models/enum.OperationProtocol.html +++ b/paperclip_core/v2/models/enum.OperationProtocol.html @@ -1,24 +1,24 @@ -OperationProtocol in paperclip_core::v2::models - Rust

    Enum paperclip_core::v2::models::OperationProtocol

    source ·
    pub enum OperationProtocol {
    +OperationProtocol in paperclip_core::v2::models - Rust

    Enum paperclip_core::v2::models::OperationProtocol

    source ·
    pub enum OperationProtocol {
         Http,
         Https,
         Ws,
         Wss,
     }
    Expand description

    The protocol used for an operation.

    -

    Variants§

    §

    Http

    §

    Https

    §

    Ws

    §

    Wss

    Trait Implementations§

    source§

    impl Clone for OperationProtocol

    source§

    fn clone(&self) -> OperationProtocol

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for OperationProtocol

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for OperationProtocol

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Ord for OperationProtocol

    source§

    fn cmp(&self, other: &OperationProtocol) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for OperationProtocol

    source§

    fn eq(&self, other: &OperationProtocol) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for OperationProtocol

    source§

    fn partial_cmp(&self, other: &OperationProtocol) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Serialize for OperationProtocol

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Copy for OperationProtocol

    source§

    impl Eq for OperationProtocol

    source§

    impl StructuralPartialEq for OperationProtocol

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where +

    Variants§

    §

    Http

    §

    Https

    §

    Ws

    §

    Wss

    Trait Implementations§

    source§

    impl Clone for OperationProtocol

    source§

    fn clone(&self) -> OperationProtocol

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for OperationProtocol

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for OperationProtocol

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Ord for OperationProtocol

    source§

    fn cmp(&self, other: &OperationProtocol) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for OperationProtocol

    source§

    fn eq(&self, other: &OperationProtocol) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl PartialOrd for OperationProtocol

    source§

    fn partial_cmp(&self, other: &OperationProtocol) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    source§

    impl Serialize for OperationProtocol

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Copy for OperationProtocol

    source§

    impl Eq for OperationProtocol

    source§

    impl StructuralPartialEq for OperationProtocol

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn compare(&self, key: &K) -> Ordering

    Compare self to key and return their ordering.
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, @@ -33,12 +33,12 @@ U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/enum.ParameterIn.html b/paperclip_core/v2/models/enum.ParameterIn.html index 8b6f73498..a51d39cae 100644 --- a/paperclip_core/v2/models/enum.ParameterIn.html +++ b/paperclip_core/v2/models/enum.ParameterIn.html @@ -1,26 +1,26 @@ -ParameterIn in paperclip_core::v2::models - Rust

    Enum paperclip_core::v2::models::ParameterIn

    source ·
    pub enum ParameterIn {
    +ParameterIn in paperclip_core::v2::models - Rust

    Enum paperclip_core::v2::models::ParameterIn

    source ·
    pub enum ParameterIn {
         Query,
         Header,
         Path,
         FormData,
         Body,
     }
    Expand description

    The location of the parameter.

    -

    Variants§

    §

    Query

    §

    Header

    §

    Path

    §

    FormData

    §

    Body

    Trait Implementations§

    source§

    impl Clone for ParameterIn

    source§

    fn clone(&self) -> ParameterIn

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for ParameterIn

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for ParameterIn

    NOTE: This is just a stub. This is usually set explicitly.

    -
    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for ParameterIn

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Ord for ParameterIn

    source§

    fn cmp(&self, other: &ParameterIn) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for ParameterIn

    source§

    fn eq(&self, other: &ParameterIn) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for ParameterIn

    source§

    fn partial_cmp(&self, other: &ParameterIn) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Serialize for ParameterIn

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Copy for ParameterIn

    source§

    impl Eq for ParameterIn

    source§

    impl StructuralPartialEq for ParameterIn

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where +

    Variants§

    §

    Query

    §

    Header

    §

    Path

    §

    FormData

    §

    Body

    Trait Implementations§

    source§

    impl Clone for ParameterIn

    source§

    fn clone(&self) -> ParameterIn

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for ParameterIn

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for ParameterIn

    NOTE: This is just a stub. This is usually set explicitly.

    +
    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for ParameterIn

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Ord for ParameterIn

    source§

    fn cmp(&self, other: &ParameterIn) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for ParameterIn

    source§

    fn eq(&self, other: &ParameterIn) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl PartialOrd for ParameterIn

    source§

    fn partial_cmp(&self, other: &ParameterIn) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    source§

    impl Serialize for ParameterIn

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Copy for ParameterIn

    source§

    impl Eq for ParameterIn

    source§

    impl StructuralPartialEq for ParameterIn

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn compare(&self, key: &K) -> Ordering

    Compare self to key and return their ordering.
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, @@ -35,12 +35,12 @@ U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/enum.Resolvable.html b/paperclip_core/v2/models/enum.Resolvable.html index 8408943ad..01fdb48ce 100644 --- a/paperclip_core/v2/models/enum.Resolvable.html +++ b/paperclip_core/v2/models/enum.Resolvable.html @@ -1,4 +1,4 @@ -Resolvable in paperclip_core::v2::models - Rust

    Enum paperclip_core::v2::models::Resolvable

    source ·
    pub enum Resolvable<S> {
    +Resolvable in paperclip_core::v2::models - Rust

    Enum paperclip_core::v2::models::Resolvable

    source ·
    pub enum Resolvable<S> {
         Raw(Arc<RwLock<S>>),
         Resolved {
             new: Arc<RwLock<S>>,
    @@ -9,29 +9,29 @@
     (i.e., the one where $ref references point to the actual schema).

    Variants§

    §

    Raw(Arc<RwLock<S>>)

    §

    Resolved

    Fields

    §new: Arc<RwLock<S>>
    §old: Arc<RwLock<S>>

    Implementations§

    source§

    impl<S> Resolvable<S>
    where S: Schema,

    source

    pub fn get_description(&self) -> Option<String>

    Fetch the description for this schema.

    -

    Trait Implementations§

    source§

    impl<S> Clone for Resolvable<S>

    source§

    fn clone(&self) -> Self

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<S: Debug> Debug for Resolvable<S>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<S: Default> Default for Resolvable<S>

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl<S> Deref for Resolvable<S>

    §

    type Target = Arc<RwLock<S>>

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    source§

    impl<S> DerefMut for Resolvable<S>

    source§

    fn deref_mut(&mut self) -> &mut Self::Target

    Mutably dereferences the value.
    source§

    impl<'de, S> Deserialize<'de> for Resolvable<S>
    where - S: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl<S> From<S> for Resolvable<S>

    source§

    fn from(t: S) -> Self

    Converts to this type from the input type.
    source§

    impl<T> Serialize for Resolvable<T>
    where - T: Serialize,

    source§

    fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
    where - S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<S> Freeze for Resolvable<S>

    §

    impl<S> RefUnwindSafe for Resolvable<S>

    §

    impl<S> Send for Resolvable<S>
    where +

    Trait Implementations§

    source§

    impl<S> Clone for Resolvable<S>

    source§

    fn clone(&self) -> Self

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<S: Debug> Debug for Resolvable<S>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<S: Default> Default for Resolvable<S>

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl<S> Deref for Resolvable<S>

    §

    type Target = Arc<RwLock<S>>

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    source§

    impl<S> DerefMut for Resolvable<S>

    source§

    fn deref_mut(&mut self) -> &mut Self::Target

    Mutably dereferences the value.
    source§

    impl<'de, S> Deserialize<'de> for Resolvable<S>
    where + S: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl<S> From<S> for Resolvable<S>

    source§

    fn from(t: S) -> Self

    Converts to this type from the input type.
    source§

    impl<T> Serialize for Resolvable<T>
    where + T: Serialize,

    source§

    fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
    where + S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<S> Freeze for Resolvable<S>

    §

    impl<S> RefUnwindSafe for Resolvable<S>

    §

    impl<S> Send for Resolvable<S>
    where S: Send + Sync,

    §

    impl<S> Sync for Resolvable<S>
    where - S: Send + Sync,

    §

    impl<S> Unpin for Resolvable<S>

    §

    impl<S> UnwindSafe for Resolvable<S>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<!> for T

    source§

    fn from(t: !) -> T

    Converts to this type from the input type.
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + S: Send + Sync,
    §

    impl<S> Unpin for Resolvable<S>

    §

    impl<S> UnwindSafe for Resolvable<S>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<!> for T

    source§

    fn from(t: !) -> T

    Converts to this type from the input type.
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/enum.SpecFormat.html b/paperclip_core/v2/models/enum.SpecFormat.html index 8e396551a..4b26748a5 100644 --- a/paperclip_core/v2/models/enum.SpecFormat.html +++ b/paperclip_core/v2/models/enum.SpecFormat.html @@ -1,17 +1,16 @@ -SpecFormat in paperclip_core::v2::models - Rust

    Enum paperclip_core::v2::models::SpecFormat

    source ·
    pub enum SpecFormat {
    +SpecFormat in paperclip_core::v2::models - Rust

    Enum paperclip_core::v2::models::SpecFormat

    source ·
    pub enum SpecFormat {
         Json,
         Yaml,
     }
    Expand description

    The format used by spec (JSON/YAML).

    Variants§

    §

    Json

    §

    Yaml

    Implementations§

    source§

    impl SpecFormat

    source

    pub fn coder(self) -> Arc<Coder>

    The en/decoder used for this format.

    source

    pub fn mime(self) -> &'static MediaRange

    The mime for this format.

    -

    Trait Implementations§

    source§

    impl Clone for SpecFormat

    source§

    fn clone(&self) -> SpecFormat

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for SpecFormat

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for SpecFormat

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl PartialEq for SpecFormat

    source§

    fn eq(&self, other: &SpecFormat) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for SpecFormat

    source§

    impl Eq for SpecFormat

    source§

    impl StructuralPartialEq for SpecFormat

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Equivalent<K> for Q
    where +

    Trait Implementations§

    source§

    impl Clone for SpecFormat

    source§

    fn clone(&self) -> SpecFormat

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for SpecFormat

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for SpecFormat

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl PartialEq for SpecFormat

    source§

    fn eq(&self, other: &SpecFormat) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl Copy for SpecFormat

    source§

    impl Eq for SpecFormat

    source§

    impl StructuralPartialEq for SpecFormat

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

    §

    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
    where Q: Eq + ?Sized, @@ -24,8 +23,8 @@ U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip_core/v2/models/enum.Version.html b/paperclip_core/v2/models/enum.Version.html index 7e58b7e2c..16ed30565 100644 --- a/paperclip_core/v2/models/enum.Version.html +++ b/paperclip_core/v2/models/enum.Version.html @@ -1,16 +1,15 @@ -Version in paperclip_core::v2::models - Rust

    Enum paperclip_core::v2::models::Version

    source ·
    pub enum Version {
    +Version in paperclip_core::v2::models - Rust

    Enum paperclip_core::v2::models::Version

    source ·
    pub enum Version {
         V2,
     }
    Expand description

    OpenAPI version.

    -

    Variants§

    §

    V2

    Trait Implementations§

    source§

    impl Clone for Version

    source§

    fn clone(&self) -> Version

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Version

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Version

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Version

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl PartialEq for Version

    source§

    fn eq(&self, other: &Version) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Serialize for Version

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Copy for Version

    source§

    impl Eq for Version

    source§

    impl StructuralPartialEq for Version

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Equivalent<K> for Q
    where +

    Variants§

    §

    V2

    Trait Implementations§

    source§

    impl Clone for Version

    source§

    fn clone(&self) -> Version

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Version

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Version

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Version

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl PartialEq for Version

    source§

    fn eq(&self, other: &Version) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl Serialize for Version

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Copy for Version

    source§

    impl Eq for Version

    source§

    impl StructuralPartialEq for Version

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Copy,

    source§

    unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

    §

    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
    where Q: Eq + ?Sized, @@ -23,12 +22,12 @@ U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/index.html b/paperclip_core/v2/models/index.html index ce736e22c..3cb4718aa 100644 --- a/paperclip_core/v2/models/index.html +++ b/paperclip_core/v2/models/index.html @@ -1,5 +1,5 @@ -paperclip_core::v2::models - Rust

    Module paperclip_core::v2::models

    source ·
    Expand description

    Models used by OpenAPI v2.

    -

    Structs§

    Enums§

    • Possible formats for array values in parameter.
    • Supported data types.
    • Supported data type formats.
    • Either from “either” crate. We can’t use that crate because -we don’t want the enum to be tagged during de/serialization.
    • The HTTP method used for an operation.
    • The protocol used for an operation.
    • The location of the parameter.
    • Wrapper for schema. This uses Arc<RwLock<S>> for interior +paperclip_core::v2::models - Rust

      Module paperclip_core::v2::models

      source ·
      Expand description

      Models used by OpenAPI v2.

      +

      Structs§

      Enums§

      • Possible formats for array values in parameter.
      • Supported data types.
      • Supported data type formats.
      • Either from “either” crate. We can’t use that crate because +we don’t want the enum to be tagged during de/serialization.
      • The HTTP method used for an operation.
      • The protocol used for an operation.
      • The location of the parameter.
      • Wrapper for schema. This uses Arc<RwLock<S>> for interior mutability and differentiates raw schema from resolved schema -(i.e., the one where $ref references point to the actual schema).
      • The format used by spec (JSON/YAML).
      • OpenAPI version.

      Statics§

      Type Aliases§

      \ No newline at end of file +(i.e., the one where $ref references point to the actual schema).
    • The format used by spec (JSON/YAML).
    • OpenAPI version.

    Statics§

    Type Aliases§

    \ No newline at end of file diff --git a/paperclip_core/v2/models/static.JSON_CODER.html b/paperclip_core/v2/models/static.JSON_CODER.html index 1f8d50542..95d3edc18 100644 --- a/paperclip_core/v2/models/static.JSON_CODER.html +++ b/paperclip_core/v2/models/static.JSON_CODER.html @@ -1,2 +1,2 @@ -JSON_CODER in paperclip_core::v2::models - Rust

    Static paperclip_core::v2::models::JSON_CODER

    source ·
    pub static JSON_CODER: Lazy<Arc<Coder>>
    Expand description

    Default coder for JSON.

    +JSON_CODER in paperclip_core::v2::models - Rust

    Static paperclip_core::v2::models::JSON_CODER

    source ·
    pub static JSON_CODER: Lazy<Arc<Coder>>
    Expand description

    Default coder for JSON.

    \ No newline at end of file diff --git a/paperclip_core/v2/models/static.JSON_MIME.html b/paperclip_core/v2/models/static.JSON_MIME.html index 493e4ff0a..dfcb3fd98 100644 --- a/paperclip_core/v2/models/static.JSON_MIME.html +++ b/paperclip_core/v2/models/static.JSON_MIME.html @@ -1,2 +1,2 @@ -JSON_MIME in paperclip_core::v2::models - Rust

    Static paperclip_core::v2::models::JSON_MIME

    source ·
    pub static JSON_MIME: Lazy<MediaRange>
    Expand description

    Media range for JSON.

    +JSON_MIME in paperclip_core::v2::models - Rust

    Static paperclip_core::v2::models::JSON_MIME

    source ·
    pub static JSON_MIME: Lazy<MediaRange>
    Expand description

    Media range for JSON.

    \ No newline at end of file diff --git a/paperclip_core/v2/models/static.YAML_CODER.html b/paperclip_core/v2/models/static.YAML_CODER.html index 4ea9ff42e..9544da8a7 100644 --- a/paperclip_core/v2/models/static.YAML_CODER.html +++ b/paperclip_core/v2/models/static.YAML_CODER.html @@ -1,2 +1,2 @@ -YAML_CODER in paperclip_core::v2::models - Rust

    Static paperclip_core::v2::models::YAML_CODER

    source ·
    pub static YAML_CODER: Lazy<Arc<Coder>>
    Expand description

    Default coder for YAML.

    +YAML_CODER in paperclip_core::v2::models - Rust

    Static paperclip_core::v2::models::YAML_CODER

    source ·
    pub static YAML_CODER: Lazy<Arc<Coder>>
    Expand description

    Default coder for YAML.

    \ No newline at end of file diff --git a/paperclip_core/v2/models/static.YAML_MIME.html b/paperclip_core/v2/models/static.YAML_MIME.html index 513bc1867..3be7e3137 100644 --- a/paperclip_core/v2/models/static.YAML_MIME.html +++ b/paperclip_core/v2/models/static.YAML_MIME.html @@ -1,2 +1,2 @@ -YAML_MIME in paperclip_core::v2::models - Rust

    Static paperclip_core::v2::models::YAML_MIME

    source ·
    pub static YAML_MIME: Lazy<MediaRange>
    Expand description

    Media range for YAML.

    +YAML_MIME in paperclip_core::v2::models - Rust

    Static paperclip_core::v2::models::YAML_MIME

    source ·
    pub static YAML_MIME: Lazy<MediaRange>
    Expand description

    Media range for YAML.

    \ No newline at end of file diff --git a/paperclip_core/v2/models/struct.Api.html b/paperclip_core/v2/models/struct.Api.html index 6f7b2cf5f..021e2f610 100644 --- a/paperclip_core/v2/models/struct.Api.html +++ b/paperclip_core/v2/models/struct.Api.html @@ -1,4 +1,4 @@ -Api in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::Api

    source ·
    pub struct Api<P, R, S> {
    Show 19 fields +Api in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::Api

    source ·
    pub struct Api<P, R, S> {
    Show 19 fields pub swagger: Version, pub definitions: BTreeMap<String, S>, pub paths: BTreeMap<String, PathItem<P, R>>, @@ -17,7 +17,7 @@ pub support_crates: BTreeMap<String, String>, pub spec_format: SpecFormat, pub info: Info, - pub extensions: BTreeMap<String, Value>, + pub extensions: BTreeMap<String, Value>,
    }
    Expand description

    OpenAPI v2 (swagger) spec generic over parameter and schema.

    https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#swagger-object

    Fields§

    §swagger: Version§definitions: BTreeMap<String, S>§paths: BTreeMap<String, PathItem<P, R>>§host: Option<String>§base_path: Option<String>§consumes: BTreeSet<MediaRange>§produces: BTreeSet<MediaRange>§schemes: BTreeSet<OperationProtocol>§parameters: BTreeMap<String, P>§responses: BTreeMap<String, R>§security_definitions: BTreeMap<String, SecurityScheme>§security: Vec<BTreeMap<String, BTreeSet<String>>>§tags: Vec<Tag>§external_docs: Option<ExternalDocs>§coders: Coders

    Extension for custom coders to be used for decoding API objects.

    @@ -37,13 +37,13 @@ wherever required.

    For example, the following are all valid:

      -
    • my_crate: "0.7"
    • -
    • my_crate: "{ git = \"git://foo.bar/repo\" }"
    • -
    • my_crate: "{ version = \"0.9\", features = [\"booya\"] }"
    • +
    • my_crate: "0.7"
    • +
    • my_crate: "{ git = \"git://foo.bar/repo\" }"
    • +
    • my_crate: "{ version = \"0.9\", features = [\"booya\"] }"
    §spec_format: SpecFormat

    This field is set manually, because we don’t know the format in which the spec was provided and we need to use this as the fallback encoding.

    -
    §info: Info§extensions: BTreeMap<String, Value>

    Implementations§

    source§

    impl<P, R, S> Api<P, R, S>

    §info: Info§extensions: BTreeMap<String, Value>

    Implementations§

    source§

    impl<P, R, S> Api<P, R, S>

    source

    pub fn path_parameters_map( path: &str, f: impl FnMut(&str) -> Cow<'static, str>, ) -> Cow<'_, str>

    Gets the parameters from the given path template and calls @@ -53,15 +53,15 @@

    This walks recursively, collects the referenced schema objects, substitutes the referenced IDs with the pointer to schema objects and returns the resolved object or an error if it encountered one.

    -

    Trait Implementations§

    source§

    impl<P: Clone, R: Clone, S: Clone> Clone for Api<P, R, S>

    source§

    fn clone(&self) -> Api<P, R, S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<P: Debug, R: Debug, S: Debug> Debug for Api<P, R, S>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<P: Default, R: Default, S: Default> Default for Api<P, R, S>

    source§

    fn default() -> Api<P, R, S>

    Returns the “default value” for a type. Read more
    source§

    impl<'de, P, R, S> Deserialize<'de> for Api<P, R, S>
    where - P: Deserialize<'de>, - R: Deserialize<'de>, - S: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Api<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>, DefaultSchemaRaw>> for OpenAPI

    source§

    fn from(v2: DefaultApiRaw) -> Self

    Converts to this type from the input type.
    source§

    impl<P, R, S> Serialize for Api<P, R, S>
    where - P: Serialize, - R: Serialize, - S: Serialize,

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<P, R, S> Freeze for Api<P, R, S>

    §

    impl<P, R, S> RefUnwindSafe for Api<P, R, S>
    where +

    Trait Implementations§

    source§

    impl<P: Clone, R: Clone, S: Clone> Clone for Api<P, R, S>

    source§

    fn clone(&self) -> Api<P, R, S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<P: Debug, R: Debug, S: Debug> Debug for Api<P, R, S>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<P: Default, R: Default, S: Default> Default for Api<P, R, S>

    source§

    fn default() -> Api<P, R, S>

    Returns the “default value” for a type. Read more
    source§

    impl<'de, P, R, S> Deserialize<'de> for Api<P, R, S>
    where + P: Deserialize<'de>, + R: Deserialize<'de>, + S: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Api<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>, DefaultSchemaRaw>> for OpenAPI

    source§

    fn from(v2: DefaultApiRaw) -> Self

    Converts to this type from the input type.
    source§

    impl<P, R, S> Serialize for Api<P, R, S>
    where + P: Serialize, + R: Serialize, + S: Serialize,

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<P, R, S> Freeze for Api<P, R, S>

    §

    impl<P, R, S> RefUnwindSafe for Api<P, R, S>

    §

    impl<P, R, S> Send for Api<P, R, S>
    where @@ -73,23 +73,23 @@ R: Sync,

    §

    impl<P, R, S> Unpin for Api<P, R, S>

    §

    impl<P, R, S> UnwindSafe for Api<P, R, S>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + R: RefUnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/struct.Coder.html b/paperclip_core/v2/models/struct.Coder.html index 11d2ef1be..6e3741fbf 100644 --- a/paperclip_core/v2/models/struct.Coder.html +++ b/paperclip_core/v2/models/struct.Coder.html @@ -1,4 +1,4 @@ -Coder in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::Coder

    source ·
    pub struct Coder {
    +Coder in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::Coder

    source ·
    pub struct Coder {
         pub encoder_path: String,
         pub decoder_path: String,
         pub error_path: String,
    @@ -14,25 +14,25 @@
     types are available. When multiple types are preferred,
     it’s unspecified as to which is chosen.

    §builtin: bool

    Whether this en/decoder is built-in.

    -

    Trait Implementations§

    source§

    impl Clone for Coder

    source§

    fn clone(&self) -> Coder

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Coder

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Coder

    source§

    fn default() -> Coder

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Coder

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for Coder

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Coder

    §

    impl RefUnwindSafe for Coder

    §

    impl Send for Coder

    §

    impl Sync for Coder

    §

    impl Unpin for Coder

    §

    impl UnwindSafe for Coder

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Clone for Coder

    source§

    fn clone(&self) -> Coder

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Coder

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Coder

    source§

    fn default() -> Coder

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Coder

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for Coder

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Coder

    §

    impl RefUnwindSafe for Coder

    §

    impl Send for Coder

    §

    impl Sync for Coder

    §

    impl Unpin for Coder

    §

    impl UnwindSafe for Coder

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/struct.Coders.html b/paperclip_core/v2/models/struct.Coders.html index 756e0ca45..d48017ddf 100644 --- a/paperclip_core/v2/models/struct.Coders.html +++ b/paperclip_core/v2/models/struct.Coders.html @@ -1,4 +1,4 @@ -Coders in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::Coders

    source ·
    pub struct Coders(/* private fields */);
    Expand description

    x-rust-coders global extension for custom encoders and decoders.

    +Coders in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::Coders

    source ·
    pub struct Coders(/* private fields */);
    Expand description

    x-rust-coders global extension for custom encoders and decoders.

    Implementations§

    source§

    impl Coders

    source

    pub fn matching_coder(&self, ty: &MediaRange) -> Option<Arc<Coder>>

    Returns the matching coder for the given media range (if any).

    Matching algorithm from https://github.com/hyperium/mime/blob/65ea9c3d0cad4cb548b41124050c545120134035/src/range.rs#L126

    Methods from Deref<Target = BTreeMap<MediaRange, Arc<Coder>>>§

    1.0.0 · source

    pub fn clear(&mut self)

    Clears the map, removing all elements.

    @@ -357,7 +357,7 @@
    §Exampleslet odds = map; assert_eq!(evens.keys().copied().collect::<Vec<_>>(), [0, 2, 4, 6]); assert_eq!(odds.keys().copied().collect::<Vec<_>>(), [1, 3, 5, 7]);
    -
    1.0.0 · source

    pub fn iter(&self) -> Iter<'_, K, V>

    Gets an iterator over the entries of the map, sorted by key.

    +
    1.0.0 · source

    pub fn iter(&self) -> Iter<'_, K, V>

    Gets an iterator over the entries of the map, sorted by key.

    §Examples
    use std::collections::BTreeMap;
     
    @@ -372,7 +372,7 @@ 
    §Exampleslet (first_key, first_value) = map.iter().next().unwrap(); assert_eq!((*first_key, *first_value), (1, "a"));
    -
    1.0.0 · source

    pub fn iter_mut(&mut self) -> IterMut<'_, K, V>

    Gets a mutable iterator over the entries of the map, sorted by key.

    +
    1.0.0 · source

    pub fn iter_mut(&mut self) -> IterMut<'_, K, V>

    Gets a mutable iterator over the entries of the map, sorted by key.

    §Examples
    use std::collections::BTreeMap;
     
    @@ -388,7 +388,7 @@ 
    §Examples*value += 10; } }
    -
    1.0.0 · source

    pub fn keys(&self) -> Keys<'_, K, V>

    Gets an iterator over the keys of the map, in sorted order.

    +
    1.0.0 · source

    pub fn keys(&self) -> Keys<'_, K, V>

    Gets an iterator over the keys of the map, in sorted order.

    §Examples
    use std::collections::BTreeMap;
     
    @@ -398,7 +398,7 @@ 
    §Exampleslet keys: Vec<_> = a.keys().cloned().collect(); assert_eq!(keys, [1, 2]);
    -
    1.0.0 · source

    pub fn values(&self) -> Values<'_, K, V>

    Gets an iterator over the values of the map, in order by key.

    +
    1.0.0 · source

    pub fn values(&self) -> Values<'_, K, V>

    Gets an iterator over the values of the map, in order by key.

    §Examples
    use std::collections::BTreeMap;
     
    @@ -408,7 +408,7 @@ 
    §Exampleslet values: Vec<&str> = a.values().cloned().collect(); assert_eq!(values, ["hello", "goodbye"]);
    -
    1.10.0 · source

    pub fn values_mut(&mut self) -> ValuesMut<'_, K, V>

    Gets a mutable iterator over the values of the map, in order by key.

    +
    1.10.0 · source

    pub fn values_mut(&mut self) -> ValuesMut<'_, K, V>

    Gets a mutable iterator over the values of the map, in order by key.

    §Examples
    use std::collections::BTreeMap;
     
    @@ -423,7 +423,7 @@ 
    §Exampleslet values: Vec<String> = a.values().cloned().collect(); assert_eq!(values, [String::from("hello!"), String::from("goodbye!")]);
    -
    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the number of elements in the map.

    +
    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the number of elements in the map.

    §Examples
    use std::collections::BTreeMap;
     
    @@ -431,7 +431,7 @@ 
    §Examplesassert_eq!(a.len(), 0); a.insert(1, "a"); assert_eq!(a.len(), 1);
    -
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if the map contains no elements.

    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if the map contains no elements.

    §Examples
    use std::collections::BTreeMap;
     
    @@ -439,7 +439,7 @@ 
    §Examplesassert!(a.is_empty()); a.insert(1, "a"); assert!(!a.is_empty());
    -
    source

    pub fn lower_bound<Q>(&self, bound: Bound<&Q>) -> Cursor<'_, K, V>
    where +

    source

    pub fn lower_bound<Q>(&self, bound: Bound<&Q>) -> Cursor<'_, K, V>
    where K: Borrow<Q> + Ord, Q: Ord + ?Sized,

    🔬This is a nightly-only experimental API. (btree_cursors)

    Returns a Cursor pointing at the gap before the smallest key greater than the given bound.

    @@ -473,7 +473,7 @@
    §Exampleslet cursor = map.lower_bound(Bound::Unbounded); assert_eq!(cursor.peek_prev(), None); assert_eq!(cursor.peek_next(), Some((&1, &"a")));
    -
    source

    pub fn lower_bound_mut<Q>(&mut self, bound: Bound<&Q>) -> CursorMut<'_, K, V, A>
    where +

    source

    pub fn lower_bound_mut<Q>(&mut self, bound: Bound<&Q>) -> CursorMut<'_, K, V, A>
    where K: Borrow<Q> + Ord, Q: Ord + ?Sized,

    🔬This is a nightly-only experimental API. (btree_cursors)

    Returns a CursorMut pointing at the gap before the smallest key greater than the given bound.

    @@ -507,7 +507,7 @@
    §Exampleslet mut cursor = map.lower_bound_mut(Bound::Unbounded); assert_eq!(cursor.peek_prev(), None); assert_eq!(cursor.peek_next(), Some((&1, &mut "a")));
    -
    source

    pub fn upper_bound<Q>(&self, bound: Bound<&Q>) -> Cursor<'_, K, V>
    where +

    source

    pub fn upper_bound<Q>(&self, bound: Bound<&Q>) -> Cursor<'_, K, V>
    where K: Borrow<Q> + Ord, Q: Ord + ?Sized,

    🔬This is a nightly-only experimental API. (btree_cursors)

    Returns a Cursor pointing at the gap after the greatest key smaller than the given bound.

    @@ -541,7 +541,7 @@
    §Exampleslet cursor = map.upper_bound(Bound::Unbounded); assert_eq!(cursor.peek_prev(), Some((&4, &"d"))); assert_eq!(cursor.peek_next(), None);
    -
    source

    pub fn upper_bound_mut<Q>(&mut self, bound: Bound<&Q>) -> CursorMut<'_, K, V, A>
    where +

    source

    pub fn upper_bound_mut<Q>(&mut self, bound: Bound<&Q>) -> CursorMut<'_, K, V, A>
    where K: Borrow<Q> + Ord, Q: Ord + ?Sized,

    🔬This is a nightly-only experimental API. (btree_cursors)

    Returns a CursorMut pointing at the gap after the greatest key smaller than the given bound.

    @@ -575,25 +575,25 @@
    §Exampleslet mut cursor = map.upper_bound_mut(Bound::Unbounded); assert_eq!(cursor.peek_prev(), Some((&4, &mut "d"))); assert_eq!(cursor.peek_next(), None);
    -

    Trait Implementations§

    source§

    impl Clone for Coders

    source§

    fn clone(&self) -> Coders

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Coders

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Coders

    source§

    fn default() -> Coders

    Returns the “default value” for a type. Read more
    source§

    impl Deref for Coders

    §

    type Target = BTreeMap<MediaRange, Arc<Coder>>

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    source§

    impl DerefMut for Coders

    source§

    fn deref_mut(&mut self) -> &mut <Self as Deref>::Target

    Mutably dereferences the value.
    source§

    impl<'de> Deserialize<'de> for Coders

    source§

    fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
    where - D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for Coders

    source§

    fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
    where - S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Coders

    §

    impl RefUnwindSafe for Coders

    §

    impl Send for Coders

    §

    impl Sync for Coders

    §

    impl Unpin for Coders

    §

    impl UnwindSafe for Coders

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Clone for Coders

    source§

    fn clone(&self) -> Coders

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Coders

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Coders

    source§

    fn default() -> Coders

    Returns the “default value” for a type. Read more
    source§

    impl Deref for Coders

    §

    type Target = BTreeMap<MediaRange, Arc<Coder>>

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    source§

    impl DerefMut for Coders

    source§

    fn deref_mut(&mut self) -> &mut <Self as Deref>::Target

    Mutably dereferences the value.
    source§

    impl<'de> Deserialize<'de> for Coders

    source§

    fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
    where + D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for Coders

    source§

    fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
    where + S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Coders

    §

    impl RefUnwindSafe for Coders

    §

    impl Send for Coders

    §

    impl Sync for Coders

    §

    impl Unpin for Coders

    §

    impl UnwindSafe for Coders

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/struct.Contact.html b/paperclip_core/v2/models/struct.Contact.html index dbb1c3a97..bc759dc6b 100644 --- a/paperclip_core/v2/models/struct.Contact.html +++ b/paperclip_core/v2/models/struct.Contact.html @@ -1,28 +1,28 @@ -Contact in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::Contact

    source ·
    pub struct Contact {
    +Contact in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::Contact

    source ·
    pub struct Contact {
         pub name: Option<String>,
         pub url: Option<String>,
         pub email: Option<String>,
     }
    Expand description

    Fields§

    §name: Option<String>§url: Option<String>§email: Option<String>

    Trait Implementations§

    source§

    impl Clone for Contact

    source§

    fn clone(&self) -> Contact

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Contact

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Contact

    source§

    fn default() -> Contact

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Contact

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Contact> for Contact

    source§

    fn from(v2: Contact) -> Self

    Converts to this type from the input type.
    source§

    impl Serialize for Contact

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Fields§

    §name: Option<String>§url: Option<String>§email: Option<String>

    Trait Implementations§

    source§

    impl Clone for Contact

    source§

    fn clone(&self) -> Contact

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Contact

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Contact

    source§

    fn default() -> Contact

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Contact

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Contact> for Contact

    source§

    fn from(v2: Contact) -> Self

    Converts to this type from the input type.
    source§

    impl Serialize for Contact

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/struct.DefaultSchema.html b/paperclip_core/v2/models/struct.DefaultSchema.html index d90c5a3cd..693048144 100644 --- a/paperclip_core/v2/models/struct.DefaultSchema.html +++ b/paperclip_core/v2/models/struct.DefaultSchema.html @@ -1,4 +1,4 @@ -DefaultSchema in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::DefaultSchema

    source ·
    pub struct DefaultSchema {
    Show 13 fields +DefaultSchema in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::DefaultSchema

    source ·
    pub struct DefaultSchema {
    Show 13 fields pub reference: Option<String>, pub title: Option<String>, pub description: Option<String>, @@ -6,37 +6,37 @@ pub format: Option<DataTypeFormat>, pub maximum: Option<f32>, pub minimum: Option<f32>, - pub example: Option<Value>, + pub example: Option<Value>, pub properties: BTreeMap<String, Resolvable<DefaultSchema>>, pub items: Option<Resolvable<DefaultSchema>>, - pub enum_: Vec<Value>, + pub enum_: Vec<Value>, pub extra_props: Option<Either<bool, Resolvable<DefaultSchema>>>, pub required: BTreeSet<String>, /* private fields */
    }
    Expand description

    Default schema if your schema doesn’t have any custom fields.

    https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#schemaObject

    -

    Fields§

    §reference: Option<String>§title: Option<String>§description: Option<String>§data_type: Option<DataType>§format: Option<DataTypeFormat>§maximum: Option<f32>§minimum: Option<f32>§example: Option<Value>§properties: BTreeMap<String, Resolvable<DefaultSchema>>§items: Option<Resolvable<DefaultSchema>>§enum_: Vec<Value>§extra_props: Option<Either<bool, Resolvable<DefaultSchema>>>§required: BTreeSet<String>

    Trait Implementations§

    source§

    impl Clone for DefaultSchema

    source§

    fn clone(&self) -> DefaultSchema

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for DefaultSchema

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for DefaultSchema

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for DefaultSchema

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Schema for DefaultSchema

    source§

    fn name(&self) -> Option<&str>

    Name of this schema, if any. Read more
    source§

    fn set_name(&mut self, name: &str)

    Sets the name for this schema. This is done by the resolver.
    source§

    fn set_cyclic(&mut self, cyclic: bool)

    Set whether this definition is cyclic. This is done by the resolver.
    source§

    fn is_cyclic(&self) -> bool

    Returns whether this definition is cyclic. Read more
    source§

    fn description(&self) -> Option<&str>

    Description for this schema, if any (description field).
    source§

    fn reference(&self) -> Option<&str>

    Reference to some other schema, if any ($ref field).
    source§

    fn set_reference(&mut self, ref_: String)

    Set the reference to this schema.
    source§

    fn data_type(&self) -> Option<DataType>

    Data type of this schema, if any (type field).
    source§

    fn format(&self) -> Option<&DataTypeFormat>

    Data type format used by this schema, if any (format field).
    source§

    fn items(&self) -> Option<&Resolvable<Self>>

    Schema for array definitions, if any (items field).
    source§

    fn items_mut(&mut self) -> Option<&mut Resolvable<Self>>

    Mutable access to the items field, if it exists.
    source§

    fn additional_properties(&self) -> Option<&Either<bool, Resolvable<Self>>>

    Value schema for maps (additional_properties field).
    source§

    fn additional_properties_mut( +

    Fields§

    §reference: Option<String>§title: Option<String>§description: Option<String>§data_type: Option<DataType>§format: Option<DataTypeFormat>§maximum: Option<f32>§minimum: Option<f32>§example: Option<Value>§properties: BTreeMap<String, Resolvable<DefaultSchema>>§items: Option<Resolvable<DefaultSchema>>§enum_: Vec<Value>§extra_props: Option<Either<bool, Resolvable<DefaultSchema>>>§required: BTreeSet<String>

    Trait Implementations§

    source§

    impl Clone for DefaultSchema

    source§

    fn clone(&self) -> DefaultSchema

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for DefaultSchema

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for DefaultSchema

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for DefaultSchema

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Schema for DefaultSchema

    source§

    fn name(&self) -> Option<&str>

    Name of this schema, if any. Read more
    source§

    fn set_name(&mut self, name: &str)

    Sets the name for this schema. This is done by the resolver.
    source§

    fn set_cyclic(&mut self, cyclic: bool)

    Set whether this definition is cyclic. This is done by the resolver.
    source§

    fn is_cyclic(&self) -> bool

    Returns whether this definition is cyclic. Read more
    source§

    fn description(&self) -> Option<&str>

    Description for this schema, if any (description field).
    source§

    fn reference(&self) -> Option<&str>

    Reference to some other schema, if any ($ref field).
    source§

    fn set_reference(&mut self, ref_: String)

    Set the reference to this schema.
    source§

    fn data_type(&self) -> Option<DataType>

    Data type of this schema, if any (type field).
    source§

    fn format(&self) -> Option<&DataTypeFormat>

    Data type format used by this schema, if any (format field).
    source§

    fn items(&self) -> Option<&Resolvable<Self>>

    Schema for array definitions, if any (items field).
    source§

    fn items_mut(&mut self) -> Option<&mut Resolvable<Self>>

    Mutable access to the items field, if it exists.
    source§

    fn additional_properties(&self) -> Option<&Either<bool, Resolvable<Self>>>

    Value schema for maps (additional_properties field).
    source§

    fn additional_properties_mut( &mut self, -) -> Option<&mut Either<bool, Resolvable<Self>>>

    Mutable access to additional_properties field, if it’s a map.
    source§

    fn properties(&self) -> Option<&BTreeMap<String, Resolvable<Self>>>

    Map of names and schema for properties, if it’s an object (properties field)
    source§

    fn properties_mut(&mut self) -> Option<&mut BTreeMap<String, Resolvable<Self>>>

    Mutable access to properties field.
    source§

    fn required_properties(&self) -> Option<&BTreeSet<String>>

    Returns the required properties (if any) for this object.
    source§

    fn enum_variants(&self) -> Option<&[Value]>

    Enum variants in this schema (if any). It’s serde_json::Value -because: Read more
    source§

    fn contains_any(&self) -> bool

    Returns whether this definition “is” or “has” Any type.
    source§

    impl Serialize for DefaultSchema

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +) -> Option<&mut Either<bool, Resolvable<Self>>>
    Mutable access to additional_properties field, if it’s a map.
    source§

    fn properties(&self) -> Option<&BTreeMap<String, Resolvable<Self>>>

    Map of names and schema for properties, if it’s an object (properties field)
    source§

    fn properties_mut(&mut self) -> Option<&mut BTreeMap<String, Resolvable<Self>>>

    Mutable access to properties field.
    source§

    fn required_properties(&self) -> Option<&BTreeSet<String>>

    Returns the required properties (if any) for this object.
    source§

    fn enum_variants(&self) -> Option<&[Value]>

    Enum variants in this schema (if any). It’s serde_json::Value +because: Read more
    source§

    fn contains_any(&self) -> bool

    Returns whether this definition “is” or “has” Any type.
    source§

    impl Serialize for DefaultSchema

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/struct.DefaultSchemaRaw.html b/paperclip_core/v2/models/struct.DefaultSchemaRaw.html index 2ba9d1bca..c234bb8fe 100644 --- a/paperclip_core/v2/models/struct.DefaultSchemaRaw.html +++ b/paperclip_core/v2/models/struct.DefaultSchemaRaw.html @@ -1,4 +1,4 @@ -DefaultSchemaRaw in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::DefaultSchemaRaw

    source ·
    pub struct DefaultSchemaRaw {
    Show 13 fields +DefaultSchemaRaw in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::DefaultSchemaRaw

    source ·
    pub struct DefaultSchemaRaw {
    Show 13 fields pub reference: Option<String>, pub title: Option<String>, pub description: Option<String>, @@ -6,10 +6,10 @@ pub format: Option<DataTypeFormat>, pub maximum: Option<f32>, pub minimum: Option<f32>, - pub example: Option<Value>, + pub example: Option<Value>, pub properties: BTreeMap<String, Box<DefaultSchemaRaw>>, pub items: Option<Box<DefaultSchemaRaw>>, - pub enum_: Vec<Value>, + pub enum_: Vec<Value>, pub extra_props: Option<Either<bool, Box<DefaultSchemaRaw>>>, pub required: BTreeSet<String>, /* private fields */ @@ -19,28 +19,28 @@ unresolvable $ref fields.

    Default schema if your schema doesn’t have any custom fields.

    https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#schemaObject

    -

    Fields§

    §reference: Option<String>§title: Option<String>§description: Option<String>§data_type: Option<DataType>§format: Option<DataTypeFormat>§maximum: Option<f32>§minimum: Option<f32>§example: Option<Value>§properties: BTreeMap<String, Box<DefaultSchemaRaw>>§items: Option<Box<DefaultSchemaRaw>>§enum_: Vec<Value>§extra_props: Option<Either<bool, Box<DefaultSchemaRaw>>>§required: BTreeSet<String>

    Implementations§

    source§

    impl DefaultSchemaRaw

    source

    pub fn remove_refs(&mut self)

    Recursively removes all $ref values in this schema.

    +

    Fields§

    §reference: Option<String>§title: Option<String>§description: Option<String>§data_type: Option<DataType>§format: Option<DataTypeFormat>§maximum: Option<f32>§minimum: Option<f32>§example: Option<Value>§properties: BTreeMap<String, Box<DefaultSchemaRaw>>§items: Option<Box<DefaultSchemaRaw>>§enum_: Vec<Value>§extra_props: Option<Either<bool, Box<DefaultSchemaRaw>>>§required: BTreeSet<String>

    Implementations§

    source§

    impl DefaultSchemaRaw

    source

    pub fn remove_refs(&mut self)

    Recursively removes all $ref values in this schema.

    source

    pub fn retain_ref(&mut self)

    Recursively removes all properties other than $ref value if the $ref is non-null.

    -

    Trait Implementations§

    source§

    impl Clone for DefaultSchemaRaw

    source§

    fn clone(&self) -> DefaultSchemaRaw

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for DefaultSchemaRaw

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for DefaultSchemaRaw

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for DefaultSchemaRaw

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<DefaultSchemaRaw> for ReferenceOr<Box<Schema>>

    source§

    fn from(v2: DefaultSchemaRaw) -> Self

    Converts to this type from the input type.
    source§

    impl From<DefaultSchemaRaw> for ReferenceOr<Schema>

    source§

    fn from(v2: DefaultSchemaRaw) -> Self

    Converts to this type from the input type.
    source§

    impl Serialize for DefaultSchemaRaw

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Clone for DefaultSchemaRaw

    source§

    fn clone(&self) -> DefaultSchemaRaw

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for DefaultSchemaRaw

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for DefaultSchemaRaw

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for DefaultSchemaRaw

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<DefaultSchemaRaw> for ReferenceOr<Box<Schema>>

    source§

    fn from(v2: DefaultSchemaRaw) -> Self

    Converts to this type from the input type.
    source§

    impl From<DefaultSchemaRaw> for ReferenceOr<Schema>

    source§

    fn from(v2: DefaultSchemaRaw) -> Self

    Converts to this type from the input type.
    source§

    impl Serialize for DefaultSchemaRaw

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/struct.ExternalDocs.html b/paperclip_core/v2/models/struct.ExternalDocs.html index 0b6ace136..25c013405 100644 --- a/paperclip_core/v2/models/struct.ExternalDocs.html +++ b/paperclip_core/v2/models/struct.ExternalDocs.html @@ -1,27 +1,27 @@ -ExternalDocs in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::ExternalDocs

    source ·
    pub struct ExternalDocs {
    +ExternalDocs in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::ExternalDocs

    source ·
    pub struct ExternalDocs {
         pub description: Option<String>,
         pub url: String,
     }
    Expand description

    Fields§

    §description: Option<String>§url: String

    Trait Implementations§

    source§

    impl Clone for ExternalDocs

    source§

    fn clone(&self) -> ExternalDocs

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for ExternalDocs

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for ExternalDocs

    source§

    fn default() -> ExternalDocs

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for ExternalDocs

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<ExternalDocs> for ExternalDocumentation

    source§

    fn from(v2: ExternalDocs) -> Self

    Converts to this type from the input type.
    source§

    impl Serialize for ExternalDocs

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Fields§

    §description: Option<String>§url: String

    Trait Implementations§

    source§

    impl Clone for ExternalDocs

    source§

    fn clone(&self) -> ExternalDocs

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for ExternalDocs

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for ExternalDocs

    source§

    fn default() -> ExternalDocs

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for ExternalDocs

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<ExternalDocs> for ExternalDocumentation

    source§

    fn from(v2: ExternalDocs) -> Self

    Converts to this type from the input type.
    source§

    impl Serialize for ExternalDocs

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/struct.Header.html b/paperclip_core/v2/models/struct.Header.html index 066dd0440..a951866ec 100644 --- a/paperclip_core/v2/models/struct.Header.html +++ b/paperclip_core/v2/models/struct.Header.html @@ -1,11 +1,11 @@ -Header in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::Header

    source ·
    pub struct Header {
    Show 18 fields +Header in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::Header

    source ·
    pub struct Header {
    Show 18 fields pub description: Option<String>, pub data_type: Option<DataType>, pub format: Option<DataTypeFormat>, pub items: Option<Items>, pub collection_format: Option<CollectionFormat>, - pub default: Option<Value>, - pub enum_: Vec<Value>, + pub default: Option<Value>, + pub enum_: Vec<Value>, pub maximum: Option<f32>, pub exclusive_maximum: Option<bool>, pub minimum: Option<f32>, @@ -19,25 +19,25 @@ pub multiple_of: Option<f32>,
    }
    Expand description

    Fields§

    §description: Option<String>§data_type: Option<DataType>§format: Option<DataTypeFormat>§items: Option<Items>§collection_format: Option<CollectionFormat>§default: Option<Value>§enum_: Vec<Value>§maximum: Option<f32>§exclusive_maximum: Option<bool>§minimum: Option<f32>§exclusive_minimum: Option<bool>§max_length: Option<u32>§min_length: Option<u32>§pattern: Option<String>§max_items: Option<u32>§min_items: Option<u32>§unique_items: Option<bool>§multiple_of: Option<f32>

    Trait Implementations§

    source§

    impl Clone for Header

    source§

    fn clone(&self) -> Header

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Header

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Header

    source§

    fn default() -> Header

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Header

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Header> for Header

    source§

    fn from(v2: Header) -> Self

    Converts to this type from the input type.
    source§

    impl Serialize for Header

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Header

    §

    impl RefUnwindSafe for Header

    §

    impl Send for Header

    §

    impl Sync for Header

    §

    impl Unpin for Header

    §

    impl UnwindSafe for Header

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Fields§

    §description: Option<String>§data_type: Option<DataType>§format: Option<DataTypeFormat>§items: Option<Items>§collection_format: Option<CollectionFormat>§default: Option<Value>§enum_: Vec<Value>§maximum: Option<f32>§exclusive_maximum: Option<bool>§minimum: Option<f32>§exclusive_minimum: Option<bool>§max_length: Option<u32>§min_length: Option<u32>§pattern: Option<String>§max_items: Option<u32>§min_items: Option<u32>§unique_items: Option<bool>§multiple_of: Option<f32>

    Trait Implementations§

    source§

    impl Clone for Header

    source§

    fn clone(&self) -> Header

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Header

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Header

    source§

    fn default() -> Header

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Header

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Header> for Header

    source§

    fn from(v2: Header) -> Self

    Converts to this type from the input type.
    source§

    impl Serialize for Header

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Header

    §

    impl RefUnwindSafe for Header

    §

    impl Send for Header

    §

    impl Sync for Header

    §

    impl Unpin for Header

    §

    impl UnwindSafe for Header

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/struct.Info.html b/paperclip_core/v2/models/struct.Info.html index 1a8498f17..32ee72a3b 100644 --- a/paperclip_core/v2/models/struct.Info.html +++ b/paperclip_core/v2/models/struct.Info.html @@ -1,33 +1,33 @@ -Info in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::Info

    source ·
    pub struct Info {
    +Info in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::Info

    source ·
    pub struct Info {
         pub version: String,
         pub title: String,
         pub description: Option<String>,
         pub terms_of_service: Option<String>,
         pub contact: Option<Contact>,
         pub license: Option<License>,
    -    pub extensions: BTreeMap<String, Value>,
    +    pub extensions: BTreeMap<String, Value>,
     }
    Expand description

    Fields§

    §version: String§title: String§description: Option<String>§terms_of_service: Option<String>§contact: Option<Contact>§license: Option<License>§extensions: BTreeMap<String, Value>

    Inline extensions to this object.

    -

    Trait Implementations§

    source§

    impl Clone for Info

    source§

    fn clone(&self) -> Info

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Info

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Info

    source§

    fn default() -> Info

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Info

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Info> for Info

    source§

    fn from(v2: Info) -> Self

    Converts to this type from the input type.
    source§

    impl Serialize for Info

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Info

    §

    impl RefUnwindSafe for Info

    §

    impl Send for Info

    §

    impl Sync for Info

    §

    impl Unpin for Info

    §

    impl UnwindSafe for Info

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Fields§

    §version: String§title: String§description: Option<String>§terms_of_service: Option<String>§contact: Option<Contact>§license: Option<License>§extensions: BTreeMap<String, Value>

    Inline extensions to this object.

    +

    Trait Implementations§

    source§

    impl Clone for Info

    source§

    fn clone(&self) -> Info

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Info

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Info

    source§

    fn default() -> Info

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Info

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Info> for Info

    source§

    fn from(v2: Info) -> Self

    Converts to this type from the input type.
    source§

    impl Serialize for Info

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Info

    §

    impl RefUnwindSafe for Info

    §

    impl Send for Info

    §

    impl Sync for Info

    §

    impl Unpin for Info

    §

    impl UnwindSafe for Info

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/struct.Items.html b/paperclip_core/v2/models/struct.Items.html index ed57f91b7..3509bd5cd 100644 --- a/paperclip_core/v2/models/struct.Items.html +++ b/paperclip_core/v2/models/struct.Items.html @@ -1,9 +1,9 @@ -Items in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::Items

    source ·
    pub struct Items {
    Show 16 fields +Items in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::Items

    source ·
    pub struct Items {
    Show 16 fields pub data_type: Option<DataType>, pub format: Option<DataTypeFormat>, pub items: Option<Box<Items>>, pub collection_format: Option<CollectionFormat>, - pub enum_: Vec<Value>, + pub enum_: Vec<Value>, pub maximum: Option<f32>, pub exclusive_maximum: Option<bool>, pub minimum: Option<f32>, @@ -17,27 +17,26 @@ pub multiple_of: Option<f32>,
    }
    Expand description

    Fields§

    §data_type: Option<DataType>§format: Option<DataTypeFormat>§items: Option<Box<Items>>§collection_format: Option<CollectionFormat>§enum_: Vec<Value>§maximum: Option<f32>§exclusive_maximum: Option<bool>§minimum: Option<f32>§exclusive_minimum: Option<bool>§max_length: Option<u32>§min_length: Option<u32>§pattern: Option<String>§max_items: Option<u32>§min_items: Option<u32>§unique_items: Option<bool>§multiple_of: Option<f32>

    Trait Implementations§

    source§

    impl Clone for Items

    source§

    fn clone(&self) -> Items

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Items

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Items

    source§

    fn default() -> Items

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Items

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Items> for ReferenceOr<Box<Schema>>

    source§

    fn from(v2: Items) -> Self

    Converts to this type from the input type.
    source§

    impl PartialEq for Items

    source§

    fn eq(&self, other: &Items) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Serialize for Items

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl StructuralPartialEq for Items

    Auto Trait Implementations§

    §

    impl Freeze for Items

    §

    impl RefUnwindSafe for Items

    §

    impl Send for Items

    §

    impl Sync for Items

    §

    impl Unpin for Items

    §

    impl UnwindSafe for Items

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Fields§

    §data_type: Option<DataType>§format: Option<DataTypeFormat>§items: Option<Box<Items>>§collection_format: Option<CollectionFormat>§enum_: Vec<Value>§maximum: Option<f32>§exclusive_maximum: Option<bool>§minimum: Option<f32>§exclusive_minimum: Option<bool>§max_length: Option<u32>§min_length: Option<u32>§pattern: Option<String>§max_items: Option<u32>§min_items: Option<u32>§unique_items: Option<bool>§multiple_of: Option<f32>

    Trait Implementations§

    source§

    impl Clone for Items

    source§

    fn clone(&self) -> Items

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Items

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Items

    source§

    fn default() -> Items

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Items

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Items> for ReferenceOr<Box<Schema>>

    source§

    fn from(v2: Items) -> Self

    Converts to this type from the input type.
    source§

    impl PartialEq for Items

    source§

    fn eq(&self, other: &Items) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl Serialize for Items

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl StructuralPartialEq for Items

    Auto Trait Implementations§

    §

    impl Freeze for Items

    §

    impl RefUnwindSafe for Items

    §

    impl Send for Items

    §

    impl Sync for Items

    §

    impl Unpin for Items

    §

    impl UnwindSafe for Items

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/struct.License.html b/paperclip_core/v2/models/struct.License.html index 8a13b578c..3c0831ea5 100644 --- a/paperclip_core/v2/models/struct.License.html +++ b/paperclip_core/v2/models/struct.License.html @@ -1,27 +1,27 @@ -License in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::License

    source ·
    pub struct License {
    +License in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::License

    source ·
    pub struct License {
         pub name: Option<String>,
         pub url: Option<String>,
     }
    Expand description

    Fields§

    §name: Option<String>§url: Option<String>

    Trait Implementations§

    source§

    impl Clone for License

    source§

    fn clone(&self) -> License

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for License

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for License

    source§

    fn default() -> License

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for License

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<License> for License

    source§

    fn from(v2: License) -> Self

    Converts to this type from the input type.
    source§

    impl Serialize for License

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Fields§

    §name: Option<String>§url: Option<String>

    Trait Implementations§

    source§

    impl Clone for License

    source§

    fn clone(&self) -> License

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for License

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for License

    source§

    fn default() -> License

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for License

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<License> for License

    source§

    fn from(v2: License) -> Self

    Converts to this type from the input type.
    source§

    impl Serialize for License

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/struct.MediaRange.html b/paperclip_core/v2/models/struct.MediaRange.html index 2cf777b39..bcc11317c 100644 --- a/paperclip_core/v2/models/struct.MediaRange.html +++ b/paperclip_core/v2/models/struct.MediaRange.html @@ -1,18 +1,18 @@ -MediaRange in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::MediaRange

    source ·
    pub struct MediaRange(pub Mime);
    Expand description

    Wrapper for mime::MediaRange to support BTree{Set, Map}.

    -

    Tuple Fields§

    §0: Mime

    Trait Implementations§

    source§

    impl Clone for MediaRange

    source§

    fn clone(&self) -> MediaRange

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for MediaRange

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for MediaRange

    source§

    fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
    where - D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Ord for MediaRange

    source§

    fn cmp(&self, other: &MediaRange) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where - Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for MediaRange

    source§

    fn eq(&self, other: &MediaRange) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for MediaRange

    source§

    fn partial_cmp(&self, other: &MediaRange) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= -operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Serialize for MediaRange

    source§

    fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
    where - S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Eq for MediaRange

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where +MediaRange in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::MediaRange

    source ·
    pub struct MediaRange(pub Mime);
    Expand description

    Wrapper for mime::MediaRange to support BTree{Set, Map}.

    +

    Tuple Fields§

    §0: Mime

    Trait Implementations§

    source§

    impl Clone for MediaRange

    source§

    fn clone(&self) -> MediaRange

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for MediaRange

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for MediaRange

    source§

    fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
    where + D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Ord for MediaRange

    source§

    fn cmp(&self, other: &MediaRange) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where + Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for MediaRange

    source§

    fn eq(&self, other: &MediaRange) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl PartialOrd for MediaRange

    source§

    fn partial_cmp(&self, other: &MediaRange) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the +<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > +operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by +the >= operator. Read more
    source§

    impl Serialize for MediaRange

    source§

    fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
    where + S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Eq for MediaRange

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Comparable<K> for Q
    where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

    §

    fn compare(&self, key: &K) -> Ordering

    Compare self to key and return their ordering.
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, @@ -27,12 +27,12 @@ U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/struct.Operation.html b/paperclip_core/v2/models/struct.Operation.html index 1302b88db..b1fffca57 100644 --- a/paperclip_core/v2/models/struct.Operation.html +++ b/paperclip_core/v2/models/struct.Operation.html @@ -1,4 +1,4 @@ -Operation in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::Operation

    source ·
    pub struct Operation<P, R> {
    +Operation in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::Operation

    source ·
    pub struct Operation<P, R> {
         pub operation_id: Option<String>,
         pub summary: Option<String>,
         pub description: Option<String>,
    @@ -14,13 +14,13 @@
     

    https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#operationObject

    Fields§

    §operation_id: Option<String>§summary: Option<String>§description: Option<String>§consumes: Option<BTreeSet<MediaRange>>§produces: Option<BTreeSet<MediaRange>>§security: Vec<BTreeMap<String, Vec<String>>>§schemes: BTreeSet<OperationProtocol>§responses: BTreeMap<String, Either<Reference, R>>§parameters: Vec<Either<Reference, P>>§deprecated: bool§tags: Vec<String>

    Implementations§

    source§

    impl<S> Operation<Parameter<S>, Response<S>>

    source

    pub fn set_parameter_names_from_path_template(&mut self, path: &str)

    Overwrites the names of parameters in this operation using the given path template.

    -

    Trait Implementations§

    source§

    impl<P: Clone, R: Clone> Clone for Operation<P, R>

    source§

    fn clone(&self) -> Operation<P, R>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<P: Debug, R: Debug> Debug for Operation<P, R>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<P: Default, R: Default> Default for Operation<P, R>

    source§

    fn default() -> Operation<P, R>

    Returns the “default value” for a type. Read more
    source§

    impl<'de, P, R> Deserialize<'de> for Operation<P, R>
    where - P: Deserialize<'de>, - R: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>> for Operation

    source§

    fn from(v2: Operation<DefaultParameterRaw, DefaultResponseRaw>) -> Self

    Converts to this type from the input type.
    source§

    impl<P, R> Serialize for Operation<P, R>
    where - P: Serialize, - R: Serialize,

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<P, R> Freeze for Operation<P, R>

    §

    impl<P, R> RefUnwindSafe for Operation<P, R>
    where +

    Trait Implementations§

    source§

    impl<P: Clone, R: Clone> Clone for Operation<P, R>

    source§

    fn clone(&self) -> Operation<P, R>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<P: Debug, R: Debug> Debug for Operation<P, R>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<P: Default, R: Default> Default for Operation<P, R>

    source§

    fn default() -> Operation<P, R>

    Returns the “default value” for a type. Read more
    source§

    impl<'de, P, R> Deserialize<'de> for Operation<P, R>
    where + P: Deserialize<'de>, + R: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>> for Operation

    source§

    fn from(v2: Operation<DefaultParameterRaw, DefaultResponseRaw>) -> Self

    Converts to this type from the input type.
    source§

    impl<P, R> Serialize for Operation<P, R>
    where + P: Serialize, + R: Serialize,

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<P, R> Freeze for Operation<P, R>

    §

    impl<P, R> RefUnwindSafe for Operation<P, R>

    §

    impl<P, R> Send for Operation<P, R>
    where R: Send, @@ -29,23 +29,23 @@ P: Sync,

    §

    impl<P, R> Unpin for Operation<P, R>
    where P: Unpin,

    §

    impl<P, R> UnwindSafe for Operation<P, R>
    where R: RefUnwindSafe, - P: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + P: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/struct.Parameter.html b/paperclip_core/v2/models/struct.Parameter.html index 4eb376a64..55ce47651 100644 --- a/paperclip_core/v2/models/struct.Parameter.html +++ b/paperclip_core/v2/models/struct.Parameter.html @@ -1,4 +1,4 @@ -Parameter in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::Parameter

    source ·
    pub struct Parameter<S> {
    Show 23 fields +Parameter in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::Parameter

    source ·
    pub struct Parameter<S> {
    Show 23 fields pub description: Option<String>, pub in_: ParameterIn, pub name: String, @@ -9,7 +9,7 @@ pub items: Option<Items>, pub collection_format: Option<CollectionFormat>, pub allow_empty_value: bool, - pub default: Option<Value>, + pub default: Option<Value>, pub maximum: Option<f32>, pub exclusive_maximum: Option<bool>, pub minimum: Option<f32>, @@ -21,41 +21,40 @@ pub min_items: Option<u32>, pub unique_items: bool, pub multiple_of: Option<f32>, - pub enum_: Vec<Value>, + pub enum_: Vec<Value>,
    }
    Expand description

    Fields§

    §description: Option<String>§in_: ParameterIn§name: String§required: bool§schema: Option<S>§data_type: Option<DataType>§format: Option<DataTypeFormat>§items: Option<Items>§collection_format: Option<CollectionFormat>§allow_empty_value: bool§default: Option<Value>§maximum: Option<f32>§exclusive_maximum: Option<bool>§minimum: Option<f32>§exclusive_minimum: Option<bool>§max_length: Option<u32>§min_length: Option<u32>§pattern: Option<String>§max_items: Option<u32>§min_items: Option<u32>§unique_items: bool§multiple_of: Option<f32>§enum_: Vec<Value>

    Implementations§

    source§

    impl<S> Parameter<Resolvable<S>>
    where +

    Fields§

    §description: Option<String>§in_: ParameterIn§name: String§required: bool§schema: Option<S>§data_type: Option<DataType>§format: Option<DataTypeFormat>§items: Option<Items>§collection_format: Option<CollectionFormat>§allow_empty_value: bool§default: Option<Value>§maximum: Option<f32>§exclusive_maximum: Option<bool>§minimum: Option<f32>§exclusive_minimum: Option<bool>§max_length: Option<u32>§min_length: Option<u32>§pattern: Option<String>§max_items: Option<u32>§min_items: Option<u32>§unique_items: bool§multiple_of: Option<f32>§enum_: Vec<Value>

    Implementations§

    source§

    impl<S> Parameter<Resolvable<S>>
    where S: Schema,

    source

    pub fn check(&self, path: &str) -> Result<(), ValidationError>

    Checks the validity of this parameter using the relative URL path it’s associated with.

    -

    Trait Implementations§

    source§

    impl<S: Clone> Clone for Parameter<S>

    source§

    fn clone(&self) -> Parameter<S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<S: Debug> Debug for Parameter<S>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<S: Default> Default for Parameter<S>

    source§

    fn default() -> Parameter<S>

    Returns the “default value” for a type. Read more
    source§

    impl<'de, S> Deserialize<'de> for Parameter<S>
    where - S: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Parameter<DefaultSchemaRaw>> for Either<Parameter, Either<RequestBody, Option<Schema>>>

    source§

    fn from(v2: DefaultParameterRaw) -> Self

    Converts to this type from the input type.
    source§

    impl<S: PartialEq> PartialEq for Parameter<S>

    source§

    fn eq(&self, other: &Parameter<S>) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl<S> Serialize for Parameter<S>
    where - S: Serialize,

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl<S> StructuralPartialEq for Parameter<S>

    Auto Trait Implementations§

    §

    impl<S> Freeze for Parameter<S>
    where +

    Trait Implementations§

    source§

    impl<S: Clone> Clone for Parameter<S>

    source§

    fn clone(&self) -> Parameter<S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<S: Debug> Debug for Parameter<S>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<S: Default> Default for Parameter<S>

    source§

    fn default() -> Parameter<S>

    Returns the “default value” for a type. Read more
    source§

    impl<'de, S> Deserialize<'de> for Parameter<S>
    where + S: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Parameter<DefaultSchemaRaw>> for Either<Parameter, Either<RequestBody, Option<Schema>>>

    source§

    fn from(v2: DefaultParameterRaw) -> Self

    Converts to this type from the input type.
    source§

    impl<S: PartialEq> PartialEq for Parameter<S>

    source§

    fn eq(&self, other: &Parameter<S>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl<S> Serialize for Parameter<S>
    where + S: Serialize,

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl<S> StructuralPartialEq for Parameter<S>

    Auto Trait Implementations§

    §

    impl<S> Freeze for Parameter<S>
    where S: Freeze,

    §

    impl<S> RefUnwindSafe for Parameter<S>
    where S: RefUnwindSafe,

    §

    impl<S> Send for Parameter<S>
    where S: Send,

    §

    impl<S> Sync for Parameter<S>
    where S: Sync,

    §

    impl<S> Unpin for Parameter<S>
    where S: Unpin,

    §

    impl<S> UnwindSafe for Parameter<S>
    where - S: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + S: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/struct.PathItem.html b/paperclip_core/v2/models/struct.PathItem.html index 86eb53fad..cda101d7c 100644 --- a/paperclip_core/v2/models/struct.PathItem.html +++ b/paperclip_core/v2/models/struct.PathItem.html @@ -1,4 +1,4 @@ -PathItem in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::PathItem

    source ·
    pub struct PathItem<P, R> {
    +PathItem in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::PathItem

    source ·
    pub struct PathItem<P, R> {
         pub methods: BTreeMap<HttpMethod, Operation<P, R>>,
         pub parameters: Vec<Either<Reference, P>>,
     }
    Expand description

    Path item object.

    @@ -8,13 +8,13 @@
  • Collects and removes parameters shared across operations and adds them to the list global to this map.
  • -

    Trait Implementations§

    source§

    impl<P: Clone, R: Clone> Clone for PathItem<P, R>

    source§

    fn clone(&self) -> PathItem<P, R>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<P: Debug, R: Debug> Debug for PathItem<P, R>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<P: Default, R: Default> Default for PathItem<P, R>

    source§

    fn default() -> PathItem<P, R>

    Returns the “default value” for a type. Read more
    source§

    impl<'de, P, R> Deserialize<'de> for PathItem<P, R>
    where - P: Deserialize<'de>, - R: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<PathItem<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>> for PathItem

    source§

    fn from(v2: DefaultPathItemRaw) -> Self

    Converts to this type from the input type.
    source§

    impl<P, R> Serialize for PathItem<P, R>
    where - P: Serialize, - R: Serialize,

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<P, R> Freeze for PathItem<P, R>

    §

    impl<P, R> RefUnwindSafe for PathItem<P, R>
    where +

    Trait Implementations§

    source§

    impl<P: Clone, R: Clone> Clone for PathItem<P, R>

    source§

    fn clone(&self) -> PathItem<P, R>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<P: Debug, R: Debug> Debug for PathItem<P, R>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<P: Default, R: Default> Default for PathItem<P, R>

    source§

    fn default() -> PathItem<P, R>

    Returns the “default value” for a type. Read more
    source§

    impl<'de, P, R> Deserialize<'de> for PathItem<P, R>
    where + P: Deserialize<'de>, + R: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<PathItem<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>> for PathItem

    source§

    fn from(v2: DefaultPathItemRaw) -> Self

    Converts to this type from the input type.
    source§

    impl<P, R> Serialize for PathItem<P, R>
    where + P: Serialize, + R: Serialize,

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<P, R> Freeze for PathItem<P, R>

    §

    impl<P, R> RefUnwindSafe for PathItem<P, R>

    §

    impl<P, R> Send for PathItem<P, R>
    where P: Send, @@ -23,23 +23,23 @@ R: Sync,

    §

    impl<P, R> Unpin for PathItem<P, R>
    where P: Unpin,

    §

    impl<P, R> UnwindSafe for PathItem<P, R>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + R: RefUnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/struct.Reference.html b/paperclip_core/v2/models/struct.Reference.html index 8b464a289..0c0cdd9cd 100644 --- a/paperclip_core/v2/models/struct.Reference.html +++ b/paperclip_core/v2/models/struct.Reference.html @@ -1,16 +1,15 @@ -Reference in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::Reference

    source ·
    pub struct Reference {
    +Reference in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::Reference

    source ·
    pub struct Reference {
         pub reference: String,
     }
    Expand description

    Fields§

    §reference: String

    Trait Implementations§

    source§

    impl Clone for Reference

    source§

    fn clone(&self) -> Reference

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Reference

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Reference

    source§

    fn default() -> Reference

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Reference

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl<T> From<&Reference> for ReferenceOr<T>

    source§

    fn from(v2: &Reference) -> Self

    Converts to this type from the input type.
    source§

    impl<T> From<Reference> for ReferenceOr<T>

    source§

    fn from(v2: Reference) -> Self

    Converts to this type from the input type.
    source§

    impl PartialEq for Reference

    source§

    fn eq(&self, other: &Reference) -> bool

    This method tests for self and other values to be equal, and is used -by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Serialize for Reference

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Eq for Reference

    source§

    impl StructuralPartialEq for Reference

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Equivalent<K> for Q
    where +

    Fields§

    §reference: String

    Trait Implementations§

    source§

    impl Clone for Reference

    source§

    fn clone(&self) -> Reference

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Reference

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Reference

    source§

    fn default() -> Reference

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Reference

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl<T> From<&Reference> for ReferenceOr<T>

    source§

    fn from(v2: &Reference) -> Self

    Converts to this type from the input type.
    source§

    impl<T> From<Reference> for ReferenceOr<T>

    source§

    fn from(v2: Reference) -> Self

    Converts to this type from the input type.
    source§

    impl PartialEq for Reference

    source§

    fn eq(&self, other: &Reference) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl Serialize for Reference

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Eq for Reference

    source§

    impl StructuralPartialEq for Reference

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    §

    impl<Q, K> Equivalent<K> for Q
    where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

    §

    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
    where Q: Eq + ?Sized, @@ -23,12 +22,12 @@ U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/struct.Response.html b/paperclip_core/v2/models/struct.Response.html index 73b9ab2ea..128ab3b16 100644 --- a/paperclip_core/v2/models/struct.Response.html +++ b/paperclip_core/v2/models/struct.Response.html @@ -1,36 +1,36 @@ -Response in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::Response

    source ·
    pub struct Response<S> {
    +Response in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::Response

    source ·
    pub struct Response<S> {
         pub description: Option<String>,
         pub schema: Option<S>,
         pub headers: BTreeMap<String, Header>,
     }
    Expand description

    Fields§

    §description: Option<String>§schema: Option<S>§headers: BTreeMap<String, Header>

    Trait Implementations§

    source§

    impl<S: Clone> Clone for Response<S>

    source§

    fn clone(&self) -> Response<S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<S: Debug> Debug for Response<S>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<S: Default> Default for Response<S>

    source§

    fn default() -> Response<S>

    Returns the “default value” for a type. Read more
    source§

    impl<'de, S> Deserialize<'de> for Response<S>
    where - S: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Response<DefaultSchemaRaw>> for ReferenceOr<Response>

    source§

    fn from(v2: DefaultResponseRaw) -> Self

    Converts to this type from the input type.
    source§

    impl<S> Serialize for Response<S>
    where - S: Serialize,

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<S> Freeze for Response<S>
    where +

    Fields§

    §description: Option<String>§schema: Option<S>§headers: BTreeMap<String, Header>

    Trait Implementations§

    source§

    impl<S: Clone> Clone for Response<S>

    source§

    fn clone(&self) -> Response<S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<S: Debug> Debug for Response<S>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<S: Default> Default for Response<S>

    source§

    fn default() -> Response<S>

    Returns the “default value” for a type. Read more
    source§

    impl<'de, S> Deserialize<'de> for Response<S>
    where + S: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Response<DefaultSchemaRaw>> for ReferenceOr<Response>

    source§

    fn from(v2: DefaultResponseRaw) -> Self

    Converts to this type from the input type.
    source§

    impl<S> Serialize for Response<S>
    where + S: Serialize,

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl<S> Freeze for Response<S>
    where S: Freeze,

    §

    impl<S> RefUnwindSafe for Response<S>
    where S: RefUnwindSafe,

    §

    impl<S> Send for Response<S>
    where S: Send,

    §

    impl<S> Sync for Response<S>
    where S: Sync,

    §

    impl<S> Unpin for Response<S>
    where S: Unpin,

    §

    impl<S> UnwindSafe for Response<S>
    where - S: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + S: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/struct.SecurityScheme.html b/paperclip_core/v2/models/struct.SecurityScheme.html index 313a54457..08f0e5db0 100644 --- a/paperclip_core/v2/models/struct.SecurityScheme.html +++ b/paperclip_core/v2/models/struct.SecurityScheme.html @@ -1,4 +1,4 @@ -SecurityScheme in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::SecurityScheme

    source ·
    pub struct SecurityScheme {
    +SecurityScheme in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::SecurityScheme

    source ·
    pub struct SecurityScheme {
         pub name: Option<String>,
         pub type_: String,
         pub in_: Option<String>,
    @@ -18,25 +18,25 @@
         old: BTreeMap<String, SecurityScheme>,
         new: &mut BTreeMap<String, SecurityScheme>,
     )

    Appends one map to the other whilst merging individual scheme properties.

    -

    Trait Implementations§

    source§

    impl Clone for SecurityScheme

    source§

    fn clone(&self) -> SecurityScheme

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for SecurityScheme

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for SecurityScheme

    source§

    fn default() -> SecurityScheme

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for SecurityScheme

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<SecurityScheme> for SecurityScheme

    source§

    fn from(v2: SecurityScheme) -> Self

    Converts to this type from the input type.
    source§

    impl Serialize for SecurityScheme

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Clone for SecurityScheme

    source§

    fn clone(&self) -> SecurityScheme

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for SecurityScheme

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for SecurityScheme

    source§

    fn default() -> SecurityScheme

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for SecurityScheme

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<SecurityScheme> for SecurityScheme

    source§

    fn from(v2: SecurityScheme) -> Self

    Converts to this type from the input type.
    source§

    impl Serialize for SecurityScheme

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/struct.Tag.html b/paperclip_core/v2/models/struct.Tag.html index 40aabebd1..62c56e40b 100644 --- a/paperclip_core/v2/models/struct.Tag.html +++ b/paperclip_core/v2/models/struct.Tag.html @@ -1,28 +1,28 @@ -Tag in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::Tag

    source ·
    pub struct Tag {
    +Tag in paperclip_core::v2::models - Rust

    Struct paperclip_core::v2::models::Tag

    source ·
    pub struct Tag {
         pub name: String,
         pub description: Option<String>,
         pub external_docs: Option<ExternalDocs>,
     }
    Expand description

    Fields§

    §name: String§description: Option<String>§external_docs: Option<ExternalDocs>

    Trait Implementations§

    source§

    impl Clone for Tag

    source§

    fn clone(&self) -> Tag

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Tag

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Tag

    source§

    fn default() -> Tag

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Tag

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Tag> for Tag

    source§

    fn from(v2: Tag) -> Self

    Converts to this type from the input type.
    source§

    impl Serialize for Tag

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Tag

    §

    impl RefUnwindSafe for Tag

    §

    impl Send for Tag

    §

    impl Sync for Tag

    §

    impl Unpin for Tag

    §

    impl UnwindSafe for Tag

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where - T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Fields§

    §name: String§description: Option<String>§external_docs: Option<ExternalDocs>

    Trait Implementations§

    source§

    impl Clone for Tag

    source§

    fn clone(&self) -> Tag

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Tag

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Tag

    source§

    fn default() -> Tag

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for Tag

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<Tag> for Tag

    source§

    fn from(v2: Tag) -> Self

    Converts to this type from the input type.
    source§

    impl Serialize for Tag

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Tag

    §

    impl RefUnwindSafe for Tag

    §

    impl Send for Tag

    §

    impl Sync for Tag

    §

    impl Unpin for Tag

    §

    impl UnwindSafe for Tag

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> CloneToUninit for T
    where + T: Clone,

    source§

    default unsafe fn clone_to_uninit(&self, dst: *mut T)

    🔬This is a nightly-only experimental API. (clone_to_uninit)
    Performs copy-assignment from self to dst. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    \ No newline at end of file +[WithDispatch] wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/paperclip_core/v2/models/type.DefaultApiRaw.html b/paperclip_core/v2/models/type.DefaultApiRaw.html index e3d1d253e..80d808279 100644 --- a/paperclip_core/v2/models/type.DefaultApiRaw.html +++ b/paperclip_core/v2/models/type.DefaultApiRaw.html @@ -1,4 +1,4 @@ -DefaultApiRaw in paperclip_core::v2::models - Rust

    Type Alias paperclip_core::v2::models::DefaultApiRaw

    source ·
    pub type DefaultApiRaw = Api<DefaultParameterRaw, DefaultResponseRaw, DefaultSchemaRaw>;
    Expand description

    OpenAPI v2 spec with defaults.

    +DefaultApiRaw in paperclip_core::v2::models - Rust

    Type Alias paperclip_core::v2::models::DefaultApiRaw

    source ·
    pub type DefaultApiRaw = Api<DefaultParameterRaw, DefaultResponseRaw, DefaultSchemaRaw>;
    Expand description

    OpenAPI v2 spec with defaults.

    Aliased Type§

    struct DefaultApiRaw {
    Show 19 fields pub swagger: Version, pub definitions: BTreeMap<String, DefaultSchemaRaw>, @@ -18,7 +18,7 @@ pub support_crates: BTreeMap<String, String>, pub spec_format: SpecFormat, pub info: Info, - pub extensions: BTreeMap<String, Value>, + pub extensions: BTreeMap<String, Value>,
    }

    Fields§

    §swagger: Version§definitions: BTreeMap<String, DefaultSchemaRaw>§paths: BTreeMap<String, PathItem<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>>§host: Option<String>§base_path: Option<String>§consumes: BTreeSet<MediaRange>§produces: BTreeSet<MediaRange>§schemes: BTreeSet<OperationProtocol>§parameters: BTreeMap<String, Parameter<DefaultSchemaRaw>>§responses: BTreeMap<String, Response<DefaultSchemaRaw>>§security_definitions: BTreeMap<String, SecurityScheme>§security: Vec<BTreeMap<String, BTreeSet<String>>>§tags: Vec<Tag>§external_docs: Option<ExternalDocs>§coders: Coders

    Extension for custom coders to be used for decoding API objects.

    An example for JSON would be:

    x-rust-coders:
    @@ -36,10 +36,10 @@
     wherever required.

    For example, the following are all valid:

      -
    • my_crate: "0.7"
    • -
    • my_crate: "{ git = \"git://foo.bar/repo\" }"
    • -
    • my_crate: "{ version = \"0.9\", features = [\"booya\"] }"
    • +
    • my_crate: "0.7"
    • +
    • my_crate: "{ git = \"git://foo.bar/repo\" }"
    • +
    • my_crate: "{ version = \"0.9\", features = [\"booya\"] }"
    §spec_format: SpecFormat

    This field is set manually, because we don’t know the format in which the spec was provided and we need to use this as the fallback encoding.

    -
    §info: Info§extensions: BTreeMap<String, Value>
    \ No newline at end of file +
    §info: Info§extensions: BTreeMap<String, Value>
    \ No newline at end of file diff --git a/paperclip_core/v2/models/type.DefaultOperationRaw.html b/paperclip_core/v2/models/type.DefaultOperationRaw.html index 96fc65858..a4ef394bf 100644 --- a/paperclip_core/v2/models/type.DefaultOperationRaw.html +++ b/paperclip_core/v2/models/type.DefaultOperationRaw.html @@ -1,4 +1,4 @@ -DefaultOperationRaw in paperclip_core::v2::models - Rust

    Type Alias paperclip_core::v2::models::DefaultOperationRaw

    source ·
    pub type DefaultOperationRaw = Operation<DefaultParameterRaw, DefaultResponseRaw>;
    Expand description

    Operation with default raw parameter and response.

    +DefaultOperationRaw in paperclip_core::v2::models - Rust

    Type Alias paperclip_core::v2::models::DefaultOperationRaw

    source ·
    pub type DefaultOperationRaw = Operation<DefaultParameterRaw, DefaultResponseRaw>;
    Expand description

    Operation with default raw parameter and response.

    Aliased Type§

    struct DefaultOperationRaw {
         pub operation_id: Option<String>,
         pub summary: Option<String>,
    diff --git a/paperclip_core/v2/models/type.DefaultParameterRaw.html b/paperclip_core/v2/models/type.DefaultParameterRaw.html
    index 70702d427..7b9d1531e 100644
    --- a/paperclip_core/v2/models/type.DefaultParameterRaw.html
    +++ b/paperclip_core/v2/models/type.DefaultParameterRaw.html
    @@ -1,4 +1,4 @@
    -DefaultParameterRaw in paperclip_core::v2::models - Rust

    Type Alias paperclip_core::v2::models::DefaultParameterRaw

    source ·
    pub type DefaultParameterRaw = Parameter<DefaultSchemaRaw>;
    Expand description

    Parameter with the default raw schema.

    +DefaultParameterRaw in paperclip_core::v2::models - Rust

    Type Alias paperclip_core::v2::models::DefaultParameterRaw

    source ·
    pub type DefaultParameterRaw = Parameter<DefaultSchemaRaw>;
    Expand description

    Parameter with the default raw schema.

    Aliased Type§

    struct DefaultParameterRaw {
    Show 23 fields pub description: Option<String>, pub in_: ParameterIn, @@ -10,7 +10,7 @@ pub items: Option<Items>, pub collection_format: Option<CollectionFormat>, pub allow_empty_value: bool, - pub default: Option<Value>, + pub default: Option<Value>, pub maximum: Option<f32>, pub exclusive_maximum: Option<bool>, pub minimum: Option<f32>, @@ -22,5 +22,5 @@ pub min_items: Option<u32>, pub unique_items: bool, pub multiple_of: Option<f32>, - pub enum_: Vec<Value>, -
    }

    Fields§

    §description: Option<String>§in_: ParameterIn§name: String§required: bool§schema: Option<DefaultSchemaRaw>§data_type: Option<DataType>§format: Option<DataTypeFormat>§items: Option<Items>§collection_format: Option<CollectionFormat>§allow_empty_value: bool§default: Option<Value>§maximum: Option<f32>§exclusive_maximum: Option<bool>§minimum: Option<f32>§exclusive_minimum: Option<bool>§max_length: Option<u32>§min_length: Option<u32>§pattern: Option<String>§max_items: Option<u32>§min_items: Option<u32>§unique_items: bool§multiple_of: Option<f32>§enum_: Vec<Value>
    \ No newline at end of file + pub enum_: Vec<Value>, +
    }

    Fields§

    §description: Option<String>§in_: ParameterIn§name: String§required: bool§schema: Option<DefaultSchemaRaw>§data_type: Option<DataType>§format: Option<DataTypeFormat>§items: Option<Items>§collection_format: Option<CollectionFormat>§allow_empty_value: bool§default: Option<Value>§maximum: Option<f32>§exclusive_maximum: Option<bool>§minimum: Option<f32>§exclusive_minimum: Option<bool>§max_length: Option<u32>§min_length: Option<u32>§pattern: Option<String>§max_items: Option<u32>§min_items: Option<u32>§unique_items: bool§multiple_of: Option<f32>§enum_: Vec<Value>
    \ No newline at end of file diff --git a/paperclip_core/v2/models/type.DefaultPathItemRaw.html b/paperclip_core/v2/models/type.DefaultPathItemRaw.html index 1340574d4..e01ce41f8 100644 --- a/paperclip_core/v2/models/type.DefaultPathItemRaw.html +++ b/paperclip_core/v2/models/type.DefaultPathItemRaw.html @@ -1,4 +1,4 @@ -DefaultPathItemRaw in paperclip_core::v2::models - Rust

    Type Alias paperclip_core::v2::models::DefaultPathItemRaw

    source ·
    pub type DefaultPathItemRaw = PathItem<DefaultParameterRaw, DefaultResponseRaw>;
    Expand description

    Path item with default parameter and response.

    +DefaultPathItemRaw in paperclip_core::v2::models - Rust

    Type Alias paperclip_core::v2::models::DefaultPathItemRaw

    source ·
    pub type DefaultPathItemRaw = PathItem<DefaultParameterRaw, DefaultResponseRaw>;
    Expand description

    Path item with default parameter and response.

    Aliased Type§

    struct DefaultPathItemRaw {
         pub methods: BTreeMap<HttpMethod, Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>>,
         pub parameters: Vec<Either<Reference, Parameter<DefaultSchemaRaw>>>,
    diff --git a/paperclip_core/v2/models/type.DefaultResponseRaw.html b/paperclip_core/v2/models/type.DefaultResponseRaw.html
    index df230ef7e..676731be5 100644
    --- a/paperclip_core/v2/models/type.DefaultResponseRaw.html
    +++ b/paperclip_core/v2/models/type.DefaultResponseRaw.html
    @@ -1,4 +1,4 @@
    -DefaultResponseRaw in paperclip_core::v2::models - Rust

    Type Alias paperclip_core::v2::models::DefaultResponseRaw

    source ·
    pub type DefaultResponseRaw = Response<DefaultSchemaRaw>;
    Expand description

    Response with the default raw schema.

    +DefaultResponseRaw in paperclip_core::v2::models - Rust

    Type Alias paperclip_core::v2::models::DefaultResponseRaw

    source ·
    pub type DefaultResponseRaw = Response<DefaultSchemaRaw>;
    Expand description

    Response with the default raw schema.

    Aliased Type§

    struct DefaultResponseRaw {
         pub description: Option<String>,
         pub schema: Option<DefaultSchemaRaw>,
    diff --git a/paperclip_core/v2/models/type.ResolvableApi.html b/paperclip_core/v2/models/type.ResolvableApi.html
    index 7cd4c53e3..974f89930 100644
    --- a/paperclip_core/v2/models/type.ResolvableApi.html
    +++ b/paperclip_core/v2/models/type.ResolvableApi.html
    @@ -1,4 +1,4 @@
    -ResolvableApi in paperclip_core::v2::models - Rust

    Type Alias paperclip_core::v2::models::ResolvableApi

    source ·
    pub type ResolvableApi<S> = Api<ResolvableParameter<S>, ResolvableResponse<S>, Resolvable<S>>;
    Expand description

    OpenAPI v2 spec which can be traversed and resolved for codegen.

    +ResolvableApi in paperclip_core::v2::models - Rust

    Type Alias paperclip_core::v2::models::ResolvableApi

    source ·
    pub type ResolvableApi<S> = Api<ResolvableParameter<S>, ResolvableResponse<S>, Resolvable<S>>;
    Expand description

    OpenAPI v2 spec which can be traversed and resolved for codegen.

    Aliased Type§

    struct ResolvableApi<S> {
    Show 19 fields pub swagger: Version, pub definitions: BTreeMap<String, Resolvable<S>>, @@ -18,7 +18,7 @@ pub support_crates: BTreeMap<String, String>, pub spec_format: SpecFormat, pub info: Info, - pub extensions: BTreeMap<String, Value>, + pub extensions: BTreeMap<String, Value>,
    }

    Fields§

    §swagger: Version§definitions: BTreeMap<String, Resolvable<S>>§paths: BTreeMap<String, PathItem<Arc<RwLock<Parameter<Resolvable<S>>>>, Arc<RwLock<Response<Resolvable<S>>>>>>§host: Option<String>§base_path: Option<String>§consumes: BTreeSet<MediaRange>§produces: BTreeSet<MediaRange>§schemes: BTreeSet<OperationProtocol>§parameters: BTreeMap<String, Arc<RwLock<Parameter<Resolvable<S>>>>>§responses: BTreeMap<String, Arc<RwLock<Response<Resolvable<S>>>>>§security_definitions: BTreeMap<String, SecurityScheme>§security: Vec<BTreeMap<String, BTreeSet<String>>>§tags: Vec<Tag>§external_docs: Option<ExternalDocs>§coders: Coders

    Extension for custom coders to be used for decoding API objects.

    An example for JSON would be:

    x-rust-coders:
    @@ -36,13 +36,13 @@
     wherever required.

    For example, the following are all valid:

      -
    • my_crate: "0.7"
    • -
    • my_crate: "{ git = \"git://foo.bar/repo\" }"
    • -
    • my_crate: "{ version = \"0.9\", features = [\"booya\"] }"
    • +
    • my_crate: "0.7"
    • +
    • my_crate: "{ git = \"git://foo.bar/repo\" }"
    • +
    • my_crate: "{ version = \"0.9\", features = [\"booya\"] }"
    §spec_format: SpecFormat

    This field is set manually, because we don’t know the format in which the spec was provided and we need to use this as the fallback encoding.

    -
    §info: Info§extensions: BTreeMap<String, Value>

    Implementations§

    source§

    impl<S: Schema + Default> ResolvableApi<S>

    source

    pub fn resolve(self) -> Result<ResolvableApi<S>, ValidationError>

    Consumes this API schema, resolves the references and returns +

    §info: Info§extensions: BTreeMap<String, Value>

    Implementations§

    source§

    impl<S: Schema + Default> ResolvableApi<S>

    source

    pub fn resolve(self) -> Result<ResolvableApi<S>, ValidationError>

    Consumes this API schema, resolves the references and returns the resolved schema.

    This walks recursively, collects the referenced schema objects, substitutes the referenced IDs with the pointer to schema objects diff --git a/paperclip_core/v2/models/type.ResolvableOperation.html b/paperclip_core/v2/models/type.ResolvableOperation.html index e74fe09ac..af7c2023d 100644 --- a/paperclip_core/v2/models/type.ResolvableOperation.html +++ b/paperclip_core/v2/models/type.ResolvableOperation.html @@ -1,4 +1,4 @@ -ResolvableOperation in paperclip_core::v2::models - Rust

    Type Alias paperclip_core::v2::models::ResolvableOperation

    source ·
    pub type ResolvableOperation<S> = Operation<ResolvableParameter<S>, ResolvableResponse<S>>;
    Expand description

    Operation that can be traversed and resolved for codegen.

    +ResolvableOperation in paperclip_core::v2::models - Rust

    Type Alias paperclip_core::v2::models::ResolvableOperation

    source ·
    pub type ResolvableOperation<S> = Operation<ResolvableParameter<S>, ResolvableResponse<S>>;
    Expand description

    Operation that can be traversed and resolved for codegen.

    Aliased Type§

    struct ResolvableOperation<S> {
         pub operation_id: Option<String>,
         pub summary: Option<String>,
    diff --git a/paperclip_core/v2/models/type.ResolvableParameter.html b/paperclip_core/v2/models/type.ResolvableParameter.html
    index fff56b7d1..1180169aa 100644
    --- a/paperclip_core/v2/models/type.ResolvableParameter.html
    +++ b/paperclip_core/v2/models/type.ResolvableParameter.html
    @@ -1,2 +1,2 @@
    -ResolvableParameter in paperclip_core::v2::models - Rust

    Type Alias paperclip_core::v2::models::ResolvableParameter

    source ·
    pub type ResolvableParameter<S> = Arc<RwLock<Parameter<Resolvable<S>>>>;
    Expand description

    Parameter that can be traversed and resolved for codegen.

    +ResolvableParameter in paperclip_core::v2::models - Rust

    Type Alias paperclip_core::v2::models::ResolvableParameter

    source ·
    pub type ResolvableParameter<S> = Arc<RwLock<Parameter<Resolvable<S>>>>;
    Expand description

    Parameter that can be traversed and resolved for codegen.

    Aliased Type§

    struct ResolvableParameter<S> { /* private fields */ }
    \ No newline at end of file diff --git a/paperclip_core/v2/models/type.ResolvablePathItem.html b/paperclip_core/v2/models/type.ResolvablePathItem.html index 9367604e1..6d9037410 100644 --- a/paperclip_core/v2/models/type.ResolvablePathItem.html +++ b/paperclip_core/v2/models/type.ResolvablePathItem.html @@ -1,4 +1,4 @@ -ResolvablePathItem in paperclip_core::v2::models - Rust

    Type Alias paperclip_core::v2::models::ResolvablePathItem

    source ·
    pub type ResolvablePathItem<S> = PathItem<ResolvableParameter<S>, ResolvableResponse<S>>;
    Expand description

    Path item that can be traversed and resolved for codegen.

    +ResolvablePathItem in paperclip_core::v2::models - Rust

    Type Alias paperclip_core::v2::models::ResolvablePathItem

    source ·
    pub type ResolvablePathItem<S> = PathItem<ResolvableParameter<S>, ResolvableResponse<S>>;
    Expand description

    Path item that can be traversed and resolved for codegen.

    Aliased Type§

    struct ResolvablePathItem<S> {
         pub methods: BTreeMap<HttpMethod, Operation<Arc<RwLock<Parameter<Resolvable<S>>>>, Arc<RwLock<Response<Resolvable<S>>>>>>,
         pub parameters: Vec<Either<Reference, Arc<RwLock<Parameter<Resolvable<S>>>>>>,
    diff --git a/paperclip_core/v2/models/type.ResolvableResponse.html b/paperclip_core/v2/models/type.ResolvableResponse.html
    index c991deec7..e0093fc8d 100644
    --- a/paperclip_core/v2/models/type.ResolvableResponse.html
    +++ b/paperclip_core/v2/models/type.ResolvableResponse.html
    @@ -1,2 +1,2 @@
    -ResolvableResponse in paperclip_core::v2::models - Rust

    Type Alias paperclip_core::v2::models::ResolvableResponse

    source ·
    pub type ResolvableResponse<S> = Arc<RwLock<Response<Resolvable<S>>>>;
    Expand description

    Response that can be traversed and resolved for codegen.

    +ResolvableResponse in paperclip_core::v2::models - Rust

    Type Alias paperclip_core::v2::models::ResolvableResponse

    source ·
    pub type ResolvableResponse<S> = Arc<RwLock<Response<Resolvable<S>>>>;
    Expand description

    Response that can be traversed and resolved for codegen.

    Aliased Type§

    struct ResolvableResponse<S> { /* private fields */ }
    \ No newline at end of file diff --git a/paperclip_core/v2/schema/index.html b/paperclip_core/v2/schema/index.html index ea70bfa4f..776ac1d95 100644 --- a/paperclip_core/v2/schema/index.html +++ b/paperclip_core/v2/schema/index.html @@ -1,5 +1,5 @@ -paperclip_core::v2::schema - Rust

    Module paperclip_core::v2::schema

    source ·
    Expand description

    Traits used for code and spec generation.

    -

    Traits§

    • Represents a OpenAPI v2 error convertible. This is auto-implemented by -framework-specific macros:
    • Represents a OpenAPI v2 operation convertible. This is auto-implemented by -framework-specific macros:
    • Represents a OpenAPI v2 schema object convertible. This is auto-implemented by -framework-specific macros:
    • Interface for the Schema object.
    • Trait for returning OpenAPI data type and format for the implementor.
    \ No newline at end of file +paperclip_core::v2::schema - Rust

    Module paperclip_core::v2::schema

    source ·
    Expand description

    Traits used for code and spec generation.

    +

    Traits§

    • Represents a OpenAPI v2 error convertible. This is auto-implemented by +framework-specific macros:
    • Represents a OpenAPI v2 operation convertible. This is auto-implemented by +framework-specific macros:
    • Represents a OpenAPI v2 schema object convertible. This is auto-implemented by +framework-specific macros:
    • Interface for the Schema object.
    • Trait for returning OpenAPI data type and format for the implementor.
    \ No newline at end of file diff --git a/paperclip_core/v2/schema/trait.Apiv2Errors.html b/paperclip_core/v2/schema/trait.Apiv2Errors.html index 320b75103..b12dec5e2 100644 --- a/paperclip_core/v2/schema/trait.Apiv2Errors.html +++ b/paperclip_core/v2/schema/trait.Apiv2Errors.html @@ -1,4 +1,4 @@ -Apiv2Errors in paperclip_core::v2::schema - Rust

    Trait paperclip_core::v2::schema::Apiv2Errors

    source ·
    pub trait Apiv2Errors {
    +Apiv2Errors in paperclip_core::v2::schema - Rust

    Trait paperclip_core::v2::schema::Apiv2Errors

    source ·
    pub trait Apiv2Errors {
         const ERROR_MAP: &'static [(u16, &'static str)] = _;
     
         // Provided methods
    @@ -9,4 +9,4 @@
     
    -

    Provided Associated Constants§

    source

    const ERROR_MAP: &'static [(u16, &'static str)] = _

    Provided Methods§

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl Apiv2Errors for ()

    source§

    impl Apiv2Errors for Error

    Implementors§

    \ No newline at end of file +

    Provided Associated Constants§

    source

    const ERROR_MAP: &'static [(u16, &'static str)] = _

    Provided Methods§

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl Apiv2Errors for ()

    source§

    impl Apiv2Errors for Error

    Implementors§

    \ No newline at end of file diff --git a/paperclip_core/v2/schema/trait.Apiv2Operation.html b/paperclip_core/v2/schema/trait.Apiv2Operation.html index 486b29581..e734a1535 100644 --- a/paperclip_core/v2/schema/trait.Apiv2Operation.html +++ b/paperclip_core/v2/schema/trait.Apiv2Operation.html @@ -1,4 +1,4 @@ -Apiv2Operation in paperclip_core::v2::schema - Rust

    Trait paperclip_core::v2::schema::Apiv2Operation

    source ·
    pub trait Apiv2Operation {
    +Apiv2Operation in paperclip_core::v2::schema - Rust

    Trait paperclip_core::v2::schema::Apiv2Operation

    source ·
    pub trait Apiv2Operation {
         // Required methods
         fn operation() -> DefaultOperationRaw;
         fn security_definitions() -> BTreeMap<String, SecurityScheme>;
    @@ -13,11 +13,11 @@
     
     

    NOTE: The type parameters specified here aren’t used by the trait itself, but can be used for constraining stuff in framework-related impls.

    -

    Required Methods§

    source

    fn operation() -> DefaultOperationRaw

    Returns the definition for this operation.

    -
    source

    fn security_definitions() -> BTreeMap<String, SecurityScheme>

    Returns a map of security definitions that will be merged globally.

    -
    source

    fn definitions() -> BTreeMap<String, DefaultSchemaRaw>

    Returns the definitions used by this operation.

    -

    Provided Methods§

    Object Safety§

    This trait is not object safe.

    Implementors§

    source§

    impl<F> Apiv2Operation for F
    where - F: Future<Output = HttpResponseWrapper>,

    source§

    impl<F, T, H> Apiv2Operation for ResponseWrapper<F, H>
    where +

    Required Methods§

    source

    fn operation() -> DefaultOperationRaw

    Returns the definition for this operation.

    +
    source

    fn security_definitions() -> BTreeMap<String, SecurityScheme>

    Returns a map of security definitions that will be merged globally.

    +
    source

    fn definitions() -> BTreeMap<String, DefaultSchemaRaw>

    Returns the definitions used by this operation.

    +

    Provided Methods§

    Object Safety§

    This trait is not object safe.

    Implementors§

    source§

    impl<F> Apiv2Operation for F
    where + F: Future<Output = HttpResponseWrapper>,

    source§

    impl<F, T, H> Apiv2Operation for ResponseWrapper<F, H>
    where F: Future<Output = T>, T: OperationModifier + Responder, H: Apiv2Operation,

    \ No newline at end of file diff --git a/paperclip_core/v2/schema/trait.Apiv2Schema.html b/paperclip_core/v2/schema/trait.Apiv2Schema.html index 9172a8f1c..6b0ebdd82 100644 --- a/paperclip_core/v2/schema/trait.Apiv2Schema.html +++ b/paperclip_core/v2/schema/trait.Apiv2Schema.html @@ -1,4 +1,4 @@ -Apiv2Schema in paperclip_core::v2::schema - Rust

    Trait paperclip_core::v2::schema::Apiv2Schema

    source ·
    pub trait Apiv2Schema {
    +Apiv2Schema in paperclip_core::v2::schema - Rust

    Trait paperclip_core::v2::schema::Apiv2Schema

    source ·
    pub trait Apiv2Schema {
         // Provided methods
         fn name() -> Option<String> { ... }
         fn description() -> &'static str { ... }
    @@ -18,11 +18,11 @@
     for header parameters objects.
     
     

    This is implemented for primitive types by default.

    -

    Provided Methods§

    source

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.

    -
    source

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.

    -
    source

    fn required() -> bool

    Indicates the requirement of this schema.

    -
    source

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.

    -
    source

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object).

    +

    Provided Methods§

    source

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.

    +
    source

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.

    +
    source

    fn required() -> bool

    Indicates the requirement of this schema.

    +
    source

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.

    +
    source

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object).

    Here, we set the global reference to this object using its name, and we either remove the reference (remove_refs) or remove all properties other than the reference (retain_ref) based on where @@ -33,8 +33,8 @@ and so I went for runtime collection. Even though this happens at runtime, we’re only doing this once at the start of the application, so it won’t affect the incoming requests at all.

    -
    source

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.

    -
    source

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl Apiv2Schema for Value

    source§

    impl Apiv2Schema for Value

    source§

    impl Apiv2Schema for ()

    source§

    impl Apiv2Schema for Bytes

    source§

    impl Apiv2Schema for HttpRequest

    source§

    impl Apiv2Schema for HttpResponse

    source§

    impl Apiv2Schema for Payload

    source§

    impl Apiv2Schema for Response<BoxBody>

    source§

    impl<'a, T: Apiv2Schema> Apiv2Schema for &'a [T]

    source§

    impl<A: Apiv2Schema> Apiv2Schema for Path<(A,)>

    source§

    impl<A: Apiv2Schema, B: Apiv2Schema> Apiv2Schema for Path<(A, B)>

    source§

    impl<A: Apiv2Schema, B: Apiv2Schema, C: Apiv2Schema> Apiv2Schema for Path<(A, B, C)>

    source§

    impl<A: Apiv2Schema, B: Apiv2Schema, C: Apiv2Schema, D: Apiv2Schema> Apiv2Schema for Path<(A, B, C, D)>

    source§

    impl<A: Apiv2Schema, B: Apiv2Schema, C: Apiv2Schema, D: Apiv2Schema, E: Apiv2Schema> Apiv2Schema for Path<(A, B, C, D, E)>

    source§

    impl<A: Apiv2Schema, B: Apiv2Schema, C: Apiv2Schema, D: Apiv2Schema, E: Apiv2Schema, F: Apiv2Schema> Apiv2Schema for Path<(A, B, C, D, E, F)>

    source§

    impl<A: Apiv2Schema, B: Apiv2Schema, C: Apiv2Schema, D: Apiv2Schema, E: Apiv2Schema, F: Apiv2Schema, G: Apiv2Schema> Apiv2Schema for Path<(A, B, C, D, E, F, G)>

    source§

    impl<A: Apiv2Schema, B: Apiv2Schema, C: Apiv2Schema, D: Apiv2Schema, E: Apiv2Schema, F: Apiv2Schema, G: Apiv2Schema, H: Apiv2Schema> Apiv2Schema for Path<(A, B, C, D, E, F, G, H)>

    source§

    impl<A: Apiv2Schema, B: Apiv2Schema, C: Apiv2Schema, D: Apiv2Schema, E: Apiv2Schema, F: Apiv2Schema, G: Apiv2Schema, H: Apiv2Schema, I: Apiv2Schema> Apiv2Schema for Path<(A, B, C, D, E, F, G, H, I)>

    source§

    impl<A: Apiv2Schema, B: Apiv2Schema, C: Apiv2Schema, D: Apiv2Schema, E: Apiv2Schema, F: Apiv2Schema, G: Apiv2Schema, H: Apiv2Schema, I: Apiv2Schema, J: Apiv2Schema> Apiv2Schema for Path<(A, B, C, D, E, F, G, H, I, J)>

    source§

    impl<A: Apiv2Schema, B: Apiv2Schema, C: Apiv2Schema, D: Apiv2Schema, E: Apiv2Schema, F: Apiv2Schema, G: Apiv2Schema, H: Apiv2Schema, I: Apiv2Schema, J: Apiv2Schema, K: Apiv2Schema> Apiv2Schema for Path<(A, B, C, D, E, F, G, H, I, J, K)>

    source§

    impl<A: Apiv2Schema, B: Apiv2Schema, C: Apiv2Schema, D: Apiv2Schema, E: Apiv2Schema, F: Apiv2Schema, G: Apiv2Schema, H: Apiv2Schema, I: Apiv2Schema, J: Apiv2Schema, K: Apiv2Schema, L: Apiv2Schema> Apiv2Schema for Path<(A, B, C, D, E, F, G, H, I, J, K, L)>

    source§

    impl<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> Apiv2Schema for Path<(A, B, C, D, E, F, G, H, I, J, K, L, M)>

    source§

    impl<K: ToString, V: Apiv2Schema> Apiv2Schema for BTreeMap<K, V>

    source§

    impl<K: ToString, V: Apiv2Schema> Apiv2Schema for HashMap<K, V>

    source§

    impl<T> Apiv2Schema for Data<T>

    source§

    impl<T: Clone> Apiv2Schema for ReqData<T>

    source§

    impl<T: Apiv2Schema + Clone> Apiv2Schema for Cow<'_, T>

    source§

    impl<T: Apiv2Schema> Apiv2Schema for Option<T>

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 0]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 1]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 2]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 3]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 4]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 5]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 6]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 7]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 8]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 9]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 10]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 11]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 12]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 13]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 14]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 15]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 16]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 17]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 18]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 19]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 20]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 21]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 22]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 23]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 24]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 25]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 26]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 27]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 28]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 29]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 30]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 31]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 32]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for BinaryHeap<T>

    source§

    impl<T: Apiv2Schema> Apiv2Schema for BTreeSet<T>

    source§

    impl<T: Apiv2Schema> Apiv2Schema for LinkedList<T>

    source§

    impl<T: Apiv2Schema> Apiv2Schema for VecDeque<T>

    source§

    impl<T: Apiv2Schema> Apiv2Schema for Vec<T>

    source§

    impl<T: Apiv2Schema> Apiv2Schema for HashSet<T>

    source§

    impl<T: Apiv2Schema> Apiv2Schema for Form<T>

    source§

    impl<T: Apiv2Schema> Apiv2Schema for Json<T>

    JSON needs specialization because it updates the global definitions.

    -
    source§

    impl<T: Apiv2Schema> Apiv2Schema for Path<T>

    source§

    impl<T: Apiv2Schema> Apiv2Schema for Query<T>

    source§

    impl<T: Apiv2Schema, E> Apiv2Schema for Result<T, E>

    Implementors§

    \ No newline at end of file +
    source

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.

    +
    source

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl Apiv2Schema for Value

    source§

    impl Apiv2Schema for Value

    source§

    impl Apiv2Schema for ()

    source§

    impl Apiv2Schema for Bytes

    source§

    impl Apiv2Schema for HttpRequest

    source§

    impl Apiv2Schema for HttpResponse

    source§

    impl Apiv2Schema for Payload

    source§

    impl Apiv2Schema for Response<BoxBody>

    source§

    impl<'a, T: Apiv2Schema> Apiv2Schema for &'a [T]

    source§

    impl<A: Apiv2Schema> Apiv2Schema for Path<(A,)>

    source§

    impl<A: Apiv2Schema, B: Apiv2Schema> Apiv2Schema for Path<(A, B)>

    source§

    impl<A: Apiv2Schema, B: Apiv2Schema, C: Apiv2Schema> Apiv2Schema for Path<(A, B, C)>

    source§

    impl<A: Apiv2Schema, B: Apiv2Schema, C: Apiv2Schema, D: Apiv2Schema> Apiv2Schema for Path<(A, B, C, D)>

    source§

    impl<A: Apiv2Schema, B: Apiv2Schema, C: Apiv2Schema, D: Apiv2Schema, E: Apiv2Schema> Apiv2Schema for Path<(A, B, C, D, E)>

    source§

    impl<A: Apiv2Schema, B: Apiv2Schema, C: Apiv2Schema, D: Apiv2Schema, E: Apiv2Schema, F: Apiv2Schema> Apiv2Schema for Path<(A, B, C, D, E, F)>

    source§

    impl<A: Apiv2Schema, B: Apiv2Schema, C: Apiv2Schema, D: Apiv2Schema, E: Apiv2Schema, F: Apiv2Schema, G: Apiv2Schema> Apiv2Schema for Path<(A, B, C, D, E, F, G)>

    source§

    impl<A: Apiv2Schema, B: Apiv2Schema, C: Apiv2Schema, D: Apiv2Schema, E: Apiv2Schema, F: Apiv2Schema, G: Apiv2Schema, H: Apiv2Schema> Apiv2Schema for Path<(A, B, C, D, E, F, G, H)>

    source§

    impl<A: Apiv2Schema, B: Apiv2Schema, C: Apiv2Schema, D: Apiv2Schema, E: Apiv2Schema, F: Apiv2Schema, G: Apiv2Schema, H: Apiv2Schema, I: Apiv2Schema> Apiv2Schema for Path<(A, B, C, D, E, F, G, H, I)>

    source§

    impl<A: Apiv2Schema, B: Apiv2Schema, C: Apiv2Schema, D: Apiv2Schema, E: Apiv2Schema, F: Apiv2Schema, G: Apiv2Schema, H: Apiv2Schema, I: Apiv2Schema, J: Apiv2Schema> Apiv2Schema for Path<(A, B, C, D, E, F, G, H, I, J)>

    source§

    impl<A: Apiv2Schema, B: Apiv2Schema, C: Apiv2Schema, D: Apiv2Schema, E: Apiv2Schema, F: Apiv2Schema, G: Apiv2Schema, H: Apiv2Schema, I: Apiv2Schema, J: Apiv2Schema, K: Apiv2Schema> Apiv2Schema for Path<(A, B, C, D, E, F, G, H, I, J, K)>

    source§

    impl<A: Apiv2Schema, B: Apiv2Schema, C: Apiv2Schema, D: Apiv2Schema, E: Apiv2Schema, F: Apiv2Schema, G: Apiv2Schema, H: Apiv2Schema, I: Apiv2Schema, J: Apiv2Schema, K: Apiv2Schema, L: Apiv2Schema> Apiv2Schema for Path<(A, B, C, D, E, F, G, H, I, J, K, L)>

    source§

    impl<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> Apiv2Schema for Path<(A, B, C, D, E, F, G, H, I, J, K, L, M)>

    source§

    impl<K: ToString, V: Apiv2Schema> Apiv2Schema for BTreeMap<K, V>

    source§

    impl<K: ToString, V: Apiv2Schema> Apiv2Schema for HashMap<K, V>

    source§

    impl<T> Apiv2Schema for Data<T>

    source§

    impl<T: Clone> Apiv2Schema for ReqData<T>

    source§

    impl<T: Apiv2Schema + Clone> Apiv2Schema for Cow<'_, T>

    source§

    impl<T: Apiv2Schema> Apiv2Schema for Option<T>

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 0]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 1]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 2]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 3]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 4]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 5]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 6]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 7]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 8]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 9]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 10]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 11]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 12]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 13]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 14]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 15]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 16]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 17]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 18]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 19]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 20]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 21]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 22]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 23]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 24]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 25]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 26]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 27]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 28]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 29]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 30]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 31]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for [T; 32]

    source§

    impl<T: Apiv2Schema> Apiv2Schema for BinaryHeap<T>

    source§

    impl<T: Apiv2Schema> Apiv2Schema for BTreeSet<T>

    source§

    impl<T: Apiv2Schema> Apiv2Schema for LinkedList<T>

    source§

    impl<T: Apiv2Schema> Apiv2Schema for VecDeque<T>

    source§

    impl<T: Apiv2Schema> Apiv2Schema for Vec<T>

    source§

    impl<T: Apiv2Schema> Apiv2Schema for HashSet<T>

    source§

    impl<T: Apiv2Schema> Apiv2Schema for Form<T>

    source§

    impl<T: Apiv2Schema> Apiv2Schema for Json<T>

    JSON needs specialization because it updates the global definitions.

    +
    source§

    impl<T: Apiv2Schema> Apiv2Schema for Path<T>

    source§

    impl<T: Apiv2Schema> Apiv2Schema for Query<T>

    source§

    impl<T: Apiv2Schema, E> Apiv2Schema for Result<T, E>

    Implementors§

    \ No newline at end of file diff --git a/paperclip_core/v2/schema/trait.Schema.html b/paperclip_core/v2/schema/trait.Schema.html index 39b00a403..d9c74c608 100644 --- a/paperclip_core/v2/schema/trait.Schema.html +++ b/paperclip_core/v2/schema/trait.Schema.html @@ -1,4 +1,4 @@ -Schema in paperclip_core::v2::schema - Rust

    Trait paperclip_core::v2::schema::Schema

    source ·
    pub trait Schema: Sized {
    +Schema in paperclip_core::v2::schema - Rust

    Trait paperclip_core::v2::schema::Schema

    source ·
    pub trait Schema: Sized {
     
    Show 18 methods // Required methods fn description(&self) -> Option<&str>; fn reference(&self) -> Option<&str>; @@ -15,7 +15,7 @@ &mut self, ) -> Option<&mut BTreeMap<String, Resolvable<Self>>>; fn required_properties(&self) -> Option<&BTreeSet<String>>; - fn enum_variants(&self) -> Option<&[Value]>; + fn enum_variants(&self) -> Option<&[Value]>; fn set_reference(&mut self, ref_: String); fn set_cyclic(&mut self, cyclic: bool); fn is_cyclic(&self) -> bool; @@ -41,7 +41,7 @@
    source

    fn properties(&self) -> Option<&BTreeMap<String, Resolvable<Self>>>

    Map of names and schema for properties, if it’s an object (properties field)

    source

    fn properties_mut(&mut self) -> Option<&mut BTreeMap<String, Resolvable<Self>>>

    Mutable access to properties field.

    source

    fn required_properties(&self) -> Option<&BTreeSet<String>>

    Returns the required properties (if any) for this object.

    -
    source

    fn enum_variants(&self) -> Option<&[Value]>

    Enum variants in this schema (if any). It’s serde_json::Value +

    source

    fn enum_variants(&self) -> Option<&[Value]>

    Enum variants in this schema (if any). It’s serde_json::Value because:

    source

    fn max() -> Option<f32>

    source

    fn min() -> Option<f32>

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl TypedData for IpAddr

    source§

    impl TypedData for bool

    source§

    impl TypedData for char

    source§

    impl TypedData for f32

    source§

    impl TypedData for f64

    source§

    impl TypedData for i8

    source§

    impl TypedData for i16

    source§

    impl TypedData for i32

    source§

    impl TypedData for i64

    source§

    impl TypedData for i128

    source§

    impl TypedData for isize

    source§

    impl TypedData for u8

    source§

    impl TypedData for u16

    source§

    impl TypedData for u32

    source§

    impl TypedData for u64

    source§

    impl TypedData for u128

    source§

    impl TypedData for usize

    source§

    impl TypedData for String

    source§

    impl TypedData for Ipv4Addr

    source§

    impl TypedData for Ipv6Addr

    source§

    impl TypedData for PathBuf

    source§

    impl TypedData for NaiveDate

    source§

    impl TypedData for NaiveDateTime

    source§

    impl TypedData for NaiveTime

    source§

    impl TypedData for Url

    source§

    impl TypedData for Uuid

    source§

    impl TypedData for Uuid

    source§

    impl<'a> TypedData for &'a str

    source§

    impl<'a, T: TypedData> TypedData for &'a T

    source§

    impl<T: TimeZone> TypedData for Date<T>

    source§

    impl<T: TimeZone> TypedData for DateTime<T>

    Implementors§

    \ No newline at end of file diff --git a/paperclip_core/v2/struct.AcceptedJson.html b/paperclip_core/v2/struct.AcceptedJson.html index 303bfe8e3..f4c3da6d9 100644 --- a/paperclip_core/v2/struct.AcceptedJson.html +++ b/paperclip_core/v2/struct.AcceptedJson.html @@ -1,27 +1,27 @@ -AcceptedJson in paperclip_core::v2 - Rust

    Struct paperclip_core::v2::AcceptedJson

    source ·
    pub struct AcceptedJson<T: Serialize + Apiv2Schema>(pub T);

    Tuple Fields§

    §0: T

    Trait Implementations§

    source§

    impl<T> Apiv2Schema for AcceptedJson<T>
    where - T: Serialize + Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    impl<T> Debug for AcceptedJson<T>
    where - T: Debug + Serialize + Apiv2Schema,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<T> Display for AcceptedJson<T>
    where - T: Display + Serialize + Apiv2Schema,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<T> OperationModifier for AcceptedJson<T>
    where - T: Serialize + Apiv2Schema,

    source§

    fn update_response(op: &mut DefaultOperationRaw)

    Update the responses map in the given operation (if needed).
    source§

    fn update_parameter(op: &mut DefaultOperationRaw)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security(op: &mut DefaultOperationRaw)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    impl<T> Responder for AcceptedJson<T>
    where - T: Serialize + Apiv2Schema,

    §

    type Body = BoxBody

    source§

    fn respond_to(self, _: &HttpRequest) -> HttpResponse<BoxBody>

    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>
    where +AcceptedJson in paperclip_core::v2 - Rust

    Struct paperclip_core::v2::AcceptedJson

    source ·
    pub struct AcceptedJson<T: Serialize + Apiv2Schema>(pub T);

    Tuple Fields§

    §0: T

    Trait Implementations§

    source§

    impl<T> Apiv2Schema for AcceptedJson<T>
    where + T: Serialize + Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    impl<T> Debug for AcceptedJson<T>
    where + T: Debug + Serialize + Apiv2Schema,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<T> Display for AcceptedJson<T>
    where + T: Display + Serialize + Apiv2Schema,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<T> OperationModifier for AcceptedJson<T>
    where + T: Serialize + Apiv2Schema,

    source§

    fn update_response(op: &mut DefaultOperationRaw)

    Update the responses map in the given operation (if needed).
    source§

    fn update_parameter(op: &mut DefaultOperationRaw)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security(op: &mut DefaultOperationRaw)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    impl<T> Responder for AcceptedJson<T>
    where + T: Serialize + Apiv2Schema,

    §

    type Body = BoxBody

    source§

    fn respond_to(self, _: &HttpRequest) -> HttpResponse<BoxBody>

    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>
    where Self: Sized,

    Wraps responder to allow alteration of its response. Read more

    Auto Trait Implementations§

    §

    impl<T> Freeze for AcceptedJson<T>
    where T: Freeze,

    §

    impl<T> RefUnwindSafe for AcceptedJson<T>
    where T: RefUnwindSafe,

    §

    impl<T> Send for AcceptedJson<T>
    where T: Send,

    §

    impl<T> Sync for AcceptedJson<T>
    where T: Sync,

    §

    impl<T> Unpin for AcceptedJson<T>
    where T: Unpin,

    §

    impl<T> UnwindSafe for AcceptedJson<T>
    where - T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip_core/v2/struct.CreatedJson.html b/paperclip_core/v2/struct.CreatedJson.html index b13b189d5..f1b5a46f5 100644 --- a/paperclip_core/v2/struct.CreatedJson.html +++ b/paperclip_core/v2/struct.CreatedJson.html @@ -1,27 +1,27 @@ -CreatedJson in paperclip_core::v2 - Rust

    Struct paperclip_core::v2::CreatedJson

    source ·
    pub struct CreatedJson<T: Serialize + Apiv2Schema>(pub T);

    Tuple Fields§

    §0: T

    Trait Implementations§

    source§

    impl<T> Apiv2Schema for CreatedJson<T>
    where - T: Serialize + Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    impl<T> Debug for CreatedJson<T>
    where - T: Debug + Serialize + Apiv2Schema,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<T> Display for CreatedJson<T>
    where - T: Display + Serialize + Apiv2Schema,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<T> OperationModifier for CreatedJson<T>
    where - T: Serialize + Apiv2Schema,

    source§

    fn update_response(op: &mut DefaultOperationRaw)

    Update the responses map in the given operation (if needed).
    source§

    fn update_parameter(op: &mut DefaultOperationRaw)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security(op: &mut DefaultOperationRaw)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    impl<T> Responder for CreatedJson<T>
    where - T: Serialize + Apiv2Schema,

    §

    type Body = BoxBody

    source§

    fn respond_to(self, _: &HttpRequest) -> HttpResponse<BoxBody>

    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>
    where +CreatedJson in paperclip_core::v2 - Rust

    Struct paperclip_core::v2::CreatedJson

    source ·
    pub struct CreatedJson<T: Serialize + Apiv2Schema>(pub T);

    Tuple Fields§

    §0: T

    Trait Implementations§

    source§

    impl<T> Apiv2Schema for CreatedJson<T>
    where + T: Serialize + Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    impl<T> Debug for CreatedJson<T>
    where + T: Debug + Serialize + Apiv2Schema,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<T> Display for CreatedJson<T>
    where + T: Display + Serialize + Apiv2Schema,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<T> OperationModifier for CreatedJson<T>
    where + T: Serialize + Apiv2Schema,

    source§

    fn update_response(op: &mut DefaultOperationRaw)

    Update the responses map in the given operation (if needed).
    source§

    fn update_parameter(op: &mut DefaultOperationRaw)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security(op: &mut DefaultOperationRaw)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    impl<T> Responder for CreatedJson<T>
    where + T: Serialize + Apiv2Schema,

    §

    type Body = BoxBody

    source§

    fn respond_to(self, _: &HttpRequest) -> HttpResponse<BoxBody>

    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>
    where Self: Sized,

    Wraps responder to allow alteration of its response. Read more

    Auto Trait Implementations§

    §

    impl<T> Freeze for CreatedJson<T>
    where T: Freeze,

    §

    impl<T> RefUnwindSafe for CreatedJson<T>
    where T: RefUnwindSafe,

    §

    impl<T> Send for CreatedJson<T>
    where T: Send,

    §

    impl<T> Sync for CreatedJson<T>
    where T: Sync,

    §

    impl<T> Unpin for CreatedJson<T>
    where T: Unpin,

    §

    impl<T> UnwindSafe for CreatedJson<T>
    where - T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip_core/v2/struct.HttpResponseWrapper.html b/paperclip_core/v2/struct.HttpResponseWrapper.html index 5a0d04fb1..50a20bbe2 100644 --- a/paperclip_core/v2/struct.HttpResponseWrapper.html +++ b/paperclip_core/v2/struct.HttpResponseWrapper.html @@ -1,4 +1,4 @@ -HttpResponseWrapper in paperclip_core::v2 - Rust

    Struct paperclip_core::v2::HttpResponseWrapper

    source ·
    pub struct HttpResponseWrapper(pub HttpResponse);
    Expand description

    Workaround for possibility to directly return HttpResponse from closure handler.

    +HttpResponseWrapper in paperclip_core::v2 - Rust

    Struct paperclip_core::v2::HttpResponseWrapper

    source ·
    pub struct HttpResponseWrapper(pub HttpResponse);
    Expand description

    Workaround for possibility to directly return HttpResponse from closure handler.

    This is needed after actix removed impl Future from HttpResponse: https://github.com/actix/actix-web/pull/2601

    Example:

    @@ -11,10 +11,10 @@ } ))

    Tuple Fields§

    §0: HttpResponse

    Trait Implementations§

    source§

    impl Responder for HttpResponseWrapper

    §

    type Body = <HttpResponse as Responder>::Body

    source§

    fn respond_to(self, req: &HttpRequest) -> HttpResponse<Self::Body>

    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>
    where - Self: Sized,

    Wraps responder to allow alteration of its response. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + Self: Sized,

    Wraps responder to allow alteration of its response. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where diff --git a/paperclip_core/v2/struct.NoContent.html b/paperclip_core/v2/struct.NoContent.html index df143d9e3..5948cdc64 100644 --- a/paperclip_core/v2/struct.NoContent.html +++ b/paperclip_core/v2/struct.NoContent.html @@ -1,16 +1,16 @@ -NoContent in paperclip_core::v2 - Rust

    Struct paperclip_core::v2::NoContent

    source ·
    pub struct NoContent;

    Trait Implementations§

    source§

    impl Apiv2Schema for NoContent

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    impl Debug for NoContent

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for NoContent

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl OperationModifier for NoContent

    source§

    fn update_response(op: &mut DefaultOperationRaw)

    Update the responses map in the given operation (if needed).
    source§

    fn update_parameter(op: &mut DefaultOperationRaw)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security(op: &mut DefaultOperationRaw)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    impl Responder for NoContent

    §

    type Body = BoxBody

    source§

    fn respond_to(self, _: &HttpRequest) -> HttpResponse<BoxBody>

    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>
    where - Self: Sized,

    Wraps responder to allow alteration of its response. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +NoContent in paperclip_core::v2 - Rust

    Struct paperclip_core::v2::NoContent

    source ·
    pub struct NoContent;

    Trait Implementations§

    source§

    impl Apiv2Schema for NoContent

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    impl Debug for NoContent

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for NoContent

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl OperationModifier for NoContent

    source§

    fn update_response(op: &mut DefaultOperationRaw)

    Update the responses map in the given operation (if needed).
    source§

    fn update_parameter(op: &mut DefaultOperationRaw)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security(op: &mut DefaultOperationRaw)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    impl Responder for NoContent

    §

    type Body = BoxBody

    source§

    fn respond_to(self, _: &HttpRequest) -> HttpResponse<BoxBody>

    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>
    where + Self: Sized,

    Wraps responder to allow alteration of its response. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where +

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for T
    where V: MultiLane<T>,

    §

    fn vzip(self) -> V

    §

    impl<T> WithSubscriber for T

    §

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
    where diff --git a/paperclip_core/v2/struct.ResponderWrapper.html b/paperclip_core/v2/struct.ResponderWrapper.html index ab12fc840..edc4d90d0 100644 --- a/paperclip_core/v2/struct.ResponderWrapper.html +++ b/paperclip_core/v2/struct.ResponderWrapper.html @@ -1,15 +1,15 @@ -ResponderWrapper in paperclip_core::v2 - Rust

    Struct paperclip_core::v2::ResponderWrapper

    source ·
    pub struct ResponderWrapper<T>(pub T);
    Expand description

    Wrapper for wrapping over impl Responder thingies (to avoid breakage).

    -

    Tuple Fields§

    §0: T

    Trait Implementations§

    source§

    impl<T: Responder> Apiv2Schema for ResponderWrapper<T>

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    impl<T: Responder> OperationModifier for ResponderWrapper<T>

    source§

    fn update_parameter(op: &mut DefaultOperationRaw)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response(_op: &mut DefaultOperationRaw)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security(op: &mut DefaultOperationRaw)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    impl<T: Responder> Responder for ResponderWrapper<T>

    §

    type Body = <T as Responder>::Body

    source§

    fn respond_to(self, req: &HttpRequest) -> HttpResponse<Self::Body>

    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>
    where +ResponderWrapper in paperclip_core::v2 - Rust

    Struct paperclip_core::v2::ResponderWrapper

    source ·
    pub struct ResponderWrapper<T>(pub T);
    Expand description

    Wrapper for wrapping over impl Responder thingies (to avoid breakage).

    +

    Tuple Fields§

    §0: T

    Trait Implementations§

    source§

    impl<T: Responder> Apiv2Schema for ResponderWrapper<T>

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    impl<T: Responder> OperationModifier for ResponderWrapper<T>

    source§

    fn update_parameter(op: &mut DefaultOperationRaw)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response(_op: &mut DefaultOperationRaw)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security(op: &mut DefaultOperationRaw)

    Update the security map in the given operation (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    impl<T: Responder> Responder for ResponderWrapper<T>

    §

    type Body = <T as Responder>::Body

    source§

    fn respond_to(self, req: &HttpRequest) -> HttpResponse<Self::Body>

    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>
    where Self: Sized,

    Wraps responder to allow alteration of its response. Read more

    Auto Trait Implementations§

    §

    impl<T> Freeze for ResponderWrapper<T>
    where T: Freeze,

    §

    impl<T> RefUnwindSafe for ResponderWrapper<T>
    where T: RefUnwindSafe,

    §

    impl<T> Send for ResponderWrapper<T>
    where T: Send,

    §

    impl<T> Sync for ResponderWrapper<T>
    where T: Sync,

    §

    impl<T> Unpin for ResponderWrapper<T>
    where T: Unpin,

    §

    impl<T> UnwindSafe for ResponderWrapper<T>
    where - T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + T: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where diff --git a/paperclip_core/v2/struct.ResponseWrapper.html b/paperclip_core/v2/struct.ResponseWrapper.html index fc9767c83..00c2f1242 100644 --- a/paperclip_core/v2/struct.ResponseWrapper.html +++ b/paperclip_core/v2/struct.ResponseWrapper.html @@ -1,15 +1,15 @@ -ResponseWrapper in paperclip_core::v2 - Rust

    Struct paperclip_core::v2::ResponseWrapper

    source ·
    pub struct ResponseWrapper<T, H> {
    +ResponseWrapper in paperclip_core::v2 - Rust

    Struct paperclip_core::v2::ResponseWrapper

    source ·
    pub struct ResponseWrapper<T, H> {
         pub responder: T,
         pub operations: H,
    -}

    Fields§

    §responder: T§operations: H

    Trait Implementations§

    source§

    impl<F, T, H> Apiv2Operation for ResponseWrapper<F, H>
    where +}

    Fields§

    §responder: T§operations: H

    Trait Implementations§

    source§

    impl<F, T, H> Apiv2Operation for ResponseWrapper<F, H>
    where F: Future<Output = T>, T: OperationModifier + Responder, - H: Apiv2Operation,

    source§

    fn operation() -> DefaultOperationRaw

    Returns the definition for this operation.
    source§

    fn security_definitions() -> BTreeMap<String, SecurityScheme>

    Returns a map of security definitions that will be merged globally.
    source§

    fn definitions() -> BTreeMap<String, DefaultSchemaRaw>

    Returns the definitions used by this operation.
    source§

    fn is_visible() -> bool

    source§

    impl<F, T, H> Future for ResponseWrapper<F, H>
    where + H: Apiv2Operation,

    source§

    fn operation() -> DefaultOperationRaw

    Returns the definition for this operation.
    source§

    fn security_definitions() -> BTreeMap<String, SecurityScheme>

    Returns a map of security definitions that will be merged globally.
    source§

    fn definitions() -> BTreeMap<String, DefaultSchemaRaw>

    Returns the definitions used by this operation.
    source§

    fn is_visible() -> bool

    source§

    impl<F, T, H> Future for ResponseWrapper<F, H>
    where F: Future<Output = T>, T: OperationModifier + Responder, - H: Apiv2Operation,

    §

    type Output = T

    The type of value produced on completion.
    source§

    fn poll(self: Pin<&mut Self>, ctx: &mut Context<'_>) -> Poll<Self::Output>

    Attempt to resolve the future to a final value, registering -the current task for wakeup if the value is not yet available. Read more
    source§

    impl<T: Responder, H> Responder for ResponseWrapper<T, H>

    §

    type Body = <T as Responder>::Body

    source§

    fn respond_to(self, req: &HttpRequest) -> HttpResponse<Self::Body>

    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>
    where - Self: Sized,

    Wraps responder to allow alteration of its response. Read more
    source§

    impl<'__pin, T, H> Unpin for ResponseWrapper<T, H>
    where + H: Apiv2Operation,

    §

    type Output = T

    The type of value produced on completion.
    source§

    fn poll(self: Pin<&mut Self>, ctx: &mut Context<'_>) -> Poll<Self::Output>

    Attempts to resolve the future to a final value, registering +the current task for wakeup if the value is not yet available. Read more
    source§

    impl<T: Responder, H> Responder for ResponseWrapper<T, H>

    §

    type Body = <T as Responder>::Body

    source§

    fn respond_to(self, req: &HttpRequest) -> HttpResponse<Self::Body>

    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>
    where + Self: Sized,

    Wraps responder to allow alteration of its response. Read more
    source§

    impl<'__pin, T, H> Unpin for ResponseWrapper<T, H>
    where __Origin<'__pin, T, H>: Unpin,

    Auto Trait Implementations§

    §

    impl<T, H> Freeze for ResponseWrapper<T, H>
    where T: Freeze, H: Freeze,

    §

    impl<T, H> RefUnwindSafe for ResponseWrapper<T, H>
    where @@ -20,10 +20,10 @@ T: Sync, H: Sync,

    §

    impl<T, H> UnwindSafe for ResponseWrapper<T, H>
    where T: UnwindSafe, - H: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where - T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where - T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where - T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + H: UnwindSafe,

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> FutureExt for T
    where T: Future + ?Sized,

    §

    fn map<U, F>(self, f: F) -> Map<Self, F>
    where F: FnOnce(Self::Output) -> U, diff --git a/paperclip_core/v2/trait.OperationModifier.html b/paperclip_core/v2/trait.OperationModifier.html index 4157f2db2..51b0f0985 100644 --- a/paperclip_core/v2/trait.OperationModifier.html +++ b/paperclip_core/v2/trait.OperationModifier.html @@ -1,4 +1,4 @@ -OperationModifier in paperclip_core::v2 - Rust

    Trait paperclip_core::v2::OperationModifier

    source ·
    pub trait OperationModifier: Apiv2Schema + Sized {
    +OperationModifier in paperclip_core::v2 - Rust

    Trait paperclip_core::v2::OperationModifier

    source ·
    pub trait OperationModifier: Apiv2Schema + Sized {
         // Provided methods
         fn update_parameter(op: &mut DefaultOperationRaw) { ... }
         fn update_response(_op: &mut DefaultOperationRaw) { ... }
    @@ -12,35 +12,35 @@
     

    source

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).

    source

    fn update_security(op: &mut DefaultOperationRaw)

    Update the security map in the given operation (if needed).

    source

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).

    -

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl OperationModifier for bool

    source§

    impl OperationModifier for char

    source§

    impl OperationModifier for f32

    source§

    impl OperationModifier for f64

    source§

    impl OperationModifier for i8

    source§

    impl OperationModifier for i16

    source§

    impl OperationModifier for i32

    source§

    impl OperationModifier for i64

    source§

    impl OperationModifier for i128

    source§

    impl OperationModifier for isize

    source§

    impl OperationModifier for u8

    source§

    impl OperationModifier for u16

    source§

    impl OperationModifier for u32

    source§

    impl OperationModifier for u64

    source§

    impl OperationModifier for u128

    source§

    impl OperationModifier for usize

    source§

    impl OperationModifier for String

    source§

    impl OperationModifier for NaiveDateTime

    source§

    impl OperationModifier for Url

    source§

    impl OperationModifier for Uuid

    source§

    impl OperationModifier for Uuid

    source§

    impl OperationModifier for Bytes

    source§

    impl OperationModifier for HttpRequest

    source§

    impl OperationModifier for HttpResponse

    source§

    impl OperationModifier for Payload

    source§

    impl OperationModifier for Response<BoxBody>

    source§

    impl<'a> OperationModifier for &'a str

    source§

    impl<'a, T: OperationModifier> OperationModifier for &'a [T]

    source§

    impl<A> OperationModifier for Path<(A,)>
    where - A: Apiv2Schema,

    source§

    impl<A, B> OperationModifier for Path<(A, B)>
    where +

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl OperationModifier for bool

    source§

    impl OperationModifier for char

    source§

    impl OperationModifier for f32

    source§

    impl OperationModifier for f64

    source§

    impl OperationModifier for i8

    source§

    impl OperationModifier for i16

    source§

    impl OperationModifier for i32

    source§

    impl OperationModifier for i64

    source§

    impl OperationModifier for i128

    source§

    impl OperationModifier for isize

    source§

    impl OperationModifier for u8

    source§

    impl OperationModifier for u16

    source§

    impl OperationModifier for u32

    source§

    impl OperationModifier for u64

    source§

    impl OperationModifier for u128

    source§

    impl OperationModifier for usize

    source§

    impl OperationModifier for String

    source§

    impl OperationModifier for NaiveDateTime

    source§

    impl OperationModifier for Url

    source§

    impl OperationModifier for Uuid

    source§

    impl OperationModifier for Uuid

    source§

    impl OperationModifier for Bytes

    source§

    impl OperationModifier for HttpRequest

    source§

    impl OperationModifier for HttpResponse

    source§

    impl OperationModifier for Payload

    source§

    impl OperationModifier for Response<BoxBody>

    source§

    impl<'a> OperationModifier for &'a str

    source§

    impl<'a, T: OperationModifier> OperationModifier for &'a [T]

    source§

    impl<A> OperationModifier for Path<(A,)>
    where + A: Apiv2Schema,

    source§

    impl<A, B> OperationModifier for Path<(A, B)>
    where A: Apiv2Schema, - B: Apiv2Schema,

    source§

    impl<A, B, C> OperationModifier for Path<(A, B, C)>
    where + B: Apiv2Schema,

    source§

    impl<A, B, C> OperationModifier for Path<(A, B, C)>
    where A: Apiv2Schema, B: Apiv2Schema, - C: Apiv2Schema,

    source§

    impl<A, B, C, D> OperationModifier for Path<(A, B, C, D)>
    where + C: Apiv2Schema,

    source§

    impl<A, B, C, D> OperationModifier for Path<(A, B, C, D)>

    source§

    impl<A, B, C, D, E> OperationModifier for Path<(A, B, C, D, E)>
    where + D: Apiv2Schema,

    source§

    impl<A, B, C, D, E> OperationModifier for Path<(A, B, C, D, E)>

    source§

    impl<A, B, C, D, E, F> OperationModifier for Path<(A, B, C, D, E, F)>
    where + E: Apiv2Schema,

    source§

    impl<A, B, C, D, E, F> OperationModifier for Path<(A, B, C, D, E, F)>

    source§

    impl<A, B, C, D, E, F, G> OperationModifier for Path<(A, B, C, D, E, F, G)>
    where + F: Apiv2Schema,

    source§

    impl<A, B, C, D, E, F, G> OperationModifier for Path<(A, B, C, D, E, F, G)>

    source§

    impl<A, B, C, D, E, F, G, H> OperationModifier for Path<(A, B, C, D, E, F, G, H)>
    where + G: Apiv2Schema,

    source§

    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, @@ -48,7 +48,7 @@ E: Apiv2Schema, F: Apiv2Schema, G: Apiv2Schema, - H: Apiv2Schema,

    source§

    impl<A, B, C, D, E, F, G, H, I> OperationModifier for Path<(A, B, C, D, E, F, G, H, I)>
    where + H: Apiv2Schema,

    source§

    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, @@ -57,7 +57,7 @@ F: Apiv2Schema, G: Apiv2Schema, H: Apiv2Schema, - I: Apiv2Schema,

    source§

    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 + I: Apiv2Schema,

    source§

    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, @@ -67,7 +67,7 @@ G: Apiv2Schema, H: Apiv2Schema, I: Apiv2Schema, - J: Apiv2Schema,

    source§

    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 + J: Apiv2Schema,

    source§

    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, @@ -78,7 +78,7 @@ H: Apiv2Schema, I: Apiv2Schema, J: Apiv2Schema, - K: Apiv2Schema,

    source§

    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 + K: Apiv2Schema,

    source§

    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, @@ -90,7 +90,7 @@ I: Apiv2Schema, J: Apiv2Schema, K: Apiv2Schema, - L: Apiv2Schema,

    source§

    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 + L: Apiv2Schema,

    source§

    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, @@ -103,10 +103,10 @@ J: Apiv2Schema, K: Apiv2Schema, L: Apiv2Schema, - M: Apiv2Schema,

    source§

    impl<T> OperationModifier for Option<T>
    where - T: OperationModifier,

    source§

    impl<T> OperationModifier for Data<T>

    source§

    impl<T> OperationModifier for Json<T>
    where - T: Apiv2Schema,

    source§

    impl<T, E> OperationModifier for Result<T, E>
    where + M: Apiv2Schema,

    source§

    impl<T> OperationModifier for Option<T>
    where + T: OperationModifier,

    source§

    impl<T> OperationModifier for Data<T>

    source§

    impl<T> OperationModifier for Json<T>
    where + T: Apiv2Schema,

    source§

    impl<T, E> OperationModifier for Result<T, E>

    source§

    impl<T: Clone> OperationModifier for ReqData<T>

    source§

    impl<T: TimeZone> OperationModifier for DateTime<T>

    source§

    impl<T: Apiv2Schema> OperationModifier for Form<T>

    source§

    impl<T: Apiv2Schema> OperationModifier for Path<T>

    source§

    impl<T: Apiv2Schema> OperationModifier for Query<T>

    Implementors§

    \ No newline at end of file + E: Apiv2Errors,

    source§

    impl<T: Clone> OperationModifier for ReqData<T>

    source§

    impl<T: TimeZone> OperationModifier for DateTime<T>

    source§

    impl<T: Apiv2Schema> OperationModifier for Form<T>

    source§

    impl<T: Apiv2Schema> OperationModifier for Path<T>

    source§

    impl<T: Apiv2Schema> OperationModifier for Query<T>

    Implementors§

    \ No newline at end of file diff --git a/paperclip_core/v3/fn.openapiv2_to_v3.html b/paperclip_core/v3/fn.openapiv2_to_v3.html index e2017aa12..7d5a4e271 100644 --- a/paperclip_core/v3/fn.openapiv2_to_v3.html +++ b/paperclip_core/v3/fn.openapiv2_to_v3.html @@ -1,2 +1,2 @@ -openapiv2_to_v3 in paperclip_core::v3 - Rust

    Function paperclip_core::v3::openapiv2_to_v3

    source ·
    pub fn openapiv2_to_v3(v2: DefaultApiRaw) -> OpenAPI
    Expand description

    Convert this crates openapi v2 (DefaultApiRaw) to openapiv3::OpenAPI

    +openapiv2_to_v3 in paperclip_core::v3 - Rust

    Function paperclip_core::v3::openapiv2_to_v3

    source ·
    pub fn openapiv2_to_v3(v2: DefaultApiRaw) -> OpenAPI
    Expand description

    Convert this crates openapi v2 (DefaultApiRaw) to openapiv3::OpenAPI

    \ No newline at end of file diff --git a/paperclip_core/v3/index.html b/paperclip_core/v3/index.html index e245f69c0..0954e79ee 100644 --- a/paperclip_core/v3/index.html +++ b/paperclip_core/v3/index.html @@ -1,3 +1,3 @@ -paperclip_core::v3 - Rust

    Module paperclip_core::v3

    source ·
    Expand description

    Conversion traits and helps functions that help converting openapi v2 types to openapi v3. +paperclip_core::v3 - Rust

    Module paperclip_core::v3

    source ·
    Expand description

    Conversion traits and helps functions that help converting openapi v2 types to openapi v3. For the OpenAPI v3 types the crate openapiv3 is used.

    -

    Functions§

    • Convert this crates openapi v2 (DefaultApiRaw) to openapiv3::OpenAPI
    \ No newline at end of file +

    Functions§

    • Convert this crates openapi v2 (DefaultApiRaw) to openapiv3::OpenAPI
    \ No newline at end of file diff --git a/paperclip_macros/all.html b/paperclip_macros/all.html index adeeb3811..71d9da7a9 100644 --- a/paperclip_macros/all.html +++ b/paperclip_macros/all.html @@ -1 +1 @@ -List of all items in this crate
    \ No newline at end of file +List of all items in this crate
    \ No newline at end of file diff --git a/paperclip_macros/attr.api_v2_errors.html b/paperclip_macros/attr.api_v2_errors.html index 4623d53cc..163871de1 100644 --- a/paperclip_macros/attr.api_v2_errors.html +++ b/paperclip_macros/attr.api_v2_errors.html @@ -1,3 +1,3 @@ -api_v2_errors in paperclip_macros - Rust

    Attribute Macro paperclip_macros::api_v2_errors

    source ·
    #[api_v2_errors]
    Expand description

    Marker attribute for indicating that the marked object can represent non-2xx (error) +api_v2_errors in paperclip_macros - Rust

    Attribute Macro paperclip_macros::api_v2_errors

    source ·
    #[api_v2_errors]
    Expand description

    Marker attribute for indicating that the marked object can represent non-2xx (error) status codes with optional descriptions.

    \ No newline at end of file diff --git a/paperclip_macros/attr.api_v2_errors_overlay.html b/paperclip_macros/attr.api_v2_errors_overlay.html index b09b14de1..033990c5b 100644 --- a/paperclip_macros/attr.api_v2_errors_overlay.html +++ b/paperclip_macros/attr.api_v2_errors_overlay.html @@ -1,3 +1,3 @@ -api_v2_errors_overlay in paperclip_macros - Rust

    Attribute Macro paperclip_macros::api_v2_errors_overlay

    source ·
    #[api_v2_errors_overlay]
    Expand description

    Marker attribute for indicating that the marked object can filter error responses from the +api_v2_errors_overlay in paperclip_macros - Rust

    Attribute Macro paperclip_macros::api_v2_errors_overlay

    source ·
    #[api_v2_errors_overlay]
    Expand description

    Marker attribute for indicating that the marked object can filter error responses from the the #[api_v2_errors] macro.

    \ No newline at end of file diff --git a/paperclip_macros/attr.api_v2_operation.html b/paperclip_macros/attr.api_v2_operation.html index 1fd8e529e..47d9f2247 100644 --- a/paperclip_macros/attr.api_v2_operation.html +++ b/paperclip_macros/attr.api_v2_operation.html @@ -1,2 +1,2 @@ -api_v2_operation in paperclip_macros - Rust

    Attribute Macro paperclip_macros::api_v2_operation

    source ·
    #[api_v2_operation]
    Expand description

    Marker attribute for indicating that a function is an OpenAPI v2 compatible operation.

    +api_v2_operation in paperclip_macros - Rust

    Attribute Macro paperclip_macros::api_v2_operation

    source ·
    #[api_v2_operation]
    Expand description

    Marker attribute for indicating that a function is an OpenAPI v2 compatible operation.

    \ No newline at end of file diff --git a/paperclip_macros/attr.api_v2_schema_struct.html b/paperclip_macros/attr.api_v2_schema_struct.html index 067d7e312..826532d83 100644 --- a/paperclip_macros/attr.api_v2_schema_struct.html +++ b/paperclip_macros/attr.api_v2_schema_struct.html @@ -1,4 +1,4 @@ -api_v2_schema_struct in paperclip_macros - Rust

    Attribute Macro paperclip_macros::api_v2_schema_struct

    source ·
    #[api_v2_schema_struct]
    Expand description

    Converts your struct to support deserializing from an OpenAPI v2 +api_v2_schema_struct in paperclip_macros - Rust

    Attribute Macro paperclip_macros::api_v2_schema_struct

    source ·
    #[api_v2_schema_struct]
    Expand description

    Converts your struct to support deserializing from an OpenAPI v2 Schema object (example). This adds the necessary fields (in addition to your own fields) and implements the Schema trait for parsing and codegen.

    diff --git a/paperclip_macros/attr.delete.html b/paperclip_macros/attr.delete.html index 3df05eecb..c0dc27cf9 100644 --- a/paperclip_macros/attr.delete.html +++ b/paperclip_macros/attr.delete.html @@ -1,10 +1,10 @@ -delete in paperclip_macros - Rust

    Attribute Macro paperclip_macros::delete

    source ·
    #[delete]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. +delete in paperclip_macros - Rust

    Attribute Macro paperclip_macros::delete

    source ·
    #[delete]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.

    §Syntax

    #[delete("path"[, attributes])]
     

    §Attributes

      -
    • "path" - Raw literal string with path for which to register handler.
    • +
    • "path" - Raw literal string with path for which to register handler.

    §Example

    /// use paperclip::actix::web::Json; diff --git a/paperclip_macros/attr.get.html b/paperclip_macros/attr.get.html index 0855d8443..8ff6b8338 100644 --- a/paperclip_macros/attr.get.html +++ b/paperclip_macros/attr.get.html @@ -1,10 +1,10 @@ -get in paperclip_macros - Rust

    Attribute Macro paperclip_macros::get

    source ·
    #[get]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. +get in paperclip_macros - Rust

    Attribute Macro paperclip_macros::get

    source ·
    #[get]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.

    §Syntax

    #[get("path"[, attributes])]
     

    §Attributes

      -
    • "path" - Raw literal string with path for which to register handler.
    • +
    • "path" - Raw literal string with path for which to register handler.

    §Example

    /// use paperclip::actix::web::Json; diff --git a/paperclip_macros/attr.head.html b/paperclip_macros/attr.head.html index d76e68f55..d012fdf40 100644 --- a/paperclip_macros/attr.head.html +++ b/paperclip_macros/attr.head.html @@ -1,10 +1,10 @@ -head in paperclip_macros - Rust

    Attribute Macro paperclip_macros::head

    source ·
    #[head]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. +head in paperclip_macros - Rust

    Attribute Macro paperclip_macros::head

    source ·
    #[head]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.

    §Syntax

    #[head("path"[, attributes])]
     

    §Attributes

      -
    • "path" - Raw literal string with path for which to register handler.
    • +
    • "path" - Raw literal string with path for which to register handler.

    §Example

    /// use paperclip::actix::web::Json; diff --git a/paperclip_macros/attr.patch.html b/paperclip_macros/attr.patch.html index c610dd12a..14ddb1645 100644 --- a/paperclip_macros/attr.patch.html +++ b/paperclip_macros/attr.patch.html @@ -1,10 +1,10 @@ -patch in paperclip_macros - Rust

    Attribute Macro paperclip_macros::patch

    source ·
    #[patch]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. +patch in paperclip_macros - Rust

    Attribute Macro paperclip_macros::patch

    source ·
    #[patch]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.

    §Syntax

    #[patch("path"[, attributes])]
     

    §Attributes

      -
    • "path" - Raw literal string with path for which to register handler.
    • +
    • "path" - Raw literal string with path for which to register handler.

    §Example

    /// use paperclip::actix::web::Json; diff --git a/paperclip_macros/attr.post.html b/paperclip_macros/attr.post.html index 473af1356..d4c87835a 100644 --- a/paperclip_macros/attr.post.html +++ b/paperclip_macros/attr.post.html @@ -1,10 +1,10 @@ -post in paperclip_macros - Rust

    Attribute Macro paperclip_macros::post

    source ·
    #[post]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. +post in paperclip_macros - Rust

    Attribute Macro paperclip_macros::post

    source ·
    #[post]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.

    §Syntax

    #[post("path"[, attributes])]
     

    §Attributes

      -
    • "path" - Raw literal string with path for which to register handler.
    • +
    • "path" - Raw literal string with path for which to register handler.

    §Example

    /// use paperclip::actix::web::Json; diff --git a/paperclip_macros/attr.put.html b/paperclip_macros/attr.put.html index 6a1d75867..12a13d7e8 100644 --- a/paperclip_macros/attr.put.html +++ b/paperclip_macros/attr.put.html @@ -1,10 +1,10 @@ -put in paperclip_macros - Rust

    Attribute Macro paperclip_macros::put

    source ·
    #[put]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. +put in paperclip_macros - Rust

    Attribute Macro paperclip_macros::put

    source ·
    #[put]
    Expand description

    Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.

    §Syntax

    #[put("path"[, attributes])]
     

    §Attributes

      -
    • "path" - Raw literal string with path for which to register handler.
    • +
    • "path" - Raw literal string with path for which to register handler.

    §Example

    /// use paperclip::actix::web::Json; diff --git a/paperclip_macros/derive.Apiv2Header.html b/paperclip_macros/derive.Apiv2Header.html index a1e813b28..ae201dffd 100644 --- a/paperclip_macros/derive.Apiv2Header.html +++ b/paperclip_macros/derive.Apiv2Header.html @@ -1,4 +1,4 @@ -Apiv2Header in paperclip_macros - Rust

    Derive Macro paperclip_macros::Apiv2Header

    source ·
    #[derive(Apiv2Header)]
    +Apiv2Header in paperclip_macros - Rust

    Derive Macro paperclip_macros::Apiv2Header

    source ·
    #[derive(Apiv2Header)]
     {
         // Attributes available to this derive:
         #[openapi]
    diff --git a/paperclip_macros/derive.Apiv2Schema.html b/paperclip_macros/derive.Apiv2Schema.html
    index c1960fb83..c9778cbea 100644
    --- a/paperclip_macros/derive.Apiv2Schema.html
    +++ b/paperclip_macros/derive.Apiv2Schema.html
    @@ -1,4 +1,4 @@
    -Apiv2Schema in paperclip_macros - Rust

    Derive Macro paperclip_macros::Apiv2Schema

    source ·
    #[derive(Apiv2Schema)]
    +Apiv2Schema in paperclip_macros - Rust

    Derive Macro paperclip_macros::Apiv2Schema

    source ·
    #[derive(Apiv2Schema)]
     {
         // Attributes available to this derive:
         #[openapi]
    diff --git a/paperclip_macros/derive.Apiv2Security.html b/paperclip_macros/derive.Apiv2Security.html
    index 5ef5e425e..8cf833cbd 100644
    --- a/paperclip_macros/derive.Apiv2Security.html
    +++ b/paperclip_macros/derive.Apiv2Security.html
    @@ -1,4 +1,4 @@
    -Apiv2Security in paperclip_macros - Rust

    Derive Macro paperclip_macros::Apiv2Security

    source ·
    #[derive(Apiv2Security)]
    +Apiv2Security in paperclip_macros - Rust

    Derive Macro paperclip_macros::Apiv2Security

    source ·
    #[derive(Apiv2Security)]
     {
         // Attributes available to this derive:
         #[openapi]
    diff --git a/paperclip_macros/index.html b/paperclip_macros/index.html
    index 028e2595f..5703babfb 100644
    --- a/paperclip_macros/index.html
    +++ b/paperclip_macros/index.html
    @@ -1,9 +1,9 @@
    -paperclip_macros - Rust

    Crate paperclip_macros

    source ·
    Expand description

    Convenience macros for paperclip.

    +paperclip_macros - Rust

    Crate paperclip_macros

    source ·
    Expand description

    Convenience macros for paperclip.

    You shouldn’t need to depend on this, because the stuff here is already exposed by the corresponding crates.

    -

    Attribute Macros§

    • Marker attribute for indicating that the marked object can represent non-2xx (error) -status codes with optional descriptions.
    • Marker attribute for indicating that the marked object can filter error responses from the -the #[api_v2_errors] macro.
    • Marker attribute for indicating that a function is an OpenAPI v2 compatible operation.
    • Converts your struct to support deserializing from an OpenAPI v2 +

    Attribute Macros§

    • Marker attribute for indicating that the marked object can represent non-2xx (error) +status codes with optional descriptions.
    • Marker attribute for indicating that the marked object can filter error responses from the +the #[api_v2_errors] macro.
    • Marker attribute for indicating that a function is an OpenAPI v2 compatible operation.
    • Converts your struct to support deserializing from an OpenAPI v2 Schema object (example). This adds the necessary fields (in addition to your own fields) and implements the Schema trait for parsing and codegen.
    • Creates route handler with paperclip::actix::web::Resource. @@ -18,4 +18,4 @@ In order to control the output type and status codes the return value/response must implement the trait actix_web::Responder.
    • Creates route handler with paperclip::actix::web::Resource. In order to control the output type and status codes the return value/response must implement the -trait actix_web::Responder.

    Derive Macros§

    • Derive attribute for indicating that a type is an OpenAPI v2 compatible header parameter.
    • Derive attribute for indicating that a type is an OpenAPI v2 compatible definition.
    • Marker attribute for indicating that an object forbids public access to operation (for example AccessToken).
    \ No newline at end of file +trait actix_web::Responder.

    Derive Macros§

    • Derive attribute for indicating that a type is an OpenAPI v2 compatible header parameter.
    • Derive attribute for indicating that a type is an OpenAPI v2 compatible definition.
    • Marker attribute for indicating that an object forbids public access to operation (for example AccessToken).
    \ No newline at end of file diff --git a/search-index.js b/search-index.js index 2051a057f..0e46027d7 100644 --- a/search-index.js +++ b/search-index.js @@ -1,7 +1,7 @@ var searchIndex = new Map(JSON.parse('[\ -["paperclip",{"t":"PPPPPPPPPPPPGIPPPPPCXNNNNNNNNNNNNNNNCCNFYYYFFFKFKKFFRXXXNNNNNNNNNNNNNNNNNNNMNXNNNNNNNNNNNNNNXXNNNNNNNNNNNNMOXMNXXNNNNNNNNONMNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNCNNNNNNMMNNNNNFFNNNFNNNFFNNNFFNNNNFFNNNNNNNNNNNNNNNNNNFFFFNNNNNNNFFNFNNNFFFNFNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNHNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNNNNNNNNNNNNHNNNNNNNNNNNNNNNHNNNNNNNNHHNNNNNNNNNNNNHNNNNNNNNNNNNNHNNNNNNHNNNNNNNNNNNNNNNNNHNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNFNNNNNNNNHNNNNNNEFEEIKMNMNONNNNNCOONMNONOMNONOMNOOOONMNONHOCONMNMNOMNOOCMNOOOMNOMNMNOOMNOCOOONMNMNMNOOOOONNNNNPPFFRGGKFPPPPPONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOCNNMNNNNNNNNNNNNNNNNNNNNNNNONNNNNOFFFPGFFFFFFPONNNNNNNNNNNNNNNNNNNNOONNNNNNNNNNNNNNNNNNNNNNNNOONNNNOOOOOOONNNNNNNNNNNNNNNNNNNNNNNOONONNNNNNNNNNNNONOOOOOOOOOOOOOONNNNNNNNHHNNNNNNNNNNNNNNNNNNNNNNNOOONNNNNNNNNNONNNNNNNNNNNNNOOOFPPPPPFFGFPGGPPIIIIIFFPPGFPPPPPFPPGPFPPPPPPFJJPPFFPPPFGPPFGPPPFPPPPPFGIIIIIPFPFGPPFPPPPGPPJJPOONONOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOONNNNNOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNOOOOOOOOONNNNNNOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOONNONOOOOOOOOOOOOOOOOONOOOOOOOOOOOOOOOOOOOOOOOONOOOOOOOOOOOONNNNNNOOOOOOOOOOOOOOOOOOONOOOONNOOOOOONNNOOOOOOOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOONOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNOOKKKTKKMMNMNMMNMMNNMNMMNNMNMMMNMNMNMNMMMNN","n":["Err","InvalidBasePathURL","InvalidCodegenDirectory","InvalidDefinitionName","InvalidDefinitionPath","InvalidHost","Io","Json","MissingArrayItem","MissingDefinitionName","MissingParametersInPath","Ok","PaperClipError","PaperClipResult","RelativePathNotUnique","Templating","UnsupportedOpenAPIVersion","Validation","Yaml","actix","api_v2_schema","borrow","borrow_mut","fmt","fmt","from","from","from","from","from","from","into","to_string","try_from","try_into","type_id","util","v2","vzip","AcceptedJson","Apiv2Header","Apiv2Schema","Apiv2Security","App","CreatedJson","HttpResponseWrapper","Mountable","NoContent","OpenApiExt","OperationModifier","ResponderWrapper","ResponseWrapper","Wrapper","api_v2_errors","api_v2_errors_overlay","api_v2_operation","app_data","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build","configure","data_factory","default_service","definitions","definitions","delete","external_resource","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","get","head","into","into","into","into","into","into","into","into_future","is_visible","name","name","operation","operations","operations","patch","path","poll","post","put","raw_schema","raw_schema","respond_to","respond_to","respond_to","respond_to","respond_to","respond_to","responder","route","security_definitions","security_definitions","service","to_string","to_string","to_string","trim_base_path","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_poll","type_id","type_id","type_id","type_id","type_id","type_id","type_id","update_definitions","update_operations","update_parameter","update_response","update_response","update_response","update_response","update_security","update_security_definitions","vzip","vzip","vzip","vzip","vzip","vzip","vzip","web","with_json_spec_at","with_json_spec_v3_at","with_raw_json_spec","with_raw_json_spec_v3","with_swagger_ui_at","wrap","wrap_api","wrap_api_with_spec","wrap_fn","Accepted","AlreadyReported","BadGateway","BadRequest","Bytes","BytesMut","Conflict","Continue","Created","Data","ExpectationFailed","FailedDependency","Forbidden","Form","FormConfig","Found","GatewayTimeout","Gone","HttpRequest","HttpResponse","ImATeapot","ImUsed","InsufficientStorage","InternalServerError","Json","JsonConfig","LengthRequired","Locked","LoopDetected","MethodNotAllowed","MisdirectedRequest","MovedPermanently","MultiStatus","MultipleChoices","NetworkAuthenticationRequired","NoContent","NonAuthoritativeInformation","NotAcceptable","NotExtended","NotFound","NotImplemented","NotModified","Ok","PartialContent","Path","PathConfig","Payload","PayloadConfig","PayloadTooLarge","PaymentRequired","PermanentRedirect","PreconditionFailed","PreconditionRequired","Processing","ProxyAuthenticationRequired","Query","QueryConfig","RangeNotSatisfiable","ReqData","RequestHeaderFieldsTooLarge","RequestTimeout","ResetContent","Resource","Route","Scope","SeeOther","ServiceConfig","ServiceUnavailable","SwitchingProtocols","TemporaryRedirect","TooManyRequests","Unauthorized","UnavailableForLegalReasons","UnprocessableEntity","UnsupportedMediaType","UpgradeRequired","UriTooLong","UseProxy","VariantAlsoNegotiates","VersionNotSupported","advance","advance","advance_mut","app_config","app_data","app_data","app_data","app_data","as_mut","as_ref","as_ref","as_ref","block","body","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build","capacity","chunk","chunk","chunk_mut","clear","clear","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","cmp","cmp","cmp","cmp","cmp","compare","compare","compare","compare","compare","configure","conn_data","connection_info","content_type","content_type_required","copy_from_slice","copy_to_bytes","copy_to_bytes","default","default","default","default","default","default","default","default","default_service","default_service","definitions","definitions","definitions","delete","deref","deref","deref","deref","deref","deref","deref","deref","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deserialize","drop","drop","drop","drop_body","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","error","error_handler","error_handler","error_handler","error_handler","extend","extend","extend","extend_from_slice","extensions","extensions","extensions_mut","extensions_mut","external_resource","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","freeze","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_error","from_iter","from_iter","from_iter","from_query","from_request","from_request","from_request","from_request","from_request","from_request","from_request","from_request","from_request","from_static","full_url","get","get_ref","guard","guard","guard","hash","hash","head","head","head","head_mut","headers","headers","headers","headers_mut","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into_body","into_factory","into_inner","into_inner","into_inner","into_inner","into_inner","into_inner","into_inner","into_iter","into_iter","into_iter","into_iter","into_parts","is_empty","is_empty","is_unique","keep_alive","len","len","limit","limit","limit","map_body","map_into_boxed_body","map_into_left_body","map_into_right_body","match_info","match_name","match_pattern","method","method","method","mimetype","name","name","new","new","new","new","new","new","new","new","new_service","operations","operations","operations","options","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","patch","path","path","path","path","peer_addr","poll_next","poll_next","poll_next","post","put","put","put_bytes","put_slice","query_string","raw_schema","register","register","remaining","remaining","remaining_mut","reserve","resize","resource","resource_map","resource_path","resource_path","resource_path","resource_path","respond_to","respond_to","respond_to","respond_to","respond_to","route","route","route","scope","security_definitions","security_definitions","security_definitions","serialize","serialize","serialize","service","service","service","set_body","set_len","size","size","slice","slice_ref","spare_capacity_mut","split","split_off","split_off","split_to","split_to","status","status_mut","take_payload","to","to","to","to_bytes","to_bytes_limited","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","to_string","to_string","to_string","truncate","truncate","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into_bytes","try_into_bytes","try_into_value","try_poll_next","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","unsplit","update_definitions","update_definitions","update_definitions","update_operations","update_operations","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_response","upgrade","uri","url_for","url_for_static","version","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","with_body","with_capacity","wrap","wrap","wrap_fn","wrap_fn","write_fmt","write_str","zeroed","Ready","borrow","borrow_mut","definitions","from","into","into_future","operation","poll","ready","security_definitions","try_from","try_into","try_poll","type_id","vzip","DefaultEmitter","DefaultSchema","Emitter","EmitterState","ResolvableApi","Schema","additional_properties","additional_properties","additional_properties_mut","additional_properties_mut","base_path","borrow","borrow_mut","clone","clone_into","clone_to_uninit","codegen","coders","consumes","contains_any","data_type","data_type","data_type","default","definitions","description","description","description","deserialize","enum_","enum_variants","enum_variants","example","extensions","external_docs","extra_props","fmt","format","format","format","from","from_reader","host","im","info","into","is_cyclic","is_cyclic","items","items","items","items_mut","items_mut","maximum","minimum","models","name","name","parameters","paths","produces","properties","properties","properties","properties_mut","properties_mut","reference","reference","reference","required","required_properties","required_properties","responses","schema","schemes","security","security_definitions","serialize","set_cyclic","set_cyclic","set_name","set_name","set_reference","set_reference","spec_format","support_crates","swagger","tags","title","to_owned","try_from","try_into","type_id","vzip","App","Crate","CrateMeta","DefaultEmitter","Definition","EmitMode","EmittedUnit","Emitter","EmitterState","Known","KnownButAnonymous","Module","None","Objects","authors","base_url","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build_def","build_def","clone","clone","clone","clone_into","clone_into","clone_into","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","def_anon_name","def_anon_name","def_mod_path","def_mod_path","def_name","def_name","def_ns_name","def_ns_name","default","default","default","enum_variant","enum_variant","eq","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","from","from","from","from","from","from","generate","generate","into","into","into","into","into","mod_prefix","mode","name","no_root","ns_sep","object","set_meta","set_url","state","state","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","unknown_op_mod_path","unknown_op_mod_path","unknown_op_object","unknown_op_object","version","vzip","vzip","vzip","vzip","vzip","working_dir","ApiObject","ApiObjectBuilderImpl","ApiObjectImpl","Enum","ObjectContainer","ObjectField","ObjectVariant","OpRequirement","Parameter","PathOps","Response","Struct","body_required","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","boxed","child_req_fields","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","contains_any","decoding","default","default","default","default","delimiting","deprecated","description","description","description","description","encoding","fields","fields_mut","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","headers","id","impl_repr","inner","into","into","into","into","into","into","into","into","into","into","is_enum","is_file","is_required","is_string_enum","listable","name","name","name","name","needs_any","params","params","path","paths","presence","req","required","response","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_pascal_case","to_snake_case","to_string","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","ty_path","ty_path","ty_path","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","value","variants","variants_mut","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","with_name","fields","is_string","variants","Api","Array","Binary","Body","Boolean","Byte","Coder","Coders","CollectionFormat","Contact","Csv","DataType","DataTypeFormat","Date","DateTime","DefaultApiRaw","DefaultOperationRaw","DefaultParameterRaw","DefaultPathItemRaw","DefaultResponseRaw","DefaultSchema","DefaultSchemaRaw","Delete","Double","Either","ExternalDocs","File","Float","FormData","Get","Head","Header","Header","Http","HttpMethod","Https","Info","Int32","Int64","Integer","Ip","IpV4","IpV6","Items","JSON_CODER","JSON_MIME","Json","Left","License","MediaRange","Multi","Number","Object","Operation","OperationProtocol","Options","Other","Parameter","ParameterIn","Password","Patch","Path","PathItem","Pipes","Post","Put","Query","Raw","Reference","Resolvable","ResolvableApi","ResolvableOperation","ResolvableParameter","ResolvablePathItem","ResolvableResponse","Resolved","Response","Right","SecurityScheme","SpecFormat","Ssv","String","Tag","Tsv","Url","Uuid","V2","Version","Ws","Wss","YAML_CODER","YAML_MIME","Yaml","allow_empty_value","allow_empty_value","allows_body","any_value","append_map","auth_url","base_path","base_path","base_path","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","builtin","check","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","cmp","cmp","cmp","cmp","cmp","coder","coders","coders","coders","collection_format","collection_format","collection_format","collection_format","compare","compare","compare","compare","compare","consumes","consumes","consumes","consumes","consumes","consumes","contact","data_type","data_type","data_type","data_type","data_type","data_type","decoder_path","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","definitions","definitions","definitions","deprecated","deprecated","deprecated","deref","deref","deref","deref_mut","deref_mut","deref_mut","description","description","description","description","description","description","description","description","description","description","description","description","description","description","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","email","encoder_path","enum_","enum_","enum_","enum_","enum_","enum_","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","error_path","example","example","exclusive_maximum","exclusive_maximum","exclusive_maximum","exclusive_maximum","exclusive_minimum","exclusive_minimum","exclusive_minimum","exclusive_minimum","extensions","extensions","extensions","extensions","external_docs","external_docs","external_docs","external_docs","extra_props","extra_props","flow","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","format","format","format","format","format","format","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","get_description","headers","headers","host","host","host","in_","in_","in_","info","info","info","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","is_primitive","items","items","items","items","items","items","left","left_mut","license","matching_coder","max_items","max_items","max_items","max_items","max_length","max_length","max_length","max_length","maximum","maximum","maximum","maximum","maximum","maximum","methods","methods","methods","mime","min_items","min_items","min_items","min_items","min_length","min_length","min_length","min_length","minimum","minimum","minimum","minimum","minimum","minimum","multiple_of","multiple_of","multiple_of","multiple_of","name","name","name","name","name","name","normalize","operation_id","operation_id","operation_id","parameters","parameters","parameters","parameters","parameters","parameters","parameters","parameters","parameters","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","path_parameters_map","paths","paths","paths","pattern","pattern","pattern","pattern","prefer","produces","produces","produces","produces","produces","produces","properties","properties","reference","reference","reference","remove_refs","required","required","required","required","resolve","resource_path","responses","responses","responses","responses","responses","responses","retain_ref","right","right_mut","schema","schema","schema","schema","schemes","schemes","schemes","schemes","schemes","schemes","scopes","security","security","security","security","security","security","security_definitions","security_definitions","security_definitions","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","set_parameter_names_from_path_template","spec_format","spec_format","spec_format","summary","summary","summary","support_crates","support_crates","support_crates","swagger","swagger","swagger","tags","tags","tags","tags","tags","tags","terms_of_service","title","title","title","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","to_string","token_url","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","unique_items","unique_items","unique_items","unique_items","update_definitions","url","url","url","version","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","new","old","Apiv2Errors","Apiv2Operation","Apiv2Schema","ERROR_MAP","Schema","TypedData","additional_properties","additional_properties_mut","contains_any","data_type","data_type","definitions","description","description","enum_variants","format","format","header_parameter_schema","is_cyclic","is_visible","items","items_mut","max","min","name","name","operation","properties","properties_mut","raw_schema","reference","required","required_properties","schema_with_ref","security_definitions","security_scheme","set_cyclic","set_name","set_reference","update_definitions","update_error_definitions"],"q":[[0,"paperclip"],[39,"paperclip::actix"],[178,"paperclip::actix::web"],[834,"paperclip::util"],[850,"paperclip::v2"],[944,"paperclip::v2::codegen"],[1056,"paperclip::v2::codegen::object"],[1243,"paperclip::v2::codegen::object::ObjectContainer"],[1246,"paperclip::v2::models"],[2127,"paperclip::v2::models::Resolvable"],[2129,"paperclip::v2::schema"],[2170,"paperclip::error"],[2171,"core::fmt"],[2172,"paperclip_core::error"],[2173,"serde_json::error"],[2174,"tinytemplate::error"],[2175,"serde_yaml::error"],[2176,"std::io::error"],[2177,"alloc::string"],[2178,"core::result"],[2179,"core::any"],[2180,"paperclip_actix::app"],[2181,"actix_web::service"],[2182,"actix_web::error::error"],[2183,"actix_service"],[2184,"actix_web::app"],[2185,"paperclip_actix::web"],[2186,"core::ops::function"],[2187,"core::future::future"],[2188,"paperclip_actix"],[2189,"paperclip_core::v2::models"],[2190,"alloc::collections::btree::map"],[2191,"core::convert"],[2192,"paperclip_core::v2::actix"],[2193,"serde::ser"],[2194,"paperclip_core::v2::schema"],[2195,"core::option"],[2196,"core::pin"],[2197,"core::task::wake"],[2198,"core::task::poll"],[2199,"actix_web::response::responder"],[2200,"actix_web::request"],[2201,"actix_web::response::response"],[2202,"serde_json::value"],[2203,"actix_http::body::message_body"],[2204,"actix_service::transform"],[2205,"core::clone"],[2206,"actix_web::response::builder"],[2207,"bytes::bytes"],[2208,"bytes::bytes_mut"],[2209,"actix_web::config"],[2210,"actix_web::resource"],[2211,"actix_web::scope"],[2212,"actix_web::types::path"],[2213,"actix_web::error"],[2214,"core::marker"],[2215,"http::status"],[2216,"bytes::buf::uninit_slice"],[2217,"actix_web::data"],[2218,"actix_web::request_data"],[2219,"actix_web::types::form"],[2220,"actix_web::types::json"],[2221,"actix_web::types::payload"],[2222,"actix_web::types::query"],[2223,"core::cmp"],[2224,"actix_web::info"],[2225,"core::cell"],[2226,"mime"],[2227,"core::default"],[2228,"alloc::sync"],[2229,"serde::de"],[2230,"alloc::vec"],[2231,"core::iter::traits::collect"],[2232,"actix_http::extensions"],[2233,"http::byte_str"],[2234,"http::header::name"],[2235,"alloc::boxed"],[2236,"actix_http::responses::response"],[2237,"actix_http::payload"],[2238,"url"],[2239,"actix_web::guard"],[2240,"core::hash"],[2241,"actix_http::responses::head"],[2242,"actix_http::requests::head"],[2243,"actix_http::header::map"],[2244,"actix_http::body::either"],[2245,"actix_router::url"],[2246,"actix_router::path"],[2247,"http::method"],[2248,"core::net::socket_addr"],[2249,"bytes::buf::buf_impl"],[2250,"actix_web::rmap"],[2251,"actix_router::pattern"],[2252,"actix_http::body::size"],[2253,"core::ops::range"],[2254,"core::mem::maybe_uninit"],[2255,"actix_web::route"],[2256,"actix_web::extract"],[2257,"actix_web::handler"],[2258,"actix_http::body::utils"],[2259,"http::header::value"],[2260,"http::uri"],[2261,"http::version"],[2262,"paperclip_core::util"],[2263,"std::io"],[2264,"alloc::collections::btree::set"],[2265,"paperclip::v2::codegen::state"],[2266,"paperclip::v2::codegen::emitter"],[2267,"anyhow"],[2268,"std::path"],[2269,"core::iter::traits::iterator"],[2270,"paperclip::v2::codegen::impls"],[2271,"paperclip_core::v2::extensions"],[2272,"openapiv3::parameter"],[2273,"openapiv3::request_body"],[2274,"openapiv3::schema"],[2275,"alloc::borrow"],[2276,"std::sync::rwlock"],[2277,"paperclip_core"],[2278,"paperclip_macros"],[2279,"actix_web::web"],[2280,"paperclip_core::v2"]],"i":[214,3,3,3,3,3,3,3,3,3,3,214,0,0,3,3,3,3,3,0,0,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,70,0,0,0,14,57,60,14,50,37,42,43,57,60,14,50,37,42,43,14,14,14,14,32,50,0,14,37,37,42,42,43,43,57,60,14,50,37,42,43,0,0,57,60,14,50,37,42,43,50,50,37,42,50,32,50,0,32,50,0,0,37,42,57,60,50,37,42,43,50,14,32,50,14,37,42,43,14,57,60,14,50,37,42,43,57,60,14,50,37,42,43,50,57,60,14,50,37,42,43,54,32,54,54,37,42,43,54,54,57,60,14,50,37,42,43,0,14,14,14,14,14,14,70,70,14,59,59,59,59,0,0,59,59,59,0,59,59,59,0,0,59,59,59,0,0,59,59,59,59,0,0,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,0,0,0,0,59,59,59,59,59,59,59,0,0,59,0,59,59,59,0,0,0,59,0,59,59,59,59,59,59,59,59,59,59,59,59,59,74,76,76,58,79,81,23,58,76,74,76,84,0,59,79,81,61,23,74,74,76,76,59,135,89,58,91,99,92,107,93,84,94,95,96,97,79,81,61,23,74,76,76,59,135,89,58,91,99,92,107,93,84,94,95,96,97,59,76,74,76,76,74,76,74,76,89,58,91,92,93,94,95,96,97,74,76,89,58,91,92,93,94,95,96,97,74,76,89,58,91,92,93,94,95,96,97,74,76,99,84,96,74,76,99,84,96,81,58,58,93,93,74,74,76,74,76,89,92,93,94,95,97,79,81,79,81,23,0,74,76,89,91,99,107,84,96,76,99,107,84,96,89,74,76,58,59,74,74,74,74,74,74,74,76,76,76,76,76,76,76,99,84,96,74,74,74,74,76,76,76,76,99,99,99,99,84,84,84,84,96,96,96,96,59,92,93,94,97,76,76,76,76,59,58,59,58,23,74,74,74,76,76,76,59,89,58,91,99,99,107,107,84,84,96,96,76,79,81,61,23,23,74,74,74,74,74,74,74,74,74,76,76,76,59,59,59,59,59,135,89,89,58,91,99,92,107,93,84,84,84,94,95,96,97,59,74,76,76,96,74,135,89,58,91,99,107,84,96,74,58,0,89,79,81,61,74,76,0,59,58,59,59,58,58,59,79,81,61,23,74,76,59,135,89,58,91,99,92,107,93,84,94,95,96,97,59,61,135,89,91,99,107,84,96,74,74,76,76,59,74,76,74,59,74,76,92,93,95,59,59,59,59,58,58,58,0,61,58,95,79,107,79,81,61,74,76,59,89,95,61,79,81,23,0,74,74,74,74,74,74,76,76,76,76,76,76,99,84,96,0,79,81,23,58,58,74,76,135,0,0,76,76,76,58,107,79,81,74,76,76,76,76,0,58,99,107,84,96,74,76,59,99,107,79,81,23,0,79,81,23,89,99,107,0,81,23,59,76,74,76,74,74,76,76,74,76,74,76,59,59,58,0,79,61,135,135,74,76,89,58,91,92,93,94,95,96,97,99,107,84,96,74,76,79,81,61,23,74,76,59,135,89,58,91,99,92,107,93,84,94,95,96,97,79,81,61,23,74,76,59,135,89,58,91,99,92,107,93,84,94,95,96,97,74,76,74,135,79,81,61,23,74,76,59,135,89,58,91,99,92,107,93,84,94,95,96,97,76,99,84,96,81,23,99,107,84,84,84,84,84,84,84,84,84,84,84,84,84,84,96,107,59,58,58,58,58,79,81,61,23,74,76,59,135,89,58,91,99,92,107,93,84,94,95,96,97,59,76,79,81,79,81,76,76,76,0,161,161,161,161,161,161,161,161,0,161,161,161,161,161,161,0,0,0,0,0,0,162,165,162,165,168,165,165,165,165,165,0,168,168,162,162,165,165,165,168,162,165,165,165,165,162,165,165,168,168,165,165,162,165,165,165,0,168,0,168,165,162,165,162,165,165,162,165,165,165,0,162,165,168,168,168,162,165,165,162,165,162,165,165,165,162,165,168,0,168,168,168,165,162,165,162,165,162,165,168,168,168,168,165,165,165,165,165,165,177,177,0,0,173,0,0,0,0,174,174,177,174,174,176,171,181,174,171,176,177,181,174,171,176,177,173,173,171,176,177,171,176,177,171,176,177,177,173,173,173,173,173,173,173,173,171,176,177,173,173,177,177,177,177,177,174,171,176,177,181,181,174,171,176,177,173,173,181,174,171,176,177,171,176,176,176,171,0,171,171,173,181,171,176,177,181,174,171,176,177,181,174,171,176,177,181,174,171,176,177,173,173,173,173,176,181,174,171,176,177,171,0,0,0,184,0,0,0,0,0,0,0,184,186,190,191,183,184,185,186,187,188,180,189,190,191,183,184,185,186,187,188,180,189,189,189,183,184,185,186,187,188,180,189,183,184,185,186,187,188,180,189,183,184,185,186,187,188,180,189,187,186,183,184,185,187,188,186,183,186,188,189,186,183,183,190,191,183,183,184,185,186,187,188,180,189,190,191,183,184,185,186,187,188,180,189,187,186,183,183,190,191,183,184,185,186,187,188,180,189,184,187,189,184,186,183,188,180,189,189,185,186,183,183,188,185,188,186,183,184,185,186,187,188,180,189,0,0,190,191,183,190,191,183,184,185,186,187,188,180,189,190,191,183,184,185,186,187,188,180,189,187,188,189,190,191,183,184,185,186,187,188,180,189,180,183,183,190,191,183,184,185,186,187,188,180,189,183,215,216,216,0,166,167,203,166,167,0,0,0,0,204,0,0,167,167,0,0,0,0,0,0,0,49,167,0,0,166,167,203,49,49,0,203,206,0,206,0,167,167,166,167,167,167,0,0,0,196,164,0,0,204,166,166,0,0,49,167,0,0,167,49,203,0,204,49,49,203,163,0,0,0,0,0,0,0,163,0,164,0,0,204,166,0,204,167,167,195,0,206,206,0,0,196,217,46,49,194,62,62,168,218,71,192,193,194,195,166,167,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,164,163,192,193,194,195,166,167,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,164,163,194,46,192,193,194,195,166,167,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,164,163,192,193,194,195,166,167,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,164,163,192,193,194,195,195,166,166,167,71,196,196,33,197,198,199,62,200,201,64,46,202,203,203,204,204,48,205,206,206,47,207,49,49,164,163,192,203,204,206,49,196,168,218,71,217,46,202,207,192,203,204,206,49,168,218,182,219,71,48,197,217,33,165,46,202,207,194,193,194,195,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,47,207,163,217,46,207,168,218,71,182,219,48,193,164,163,193,164,163,217,182,219,220,33,165,197,62,200,201,46,48,47,207,192,193,194,195,166,167,71,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,164,163,198,194,217,33,165,46,202,207,192,195,166,167,196,46,202,203,204,205,206,49,192,192,192,192,195,195,195,195,166,166,166,166,167,167,167,167,196,196,196,196,203,203,203,203,204,204,204,204,205,205,205,205,206,206,206,206,49,49,49,49,194,33,165,217,46,202,207,217,46,202,207,168,218,71,197,168,218,71,200,33,165,62,192,193,194,195,166,167,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,49,164,163,217,33,165,46,202,207,192,193,194,195,166,166,167,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,49,164,164,163,163,163,163,220,47,168,218,71,217,62,46,168,218,71,192,193,194,195,166,167,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,164,163,166,217,33,165,46,202,207,164,164,197,193,217,46,202,207,217,46,202,207,217,33,165,46,202,207,221,222,64,196,217,46,202,207,217,46,202,207,217,33,165,46,202,207,217,46,202,207,217,198,199,62,200,46,64,182,219,48,168,218,221,222,182,219,71,64,48,192,203,204,206,49,71,168,218,71,217,46,202,207,194,168,218,182,219,71,48,33,165,33,165,205,33,217,33,165,46,71,164,168,218,182,219,71,48,33,164,164,217,220,46,47,168,218,182,219,71,48,62,168,218,182,219,71,48,168,218,71,192,193,194,195,166,167,71,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,164,163,48,168,218,71,182,219,48,168,218,71,168,218,71,168,218,182,219,71,48,197,33,165,197,192,193,194,195,166,167,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,164,163,167,49,62,192,193,194,195,166,167,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,164,163,192,193,194,195,166,167,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,164,163,62,192,193,194,195,166,167,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,164,163,217,46,202,207,62,198,199,201,197,192,193,194,195,166,167,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,164,163,223,223,0,0,0,224,0,0,162,162,162,162,225,56,162,41,162,162,225,41,162,56,162,162,225,225,162,41,56,162,162,41,162,41,162,41,56,41,162,162,162,224,224],"f":"`````````````````````{{{b{c}}}{{b{e}}}{}{}}{{{b{dc}}}{{b{de}}}{}{}}{{{b{f}}{b{dh}}}j}0{lf}{nf}{cc{}}{A`f}{Abf}{Adf}{ce{}{}}{{{b{c}}}Af{}}{c{{Ah{e}}}{}{}}0{{{b{c}}}Aj{}}``3`````````````````{{{Al{c}}e}{{Al{c}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{}}=======<<<<<<<{{{Al{c}}}{{Bl{c}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}}{{{Al{c}}e}{{Al{c}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{{C`{{b{dBn}}}}}}{{{Al{c}}k}{{Al{c}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{}Cb{{Cf{}{{Cd{{Ah{eg}}}}}}}{{Ch{}{{Cd{i}}}}}}{{{Al{c}}g}{{Al{c}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{{Bj{An}{{B`{Bb}}{Cj{Cl}}{Bd{Bf}}{Bh{Bb}}}}}{{Cn{eAn}}}}{{{b{dD`}}}{{Dd{AfDb}}}}{{}{{Dd{AfDb}}}}`{{{Al{c}}eg}{{Al{c}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{{Dh{Df}}}{{Dh{Df}}}}{{{b{{Dj{c}}}}{b{dh}}}{{Ah{BbDl}}}{DnE`Eb}}{{{b{{Dj{c}}}}{b{dh}}}{{Ah{BbDl}}}{CbE`Eb}}{{{b{{Ed{c}}}}{b{dh}}}{{Ah{BbDl}}}{CbE`Eb}}{{{b{{Ed{c}}}}{b{dh}}}{{Ah{BbDl}}}{DnE`Eb}}{{{b{Ef}}{b{dh}}}{{Ah{BbDl}}}}0{cc{}}000000``{ce{}{}}000000{c{}{}}{{}Eh}{{}{{Ej{Af}}}}0{{}{{F`{{El{Db}}{En{Db}}}}}}{{{b{dD`}}}{{Dd{Fb{F`{{El{Db}}{En{Db}}}}}}}}``{{{b{D`}}}{{b{Df}}}}{{{Ff{{b{d{Fd{eg}}}}}}{b{dFh}}}Fj{FlFn}{{Cf{}{{Cd{c}}}}}G`}``{{}Db}0{{Gb{b{Gd}}}Gf}{{{Gh{c}}{b{Gd}}}GfFn}{{{Fd{ce}}{b{Gd}}}GfFn{}}{{{Dj{c}}{b{Gd}}}Gf{E`Eb}}{{{Ed{c}}{b{Gd}}}Gf{E`Eb}}{{Ef{b{Gd}}}Gf}`{{{Al{c}}{b{Df}}Gj}{{Al{c}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}}{{{b{dD`}}}{{Dd{AfGl}}}}{{}{{Dd{AfGl}}}}{{{Al{c}}e}{{Al{c}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{D`Gn}}{{{b{c}}}Af{}}00{{{Al{c}}}{{Al{c}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}}{c{{Ah{e}}}{}{}}0000000000000{{{Ff{{b{dc}}}}{b{dFh}}}Fj{}}{{{b{c}}}Aj{}}000000{{{b{d{Dd{AfDb}}}}}Bb}{{{b{dD`}}{b{d{Dd{Af{H`{{El{Db}}{En{Db}}}}}}}}}Bb}{{{b{d{F`{{El{Db}}{En{Db}}}}}}}Bb}00000{{{b{d{Dd{AfGl}}}}}Bb}{ce{}{}}000000`{{{Al{c}}{b{Df}}}{{Al{c}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}}0{{{Al{c}}e}{{Al{c}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{{Hd{{Al{c}}Hb}{{Cd{{Al{c}}}}}}}}01{{{Al{c}}g}{{Al{{`{{Bj{An}{{B`{Bb}}{Cj{{Cl{e}}}}{Bd{Bf}}{Bh{Bb}}}}}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}Hf{{Hh{An}{{Cj{{Cl{e}}}}{Bd{Bf}}{Bh{Bb}}}}}}{{{Hl{}{{Hj{c}}}}}c{}}{{{Hl{}{{Hj{c}}}}{Hn{{El{Db}}{En{Db}}Db}}}c{}}{{{Al{c}}i}{{Al{{`{{Bj{An}{{B`{Bb}}{Cj{{Cl{e}}}}{Bd{Bf}}{Bh{Bb}}}}}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}Hf{{Cf{}{{Cd{{Ah{{Cl{e}}Bf}}}}}}}{{Ch{Anb}{{Cd{g}}}}I`}}{{}Ib}000``000`000``000``0000``000000000000000000````0000000``0`000```0`0000000000000{{{b{dId}}If}Bb}{{{b{dIh}}If}Bb}0{{{b{Gd}}}{{b{Ij}}}}{{{In{{Il{c}}}}e}{{In{{Il{c}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{}}{{{Jb{{J`{c}}}}e}{{Jb{{J`{c}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{}}{{{b{dBn}}c}{{b{dBn}}}{}}{{{b{Gd}}}{{Ej{{b{c}}}}}{}}{{{b{dIh}}}{{b{d{Jf{Jd}}}}}}{{{b{Id}}}{{b{{Jf{Jd}}}}}}{{{b{Ih}}}{{b{{Jf{Jd}}}}}}{{{b{{Jh{c}}}}}{{b{c}}}{}}{e{{`{{Cf{}{{Cd{{Ah{cJj}}}}}}}}}Jl{{C`{}{{Cd{c}}}}Jl}}{{{b{{Gf{c}}}}}{{b{c}}}{}}{{{b{c}}}{{b{e}}}{}{}}000050400000000000000{{{b{dc}}}{{b{de}}}{}{}}00000700000000000000{JnIb}{{{b{Ih}}}If}87{{{b{dIh}}}{{b{dK`}}}}{{{b{dId}}}Bb}{{{b{dIh}}}Bb}{{{b{Id}}}Id}{{{b{Ih}}}Ih}{{{b{{Kb{c}}}}}{{Kb{c}}}Kd}{{{b{Gd}}}Gd}{{{b{{Kf{c}}}}}{{Kf{c}}}{I`I`}}{{{b{Kh}}}Kh}{{{b{Kj}}}Kj}{{{b{Kl}}}Kl}{{{b{Kn}}}Kn}{{{b{{L`{c}}}}}{{L`{c}}}I`}{{{b{Lb}}}Lb}{{{b{c}}{b{de}}}Bb{}{}}0000000000{{{b{c}}}Bb{}}0000000000{{{b{Id}}{b{Id}}}Ld}{{{b{Ih}}{b{Ih}}}Ld}{{{b{{Lf{c}}}}{b{{Lf{c}}}}}LdLh}{{{b{{Jh{c}}}}{b{{Jh{c}}}}}LdLh}{{{b{{L`{c}}}}{b{{L`{c}}}}}LdLh}{{{b{c}}{b{e}}}Ld{}{}}0000{{{Jb{{J`{c}}}}e}{{Jb{{J`{c}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{{C`{{b{dBn}}}}}}{{{b{Gd}}}{{Ej{{b{c}}}}}{}}{{{b{Gd}}}{{Ll{Lj}}}}{{Kjc}Kj{{Ch{Ln}{{Cd{Eh}}}}JlM`}}{{KjEh}Kj}{{{b{{Jf{Jd}}}}}Id}{{{b{dId}}If}Id}{{{b{dIh}}If}Id}{{}Id}{{}Ih}{{}{{Kb{c}}}Mb}{{}Kh}{{}Kj}{{}Kl}{{}Kn}{{}Lb}{{{In{{Il{c}}}}g}{{In{{Il{c}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{{Bj{An}{{B`{Bb}}{Cj{Cl}}{Bd{Bf}}{Bh{Bb}}}}}{{Cn{eAn}}}}{{{Jb{{J`{c}}}}g}{{Jb{{J`{c}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{{Bj{An}{{B`{Bb}}{Cj{Cl}}{Bd{Bf}}{Bh{Bb}}}}}{{Cn{eAn}}}}{{{b{d{In{c}}}}}{{Dd{AfDb}}}{}}{{{b{d{Jb{c}}}}}{{Dd{AfDb}}}{}}{{{b{dBn}}}{{Dd{AfDb}}}}{{}Gj}{{{b{Id}}}{{b{{Jf{Jd}}}}}}{{{b{Ih}}}{{b{{Jf{Jd}}}}}}{{{b{{Kb{c}}}}}{{b{{Md{c}}}}}Kd}{{{b{{Kf{c}}}}}{{b{c}}}I`}{{{b{{Lf{c}}}}}{{b{c}}}{}}{{{b{{Mf{c}}}}}{{b{c}}}{}}{{{b{{Jh{c}}}}}b{}}{{{b{{L`{c}}}}}{{b{c}}}{}}{{{b{dIh}}}{{b{d{Jf{Jd}}}}}}{{{b{d{Lf{c}}}}}{{b{dc}}}{}}{{{b{d{Mf{c}}}}}{{b{dc}}}{}}{{{b{d{Jh{c}}}}}{{b{d}}}{}}{{{b{d{L`{c}}}}}{{b{dc}}}{}}{c{{Ah{{Kb{e}}}}}MhMj}{{{b{dId}}}Bb}{{{b{dIh}}}Bb}{{{b{dGd}}}Bb}{{{Gf{c}}}{{Gf{Bb}}}{}}{{{b{Id}}{b{Id}}}Eh}{{{b{Id}}{b{{Ml{Jd}}}}}Eh}{{{b{Id}}{b{Ih}}}Eh}{{{b{Id}}{b{{Jf{Jd}}}}}Eh}{{{b{Id}}{b{Df}}}Eh}{{{b{Id}}{b{{b{c}}}}}EhKd}{{{b{Id}}{b{Af}}}Eh}{{{b{Ih}}{b{Ih}}}Eh}{{{b{Ih}}{b{{b{c}}}}}EhKd}{{{b{Ih}}{b{{Jf{Jd}}}}}Eh}{{{b{Ih}}{b{{Ml{Jd}}}}}Eh}{{{b{Ih}}{b{Df}}}Eh}{{{b{Ih}}{b{Af}}}Eh}{{{b{Ih}}{b{Id}}}Eh}{{{b{{Lf{c}}}}{b{{Lf{c}}}}}EhMn}{{{b{{Jh{c}}}}{b{{Jh{c}}}}}EhMn}{{{b{{L`{c}}}}{b{{L`{c}}}}}EhMn}{{{b{c}}{b{e}}}Eh{}{}}0000000000000000000{{{b{{Gf{c}}}}}{{Ej{{b{Bf}}}}}{}}{{Khc}Kh{{Ch{N`{b{Gd}}}{{Cd{Bf}}}}}}{{Kjc}Kj{{Ch{Nb{b{Gd}}}{{Cd{Bf}}}}JlM`}}{{Klc}Kl{{Ch{Nd{b{Gd}}}{{Cd{Bf}}}}JlM`}}{{Lbc}Lb{{Ch{Nf{b{Gd}}}{{Cd{Bf}}}}JlM`}}{{{b{dIh}}c}Bb{{Nj{}{{Nh{{b{Jd}}}}}}}}{{{b{dIh}}c}Bb{{Nj{}{{Nh{Jd}}}}}}{{{b{dIh}}c}Bb{{Nj{}{{Nh{Id}}}}}}{{{b{dIh}}{b{{Jf{Jd}}}}}Bb}{{{b{{Gf{c}}}}}{{Ll{Nl}}}{}}{{{b{Gd}}}{{Ll{Nl}}}}{{{b{d{Gf{c}}}}}{{Nn{Nl}}}{}}{{{b{Gd}}}{{Nn{Nl}}}}{{{b{dBn}}ce}{{b{dBn}}}{{Dh{Df}}}{{Dh{Df}}}}{{{b{Id}}{b{dh}}}{{Ah{BbDl}}}}00{{{b{Ih}}{b{dh}}}{{Ah{BbDl}}}}00{{{b{{Gf{c}}}}{b{dh}}}{{Ah{BbDl}}}Hf}{{{b{{Kb{c}}}}{b{dh}}}{{Ah{BbDl}}}{CbKd}}{{{b{Gd}}{b{dh}}}{{Ah{BbDl}}}}{{{b{{Kf{c}}}}{b{dh}}}{{Ah{BbDl}}}{CbI`}}{{{b{{Lf{c}}}}{b{dh}}}{{Ah{BbDl}}}Dn}{{{b{{Lf{c}}}}{b{dh}}}{{Ah{BbDl}}}Cb}{{{b{{Mf{c}}}}{b{dh}}}{{Ah{BbDl}}}Cb}{{{b{{Mf{c}}}}{b{dh}}}{{Ah{BbDl}}}Dn}{{{b{{Jh{c}}}}{b{dh}}}{{Ah{BbDl}}}Dn}{{{b{{Jh{c}}}}{b{dh}}}{{Ah{BbDl}}}Cb}{{{b{{L`{c}}}}{b{dh}}}{{Ah{BbDl}}}Cb}{{{b{{L`{c}}}}{b{dh}}}{{Ah{BbDl}}}Dn}{IhId}{cc{}}000{{{b{dO`}}}Bn}{{{Ml{Jd}}}Id}{AfId}{ObId}{OdId}6{{{b{Df}}}Id}6{{{Of{{Jf{Jd}}}}}Id}{{{b{{Jf{Jd}}}}}Id}{{{b{Df}}}Ih}{{{b{{Jf{Jd}}}}}Ih}::{BfGf}{{{Oh{c}}}{{Gf{c}}}{}}{{{Cl{c}}}{{Gf{c}}}{}}{IbGf}>{{{Md{c}}}{{Kb{c}}}Kd}???????{c{{Jh{c}}}{}}{Ojc{}}{cc{}}0000{cGf{{Ol{Bf}}}}{cId{{Nj{}{{Nh{Jd}}}}}}{cIh{{Nj{}{{Nh{{b{Jd}}}}}}}}{cIh{{Nj{}{{Nh{Jd}}}}}}{{{b{Df}}}{{Ah{{L`{c}}Nf}}}On}{{{b{Gd}}{b{dA@`}}}}00000000{{{b{{Jf{Jd}}}}}Id}{{{b{Gd}}}A@b}{{}Gj}{{{b{{Kb{c}}}}}{{b{c}}}Kd}{{{In{{Il{c}}}}e}{{In{{Il{c}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}A@d}{{{Jb{{J`{c}}}}e}{{Jb{{J`{c}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}A@d}{{Gjc}GjA@d}{{{b{Id}}{b{dc}}}BbA@f}{{{b{Ih}}{b{dc}}}BbA@f}6{{{b{{Gf{c}}}}}{{b{A@h}}}{}}{{{b{Gd}}}{{b{A@j}}}}{{{b{d{Gf{c}}}}}{{b{dA@h}}}{}}{{{b{{Gf{c}}}}}{{b{A@l}}}{}}{{{b{Gd}}}{{b{A@l}}}}0{{{b{d{Gf{c}}}}}{{b{dA@l}}}{}}{ce{}{}}0000000000000000000{{{Gf{c}}}c{}}1{A@nA@`}{{{Kb{c}}}{{Md{c}}}Kd}{{{Kf{c}}}cI`}{{{Lf{c}}}c{}}{{{Mf{c}}}c{}}{{{Jh{c}}}c{}}{{{L`{c}}}c{}}{Id}{{{b{Id}}}}{Ih}{{{b{Ih}}}}{{{Gf{c}}}{{AA`{{Gf{Bb}}c}}}{}}{{{b{Id}}}Eh}{{{b{Ih}}}Eh}1{{{b{{Gf{c}}}}}Eh{}}{{{b{Id}}}If}{{{b{Ih}}}If}{{KhIf}Kh}{{KjIf}Kj}{{KnIf}Kn}{{{Gf{c}}g}{{Gf{e}}}{}{}{{C`{{b{dA@h}}c}{{Cd{e}}}}}}{{{Gf{c}}}GfHf}{{{Gf{c}}}{{Gf{{AAb{ce}}}}}{}{}}{{{Gf{c}}}{{Gf{{AAb{ec}}}}}{}{}}{{{b{Gd}}}{{b{{AAf{AAd}}}}}}{{{b{Gd}}}{{Ej{{b{Df}}}}}}{{{b{Gd}}}{{Ej{Af}}}}{AAhGj}{{GjAAh}Gj}{{{b{Gd}}}{{b{AAh}}}}{{KnLn}Kn}{{{In{{Il{c}}}}{b{Df}}}{{In{{Il{c}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}}{{}{{Ej{Af}}}}{{{b{Df}}}In}{{{b{Df}}}Jb}{{}Gj}{{}Id}{{}Ih}{JnGf}{c{{Kb{c}}}{}}{IfKn}{{{b{Gj}}}}{{{b{d{In{c}}}}}{{Dd{Fb{F`{{El{Db}}{En{Db}}}}}}}{}}{{{b{d{Jb{c}}}}}{{Dd{Fb{F`{{El{Db}}{En{Db}}}}}}}{}}{{{b{dBn}}}{{Dd{Fb{F`{{El{Db}}{En{Db}}}}}}}}9{{{b{Id}}{b{{b{c}}}}}{{Ej{Ld}}}Kd}{{{b{Id}}{b{Af}}}{{Ej{Ld}}}}{{{b{Id}}{b{{Jf{Jd}}}}}{{Ej{Ld}}}}{{{b{Id}}{b{Id}}}{{Ej{Ld}}}}{{{b{Id}}{b{{Ml{Jd}}}}}{{Ej{Ld}}}}{{{b{Id}}{b{Df}}}{{Ej{Ld}}}}{{{b{Ih}}{b{{Jf{Jd}}}}}{{Ej{Ld}}}}{{{b{Ih}}{b{Df}}}{{Ej{Ld}}}}{{{b{Ih}}{b{{Ml{Jd}}}}}{{Ej{Ld}}}}{{{b{Ih}}{b{{b{c}}}}}{{Ej{Ld}}}Kd}{{{b{Ih}}{b{Ih}}}{{Ej{Ld}}}}{{{b{Ih}}{b{Af}}}{{Ej{Ld}}}}{{{b{{Lf{c}}}}{b{{Lf{c}}}}}{{Ej{Ld}}}AAj}{{{b{{Jh{c}}}}{b{{Jh{c}}}}}{{Ej{Ld}}}AAj}{{{b{{L`{c}}}}{b{{L`{c}}}}}{{Ej{Ld}}}AAj}{{}Gj}{{{b{{In{c}}}}}{{b{Df}}}{}}{{{b{{Jb{c}}}}}{{b{Df}}}{}}{{{b{Bn}}}{{b{Df}}}}{{{b{Gd}}}{{b{Df}}}}{{{b{Gd}}}{{Ej{AAl}}}}{{{Ff{{b{dId}}}}{b{dFh}}}{{Fj{{Ej{{Ah{Id}}}}}}}}{{{Ff{{b{dIh}}}}{b{dFh}}}{{Fj{{Ej{{Ah{Id}}}}}}}}{{{Ff{{b{dA@n}}}}{b{dFh}}}{{Fj{Ej}}}}88{{{b{dIh}}c}BbAAn}{{{b{dIh}}JdIf}Bb}{{{b{dIh}}{b{{Jf{Jd}}}}}Bb}7{{}Db}{{{In{{Il{e}}}}{b{dAB`}}}BbHf{{Bj{An}{{B`{Bb}}{Cj{{Cl{c}}}}{Bd{Bf}}{Bh{Bb}}}}}}{{{Jb{{J`{e}}}}{b{dAB`}}}BbHf{{Bj{An}{{B`{Bb}}{Cj{{Cl{c}}}}{Bd{Bf}}{Bh{Bb}}}}}}{{{b{Id}}}If}{{{b{Ih}}}If}0{{{b{dIh}}If}Bb}{{{b{dIh}}IfJd}Bb}{{{b{Df}}}In}{{{b{Gd}}}{{b{ABb}}}}{{{b{dc}}}{{b{dAAf}}}{}}000{{Id{b{Gd}}}Gf}{{Ih{b{Gd}}}Gf}{{{Gf{c}}{b{Gd}}}GfHf}{{{Lf{c}}{b{Gd}}}GfE`}{{{Mf{c}}{b{Gd}}}GfE`}{{{In{{Il{c}}}}Gj}{{In{{Il{c}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}}{{{Jb{{J`{c}}}}{b{Df}}Gj}{{Jb{{J`{c}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}}{{{b{dBn}}{b{Df}}Gj}{{b{dBn}}}}{{{b{Df}}}Jb}{{{b{d{In{c}}}}}{{Dd{AfGl}}}{}}{{{b{d{Jb{c}}}}}{{Dd{AfGl}}}{}}{{{b{dBn}}}{{Dd{AfGl}}}}{{{b{{Kb{c}}}}e}AhE`ABd}{{{b{{Lf{c}}}}e}AhE`ABd}{{{b{{Mf{c}}}}e}AhE`ABd}{cABfABh}{{{Jb{{J`{c}}}}e}{{Jb{{J`{c}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{D`Gn}}{{{b{dBn}}c}{{b{dBn}}}{D`Gn}}{{{Gf{c}}e}{{Gf{e}}}{}{}}{{{b{dIh}}If}Bb}{{{b{Id}}}ABj}{{{b{Ih}}}ABj}{{{b{Id}}c}Id{{ABl{If}}}}{{{b{Id}}{b{{Jf{Jd}}}}}Id}{{{b{dIh}}}{{b{d{Jf{{ABn{Jd}}}}}}}}{{{b{dIh}}}Ih}{{{b{dId}}If}Id}{{{b{dIh}}If}Ih}10{{{b{{Gf{c}}}}}Jn{}}{{{b{d{Gf{c}}}}}{{b{dJn}}}{}}{{{b{dGd}}}A@`}{eAC`ACb{{ACd{c}}}}{{{In{{Il{c}}}}g}{{In{{Il{c}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}ACb{{ACd{e}}}}{{Gje}GjACb{{ACd{c}}}}{A@n{{Ah{IdBf}}}}{{A@nIf}{{Ah{{Ah{IdBf}}ACf}}}}{{{b{c}}}e{}{}}0000000000{{{b{c}}}Af{}}000{{{b{dId}}If}Bb}{{{b{dIh}}If}Bb}{c{{Ah{e}}}{}{}}000000000000000000000000000000000000000{Id{{Ah{IdId}}}}{Ih{{Ah{IdIh}}}}{Id{{Ah{ACh}}}}{{{Ff{{b{dc}}}}{b{dFh}}}{{Fj{{Ej{Ah}}}}}{}}{{{b{c}}}Aj{}}0000000000000000000{{{b{dIh}}Ih}Bb}{{{b{d{Dd{AfDb}}}}}Bb}00{{{b{d{Jb{c}}}}{b{d{Dd{Af{H`{{El{Db}}{En{Db}}}}}}}}}Bb{}}{{{b{dBn}}{b{d{Dd{Af{H`{{El{Db}}{En{Db}}}}}}}}}Bb}{{{b{d{F`{{El{Db}}{En{Db}}}}}}}Bb}00000000000000000{{{b{{Gf{c}}}}}Eh{}}{{{b{Gd}}}{{b{ACj}}}}{{{b{Gd}}{b{Df}}e}{{Ah{A@bACl}}}{{Dh{Df}}}{{Nj{}{{Nh{c}}}}}}{{{b{Gd}}{b{Df}}}{{Ah{A@bACl}}}}{{{b{Gd}}}ACn}{ce{}{}}0000000000000000000{{Jnc}{{Gf{c}}}{}}{IfIh}{{{In{{Il{c}}}}g}{{In{{Il{{`{{Bj{An}{{B`{Bb}}{Cj{{Cl{e}}}}{Bd{Bf}}{Bh{Bb}}}}}}}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}Hf{{Hh{An}{{Cj{{Cl{e}}}}{Bd{Bf}}{Bh{Bb}}}}}}{{{Jb{{J`{c}}}}g}{{Jb{{J`{{`{{Bj{An}{{B`{Bb}}{Cj{{Cl{e}}}}{Bd{Bf}}{Bh{Bb}}}}}}}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}Hf{{Hh{An}{{Cj{{Cl{e}}}}{Bd{Bf}}{Bh{Bb}}}}}}{{{In{{Il{c}}}}i}{{In{{Il{{`{{Bj{An}{{B`{Bb}}{Cj{{Cl{e}}}}{Bd{Bf}}{Bh{Bb}}}}}}}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}Hf{{Cf{}{{Cd{{Ah{{Cl{e}}Bf}}}}}}}{{Ch{Anb}{{Cd{g}}}}I`}}{{{Jb{{J`{c}}}}g}{{Jb{{J`{{`{{Bj{An}{{B`{Bb}}{Cj{Cl}}{Bd{Bf}}{Bh{Bb}}}}}}}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{{Cf{}{{Cd{{Ah{ClBf}}}}}}}{{Ch{Anb}{{Cd{e}}}}I`}}{{{b{dIh}}AD`}{{Ah{BbDl}}}}{{{b{dIh}}{b{Df}}}{{Ah{BbDl}}}}6`{{{b{c}}}{{b{e}}}{}{}}{{{b{dc}}}{{b{de}}}{}{}}{{}{{Dd{AfDb}}}}{cc{}}<{c{}{}}{{}{{F`{{El{Db}}{En{Db}}}}}}{{{Ff{{b{d{ADb{c}}}}}}{b{dFh}}}{{Fj{c}}}{}}{c{{ADb{c}}}{}}{{}{{Dd{AfGl}}}}{c{{Ah{e}}}{}{}}0{{{Ff{{b{dc}}}}{b{dFh}}}Fj{}}{{{b{c}}}Aj{}}{ce{}{}}``````{{{b{ADd}}}{{Ej{{b{{ADh{Eh{ADf{ADd}}}}}}}}}}{{{b{ADj}}}{{Ej{{b{{ADh{Eh{ADf{ADj}}}}}}}}}}{{{b{dADd}}}{{Ej{{b{d{ADh{Eh{ADf{ADd}}}}}}}}}}{{{b{dADj}}}{{Ej{{b{d{ADh{Eh{ADf{ADj}}}}}}}}}}`{{{b{c}}}{{b{e}}}{}{}}{{{b{dc}}}{{b{de}}}{}{}}{{{b{ADj}}}ADj}{{{b{c}}{b{de}}}Bb{}{}}{{{b{c}}}Bb{}}```{{{b{ADd}}}Eh}{{{b{ADd}}}{{Ej{ADl}}}}{{{b{ADj}}}{{Ej{ADl}}}}`{{}ADj}`{{{b{ADd}}}{{Ej{{b{Df}}}}}}{{{b{ADj}}}{{Ej{{b{Df}}}}}}`{c{{Ah{ADj}}}Mh}`{{{b{ADd}}}{{Ej{{b{{Jf{Hb}}}}}}}}{{{b{ADj}}}{{Ej{{b{{Jf{Hb}}}}}}}}````{{{b{ADj}}{b{dh}}}{{Ah{BbDl}}}}{{{b{ADd}}}{{Ej{{b{ADn}}}}}}{{{b{ADj}}}{{Ej{{b{ADn}}}}}}`{cc{}}{c{{Ah{{AE`{e}}f}}}AEb{MjADd}}```{ce{}{}}>{{{b{ADj}}}Eh}{{{b{ADd}}}{{Ej{{b{{ADf{ADd}}}}}}}}{{{b{ADj}}}{{Ej{{b{{ADf{ADj}}}}}}}}`{{{b{dADd}}}{{Ej{{b{d{ADf{ADd}}}}}}}}{{{b{dADj}}}{{Ej{{b{d{ADf{ADj}}}}}}}}```?>```{{{b{ADd}}}{{Ej{{b{{Dd{Af{ADf{ADd}}}}}}}}}}{{{b{ADj}}}{{Ej{{b{{Dd{Af{ADf{ADj}}}}}}}}}}`{{{b{dADd}}}{{Ej{{b{d{Dd{Af{ADf{ADd}}}}}}}}}}{{{b{dADj}}}{{Ej{{b{d{Dd{Af{ADf{ADj}}}}}}}}}}{{{b{ADd}}}{{Ej{{b{Df}}}}}}{{{b{ADj}}}{{Ej{{b{Df}}}}}}``{{{b{ADd}}}{{Ej{{b{{AEd{Af}}}}}}}}{{{b{ADj}}}{{Ej{{b{{AEd{Af}}}}}}}}`````{{{b{ADj}}c}AhABd}{{{b{dADd}}Eh}Bb}{{{b{dADj}}Eh}Bb}{{{b{dADd}}{b{Df}}}Bb}{{{b{dADj}}{b{Df}}}Bb}{{{b{dADd}}Af}Bb}{{{b{dADj}}Af}Bb}`````{{{b{c}}}e{}{}}{c{{Ah{e}}}{}{}}0{{{b{c}}}Aj{}}{ce{}{}}```````````````{{{b{AEf}}}Af}{{{b{c}}}{{b{e}}}{}{}}0000{{{b{dc}}}{{b{de}}}{}{}}0000``{{{b{AEf}}}AEf}{{{b{AF`}}}AF`}{{{b{AFb}}}AFb}{{{b{c}}{b{de}}}Bb{}{}}00{{{b{c}}}Bb{}}000{{{b{{AEj{}{{AEh{c}}}}}}{b{c}}{b{{Jf{{b{Df}}}}}}}{{Ej{Af}}}{ADdCb}}0{{{b{{AEj{}{{AEh{c}}}}}}{b{c}}}{{Ah{AFdAEn}}}{ADdCb}}0{{{b{{AEj{}{{AEh{c}}}}}}{b{c}}}{{Ah{AfAEn}}}{ADdCb}}0{{{b{{AEj{}{{AEh{c}}}}}}{b{c}}}{{Ah{{Of{AFf}}AEn}}}{ADdCb}}0{{}AEf}{{}AF`}{{}AFb}{{{b{{AEj{}{{AEh{c}}}}}}{b{c}}{b{Hb}}}{{Ej{AFh}}}{ADdCb}}0{{{b{AFb}}{b{AFb}}}Eh}{{{b{c}}{b{e}}}Eh{}{}}000{{{b{AEl}}{b{dh}}}j}{{{b{AEf}}{b{dh}}}j}{{{b{AF`}}{b{dh}}}j}{{{b{AFb}}{b{dh}}}j}{AEf{{AFj{c}}}{}}{cc{}}0000{{{b{{AEj{}{{AEh{c}}}}}}{b{{AE`{c}}}}}{{Ah{BbAEn}}}{ADdCb}}0{ce{}{}}0000``````{{{b{AEf}}AF`}Bb}{{{b{AEf}}{b{Df}}}{{Ah{BbAEn}}}}{{{b{{AEj{}{{AEh{c}}}}}}}{{b{AEf}}}{ADdCb}}{{{b{{AFj{c}}}}}{{b{AEf}}}{ADdCb}}{{{b{c}}}e{}{}}00{c{{Ah{e}}}{}{}}000000000{{{b{c}}}Aj{}}0000{{{b{{AEj{}{{AEh{c}}}}}}{b{Df}}Fb{b{{AFl{c}}}}}{{Ah{AFdAEn}}}{ADdCb}}0{{{b{{AEj{}{{AEh{c}}}}}}{b{Df}}Fb{b{{AFl{c}}}}}{{Ah{AFnAEn}}}{ADdCb}}0`99999``````````````{{{b{c}}}{{b{e}}}{}{}}000000000{{{b{dc}}}{{b{de}}}{}{}}000000000``{{{b{AFn}}}AFn}{{{b{AG`}}}AG`}{{{b{AGb}}}AGb}{{{b{AGd}}}AGd}{{{b{{AGf{ce}}}}}{{AGf{ce}}}I`I`}{{{b{AGh}}}AGh}{{{b{AFh}}}AFh}{{{b{AGj}}}AGj}{{{b{c}}{b{de}}}Bb{}{}}0000000{{{b{c}}}Bb{}}0000000``{{}AFn}{{}AG`}{{}AGb}{{}{{AGf{ce}}}MbMb}```````{{{b{AFn}}}{{b{{Jf{AGj}}}}}}{{{b{dAFn}}}{{b{d{Ml{AGj}}}}}}{{{b{AGl}}{b{dh}}}j}{{{b{AGn}}{b{dh}}}j}{{{b{AFn}}{b{dh}}}j}0{{{b{AG`}}{b{dh}}}j}{{{b{AGb}}{b{dh}}}j}{{{b{AGd}}{b{dh}}}j}{{{b{{AGf{ce}}}}{b{dh}}}jCbCb}{{{b{AGh}}{b{dh}}}j}{{{b{AFh}}{b{dh}}}j}{{{b{AGj}}{b{dh}}}j}{cc{}}000000000``{{{b{AFn}}{b{Df}}}AGl}`{ce{}{}}000000000{{{b{AG`}}}Eh}{{{b{{AGf{ce}}}}}Eh{{Dh{Df}}}{}}`1``````````````{{{b{c}}}e{}{}}0000000{{{b{Df}}}Af}0{{{b{c}}}Af{}}00{c{{Ah{e}}}{}{}}0000000000000000000```{{{b{c}}}Aj{}}000000000`{{{b{AFn}}}{{b{{Jf{AFh}}}}}}{{{b{dAFn}}}{{b{d{Ml{AFh}}}}}}9999999999{cAFn{{Ol{Af}}}}``````````````````````````````````````````````````````````````````````````````````````````````````{FbEh}`{{{Dd{AfGl}}{b{d{Dd{AfGl}}}}}Bb}````{{{b{c}}}{{b{e}}}{}{}}000000000000000000000000000{{{b{dc}}}{{b{de}}}{}{}}000000000000000000000000000`{{{b{{El{{ADf{c}}}}}}{b{Df}}}{{Ah{Bbl}}}ADd}{{{b{AH`}}}AH`}{{{b{AHb}}}AHb}{{{b{AHd}}}AHd}{{{b{AHf}}}AHf}{{{b{ADl}}}ADl}{{{b{ADn}}}ADn}{{{b{{Hn{ceg}}}}}{{Hn{ceg}}}I`I`I`}{{{b{AHh}}}AHh}{{{b{Db}}}Db}{{{b{AHj}}}AHj}{{{b{AHl}}}AHl}{{{b{AHn}}}AHn}{{{b{Gl}}}Gl}{{{b{AI`}}}AI`}{{{b{AIb}}}AIb}{{{b{{H`{ce}}}}}{{H`{ce}}}I`I`}{{{b{{El{c}}}}}{{El{c}}}I`}{{{b{AId}}}AId}{{{b{AIf}}}AIf}{{{b{AIh}}}AIh}{{{b{{F`{ce}}}}}{{F`{ce}}}I`I`}{{{b{AIj}}}AIj}{{{b{AIl}}}AIl}{{{b{{En{c}}}}}{{En{c}}}I`}{{{b{AIn}}}AIn}{{{b{Fb}}}Fb}{{{b{{ADh{ce}}}}}{{ADh{ce}}}I`I`}{{{b{{ADf{c}}}}}{{ADf{c}}}{}}{{{b{c}}{b{de}}}Bb{}{}}000000000000000000000000000{{{b{c}}}Bb{}}0000000000000000000000000000000000{{{b{AH`}}{b{AH`}}}Ld}{{{b{AIf}}{b{AIf}}}Ld}{{{b{AIh}}{b{AIh}}}Ld}{{{b{AIl}}{b{AIl}}}Ld}{{{b{Fb}}{b{Fb}}}Ld}{AHh{{Md{AHd}}}}```````{{{b{c}}{b{e}}}Ld{}{}}0000``````````````{{}AHb}{{}AHd}{{}AHf}{{}{{Hn{ceg}}}MbMbMb}{{}AHh}{{}Db}{{}AHj}{{}AHl}{{}AHn}{{}Gl}{{}AI`}{{}AIb}{{}{{H`{ce}}}MbMb}{{}{{El{c}}}Mb}{{}AId}{{}AIf}{{}AIh}{{}{{F`{ce}}}MbMb}{{}AIj}{{}{{En{c}}}Mb}{{}AIn}{{}{{ADf{c}}}Mb}`````````{{{b{AHb}}}b}{{{b{{ADh{AIjc}}}}}b{}}{{{b{{ADf{c}}}}}b{}}{{{b{dAHb}}}{{b{d}}}}{{{b{d{ADh{AIjc}}}}}{{b{d}}}{}}{{{b{d{ADf{c}}}}}{{b{d}}}{}}``````````````{c{{Ah{AH`}}}Mh}{c{{Ah{AHb}}}Mh}{c{{Ah{AHd}}}Mh}{c{{Ah{AHf}}}Mh}{c{{Ah{ADl}}}Mh}{c{{Ah{ADn}}}Mh}{c{{Ah{{Hn{egi}}}}}MhMjMjMj}{c{{Ah{Db}}}Mh}{c{{Ah{AHj}}}Mh}{c{{Ah{AHl}}}Mh}{c{{Ah{AHn}}}Mh}{c{{Ah{Gl}}}Mh}{c{{Ah{AI`}}}Mh}{c{{Ah{AIb}}}Mh}{c{{Ah{{H`{eg}}}}}MhMjMj}{c{{Ah{{El{e}}}}}MhMj}{c{{Ah{AId}}}Mh}{c{{Ah{AIf}}}Mh}{c{{Ah{AIh}}}Mh}{c{{Ah{{F`{eg}}}}}MhMjMj}{c{{Ah{AIj}}}Mh}{c{{Ah{AIl}}}Mh}{c{{Ah{{En{e}}}}}MhMj}{c{{Ah{AIn}}}Mh}{c{{Ah{Fb}}}Mh}{c{{Ah{{ADh{eg}}}}}MhMjMj}{c{{Ah{{ADf{e}}}}}MhMj}````````{{{b{AH`}}{b{AH`}}}Eh}{{{b{AHf}}{b{AHf}}}Eh}{{{b{ADl}}{b{ADl}}}Eh}{{{b{ADn}}{b{ADn}}}Eh}{{{b{AHh}}{b{AHh}}}Eh}{{{b{{El{c}}}}{b{{El{c}}}}}EhMn}{{{b{AId}}{b{AId}}}Eh}{{{b{AIf}}{b{AIf}}}Eh}{{{b{AIh}}{b{AIh}}}Eh}{{{b{AIj}}{b{AIj}}}Eh}{{{b{AIl}}{b{AIl}}}Eh}{{{b{Fb}}{b{Fb}}}Eh}{{{b{c}}{b{e}}}Eh{}{}}000000000000000000000000000000000000000``````````````````````{{{b{AH`}}{b{dh}}}{{Ah{BbDl}}}}{{{b{AHb}}{b{dh}}}{{Ah{BbDl}}}}{{{b{AHd}}{b{dh}}}{{Ah{BbDl}}}}{{{b{AHf}}{b{dh}}}{{Ah{BbDl}}}}{{{b{ADl}}{b{dh}}}{{Ah{BbDl}}}}{{{b{ADn}}{b{dh}}}{{Ah{BbDl}}}}{{{b{{Hn{ceg}}}}{b{dh}}}{{Ah{BbDl}}}CbCbCb}{{{b{AHh}}{b{dh}}}{{Ah{BbDl}}}}{{{b{Db}}{b{dh}}}{{Ah{BbDl}}}}{{{b{AHj}}{b{dh}}}{{Ah{BbDl}}}}{{{b{AHl}}{b{dh}}}{{Ah{BbDl}}}}{{{b{AHn}}{b{dh}}}{{Ah{BbDl}}}}{{{b{Gl}}{b{dh}}}{{Ah{BbDl}}}}{{{b{AI`}}{b{dh}}}{{Ah{BbDl}}}}{{{b{AIb}}{b{dh}}}{{Ah{BbDl}}}}{{{b{{H`{ce}}}}{b{dh}}}{{Ah{BbDl}}}CbCb}{{{b{{El{c}}}}{b{dh}}}{{Ah{BbDl}}}Cb}{{{b{AId}}{b{dh}}}{{Ah{BbDl}}}}{{{b{AIf}}{b{dh}}}{{Ah{BbDl}}}}{{{b{AIh}}{b{dh}}}{{Ah{BbDl}}}}{{{b{{F`{ce}}}}{b{dh}}}{{Ah{BbDl}}}CbCb}{{{b{AIj}}{b{dh}}}{{Ah{BbDl}}}}{{{b{AIl}}{b{dh}}}{{Ah{BbDl}}}}{{{b{{En{c}}}}{b{dh}}}{{Ah{BbDl}}}Cb}{{{b{AIn}}{b{dh}}}{{Ah{BbDl}}}}{{{b{Fb}}{b{dh}}}{{Ah{BbDl}}}}0{{{b{{ADh{ce}}}}{b{dh}}}{{Ah{BbDl}}}CbCb}{{{b{{ADf{c}}}}{b{dh}}}{{Ah{BbDl}}}Cb}``````{cc{}}0000{ADnADl}111111111111111111111{{{b{AAh}}}Fb}{{{El{Db}}}{{ADh{AJ`{ADh{AJb{Ej{AJd}}}}}}}}33{c{{ADf{c}}}{}}{Ojc{}}{{{b{{ADf{c}}}}}{{Ej{Af}}}ADd}```````````{ce{}{}}000000000000000000000000000{ADlEh}``````{{{b{{ADh{ce}}}}}{{Ej{{b{c}}}}}{}{}}{{{b{d{ADh{ce}}}}}{{Ej{{b{dc}}}}}{}{}}`{{{b{AHb}}{b{AH`}}}{{Ej{{Md{AHd}}}}}}`````````````````{AHh{{b{AH`}}}}````````````````````````{{{b{d{H`{{El{c}}{En{c}}}}}}}Bb{}}````````````{{{b{AH`}}{b{AH`}}}{{Ej{Ld}}}}{{{b{AIf}}{b{AIf}}}{{Ej{Ld}}}}{{{b{AIh}}{b{AIh}}}{{Ej{Ld}}}}{{{b{AIl}}{b{AIl}}}{{Ej{Ld}}}}{{{b{Fb}}{b{Fb}}}{{Ej{Ld}}}}{{{b{Df}}c}{{AJf{Df}}}{{Hd{{b{Df}}}{{Cd{{AJf{Df}}}}}}}}```````````````````{{{b{dDb}}}Bb}````{{{Hn{{Md{{AJh{{El{{ADf{c}}}}}}}}{Md{{AJh{{En{{ADf{c}}}}}}}}{ADf{c}}}}}{{Ah{{Hn{{Md{{AJh{{El{{ADf{c}}}}}}}}{Md{{AJh{{En{{ADf{c}}}}}}}}{ADf{c}}}}l}}}{ADdMb}}{{{b{dc}}}{{b{dAAf}}}{}}``````2{{{b{{ADh{ce}}}}}{{Ej{{b{e}}}}}{}{}}{{{b{d{ADh{ce}}}}}{{Ej{{b{de}}}}}{}{}}````````````````````{{{b{AH`}}c}AhABd}{{{b{AHb}}c}AhABd}{{{b{AHd}}c}AhABd}{{{b{AHf}}c}AhABd}{{{b{ADl}}c}AhABd}{{{b{ADn}}c}AhABd}{{{b{{Hn{ceg}}}}i}AhE`E`E`ABd}{{{b{Db}}c}AhABd}{{{b{AHj}}c}AhABd}{{{b{AHl}}c}AhABd}{{{b{AHn}}c}AhABd}{{{b{Gl}}c}AhABd}{{{b{AI`}}c}AhABd}{{{b{AIb}}c}AhABd}{{{b{{H`{ce}}}}g}AhE`E`ABd}{{{b{{El{c}}}}e}AhE`ABd}{{{b{AId}}c}AhABd}{{{b{AIf}}c}AhABd}{{{b{AIh}}c}AhABd}{{{b{{F`{ce}}}}g}AhE`E`ABd}{{{b{AIj}}c}AhABd}{{{b{AIl}}c}AhABd}{{{b{{En{c}}}}e}AhE`ABd}{{{b{AIn}}c}AhABd}{{{b{Fb}}c}AhABd}{{{b{{ADh{ce}}}}g}AhE`E`ABd}{{{b{{ADf{c}}}}e}AhE`ABd}{{{b{d{F`{{El{c}}{En{c}}}}}}{b{Df}}}Bb{}}``````````````````````{{{b{c}}}e{}{}}000000000000000000000000000{{{b{ADn}}}Af}{{{b{c}}}Af{}}`{c{{Ah{e}}}{}{}}0000000000000000000000000000000000000000000000000000000`{{{b{c}}}Aj{}}000000000000000000000000000````{{Gl{b{Df}}{b{d{Dd{AfGl}}}}}Bb}````{ce{}{}}000000000000000000000000000````````{{{b{ADd}}}{{Ej{{b{{ADh{Eh{ADf{ADd}}}}}}}}}}{{{b{dADd}}}{{Ej{{b{d{ADh{Eh{ADf{ADd}}}}}}}}}}{{{b{ADd}}}Eh}{{{b{ADd}}}{{Ej{ADl}}}}{{}ADl}{{}{{Dd{AfDb}}}}{{{b{ADd}}}{{Ej{{b{Df}}}}}}{{}{{b{Df}}}}{{{b{ADd}}}{{Ej{{b{{Jf{Hb}}}}}}}}{{{b{ADd}}}{{Ej{{b{ADn}}}}}}{{}{{Ej{ADn}}}}{{}{{Ml{{El{Db}}}}}}9{{}Eh}{{{b{ADd}}}{{Ej{{b{{ADf{ADd}}}}}}}}{{{b{dADd}}}{{Ej{{b{d{ADf{ADd}}}}}}}}{{}{{Ej{AJj}}}}09{{}{{Ej{Af}}}}{{}{{F`{{El{Db}}{En{Db}}}}}}{{{b{ADd}}}{{Ej{{b{{Dd{Af{ADf{ADd}}}}}}}}}}{{{b{dADd}}}{{Ej{{b{d{Dd{Af{ADf{ADd}}}}}}}}}}{{}Db}>8{{{b{ADd}}}{{Ej{{b{{AEd{Af}}}}}}}}1{{}{{Dd{AfGl}}}}{{}{{Ej{Gl}}}}{{{b{dADd}}Eh}Bb}{{{b{dADd}}{b{Df}}}Bb}{{{b{dADd}}Af}Bb}{{{b{d{Dd{AfDb}}}}}Bb}{{{b{d{F`{{El{Db}}{En{Db}}}}}}}Bb}","D":"DLd","p":[[1,"reference"],[0,"mut"],[6,"PaperClipError",0,2170],[5,"Formatter",2171],[8,"Result",2171],[6,"ValidationError",2172],[5,"Error",2173],[6,"Error",2174],[5,"Error",2175],[5,"Error",2176],[5,"String",2177],[6,"Result",2178],[5,"TypeId",2179],[5,"App",39,2180],[5,"ServiceRequest",2181],[17,"Config"],[1,"unit"],[17,"Error"],[5,"Error",2182],[17,"InitError"],[10,"ServiceFactory",2183],[5,"App",2184],[5,"ServiceConfig",178,2185],[10,"FnOnce",2186],[10,"Debug",2171],[17,"Output"],[10,"Future",2187],[10,"Fn",2186],[17,"Response"],[5,"ServiceResponse",2181],[10,"IntoServiceFactory",2183],[10,"Mountable",39,2188],[5,"DefaultSchemaRaw",1246,2189],[5,"BTreeMap",2190],[1,"str"],[10,"AsRef",2191],[5,"CreatedJson",39,2192],[5,"Error",2171],[10,"Display",2171],[10,"Serialize",2193],[10,"Apiv2Schema",2129,2194],[5,"AcceptedJson",39,2192],[5,"NoContent",39,2192],[1,"bool"],[6,"Option",2195],[5,"Parameter",1246,2189],[5,"Response",1246,2189],[5,"Operation",1246,2189],[6,"HttpMethod",1246,2189],[5,"ResponseWrapper",39,2192],[5,"Pin",2196],[5,"Context",2197],[6,"Poll",2198],[10,"OperationModifier",39,2192],[10,"Responder",2199],[10,"Apiv2Operation",2129,2194],[5,"HttpResponseWrapper",39,2192],[5,"HttpRequest",178,2200],[5,"HttpResponse",178,2201],[5,"ResponderWrapper",39,2192],[5,"Route",178,2185],[5,"SecurityScheme",1246,2189],[10,"HttpServiceFactory",2181],[5,"PathItem",1246,2189],[6,"Value",2202],[10,"FnMut",2186],[10,"MessageBody",2203],[10,"Transform",2204],[17,"Wrapper"],[10,"OpenApiExt",39,2180],[5,"Api",1246,2189],[10,"Clone",2205],[5,"HttpResponseBuilder",2206],[5,"Bytes",178,2207],[1,"usize"],[5,"BytesMut",178,2208],[5,"AppConfig",2209],[5,"Resource",2210],[5,"Resource",178,2185],[5,"Scope",2211],[5,"Scope",178,2185],[1,"u8"],[1,"slice"],[5,"Path",178,2212],[5,"BlockingError",2213],[10,"Send",2214],[5,"StatusCode",2215],[5,"UninitSlice",2216],[5,"Data",178,2217],[10,"Sized",2214],[5,"ReqData",178,2218],[5,"FormConfig",178,2219],[5,"JsonConfig",178,2220],[5,"PathConfig",178,2212],[5,"PayloadConfig",178,2221],[5,"Query",178,2222],[5,"QueryConfig",178,2222],[6,"Ordering",2223],[5,"Form",178,2219],[10,"Ord",2223],[5,"ConnectionInfo",2224],[5,"Ref",2225],[5,"Mime",2226],[10,"Sync",2214],[10,"Default",2227],[5,"Arc",2228],[5,"Json",178,2220],[10,"Deserializer",2229],[10,"Deserialize",2229],[5,"Vec",2230],[10,"PartialEq",2223],[6,"UrlencodedError",2213],[6,"JsonPayloadError",2213],[6,"PathError",2213],[6,"QueryPayloadError",2213],[17,"Item"],[10,"IntoIterator",2231],[5,"Extensions",2232],[5,"RefMut",2225],[5,"ServiceConfig",2209],[5,"ByteStr",2233],[5,"Custom",2234],[5,"Box",2235],[5,"Response",2236],[1,"never"],[10,"Into",2191],[10,"DeserializeOwned",2229],[6,"Payload",2237],[5,"Url",2238],[10,"Guard",2239],[10,"Hasher",2240],[5,"ResponseHead",2241],[5,"RequestHead",2242],[5,"HeaderMap",2243],[5,"Payload",178,2221],[1,"tuple"],[6,"EitherBody",2244],[5,"Url",2245],[5,"Path",2246],[5,"Method",2247],[10,"PartialOrd",2223],[6,"SocketAddr",2248],[10,"Buf",2249],[5,"AppService",2209],[5,"ResourceMap",2250],[10,"Serializer",2193],[5,"WebService",2181],[10,"IntoPatterns",2251],[6,"BodySize",2252],[10,"RangeBounds",2253],[20,"MaybeUninit",2254],[5,"Route",2255],[10,"FromRequest",2256],[10,"Handler",2257],[5,"BodyLimitExceeded",2258],[5,"HeaderValue",2259],[5,"Uri",2260],[6,"UrlGenerationError",2213],[5,"Version",2261],[5,"Arguments",2171],[5,"Ready",834,2262],[10,"Schema",850,2194],[6,"Resolvable",1246,2189],[6,"Either",1246,2189],[5,"DefaultSchema",850,2189],[6,"DataType",1246,2189],[6,"DataTypeFormat",1246,2189],[8,"ResolvableApi",850,2189],[10,"Read",2263],[5,"BTreeSet",2264],[5,"EmitterState",944,2265],[17,"Definition"],[10,"Emitter",944,2266],[6,"EmittedUnit",944,2266],[5,"Error",2267],[5,"CrateMeta",944],[6,"EmitMode",944],[5,"PathBuf",2268],[10,"Iterator",2269],[5,"ObjectVariant",1056],[5,"DefaultEmitter",944],[8,"ResolvableOperation",1246,2189],[5,"ApiObject",1056],[6,"ObjectContainer",1056],[5,"PathOps",1056],[5,"OpRequirement",1056],[5,"Response",1056],[5,"Parameter",1056],[5,"ObjectField",1056],[5,"ApiObjectImpl",1056,2270],[5,"ApiObjectBuilderImpl",1056,2270],[5,"MediaRange",1246,2271],[5,"Coders",1246,2271],[5,"Coder",1246,2271],[6,"Version",1246,2189],[6,"SpecFormat",1246,2189],[5,"Info",1246,2189],[5,"Contact",1246,2189],[5,"License",1246,2189],[5,"Tag",1246,2189],[5,"ExternalDocs",1246,2189],[5,"Items",1246,2189],[6,"ParameterIn",1246,2189],[6,"CollectionFormat",1246,2189],[5,"Reference",1246,2189],[6,"OperationProtocol",1246,2189],[5,"Header",1246,2189],[6,"Parameter",2272],[5,"RequestBody",2273],[5,"Schema",2274],[6,"Cow",2275],[5,"RwLock",2276],[1,"f32"],[8,"PaperClipResult",0],[15,"Struct",1243],[15,"Enum",1243],[8,"DefaultParameterRaw",1246],[8,"DefaultApiRaw",1246],[8,"DefaultOperationRaw",1246],[8,"DefaultResponseRaw",1246],[8,"ResolvablePathItem",1246],[8,"DefaultPathItemRaw",1246],[15,"Resolved",2127],[10,"Apiv2Errors",2129],[10,"TypedData",2129]],"r":[[12,2170],[13,2170],[36,2277],[39,2192],[40,2278],[41,2278],[42,2278],[43,2180],[44,2192],[45,2192],[46,2188],[47,2192],[48,2180],[49,2192],[50,2192],[51,2192],[53,2278],[54,2278],[55,2278],[77,2278],[92,2278],[93,2278],[108,2278],[111,2278],[112,2278],[168,2188],[182,2207],[183,2208],[187,2217],[191,2219],[192,2219],[196,2200],[197,2201],[202,2220],[203,2220],[222,2212],[223,2212],[224,2221],[225,2221],[233,2222],[234,2222],[236,2218],[240,2185],[241,2185],[242,2185],[244,2185],[270,2279],[386,2185],[529,2185],[536,2185],[594,2185],[612,2185],[628,2185],[637,2185],[638,2185],[651,2185],[665,2185],[672,2279],[690,2279],[834,2262],[843,2262],[850,944],[851,2189],[852,2266],[853,2265],[854,2189],[855,2194],[893,2277],[905,2280],[923,2280],[950,2266],[951,2266],[952,2265],[1057,2270],[1058,2270],[1246,2189],[1252,2271],[1253,2271],[1254,2189],[1255,2189],[1257,2189],[1258,2189],[1261,2189],[1262,2189],[1263,2189],[1264,2189],[1265,2189],[1266,2189],[1267,2189],[1270,2189],[1271,2189],[1277,2189],[1280,2189],[1282,2189],[1289,2189],[1290,2271],[1291,2271],[1294,2189],[1295,2271],[1299,2189],[1300,2189],[1303,2189],[1304,2189],[1308,2189],[1314,2189],[1315,2189],[1316,2189],[1317,2189],[1318,2189],[1319,2189],[1320,2189],[1322,2189],[1324,2189],[1325,2189],[1328,2189],[1333,2189],[1336,2271],[1337,2271],[2129,2194],[2130,2194],[2131,2194],[2133,2194],[2134,2194]],"b":[[23,"impl-Display-for-PaperClipError"],[24,"impl-Debug-for-PaperClipError"],[25,"impl-From%3CValidationError%3E-for-PaperClipError"],[26,"impl-From%3CError%3E-for-PaperClipError"],[28,"impl-From%3CError%3E-for-PaperClipError"],[29,"impl-From%3CError%3E-for-PaperClipError"],[30,"impl-From%3CError%3E-for-PaperClipError"],[79,"impl-Display-for-CreatedJson%3CT%3E"],[80,"impl-Debug-for-CreatedJson%3CT%3E"],[81,"impl-Debug-for-AcceptedJson%3CT%3E"],[82,"impl-Display-for-AcceptedJson%3CT%3E"],[83,"impl-Display-for-NoContent"],[84,"impl-Debug-for-NoContent"],[405,"impl-PartialEq-for-Bytes"],[406,"impl-PartialEq%3CVec%3Cu8%3E%3E-for-Bytes"],[407,"impl-PartialEq%3CBytesMut%3E-for-Bytes"],[408,"impl-PartialEq%3C%5Bu8%5D%3E-for-Bytes"],[409,"impl-PartialEq%3Cstr%3E-for-Bytes"],[410,"impl-PartialEq%3C%26T%3E-for-Bytes"],[411,"impl-PartialEq%3CString%3E-for-Bytes"],[412,"impl-PartialEq-for-BytesMut"],[413,"impl-PartialEq%3C%26T%3E-for-BytesMut"],[414,"impl-PartialEq%3C%5Bu8%5D%3E-for-BytesMut"],[415,"impl-PartialEq%3CVec%3Cu8%3E%3E-for-BytesMut"],[416,"impl-PartialEq%3Cstr%3E-for-BytesMut"],[417,"impl-PartialEq%3CString%3E-for-BytesMut"],[418,"impl-PartialEq%3CBytes%3E-for-BytesMut"],[447,"impl-Extend%3C%26u8%3E-for-BytesMut"],[448,"impl-Extend%3Cu8%3E-for-BytesMut"],[449,"impl-Extend%3CBytes%3E-for-BytesMut"],[456,"impl-Debug-for-Bytes"],[457,"impl-LowerHex-for-Bytes"],[458,"impl-UpperHex-for-Bytes"],[459,"impl-UpperHex-for-BytesMut"],[460,"impl-LowerHex-for-BytesMut"],[461,"impl-Debug-for-BytesMut"],[466,"impl-Display-for-Form%3CT%3E"],[467,"impl-Debug-for-Form%3CT%3E"],[468,"impl-Debug-for-Json%3CT%3E"],[469,"impl-Display-for-Json%3CT%3E"],[470,"impl-Display-for-Path%3CT%3E"],[471,"impl-Debug-for-Path%3CT%3E"],[472,"impl-Debug-for-Query%3CT%3E"],[473,"impl-Display-for-Query%3CT%3E"],[480,"impl-From%3CVec%3Cu8%3E%3E-for-Bytes"],[481,"impl-From%3CString%3E-for-Bytes"],[482,"impl-From%3CByteStr%3E-for-Bytes"],[483,"impl-From%3CCustom%3E-for-Bytes"],[484,"impl-From%3CBytesMut%3E-for-Bytes"],[485,"impl-From%3C%26str%3E-for-Bytes"],[487,"impl-From%3CBox%3C%5Bu8%5D%3E%3E-for-Bytes"],[488,"impl-From%3C%26%5Bu8%5D%3E-for-Bytes"],[489,"impl-From%3C%26str%3E-for-BytesMut"],[490,"impl-From%3C%26%5Bu8%5D%3E-for-BytesMut"],[493,"impl-From%3CError%3E-for-HttpResponse"],[494,"impl-From%3CResponse%3CB%3E%3E-for-HttpResponse%3CB%3E"],[495,"impl-From%3CServiceResponse%3CB%3E%3E-for-HttpResponse%3CB%3E"],[496,"impl-From%3CHttpResponseBuilder%3E-for-HttpResponse"],[515,"impl-FromIterator%3C%26u8%3E-for-BytesMut"],[516,"impl-FromIterator%3Cu8%3E-for-BytesMut"],[541,"impl-HttpMessage-for-HttpRequest"],[542,"impl-HttpRequest"],[573,"impl-IntoIterator-for-Bytes"],[574,"impl-IntoIterator-for-%26Bytes"],[575,"impl-IntoIterator-for-BytesMut"],[576,"impl-IntoIterator-for-%26BytesMut"],[613,"impl-PartialOrd%3C%26T%3E-for-Bytes"],[614,"impl-PartialOrd%3CString%3E-for-Bytes"],[615,"impl-PartialOrd%3C%5Bu8%5D%3E-for-Bytes"],[616,"impl-PartialOrd-for-Bytes"],[617,"impl-PartialOrd%3CVec%3Cu8%3E%3E-for-Bytes"],[618,"impl-PartialOrd%3Cstr%3E-for-Bytes"],[619,"impl-PartialOrd%3C%5Bu8%5D%3E-for-BytesMut"],[620,"impl-PartialOrd%3Cstr%3E-for-BytesMut"],[621,"impl-PartialOrd%3CVec%3Cu8%3E%3E-for-BytesMut"],[622,"impl-PartialOrd%3C%26T%3E-for-BytesMut"],[623,"impl-PartialOrd-for-BytesMut"],[624,"impl-PartialOrd%3CString%3E-for-BytesMut"],[784,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F)%3E"],[785,"impl-OperationModifier-for-Path%3C(A,)%3E"],[786,"impl-OperationModifier-for-Path%3C(A,+B,+C)%3E"],[787,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D)%3E"],[788,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G,+H,+I,+J)%3E"],[789,"impl-OperationModifier-for-Path%3CT%3E"],[790,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G,+H,+I,+J,+K,+L)%3E"],[791,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G)%3E"],[792,"impl-OperationModifier-for-Path%3C(A,+B)%3E"],[793,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G,+H,+I)%3E"],[794,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G,+H,+I,+J,+K,+L,+M)%3E"],[795,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G,+H,+I,+J,+K)%3E"],[796,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E)%3E"],[797,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G,+H)%3E"],[1132,"impl-Debug-for-ApiObject"],[1133,"impl-Display-for-ApiObject"],[1714,"impl-Display-for-HttpMethod"],[1715,"impl-Debug-for-HttpMethod"]],"c":"OjAAAAAAAAA=","e":"OzAAAAEAABgGoAALAAAAFgAFAB0AAgAhAAQAJwABAC0AAAAwAAAANAABADoADQBNAAAAUAAFAGYABABsAAAAbwAAAHIACAB9AAAAfwACAIMAFQCdAAIAogAGALMAAwC5AAIAvQACAMIAAgDHAAMAzQARAOMABgDsAAAA7gACAPQAAAD2AA8ACwEDABEBKgA+AQIAQwEqAHQBCQCAAQIAhAEQAJYBJADAAQIAxQEAAMcBAADJAREA4AEGAOgBAwDuAQMA8wEAAPsBAQADAgIABwIIABcCAQAeAgAANgIAAD4CAwBYAgAAYQIDAGYCDgB2AgIAewICAIACAgCEAgUAjgIIAJsCBQCmAgEAsgIAALgCDgDJAj8ACgMWACYDEwBAAwEARAMCAEkDAgBNAwYAVQMBAFoDAABcAwYAZQMAAGgDAwBtAwMAcgMFAHkDAQB9AwAAfwMAAIIDAACEAwEAhwMCAIwDAwCRAwEAlAMAAJYDAgCaAwEAnQMDAKIDAACkAwAApgMAAKkDCQC8AwAAwQMJAM0DCQDfAwIA5AMJAAMEEgAbBAQAJAQAACsEAQAuBBMARAQXAF4EAwBrBAoAoAQgAMQECQDRBAkA4AQEAOkEAADsBAEA9QQBAPkEBAD/BAEAAgUAAAQFBQANBQEAEQUCABYFAQAaBQIAHgUEACoFAAAsBQAALwUBADIFAwA3BQEAOwUCAEEFOwB/BV8A4wUVAPoFTgBKBjkAhQYMAJMGKQDCBgAA2AYBANwGAQDfBgoABwcFAA8HAAARBxAAIwcXADwHEABOBwYAVgcKAGIHAwBnBwYAcQcuAKQHAgCqB4QAMAghAFUIAABjCAAAZQgAAGgIAQB5CAEA","a":{"state":[187,265]}}],\ -["paperclip_actix",{"t":"YYYEKEEEEXXXCMXXXMXMXXMNCFKRNNNNNNNNNNNNNNNNNNNNNNNMMNNNNNFFNNNFNNNFFNNNFFNNNNFFNNNNNNNNNNNNNNNNNNFFFFNNNNNNNFFNFNNNFFFNFNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNHNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNNNNNNNNNNNNHNNNNNNNNNNNNNNNHNNNNNNNNHHNNNNNNNNNNNNHNNNNNNNNNNNNNHNNNNNNHNNNNNNNNNNNNNNNNNHNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN","n":["Apiv2Header","Apiv2Schema","Apiv2Security","App","Mountable","OpenApiExt","Resource","Route","Scope","api_v2_errors","api_v2_errors_overlay","api_v2_operation","app","definitions","delete","get","head","operations","patch","path","post","put","security_definitions","update_operations","web","App","OpenApiExt","Wrapper","app_data","borrow","borrow_mut","build","configure","data_factory","default_service","external_resource","from","into","route","service","trim_base_path","try_from","try_into","type_id","vzip","with_json_spec_at","with_json_spec_v3_at","with_raw_json_spec","with_raw_json_spec_v3","with_swagger_ui_at","wrap","wrap_api","wrap_api_with_spec","wrap_fn","Accepted","AlreadyReported","BadGateway","BadRequest","Bytes","BytesMut","Conflict","Continue","Created","Data","ExpectationFailed","FailedDependency","Forbidden","Form","FormConfig","Found","GatewayTimeout","Gone","HttpRequest","HttpResponse","ImATeapot","ImUsed","InsufficientStorage","InternalServerError","Json","JsonConfig","LengthRequired","Locked","LoopDetected","MethodNotAllowed","MisdirectedRequest","MovedPermanently","MultiStatus","MultipleChoices","NetworkAuthenticationRequired","NoContent","NonAuthoritativeInformation","NotAcceptable","NotExtended","NotFound","NotImplemented","NotModified","Ok","PartialContent","Path","PathConfig","Payload","PayloadConfig","PayloadTooLarge","PaymentRequired","PermanentRedirect","PreconditionFailed","PreconditionRequired","Processing","ProxyAuthenticationRequired","Query","QueryConfig","RangeNotSatisfiable","ReqData","RequestHeaderFieldsTooLarge","RequestTimeout","ResetContent","Resource","Route","Scope","SeeOther","ServiceConfig","ServiceUnavailable","SwitchingProtocols","TemporaryRedirect","TooManyRequests","Unauthorized","UnavailableForLegalReasons","UnprocessableEntity","UnsupportedMediaType","UpgradeRequired","UriTooLong","UseProxy","VariantAlsoNegotiates","VersionNotSupported","advance","advance","advance_mut","app_config","app_data","app_data","app_data","app_data","as_mut","as_ref","as_ref","as_ref","block","body","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build","capacity","chunk","chunk","chunk_mut","clear","clear","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","cmp","cmp","cmp","cmp","cmp","compare","compare","compare","compare","compare","configure","conn_data","connection_info","content_type","content_type_required","copy_from_slice","copy_to_bytes","copy_to_bytes","default","default","default","default","default","default","default","default","default_service","default_service","definitions","definitions","definitions","delete","deref","deref","deref","deref","deref","deref","deref","deref","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deserialize","drop","drop","drop","drop_body","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","error","error_handler","error_handler","error_handler","error_handler","extend","extend","extend","extend_from_slice","extensions","extensions","extensions_mut","extensions_mut","external_resource","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","freeze","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_error","from_iter","from_iter","from_iter","from_query","from_request","from_request","from_request","from_request","from_request","from_request","from_request","from_request","from_request","from_static","full_url","get","get_ref","guard","guard","guard","hash","hash","head","head","head","head_mut","headers","headers","headers","headers_mut","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into_body","into_factory","into_inner","into_inner","into_inner","into_inner","into_inner","into_inner","into_inner","into_iter","into_iter","into_iter","into_iter","into_parts","is_empty","is_empty","is_unique","keep_alive","len","len","limit","limit","limit","map_body","map_into_boxed_body","map_into_left_body","map_into_right_body","match_info","match_name","match_pattern","method","method","method","mimetype","name","name","new","new","new","new","new","new","new","new","new_service","operations","operations","operations","options","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","patch","path","path","path","path","peer_addr","poll_next","poll_next","poll_next","post","put","put","put_bytes","put_slice","query_string","raw_schema","register","register","remaining","remaining","remaining_mut","reserve","resize","resource","resource_map","resource_path","resource_path","resource_path","resource_path","respond_to","respond_to","respond_to","respond_to","respond_to","route","route","route","scope","security_definitions","security_definitions","security_definitions","serialize","serialize","serialize","service","service","service","set_body","set_len","size","size","slice","slice_ref","spare_capacity_mut","split","split_off","split_off","split_to","split_to","status","status_mut","take_payload","to","to","to","to_bytes","to_bytes_limited","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","to_string","to_string","to_string","truncate","truncate","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into_bytes","try_into_bytes","try_into_value","try_poll_next","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","unsplit","update_definitions","update_definitions","update_definitions","update_operations","update_operations","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_response","upgrade","uri","url_for","url_for_static","version","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","with_body","with_capacity","wrap","wrap","wrap_fn","wrap_fn","write_fmt","write_str","zeroed"],"q":[[0,"paperclip_actix"],[25,"paperclip_actix::app"],[54,"paperclip_actix::web"],[710,"alloc::string"],[711,"paperclip_core::v2::models"],[712,"alloc::collections::btree::map"],[713,"actix_web::service"],[714,"actix_web::error::error"],[715,"actix_service"],[716,"actix_web::app"],[717,"core::ops::function"],[718,"core::fmt"],[719,"core::result"],[720,"core::future::future"],[721,"core::convert"],[722,"core::any"],[723,"serde_json::value"],[724,"actix_http::body::message_body"],[725,"actix_service::transform"],[726,"core::clone"],[727,"actix_web::response::builder"],[728,"bytes::bytes"],[729,"bytes::bytes_mut"],[730,"actix_web::request"],[731,"actix_web::config"],[732,"actix_web::resource"],[733,"actix_web::scope"],[734,"core::option"],[735,"actix_web::types::path"],[736,"actix_web::error"],[737,"core::marker"],[738,"actix_web::response::response"],[739,"http::status"],[740,"bytes::buf::uninit_slice"],[741,"actix_web::data"],[742,"actix_web::request_data"],[743,"actix_web::types::form"],[744,"actix_web::types::json"],[745,"actix_web::types::payload"],[746,"actix_web::types::query"],[747,"core::cmp"],[748,"actix_web::info"],[749,"core::cell"],[750,"mime"],[751,"core::default"],[752,"alloc::sync"],[753,"serde::de"],[754,"alloc::vec"],[755,"core::iter::traits::collect"],[756,"actix_http::extensions"],[757,"http::byte_str"],[758,"http::header::name"],[759,"alloc::boxed"],[760,"actix_http::responses::response"],[761,"actix_http::payload"],[762,"url"],[763,"actix_web::guard"],[764,"core::hash"],[765,"actix_http::responses::head"],[766,"actix_http::requests::head"],[767,"actix_http::header::map"],[768,"actix_http::body::either"],[769,"actix_router::url"],[770,"actix_router::path"],[771,"http::method"],[772,"core::net::socket_addr"],[773,"core::pin"],[774,"core::task::wake"],[775,"core::task::poll"],[776,"bytes::buf::buf_impl"],[777,"actix_web::rmap"],[778,"serde::ser"],[779,"actix_router::pattern"],[780,"actix_http::body::size"],[781,"core::ops::range"],[782,"core::mem::maybe_uninit"],[783,"actix_web::route"],[784,"actix_web::extract"],[785,"actix_web::handler"],[786,"actix_http::body::utils"],[787,"http::header::value"],[788,"http::uri"],[789,"http::version"],[790,"paperclip_macros"],[791,"actix_web::web"]],"i":[0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,2,0,2,0,0,2,2,0,0,0,40,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,40,40,13,59,59,59,59,0,0,59,59,59,0,59,59,59,0,0,59,59,59,0,0,59,59,59,59,0,0,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,0,0,0,0,59,59,59,59,59,59,59,0,0,59,0,59,59,59,0,0,0,59,0,59,59,59,59,59,59,59,59,59,59,59,59,59,44,46,46,47,50,52,21,47,46,44,46,56,0,59,50,52,32,21,44,44,46,46,59,112,62,47,64,72,65,81,66,56,67,68,69,70,50,52,32,21,44,46,46,59,112,62,47,64,72,65,81,66,56,67,68,69,70,59,46,44,46,46,44,46,44,46,62,47,64,65,66,67,68,69,70,44,46,62,47,64,65,66,67,68,69,70,44,46,62,47,64,65,66,67,68,69,70,44,46,72,56,69,44,46,72,56,69,52,47,47,66,66,44,44,46,44,46,62,65,66,67,68,70,50,52,50,52,21,0,44,46,62,64,72,81,56,69,46,72,81,56,69,62,44,46,47,59,44,44,44,44,44,44,44,46,46,46,46,46,46,46,72,56,69,44,44,44,44,46,46,46,46,72,72,72,72,56,56,56,56,69,69,69,69,59,65,66,67,70,46,46,46,46,59,47,59,47,21,44,44,44,46,46,46,59,62,47,64,72,72,81,81,56,56,69,69,46,50,52,32,21,21,44,44,44,44,44,44,44,44,44,46,46,46,59,59,59,59,59,112,62,62,47,64,72,65,81,66,56,56,56,67,68,69,70,59,44,46,46,69,44,112,62,47,64,72,81,56,69,44,47,0,62,50,52,32,44,46,0,59,47,59,59,47,47,59,50,52,32,21,44,46,59,112,62,47,64,72,65,81,66,56,67,68,69,70,59,32,112,62,64,72,81,56,69,44,44,46,46,59,44,46,44,59,44,46,65,66,68,59,59,59,59,47,47,47,0,32,47,68,50,81,50,52,32,44,46,59,62,68,32,50,52,21,0,44,44,44,44,44,44,46,46,46,46,46,46,72,56,69,0,50,52,21,47,47,44,46,112,0,0,46,46,46,47,81,50,52,44,46,46,46,46,0,47,72,81,56,69,44,46,59,72,81,50,52,21,0,50,52,21,62,72,81,0,52,21,59,46,44,46,44,44,46,46,44,46,44,46,59,59,47,0,50,32,112,112,44,46,62,47,64,65,66,67,68,69,70,72,81,56,69,44,46,50,52,32,21,44,46,59,112,62,47,64,72,65,81,66,56,67,68,69,70,50,52,32,21,44,46,59,112,62,47,64,72,65,81,66,56,67,68,69,70,44,46,44,112,50,52,32,21,44,46,59,112,62,47,64,72,65,81,66,56,67,68,69,70,46,72,56,69,52,21,72,81,56,56,56,56,56,56,56,56,56,56,56,56,56,56,69,81,59,47,47,47,47,50,52,32,21,44,46,59,112,62,47,64,72,65,81,66,56,67,68,69,70,59,46,50,52,50,52,46,46,46],"f":"`````````````{{{f{bd}}}{{l{hj}}}}```{{{f{bd}}}{{l{nA`}}}}`{{{f{d}}}{{f{Ab}}}}``{{{f{bd}}}{{l{hAd}}}}{{{f{bd}}{f{b{l{hAf}}}}}Ah}````{{{Aj{c}}e}{{Aj{c}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{}}{{{f{c}}}{{f{e}}}{}{}}{{{f{bc}}}{{f{be}}}{}{}}{{{Aj{c}}}{{Bh{c}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}}{{{Aj{c}}e}{{Aj{c}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{{Bl{{f{bBj}}}}}}{{{Aj{c}}k}{{Aj{c}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{}Bn{{Cd{}{{C`{{Cb{eg}}}}}}}{{Cf{}{{C`{i}}}}}}{{{Aj{c}}g}{{Aj{c}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{{Bf{Al}{{An{Ah}}{Ch{Cj}}{B`{Bb}}{Bd{Ah}}}}}{{Cl{eAl}}}}{{{Aj{c}}eg}{{Aj{c}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{{Cn{Ab}}}{{Cn{Ab}}}}{cc{}}{ce{}{}}{{{Aj{c}}{f{Ab}}D`}{{Aj{c}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}}{{{Aj{c}}e}{{Aj{c}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{dDb}}{{{Aj{c}}}{{Aj{c}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}}{c{{Cb{e}}}{}{}}0{{{f{c}}}Dd{}}5{{{Aj{c}}{f{Ab}}}{{Aj{c}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}}0{{{Aj{c}}e}{{Aj{c}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{{Dh{{Aj{c}}Df}{{C`{{Aj{c}}}}}}}}01{{{Aj{c}}g}{{Aj{{`{{Bf{Al}{{An{Ah}}{Ch{{Cj{e}}}}{B`{Bb}}{Bd{Ah}}}}}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}Dj{{Dl{Al}{{Ch{{Cj{e}}}}{B`{Bb}}{Bd{Ah}}}}}}{{{E`{}{{Dn{c}}}}}c{}}{{{E`{}{{Dn{c}}}}Eb}c{}}{{{Aj{c}}i}{{Aj{{`{{Bf{Al}{{An{Ah}}{Ch{{Cj{e}}}}{B`{Bb}}{Bd{Ah}}}}}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}Dj{{Cd{}{{C`{{Cb{{Cj{e}}Bb}}}}}}}{{Cf{Alf}{{C`{g}}}}Ed}}{{}Ef}000``000`000``000``0000``000000000000000000````0000000``0`000```0`0000000000000{{{f{bEh}}Ej}Ah}{{{f{bEl}}Ej}Ah}0{{{f{En}}}{{f{F`}}}}{{{Fd{{Fb{c}}}}e}{{Fd{{Fb{c}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{}}{{{Fh{{Ff{c}}}}e}{{Fh{{Ff{c}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{}}{{{f{bBj}}c}{{f{bBj}}}{}}{{{f{En}}}{{Fj{{f{c}}}}}{}}{{{f{bEl}}}{{f{b{Fn{Fl}}}}}}{{{f{Eh}}}{{f{{Fn{Fl}}}}}}{{{f{El}}}{{f{{Fn{Fl}}}}}}{{{f{{G`{c}}}}}{{f{c}}}{}}{e{{`{{Cd{}{{C`{{Cb{cGb}}}}}}}}}Gd{{Bl{}{{C`{c}}}}Gd}}{{{f{{Gf{c}}}}}{{f{c}}}{}}{{{f{c}}}{{f{e}}}{}{}}000054000000000000000{{{f{bc}}}{{f{be}}}{}{}}00000700000000000000{GhEf}{{{f{El}}}Ej}87{{{f{bEl}}}{{f{bGj}}}}{{{f{bEh}}}Ah}{{{f{bEl}}}Ah}{{{f{Eh}}}Eh}{{{f{El}}}El}{{{f{{Gl{c}}}}}{{Gl{c}}}Gn}{{{f{En}}}En}{{{f{{H`{c}}}}}{{H`{c}}}{EdEd}}{{{f{Hb}}}Hb}{{{f{Hd}}}Hd}{{{f{Hf}}}Hf}{{{f{Hh}}}Hh}{{{f{{Hj{c}}}}}{{Hj{c}}}Ed}{{{f{Hl}}}Hl}{{{f{c}}{f{be}}}Ah{}{}}0000000000{{{f{c}}}Ah{}}0000000000{{{f{Eh}}{f{Eh}}}Hn}{{{f{El}}{f{El}}}Hn}{{{f{{I`{c}}}}{f{{I`{c}}}}}HnIb}{{{f{{G`{c}}}}{f{{G`{c}}}}}HnIb}{{{f{{Hj{c}}}}{f{{Hj{c}}}}}HnIb}{{{f{c}}{f{e}}}Hn{}{}}0000{{{Fh{{Ff{c}}}}e}{{Fh{{Ff{c}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{{Bl{{f{bBj}}}}}}{{{f{En}}}{{Fj{{f{c}}}}}{}}{{{f{En}}}{{If{Id}}}}{{Hdc}Hd{{Cf{Ih}{{C`{Ij}}}}GdIl}}{{HdIj}Hd}{{{f{{Fn{Fl}}}}}Eh}{{{f{bEh}}Ej}Eh}{{{f{bEl}}Ej}Eh}{{}Eh}{{}El}{{}{{Gl{c}}}In}{{}Hb}{{}Hd}{{}Hf}{{}Hh}{{}Hl}{{{Fd{{Fb{c}}}}g}{{Fd{{Fb{c}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{{Bf{Al}{{An{Ah}}{Ch{Cj}}{B`{Bb}}{Bd{Ah}}}}}{{Cl{eAl}}}}{{{Fh{{Ff{c}}}}g}{{Fh{{Ff{c}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{{Bf{Al}{{An{Ah}}{Ch{Cj}}{B`{Bb}}{Bd{Ah}}}}}{{Cl{eAl}}}}{{{f{b{Fd{c}}}}}{{l{hj}}}{}}{{{f{b{Fh{c}}}}}{{l{hj}}}{}}{{{f{bBj}}}{{l{hj}}}}{{}D`}{{{f{Eh}}}{{f{{Fn{Fl}}}}}}{{{f{El}}}{{f{{Fn{Fl}}}}}}{{{f{{Gl{c}}}}}{{f{{J`{c}}}}}Gn}{{{f{{H`{c}}}}}{{f{c}}}Ed}{{{f{{I`{c}}}}}{{f{c}}}{}}{{{f{{Jb{c}}}}}{{f{c}}}{}}{{{f{{G`{c}}}}}f{}}{{{f{{Hj{c}}}}}{{f{c}}}{}}{{{f{bEl}}}{{f{b{Fn{Fl}}}}}}{{{f{b{I`{c}}}}}{{f{bc}}}{}}{{{f{b{Jb{c}}}}}{{f{bc}}}{}}{{{f{b{G`{c}}}}}{{f{b}}}{}}{{{f{b{Hj{c}}}}}{{f{bc}}}{}}{c{{Cb{{Gl{e}}}}}JdJf}{{{f{bEh}}}Ah}{{{f{bEl}}}Ah}{{{f{bEn}}}Ah}{{{Gf{c}}}{{Gf{Ah}}}{}}{{{f{Eh}}{f{Eh}}}Ij}{{{f{Eh}}{f{{Jh{Fl}}}}}Ij}{{{f{Eh}}{f{El}}}Ij}{{{f{Eh}}{f{h}}}Ij}{{{f{Eh}}{f{{f{c}}}}}IjGn}{{{f{Eh}}{f{{Fn{Fl}}}}}Ij}{{{f{Eh}}{f{Ab}}}Ij}{{{f{El}}{f{El}}}Ij}{{{f{El}}{f{Ab}}}Ij}{{{f{El}}{f{Eh}}}Ij}{{{f{El}}{f{{Jh{Fl}}}}}Ij}{{{f{El}}{f{{Fn{Fl}}}}}Ij}{{{f{El}}{f{h}}}Ij}{{{f{El}}{f{{f{c}}}}}IjGn}{{{f{{I`{c}}}}{f{{I`{c}}}}}IjJj}{{{f{{G`{c}}}}{f{{G`{c}}}}}IjJj}{{{f{{Hj{c}}}}{f{{Hj{c}}}}}IjJj}{{{f{c}}{f{e}}}Ij{}{}}0000000000000000000{{{f{{Gf{c}}}}}{{Fj{{f{Bb}}}}}{}}{{Hbc}Hb{{Cf{Jl{f{En}}}{{C`{Bb}}}}}}{{Hdc}Hd{{Cf{Jn{f{En}}}{{C`{Bb}}}}GdIl}}{{Hfc}Hf{{Cf{K`{f{En}}}{{C`{Bb}}}}GdIl}}{{Hlc}Hl{{Cf{Kb{f{En}}}{{C`{Bb}}}}GdIl}}{{{f{bEl}}c}Ah{{Kf{}{{Kd{{f{Fl}}}}}}}}{{{f{bEl}}c}Ah{{Kf{}{{Kd{Fl}}}}}}{{{f{bEl}}c}Ah{{Kf{}{{Kd{Eh}}}}}}{{{f{bEl}}{f{{Fn{Fl}}}}}Ah}{{{f{{Gf{c}}}}}{{If{Kh}}}{}}{{{f{En}}}{{If{Kh}}}}{{{f{b{Gf{c}}}}}{{Kj{Kh}}}{}}{{{f{En}}}{{Kj{Kh}}}}{{{f{bBj}}ce}{{f{bBj}}}{{Cn{Ab}}}{{Cn{Ab}}}}{{{f{Eh}}{f{bKl}}}{{Cb{AhKn}}}}00{{{f{El}}{f{bKl}}}{{Cb{AhKn}}}}00{{{f{{Gf{c}}}}{f{bKl}}}{{Cb{AhKn}}}Dj}{{{f{{Gl{c}}}}{f{bKl}}}{{Cb{AhKn}}}{BnGn}}{{{f{En}}{f{bKl}}}{{Cb{AhKn}}}}{{{f{{H`{c}}}}{f{bKl}}}{{Cb{AhKn}}}{BnEd}}{{{f{{I`{c}}}}{f{bKl}}}{{Cb{AhKn}}}L`}{{{f{{I`{c}}}}{f{bKl}}}{{Cb{AhKn}}}Bn}{{{f{{Jb{c}}}}{f{bKl}}}{{Cb{AhKn}}}L`}{{{f{{Jb{c}}}}{f{bKl}}}{{Cb{AhKn}}}Bn}{{{f{{G`{c}}}}{f{bKl}}}{{Cb{AhKn}}}Bn}{{{f{{G`{c}}}}{f{bKl}}}{{Cb{AhKn}}}L`}{{{f{{Hj{c}}}}{f{bKl}}}{{Cb{AhKn}}}L`}{{{f{{Hj{c}}}}{f{bKl}}}{{Cb{AhKn}}}Bn}{ElEh}{cc{}}000{{{f{bLb}}}Bj}{hEh}{{{f{Ab}}}Eh}{LdEh}4{LfEh}{{{Jh{Fl}}}Eh}7{{{f{{Fn{Fl}}}}}Eh}{{{Lh{{Fn{Fl}}}}}Eh}8{{{f{{Fn{Fl}}}}}El}{{{f{Ab}}}El}:{{{Cj{c}}}{{Gf{c}}}{}}{{{Lj{c}}}{{Gf{c}}}{}}{BbGf}{EfGf}>{{{J`{c}}}{{Gl{c}}}Gn}???????{Llc{}}{cc{}}{c{{G`{c}}}{}}1111{cGf{{Ln{Bb}}}}{cEh{{Kf{}{{Kd{Fl}}}}}}{cEl{{Kf{}{{Kd{{f{Fl}}}}}}}}{cEl{{Kf{}{{Kd{Fl}}}}}}{{{f{Ab}}}{{Cb{{Hj{c}}Kb}}}M`}{{{f{En}}{f{bMb}}}}00000000{{{f{{Fn{Fl}}}}}Eh}{{{f{En}}}Md}{{}D`}{{{f{{Gl{c}}}}}{{f{c}}}Gn}{{{Fd{{Fb{c}}}}e}{{Fd{{Fb{c}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}Mf}{{{Fh{{Ff{c}}}}e}{{Fh{{Ff{c}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}Mf}{{D`c}D`Mf}{{{f{Eh}}{f{bc}}}AhMh}{{{f{El}}{f{bc}}}AhMh}6{{{f{{Gf{c}}}}}{{f{Mj}}}{}}{{{f{En}}}{{f{Ml}}}}{{{f{b{Gf{c}}}}}{{f{bMj}}}{}}{{{f{{Gf{c}}}}}{{f{Mn}}}{}}{{{f{En}}}{{f{Mn}}}}0{{{f{b{Gf{c}}}}}{{f{bMn}}}{}}{ce{}{}}0000000000000000000{{{Gf{c}}}c{}}1{N`Mb}{{{Gl{c}}}{{J`{c}}}Gn}{{{H`{c}}}cEd}{{{I`{c}}}c{}}{{{Jb{c}}}c{}}{{{G`{c}}}c{}}{{{Hj{c}}}c{}}{Eh}{{{f{Eh}}}}{El}{{{f{El}}}}{{{Gf{c}}}{{Nb{{Gf{Ah}}c}}}{}}{{{f{Eh}}}Ij}{{{f{El}}}Ij}1{{{f{{Gf{c}}}}}Ij{}}{{{f{Eh}}}Ej}{{{f{El}}}Ej}{{HbEj}Hb}{{HdEj}Hd}{{HhEj}Hh}{{{Gf{c}}g}{{Gf{e}}}{}{}{{Bl{{f{bMj}}c}{{C`{e}}}}}}{{{Gf{c}}}GfDj}{{{Gf{c}}}{{Gf{{Nd{ce}}}}}{}{}}{{{Gf{c}}}{{Gf{{Nd{ec}}}}}{}{}}{{{f{En}}}{{f{{Nh{Nf}}}}}}{{{f{En}}}{{Fj{{f{Ab}}}}}}{{{f{En}}}{{Fj{h}}}}{NjD`}{{D`Nj}D`}{{{f{En}}}{{f{Nj}}}}{{HhIh}Hh}{{{Fd{{Fb{c}}}}{f{Ab}}}{{Fd{{Fb{c}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}}{{}{{Fj{h}}}}{{{f{Ab}}}Fd}{{{f{Ab}}}Fh}{{}D`}{{}Eh}{{}El}{GhGf}{c{{Gl{c}}}{}}{EjHh}{{{f{D`}}c}e{}{}}{{{f{b{Fd{c}}}}}{{l{nA`}}}{}}{{{f{b{Fh{c}}}}}{{l{nA`}}}{}}{{{f{bBj}}}{{l{nA`}}}}9{{{f{Eh}}{f{Eh}}}{{Fj{Hn}}}}{{{f{Eh}}{f{h}}}{{Fj{Hn}}}}{{{f{Eh}}{f{{Jh{Fl}}}}}{{Fj{Hn}}}}{{{f{Eh}}{f{{Fn{Fl}}}}}{{Fj{Hn}}}}{{{f{Eh}}{f{Ab}}}{{Fj{Hn}}}}{{{f{Eh}}{f{{f{c}}}}}{{Fj{Hn}}}Gn}{{{f{El}}{f{{Fn{Fl}}}}}{{Fj{Hn}}}}{{{f{El}}{f{El}}}{{Fj{Hn}}}}{{{f{El}}{f{h}}}{{Fj{Hn}}}}{{{f{El}}{f{{f{c}}}}}{{Fj{Hn}}}Gn}{{{f{El}}{f{{Jh{Fl}}}}}{{Fj{Hn}}}}{{{f{El}}{f{Ab}}}{{Fj{Hn}}}}{{{f{{I`{c}}}}{f{{I`{c}}}}}{{Fj{Hn}}}Nl}{{{f{{G`{c}}}}{f{{G`{c}}}}}{{Fj{Hn}}}Nl}{{{f{{Hj{c}}}}{f{{Hj{c}}}}}{{Fj{Hn}}}Nl}{{}D`}{{{f{{Fd{c}}}}}{{f{Ab}}}{}}{{{f{{Fh{c}}}}}{{f{Ab}}}{}}{{{f{Bj}}}{{f{Ab}}}}{{{f{En}}}{{f{Ab}}}}{{{f{En}}}{{Fj{Nn}}}}{{{O`{{f{bEh}}}}{f{bOb}}}{{Od{{Fj{{Cb{Eh}}}}}}}}{{{O`{{f{bEl}}}}{f{bOb}}}{{Od{{Fj{{Cb{Eh}}}}}}}}{{{O`{{f{bN`}}}}{f{bOb}}}{{Od{Fj}}}}88{{{f{bEl}}c}AhOf}{{{f{bEl}}FlEj}Ah}{{{f{bEl}}{f{{Fn{Fl}}}}}Ah}7{{}j}{{{Fd{{Fb{e}}}}{f{bOh}}}AhDj{{Bf{Al}{{An{Ah}}{Ch{{Cj{c}}}}{B`{Bb}}{Bd{Ah}}}}}}{{{Fh{{Ff{e}}}}{f{bOh}}}AhDj{{Bf{Al}{{An{Ah}}{Ch{{Cj{c}}}}{B`{Bb}}{Bd{Ah}}}}}}{{{f{Eh}}}Ej}{{{f{El}}}Ej}0{{{f{bEl}}Ej}Ah}{{{f{bEl}}EjFl}Ah}{{{f{Ab}}}Fd}{{{f{En}}}{{f{Oj}}}}{{{f{bc}}}{{f{bNh}}}{}}000{{Eh{f{En}}}Gf}{{El{f{En}}}Gf}{{{Gf{c}}{f{En}}}GfDj}{{{I`{c}}{f{En}}}GfOl}{{{Jb{c}}{f{En}}}GfOl}{{{Fd{{Fb{c}}}}D`}{{Fd{{Fb{c}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}}{{{Fh{{Ff{c}}}}{f{Ab}}D`}{{Fh{{Ff{c}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}}{{{f{bBj}}{f{Ab}}D`}{{f{bBj}}}}{{{f{Ab}}}Fh}{{{f{b{Fd{c}}}}}{{l{hAd}}}{}}{{{f{b{Fh{c}}}}}{{l{hAd}}}{}}{{{f{bBj}}}{{l{hAd}}}}{{{f{{Gl{c}}}}e}CbOlOn}{{{f{{I`{c}}}}e}CbOlOn}{{{f{{Jb{c}}}}e}CbOlOn}{cA@`A@b}{{{Fh{{Ff{c}}}}e}{{Fh{{Ff{c}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{dDb}}{{{f{bBj}}c}{{f{bBj}}}{dDb}}{{{Gf{c}}e}{{Gf{e}}}{}{}}{{{f{bEl}}Ej}Ah}{{{f{Eh}}}A@d}{{{f{El}}}A@d}{{{f{Eh}}c}Eh{{A@f{Ej}}}}{{{f{Eh}}{f{{Fn{Fl}}}}}Eh}{{{f{bEl}}}{{f{b{Fn{{A@h{Fl}}}}}}}}{{{f{bEl}}}El}{{{f{bEh}}Ej}Eh}{{{f{bEl}}Ej}El}10{{{f{{Gf{c}}}}}Gh{}}{{{f{b{Gf{c}}}}}{{f{bGh}}}{}}{{{f{bEn}}}Mb}{eA@jA@l{{A@n{c}}}}{{{Fd{{Fb{c}}}}g}{{Fd{{Fb{c}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}A@l{{A@n{e}}}}{{D`e}D`A@l{{A@n{c}}}}{N`{{Cb{EhBb}}}}{{N`Ej}{{Cb{{Cb{EhBb}}AA`}}}}{{{f{c}}}e{}{}}0000000000{{{f{c}}}h{}}000{{{f{bEh}}Ej}Ah}{{{f{bEl}}Ej}Ah}{c{{Cb{e}}}{}{}}000000000000000000000000000000000000000{Eh{{Cb{EhEh}}}}{El{{Cb{EhEl}}}}{Eh{{Cb{AAb}}}}{{{O`{{f{bc}}}}{f{bOb}}}{{Od{{Fj{Cb}}}}}{}}{{{f{c}}}Dd{}}0000000000000000000{{{f{bEl}}El}Ah}{{{f{b{l{hj}}}}}Ah}00{{{f{b{Fh{c}}}}{f{b{l{hAf}}}}}Ah{}}{{{f{bBj}}{f{b{l{hAf}}}}}Ah}{{{f{b{AAh{{AAd{j}}{AAf{j}}}}}}}Ah}00000000000000000{{{f{{Gf{c}}}}}Ij{}}{{{f{En}}}{{f{AAj}}}}{{{f{En}}{f{Ab}}e}{{Cb{MdAAl}}}{{Cn{Ab}}}{{Kf{}{{Kd{c}}}}}}{{{f{En}}{f{Ab}}}{{Cb{MdAAl}}}}{{{f{En}}}AAn}{ce{}{}}0000000000000000000{{Ghc}{{Gf{c}}}{}}{EjEl}{{{Fd{{Fb{c}}}}g}{{Fd{{Fb{{`{{Bf{Al}{{An{Ah}}{Ch{{Cj{e}}}}{B`{Bb}}{Bd{Ah}}}}}}}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}Dj{{Dl{Al}{{Ch{{Cj{e}}}}{B`{Bb}}{Bd{Ah}}}}}}{{{Fh{{Ff{c}}}}g}{{Fh{{Ff{{`{{Bf{Al}{{An{Ah}}{Ch{{Cj{e}}}}{B`{Bb}}{Bd{Ah}}}}}}}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}Dj{{Dl{Al}{{Ch{{Cj{e}}}}{B`{Bb}}{Bd{Ah}}}}}}{{{Fd{{Fb{c}}}}i}{{Fd{{Fb{{`{{Bf{Al}{{An{Ah}}{Ch{{Cj{e}}}}{B`{Bb}}{Bd{Ah}}}}}}}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}Dj{{Cd{}{{C`{{Cb{{Cj{e}}Bb}}}}}}}{{Cf{Alf}{{C`{g}}}}Ed}}{{{Fh{{Ff{c}}}}g}{{Fh{{Ff{{`{{Bf{Al}{{An{Ah}}{Ch{Cj}}{B`{Bb}}{Bd{Ah}}}}}}}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{{Cd{}{{C`{{Cb{CjBb}}}}}}}{{Cf{Alf}{{C`{e}}}}Ed}}{{{f{bEl}}AB`}{{Cb{AhKn}}}}{{{f{bEl}}{f{Ab}}}{{Cb{AhKn}}}}6","D":"AMh","p":[[0,"mut"],[10,"Mountable",0],[1,"reference"],[5,"String",710],[5,"DefaultSchemaRaw",711],[5,"BTreeMap",712],[6,"HttpMethod",711],[8,"DefaultOperationRaw",711],[1,"str"],[5,"SecurityScheme",711],[8,"DefaultPathItemRaw",711],[1,"unit"],[5,"App",25],[5,"ServiceRequest",713],[17,"Config"],[17,"Error"],[5,"Error",714],[17,"InitError"],[10,"ServiceFactory",715],[5,"App",716],[5,"ServiceConfig",54],[10,"FnOnce",717],[10,"Debug",718],[17,"Output"],[6,"Result",719],[10,"Future",720],[10,"Fn",717],[17,"Response"],[5,"ServiceResponse",713],[10,"IntoServiceFactory",715],[10,"AsRef",721],[5,"Route",54],[10,"HttpServiceFactory",713],[5,"TypeId",722],[6,"Value",723],[10,"FnMut",717],[10,"MessageBody",724],[10,"Transform",725],[17,"Wrapper"],[10,"OpenApiExt",25],[8,"DefaultApiRaw",711],[10,"Clone",726],[5,"HttpResponseBuilder",727],[5,"Bytes",54,728],[1,"usize"],[5,"BytesMut",54,729],[5,"HttpRequest",54,730],[5,"AppConfig",731],[5,"Resource",732],[5,"Resource",54],[5,"Scope",733],[5,"Scope",54],[6,"Option",734],[1,"u8"],[1,"slice"],[5,"Path",54,735],[5,"BlockingError",736],[10,"Send",737],[5,"HttpResponse",54,738],[5,"StatusCode",739],[5,"UninitSlice",740],[5,"Data",54,741],[10,"Sized",737],[5,"ReqData",54,742],[5,"FormConfig",54,743],[5,"JsonConfig",54,744],[5,"PathConfig",54,735],[5,"PayloadConfig",54,745],[5,"Query",54,746],[5,"QueryConfig",54,746],[6,"Ordering",747],[5,"Form",54,743],[10,"Ord",747],[5,"ConnectionInfo",748],[5,"Ref",749],[5,"Mime",750],[1,"bool"],[10,"Sync",737],[10,"Default",751],[5,"Arc",752],[5,"Json",54,744],[10,"Deserializer",753],[10,"Deserialize",753],[5,"Vec",754],[10,"PartialEq",747],[6,"UrlencodedError",736],[6,"JsonPayloadError",736],[6,"PathError",736],[6,"QueryPayloadError",736],[17,"Item"],[10,"IntoIterator",755],[5,"Extensions",756],[5,"RefMut",749],[5,"Formatter",718],[5,"Error",718],[10,"Display",718],[5,"ServiceConfig",731],[5,"ByteStr",757],[5,"Custom",758],[5,"Box",759],[5,"Response",760],[1,"never"],[10,"Into",721],[10,"DeserializeOwned",753],[6,"Payload",761],[5,"Url",762],[10,"Guard",763],[10,"Hasher",764],[5,"ResponseHead",765],[5,"RequestHead",766],[5,"HeaderMap",767],[5,"Payload",54,745],[1,"tuple"],[6,"EitherBody",768],[5,"Url",769],[5,"Path",770],[5,"Method",771],[10,"PartialOrd",747],[6,"SocketAddr",772],[5,"Pin",773],[5,"Context",774],[6,"Poll",775],[10,"Buf",776],[5,"AppService",731],[5,"ResourceMap",777],[10,"Serialize",778],[10,"Serializer",778],[5,"WebService",713],[10,"IntoPatterns",779],[6,"BodySize",780],[10,"RangeBounds",781],[20,"MaybeUninit",782],[5,"Route",783],[10,"FromRequest",784],[10,"Handler",785],[5,"BodyLimitExceeded",786],[5,"HeaderValue",787],[5,"Parameter",711],[5,"Response",711],[5,"Operation",711],[5,"Uri",788],[6,"UrlGenerationError",736],[5,"Version",789],[5,"Arguments",718]],"r":[[0,790],[1,790],[2,790],[3,25],[5,25],[6,54],[7,54],[8,54],[9,790],[10,790],[11,790],[14,790],[15,790],[16,790],[18,790],[20,790],[21,790],[58,728],[59,729],[63,741],[67,743],[68,743],[72,730],[73,738],[78,744],[79,744],[98,735],[99,735],[100,745],[101,745],[109,746],[110,746],[112,742],[146,791],[548,791],[566,791]],"b":[[281,"impl-PartialEq-for-Bytes"],[282,"impl-PartialEq%3CVec%3Cu8%3E%3E-for-Bytes"],[283,"impl-PartialEq%3CBytesMut%3E-for-Bytes"],[284,"impl-PartialEq%3CString%3E-for-Bytes"],[285,"impl-PartialEq%3C%26T%3E-for-Bytes"],[286,"impl-PartialEq%3C%5Bu8%5D%3E-for-Bytes"],[287,"impl-PartialEq%3Cstr%3E-for-Bytes"],[288,"impl-PartialEq-for-BytesMut"],[289,"impl-PartialEq%3Cstr%3E-for-BytesMut"],[290,"impl-PartialEq%3CBytes%3E-for-BytesMut"],[291,"impl-PartialEq%3CVec%3Cu8%3E%3E-for-BytesMut"],[292,"impl-PartialEq%3C%5Bu8%5D%3E-for-BytesMut"],[293,"impl-PartialEq%3CString%3E-for-BytesMut"],[294,"impl-PartialEq%3C%26T%3E-for-BytesMut"],[323,"impl-Extend%3C%26u8%3E-for-BytesMut"],[324,"impl-Extend%3Cu8%3E-for-BytesMut"],[325,"impl-Extend%3CBytes%3E-for-BytesMut"],[332,"impl-LowerHex-for-Bytes"],[333,"impl-UpperHex-for-Bytes"],[334,"impl-Debug-for-Bytes"],[335,"impl-Debug-for-BytesMut"],[336,"impl-UpperHex-for-BytesMut"],[337,"impl-LowerHex-for-BytesMut"],[342,"impl-Display-for-Form%3CT%3E"],[343,"impl-Debug-for-Form%3CT%3E"],[344,"impl-Display-for-Json%3CT%3E"],[345,"impl-Debug-for-Json%3CT%3E"],[346,"impl-Debug-for-Path%3CT%3E"],[347,"impl-Display-for-Path%3CT%3E"],[348,"impl-Display-for-Query%3CT%3E"],[349,"impl-Debug-for-Query%3CT%3E"],[356,"impl-From%3CString%3E-for-Bytes"],[357,"impl-From%3C%26str%3E-for-Bytes"],[358,"impl-From%3CByteStr%3E-for-Bytes"],[360,"impl-From%3CCustom%3E-for-Bytes"],[361,"impl-From%3CVec%3Cu8%3E%3E-for-Bytes"],[362,"impl-From%3CBytesMut%3E-for-Bytes"],[363,"impl-From%3C%26%5Bu8%5D%3E-for-Bytes"],[364,"impl-From%3CBox%3C%5Bu8%5D%3E%3E-for-Bytes"],[366,"impl-From%3C%26%5Bu8%5D%3E-for-BytesMut"],[367,"impl-From%3C%26str%3E-for-BytesMut"],[369,"impl-From%3CServiceResponse%3CB%3E%3E-for-HttpResponse%3CB%3E"],[370,"impl-From%3CResponse%3CB%3E%3E-for-HttpResponse%3CB%3E"],[371,"impl-From%3CError%3E-for-HttpResponse"],[372,"impl-From%3CHttpResponseBuilder%3E-for-HttpResponse"],[391,"impl-FromIterator%3C%26u8%3E-for-BytesMut"],[392,"impl-FromIterator%3Cu8%3E-for-BytesMut"],[417,"impl-HttpMessage-for-HttpRequest"],[418,"impl-HttpRequest"],[449,"impl-IntoIterator-for-Bytes"],[450,"impl-IntoIterator-for-%26Bytes"],[451,"impl-IntoIterator-for-BytesMut"],[452,"impl-IntoIterator-for-%26BytesMut"],[489,"impl-PartialOrd-for-Bytes"],[490,"impl-PartialOrd%3CString%3E-for-Bytes"],[491,"impl-PartialOrd%3CVec%3Cu8%3E%3E-for-Bytes"],[492,"impl-PartialOrd%3C%5Bu8%5D%3E-for-Bytes"],[493,"impl-PartialOrd%3Cstr%3E-for-Bytes"],[494,"impl-PartialOrd%3C%26T%3E-for-Bytes"],[495,"impl-PartialOrd%3C%5Bu8%5D%3E-for-BytesMut"],[496,"impl-PartialOrd-for-BytesMut"],[497,"impl-PartialOrd%3CString%3E-for-BytesMut"],[498,"impl-PartialOrd%3C%26T%3E-for-BytesMut"],[499,"impl-PartialOrd%3CVec%3Cu8%3E%3E-for-BytesMut"],[500,"impl-PartialOrd%3Cstr%3E-for-BytesMut"],[660,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G,+H,+I)%3E"],[661,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G,+H,+I,+J)%3E"],[662,"impl-OperationModifier-for-Path%3C(A,)%3E"],[663,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G,+H,+I,+J,+K,+L,+M)%3E"],[664,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D)%3E"],[665,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G,+H)%3E"],[666,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G)%3E"],[667,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G,+H,+I,+J,+K,+L)%3E"],[668,"impl-OperationModifier-for-Path%3C(A,+B,+C)%3E"],[669,"impl-OperationModifier-for-Path%3C(A,+B)%3E"],[670,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E)%3E"],[671,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F)%3E"],[672,"impl-OperationModifier-for-Path%3CT%3E"],[673,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G,+H,+I,+J,+K)%3E"]],"c":"OjAAAAAAAAA=","e":"OzAAAAEAANoBOwAAAAAABAAAAAYAAwANAAAAHAAAAB4AAQAqAAMANwADAD0AAgBBAAIARgACAEsAAwBRABEAZwAGAHAAAAByAAIAeAAAAHoADwCPAAMAlQAqAMIAAgDHACoA+AAJAAQBAgAIARAAGgEkAEQBAgBJAQAASwEAAE0BEQBkAQMAaQEEAG8BAQByAQMAdwEAAH8BAACBAQAAhwECAIsBCACbAQEAogEAALoBAADCAQMA3AEAAOUBAwDqAQ4A+gECAP8BAgAEAgIACAIFABICCAAfAgUAKgIBADYCAAA8Ag4ATQI/AI4CFgCqAhMAxAIBAA==","a":{"state":[63,141]}}],\ -["paperclip_core",{"t":"PPPPPGNNNNNCNNNNNCCCNFNNNNNNNNHNNNNNNFYYYFEFFKEFFEXXXXNNNNNNNNNNNNNXNNNNNNNNNNNNXXNNNNNNNNCNNNOXNXXNNNNNNNNOCNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNFPPPPPFFGFPGGPPIIIIIFFPPGFPPPPPFPPGPFPPPPPPFJJPPFFPPPFGPPFGPPPFPPPPPFGIIIIIPFPFGPPFPPPPGPPJJPNNOONONOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOONNNNNOOOOOOONOOOOOOONNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOONNNNNNNOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOONNNONOOOOOOOOOOOOOOOOONOOOOOOOOOOOOOOOOOONOOOOOONOOOOOOOOOOOONNNNNNOOOOOOOOOOOOOONOONNOOONOOOONNNNOOOOOONNNOOOOOOOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOONOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOKKKTKKMMNMNMMNMMNNMNMMNNMNMMMNMNMNMNMMMNNH","n":["InvalidHeader","InvalidParameterType","InvalidRefUri","MissingReference","MissingSchemaForBodyParameter","ValidationError","borrow","borrow_mut","fmt","fmt","from","im","into","to_string","try_from","try_into","type_id","util","v2","v3","vzip","Ready","borrow","borrow_mut","definitions","from","into","into_future","operation","poll","ready","security_definitions","try_from","try_into","try_poll","type_id","vzip","AcceptedJson","Apiv2Header","Apiv2Schema","Apiv2Security","CreatedJson","DefaultSchema","HttpResponseWrapper","NoContent","OperationModifier","ResolvableApi","ResponderWrapper","ResponseWrapper","Schema","api_v2_errors","api_v2_errors_overlay","api_v2_operation","api_v2_schema_struct","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","definitions","delete","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","get","head","into","into","into","into","into","into","into_future","is_visible","models","name","name","operation","operations","patch","poll","post","put","raw_schema","raw_schema","respond_to","respond_to","respond_to","respond_to","respond_to","respond_to","responder","schema","security_definitions","to_string","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_poll","type_id","type_id","type_id","type_id","type_id","type_id","update_definitions","update_definitions","update_parameter","update_parameter","update_response","update_response","update_response","update_response","update_response","update_security","update_security","update_security_definitions","update_security_definitions","vzip","vzip","vzip","vzip","vzip","vzip","Api","Array","Binary","Body","Boolean","Byte","Coder","Coders","CollectionFormat","Contact","Csv","DataType","DataTypeFormat","Date","DateTime","DefaultApiRaw","DefaultOperationRaw","DefaultParameterRaw","DefaultPathItemRaw","DefaultResponseRaw","DefaultSchema","DefaultSchemaRaw","Delete","Double","Either","ExternalDocs","File","Float","FormData","Get","Head","Header","Header","Http","HttpMethod","Https","Info","Int32","Int64","Integer","Ip","IpV4","IpV6","Items","JSON_CODER","JSON_MIME","Json","Left","License","MediaRange","Multi","Number","Object","Operation","OperationProtocol","Options","Other","Parameter","ParameterIn","Password","Patch","Path","PathItem","Pipes","Post","Put","Query","Raw","Reference","Resolvable","ResolvableApi","ResolvableOperation","ResolvableParameter","ResolvablePathItem","ResolvableResponse","Resolved","Response","Right","SecurityScheme","SpecFormat","Ssv","String","Tag","Tsv","Url","Uuid","V2","Version","Ws","Wss","YAML_CODER","YAML_MIME","Yaml","additional_properties","additional_properties_mut","allow_empty_value","allow_empty_value","allows_body","any_value","append_map","auth_url","base_path","base_path","base_path","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","builtin","check","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","cmp","cmp","cmp","cmp","cmp","coder","coders","coders","coders","collection_format","collection_format","collection_format","collection_format","compare","compare","compare","compare","compare","consumes","consumes","consumes","consumes","consumes","consumes","contact","data_type","data_type","data_type","data_type","data_type","data_type","data_type","decoder_path","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","definitions","definitions","definitions","deprecated","deprecated","deprecated","deref","deref","deref","deref_mut","deref_mut","deref_mut","description","description","description","description","description","description","description","description","description","description","description","description","description","description","description","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","email","encoder_path","enum_","enum_","enum_","enum_","enum_","enum_","enum_variants","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","error_path","example","example","exclusive_maximum","exclusive_maximum","exclusive_maximum","exclusive_maximum","exclusive_minimum","exclusive_minimum","exclusive_minimum","exclusive_minimum","extensions","extensions","extensions","extensions","external_docs","external_docs","external_docs","external_docs","extra_props","extra_props","flow","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","format","format","format","format","format","format","format","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","get_description","headers","headers","host","host","host","in_","in_","in_","info","info","info","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","is_cyclic","is_primitive","items","items","items","items","items","items","items","items_mut","left","left_mut","license","matching_coder","max_items","max_items","max_items","max_items","max_length","max_length","max_length","max_length","maximum","maximum","maximum","maximum","maximum","maximum","methods","methods","methods","mime","min_items","min_items","min_items","min_items","min_length","min_length","min_length","min_length","minimum","minimum","minimum","minimum","minimum","minimum","multiple_of","multiple_of","multiple_of","multiple_of","name","name","name","name","name","name","name","normalize","operation_id","operation_id","operation_id","parameters","parameters","parameters","parameters","parameters","parameters","parameters","parameters","parameters","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","path_parameters_map","paths","paths","paths","pattern","pattern","pattern","pattern","prefer","produces","produces","produces","produces","produces","produces","properties","properties","properties","properties_mut","reference","reference","reference","reference","remove_refs","required","required","required","required","required_properties","resolve","resolve","resource_path","responses","responses","responses","responses","responses","responses","retain_ref","right","right_mut","schema","schema","schema","schema","schemes","schemes","schemes","schemes","schemes","schemes","scopes","security","security","security","security","security","security","security_definitions","security_definitions","security_definitions","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","set_cyclic","set_name","set_parameter_names_from_path_template","set_reference","spec_format","spec_format","spec_format","summary","summary","summary","support_crates","support_crates","support_crates","swagger","swagger","swagger","tags","tags","tags","tags","tags","tags","terms_of_service","title","title","title","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","to_string","token_url","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","unique_items","unique_items","unique_items","unique_items","update_definitions","url","url","url","version","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","new","old","Apiv2Errors","Apiv2Operation","Apiv2Schema","ERROR_MAP","Schema","TypedData","additional_properties","additional_properties_mut","contains_any","data_type","data_type","definitions","description","description","enum_variants","format","format","header_parameter_schema","is_cyclic","is_visible","items","items_mut","max","min","name","name","operation","properties","properties_mut","raw_schema","reference","required","required_properties","schema_with_ref","security_definitions","security_scheme","set_cyclic","set_name","set_reference","update_definitions","update_error_definitions","openapiv2_to_v3"],"q":[[0,"paperclip_core"],[21,"paperclip_core::util"],[37,"paperclip_core::v2"],[151,"paperclip_core::v2::models"],[1066,"paperclip_core::v2::models::Resolvable"],[1068,"paperclip_core::v2::schema"],[1109,"paperclip_core::v3"],[1110,"paperclip_core::error"],[1111,"core::fmt"],[1112,"alloc::string"],[1113,"core::result"],[1114,"core::any"],[1115,"alloc::collections::btree::map"],[1116,"core::pin"],[1117,"core::task::wake"],[1118,"core::task::poll"],[1119,"paperclip_core::v2::actix"],[1120,"serde::ser"],[1121,"core::option"],[1122,"actix_web::response::responder"],[1123,"core::future::future"],[1124,"actix_web::request"],[1125,"actix_web::response::response"],[1126,"actix_http::body::boxed"],[1127,"paperclip_core::v2::extensions"],[1128,"core::clone"],[1129,"core::cmp"],[1130,"alloc::sync"],[1131,"core::default"],[1132,"serde::de"],[1133,"serde_json::value"],[1134,"http::method"],[1135,"openapiv3::parameter"],[1136,"openapiv3::request_body"],[1137,"openapiv3::schema"],[1138,"alloc::borrow"],[1139,"core::ops::function"],[1140,"alloc::collections::btree::set"],[1141,"std::sync::rwlock"],[1142,"actix_router::path"],[1143,"alloc::vec"],[1144,"openapiv3::openapi"],[1145,"paperclip_macros"]],"i":[3,3,3,3,3,0,3,3,3,3,3,0,3,3,3,3,3,0,0,0,3,0,14,14,14,14,14,14,14,14,0,14,14,14,14,14,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,35,38,29,19,24,25,35,38,29,19,24,25,29,0,19,19,24,24,25,25,35,38,29,19,24,25,0,0,35,38,29,19,24,25,29,29,0,19,24,29,29,0,29,0,0,19,24,35,38,29,19,24,25,29,0,29,19,24,25,35,38,29,19,24,25,35,38,29,19,24,25,29,35,38,29,19,24,25,30,30,30,30,30,30,19,24,25,30,30,30,30,35,38,29,19,24,25,0,51,52,63,51,52,0,0,0,0,64,0,0,52,52,0,0,0,0,0,0,0,44,52,0,0,51,52,63,44,44,0,63,66,0,66,0,52,52,51,52,52,52,0,0,0,55,43,0,0,64,51,51,0,0,44,52,0,0,52,44,63,0,64,44,44,63,42,0,0,0,0,0,0,0,42,0,43,0,0,64,51,0,64,52,52,50,0,66,66,0,0,55,41,41,77,11,44,49,18,18,85,91,53,47,48,49,50,51,52,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,43,42,47,48,49,50,51,52,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,43,42,49,11,47,48,49,50,51,52,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,43,42,47,48,49,50,51,52,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,43,42,47,48,49,50,50,51,51,52,53,55,55,9,41,56,57,58,18,59,60,61,11,62,63,63,64,64,13,65,66,66,12,67,44,44,43,42,47,63,64,66,44,55,85,91,53,77,11,62,67,47,63,64,66,44,85,91,93,28,53,13,56,41,77,9,41,11,62,67,49,48,49,50,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,12,67,42,77,11,67,85,91,53,93,28,13,48,43,42,48,43,42,41,77,93,28,94,9,41,56,18,59,60,11,13,12,67,47,48,49,50,51,52,53,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,43,42,57,49,77,9,41,11,62,67,41,47,50,51,52,55,11,62,63,64,65,66,44,47,47,47,47,50,50,50,50,51,51,51,51,52,52,52,52,55,55,55,55,63,63,63,63,64,64,64,64,65,65,65,65,66,66,66,66,44,44,44,44,49,9,41,77,11,62,67,77,11,62,67,85,91,53,56,85,91,53,59,9,41,18,47,48,49,50,51,52,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,44,43,42,41,77,9,41,11,62,67,47,48,49,50,51,51,52,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,44,43,43,42,42,42,42,94,12,85,91,53,77,18,11,85,91,53,47,48,49,50,51,52,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,43,42,41,51,41,77,9,41,11,62,67,41,43,43,56,48,77,11,62,67,77,11,62,67,77,9,41,11,62,67,95,96,61,55,77,11,62,67,77,11,62,67,77,9,41,11,62,67,77,11,62,67,41,77,57,58,18,59,11,61,93,28,13,85,91,95,96,93,28,53,61,13,47,63,64,66,44,53,85,91,53,77,11,62,67,49,85,91,93,28,53,13,41,9,41,41,41,9,41,65,9,77,9,41,11,41,85,53,43,85,91,93,28,53,13,9,43,43,77,94,11,12,85,91,93,28,53,13,18,85,91,93,28,53,13,85,91,53,47,48,49,50,51,52,53,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,43,42,41,41,13,41,85,91,53,93,28,13,85,91,53,85,91,53,85,91,93,28,53,13,56,9,41,56,47,48,49,50,51,52,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,43,42,52,44,18,47,48,49,50,51,52,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,43,42,47,48,49,50,51,52,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,43,42,18,47,48,49,50,51,52,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,43,42,77,11,62,67,18,57,58,60,56,47,48,49,50,51,52,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,43,42,97,97,0,0,0,98,0,0,46,46,46,46,99,34,46,22,46,46,99,22,46,34,46,46,99,99,46,22,34,46,46,22,46,22,46,22,34,22,46,46,46,98,98,0],"f":"``````{{{b{c}}}{{b{e}}}{}{}}{{{b{dc}}}{{b{de}}}{}{}}{{{b{f}}{b{dh}}}j}0{cc{}}`{ce{}{}}{{{b{c}}}l{}}{c{{n{e}}}{}{}}0{{{b{c}}}A`{}}```3`76{{}{{Ad{lAb}}}}54{c{}{}}{{}{{Aj{{Af{Ab}}{Ah{Ab}}}}}}{{{An{{b{d{Al{c}}}}}}{b{dB`}}}{{Bb{c}}}{}}{c{{Al{c}}}{}}{{}{{Ad{lBd}}}}77{{{An{{b{dc}}}}{b{dB`}}}Bb{}}7:`````````````````>>>>>>======6`{{{b{{Bf{c}}}}{b{dh}}}j{BhBjBl}}{{{b{{Bf{c}}}}{b{dh}}}j{BnBjBl}}{{{b{{C`{c}}}}{b{dh}}}j{BnBjBl}}{{{b{{C`{c}}}}{b{dh}}}j{BhBjBl}}{{{b{Cb}}{b{dh}}}j}0{cc{}}00000``{ce{}{}}00000<{{}Cd}`{{}{{Cf{l}}}}0{{}Ch}``{{{An{{b{d{Cj{eg}}}}}}{b{dB`}}}{{Bb{i}}}{ClCn}{{Db{}{{D`{c}}}}}Dd{}}``{{}Ab}0{{Df{b{Dh}}}{{Dj{c}}}{}}{{{Dl{c}}{b{Dh}}}{{Dj{e}}}Cn{}}{{{Cj{ce}}{b{Dh}}}{{Dj{g}}}Cn{}{}}{{{Bf{c}}{b{Dh}}}{{Dj{Dn}}}{BjBl}}{{{C`{c}}{b{Dh}}}{{Dj{Dn}}}{BjBl}}{{Cb{b{Dh}}}{{Dj{Dn}}}}``{{}{{Ad{lBd}}}}{{{b{c}}}l{}}00{c{{n{e}}}{}{}}00000000000{{{An{{b{dc}}}}{b{dB`}}}Bb{}}{{{b{c}}}A`{}}00000{{{b{d{Ad{lAb}}}}}E`}0{{{b{dCh}}}E`}00000000{{{b{d{Ad{lBd}}}}}E`}0{ce{}{}}00000`````````````````````````````````````````````````````````````````````````````````````````````{{{b{Eb}}}{{Cf{{b{{Ef{Cd{Ed{Eb}}}}}}}}}}{{{b{dEb}}}{{Cf{{b{d{Ef{Cd{Ed{Eb}}}}}}}}}}``{EhCd}`{{{Ad{lBd}}{b{d{Ad{lBd}}}}}E`}````{{{b{c}}}{{b{e}}}{}{}}0000000000000000000000000000{{{b{dc}}}{{b{de}}}{}{}}0000000000000000000000000000`{{{b{{Af{{Ed{c}}}}}}{b{Ej}}}{{n{E`f}}}El}{{{b{En}}}En}{{{b{F`}}}F`}{{{b{Fb}}}Fb}{{{b{Fd}}}Fd}{{{b{Ff}}}Ff}{{{b{Fh}}}Fh}{{{b{{Fj{ceg}}}}}{{Fj{ceg}}}FlFlFl}{{{b{Fn}}}Fn}{{{b{Ab}}}Ab}{{{b{Eb}}}Eb}{{{b{G`}}}G`}{{{b{Gb}}}Gb}{{{b{Gd}}}Gd}{{{b{Bd}}}Bd}{{{b{Gf}}}Gf}{{{b{Gh}}}Gh}{{{b{{Gj{ce}}}}}{{Gj{ce}}}FlFl}{{{b{{Af{c}}}}}{{Af{c}}}Fl}{{{b{Gl}}}Gl}{{{b{Gn}}}Gn}{{{b{H`}}}H`}{{{b{{Aj{ce}}}}}{{Aj{ce}}}FlFl}{{{b{Hb}}}Hb}{{{b{Hd}}}Hd}{{{b{{Ah{c}}}}}{{Ah{c}}}Fl}{{{b{Hf}}}Hf}{{{b{Eh}}}Eh}{{{b{{Ef{ce}}}}}{{Ef{ce}}}FlFl}{{{b{{Ed{c}}}}}{{Ed{c}}}{}}{{{b{c}}{b{de}}}E`{}{}}0000000000000000000000000000{{{b{c}}}E`{}}00000000000000000000000000000000000{{{b{En}}{b{En}}}Hh}{{{b{Gn}}{b{Gn}}}Hh}{{{b{H`}}{b{H`}}}Hh}{{{b{Hd}}{b{Hd}}}Hh}{{{b{Eh}}{b{Eh}}}Hh}{Fn{{Hj{Fb}}}}```````{{{b{c}}{b{e}}}Hh{}{}}0000```````{{{b{Eb}}}{{Cf{Ff}}}}```````{{}F`}{{}Fb}{{}Fd}{{}{{Fj{ceg}}}HlHlHl}{{}Fn}{{}Ab}{{}Eb}{{}G`}{{}Gb}{{}Gd}{{}Bd}{{}Gf}{{}Gh}{{}{{Gj{ce}}}HlHl}{{}{{Af{c}}}Hl}{{}Gl}{{}Gn}{{}H`}{{}{{Aj{ce}}}HlHl}{{}Hb}{{}{{Ah{c}}}Hl}{{}Hf}{{}{{Ed{c}}}Hl}`````````{{{b{F`}}}{{b{c}}}{}}{{{b{{Ef{Hbc}}}}}{{b{e}}}{}{}}{{{b{{Ed{c}}}}}{{b{e}}}{}{}}{{{b{dF`}}}{{b{dc}}}{}}{{{b{d{Ef{Hbc}}}}}{{b{de}}}{}{}}{{{b{d{Ed{c}}}}}{{b{de}}}{}{}}{{{b{Eb}}}{{Cf{{b{Ej}}}}}}``````````````{c{{n{En}}}Hn}{c{{n{F`}}}Hn}{c{{n{Fb}}}Hn}{c{{n{Fd}}}Hn}{c{{n{Ff}}}Hn}{c{{n{Fh}}}Hn}{c{{n{{Fj{egi}}}}}HnI`I`I`}{c{{n{Ab}}}Hn}{c{{n{Eb}}}Hn}{c{{n{G`}}}Hn}{c{{n{Gb}}}Hn}{c{{n{Gd}}}Hn}{c{{n{Bd}}}Hn}{c{{n{Gf}}}Hn}{c{{n{Gh}}}Hn}{c{{n{{Gj{eg}}}}}HnI`I`}{c{{n{{Af{e}}}}}HnI`}{c{{n{Gl}}}Hn}{c{{n{Gn}}}Hn}{c{{n{H`}}}Hn}{c{{n{{Aj{eg}}}}}HnI`I`}{c{{n{Hb}}}Hn}{c{{n{Hd}}}Hn}{c{{n{{Ah{e}}}}}HnI`}{c{{n{Hf}}}Hn}{c{{n{Eh}}}Hn}{c{{n{{Ef{eg}}}}}HnI`I`}{c{{n{{Ed{e}}}}}HnI`}````````{{{b{Eb}}}{{Cf{{b{{Id{Ib}}}}}}}}{{{b{En}}{b{En}}}Cd}{{{b{Fd}}{b{Fd}}}Cd}{{{b{Ff}}{b{Ff}}}Cd}{{{b{Fh}}{b{Fh}}}Cd}{{{b{Fn}}{b{Fn}}}Cd}{{{b{{Af{c}}}}{b{{Af{c}}}}}CdIf}{{{b{Gl}}{b{Gl}}}Cd}{{{b{Gn}}{b{Gn}}}Cd}{{{b{H`}}{b{H`}}}Cd}{{{b{Hb}}{b{Hb}}}Cd}{{{b{Hd}}{b{Hd}}}Cd}{{{b{Eh}}{b{Eh}}}Cd}{{{b{c}}{b{e}}}Cd{}{}}000000000000000000000000000000000000000``````````````````````{{{b{En}}{b{dh}}}j}{{{b{F`}}{b{dh}}}j}{{{b{Fb}}{b{dh}}}j}{{{b{Fd}}{b{dh}}}j}{{{b{Ff}}{b{dh}}}j}{{{b{Fh}}{b{dh}}}j}{{{b{{Fj{ceg}}}}{b{dh}}}jBnBnBn}{{{b{Fn}}{b{dh}}}j}{{{b{Ab}}{b{dh}}}j}{{{b{Eb}}{b{dh}}}j}{{{b{G`}}{b{dh}}}j}{{{b{Gb}}{b{dh}}}j}{{{b{Gd}}{b{dh}}}j}{{{b{Bd}}{b{dh}}}j}{{{b{Gf}}{b{dh}}}j}{{{b{Gh}}{b{dh}}}j}{{{b{{Gj{ce}}}}{b{dh}}}jBnBn}{{{b{{Af{c}}}}{b{dh}}}jBn}{{{b{Gl}}{b{dh}}}j}{{{b{Gn}}{b{dh}}}j}{{{b{H`}}{b{dh}}}j}{{{b{{Aj{ce}}}}{b{dh}}}jBnBn}{{{b{Hb}}{b{dh}}}j}{{{b{Hd}}{b{dh}}}j}{{{b{{Ah{c}}}}{b{dh}}}jBn}{{{b{Hf}}{b{dh}}}j}{{{b{Eh}}{b{dh}}}j}0{{{b{{Ef{ce}}}}{b{dh}}}jBnBn}{{{b{{Ed{c}}}}{b{dh}}}jBn}{{{b{Eb}}}{{Cf{{b{Fh}}}}}}``````{cc{}}0000{FhFf}111111111111111111111{{{b{Ih}}}Eh}2{Ij{{Ef{Il{Ef{In{Cf{J`}}}}}}}}3{c{{Ed{c}}}{}}4{Jbc{}}{{{b{{Ed{c}}}}}{{Cf{l}}}El}```````````{ce{}{}}0000000000000000000000000000{{{b{Eb}}}Cd}{FfCd}{{{b{Eb}}}{{Cf{{b{{Ed{Eb}}}}}}}}``````{{{b{dEb}}}{{Cf{{b{d{Ed{Eb}}}}}}}}{{{b{{Ef{ce}}}}}{{Cf{{b{c}}}}}{}{}}{{{b{d{Ef{ce}}}}}{{Cf{{b{dc}}}}}{}{}}`{{{b{F`}}{b{En}}}{{Cf{{Hj{Fb}}}}}}`````````````````{Fn{{b{En}}}}``````````````````{{{b{Eb}}}{{Cf{{b{Ej}}}}}}``````{{{b{d{Gj{{Af{c}}{Ah{c}}}}}}}E`{}}````````````{{{b{En}}{b{En}}}{{Cf{Hh}}}}{{{b{Gn}}{b{Gn}}}{{Cf{Hh}}}}{{{b{H`}}{b{H`}}}{{Cf{Hh}}}}{{{b{Hd}}{b{Hd}}}{{Cf{Hh}}}}{{{b{Eh}}{b{Eh}}}{{Cf{Hh}}}}{{{b{Ej}}c}{{Jd{Ej}}}{{Jf{{b{Ej}}}{{D`{{Jd{Ej}}}}}}}}``````````````{{{b{Eb}}}{{Cf{{b{{Ad{l{Ed{Eb}}}}}}}}}}``{{{b{dEb}}}{{Cf{{b{d{Ad{l{Ed{Eb}}}}}}}}}}9```{{{b{dAb}}}E`}````{{{b{Eb}}}{{Cf{{b{{Jh{l}}}}}}}}{{{Jj{c}}}{{n{{Jj{c}}f}}}{ElHl}}{{{Fj{{Hj{{Jl{{Af{{Ed{c}}}}}}}}{Hj{{Jl{{Ah{{Ed{c}}}}}}}}{Ed{c}}}}}{{n{{Jj{c}}f}}}{ElHl}}{{{b{dc}}}{{b{dJn}}}{}}``````4{{{b{{Ef{ce}}}}}{{Cf{{b{e}}}}}{}{}}{{{b{d{Ef{ce}}}}}{{Cf{{b{de}}}}}{}{}}````````````````````{{{b{En}}c}nK`}{{{b{F`}}c}nK`}{{{b{Fb}}c}nK`}{{{b{Fd}}c}nK`}{{{b{Ff}}c}nK`}{{{b{Fh}}c}nK`}{{{b{{Fj{ceg}}}}i}nBjBjBjK`}{{{b{Ab}}c}nK`}{{{b{Eb}}c}nK`}{{{b{G`}}c}nK`}{{{b{Gb}}c}nK`}{{{b{Gd}}c}nK`}{{{b{Bd}}c}nK`}{{{b{Gf}}c}nK`}{{{b{Gh}}c}nK`}{{{b{{Gj{ce}}}}g}nBjBjK`}{{{b{{Af{c}}}}e}nBjK`}{{{b{Gl}}c}nK`}{{{b{Gn}}c}nK`}{{{b{H`}}c}nK`}{{{b{{Aj{ce}}}}g}nBjBjK`}{{{b{Hb}}c}nK`}{{{b{Hd}}c}nK`}{{{b{{Ah{c}}}}e}nBjK`}{{{b{Hf}}c}nK`}{{{b{Eh}}c}nK`}{{{b{{Ef{ce}}}}g}nBjBjK`}{{{b{{Ed{c}}}}e}nBjK`}{{{b{dEb}}Cd}E`}{{{b{dEb}}{b{Ej}}}E`}{{{b{d{Aj{{Af{c}}{Ah{c}}}}}}{b{Ej}}}E`{}}{{{b{dEb}}l}E`}``````````````````````{{{b{c}}}e{}{}}0000000000000000000000000000{{{b{Fh}}}l}{{{b{c}}}l{}}`{c{{n{e}}}{}{}}000000000000000000000000000000000000000000000000000000000`{{{b{c}}}A`{}}0000000000000000000000000000````{{Bd{b{Ej}}{b{d{Ad{lBd}}}}}E`}````{ce{}{}}0000000000000000000000000000````````{{{b{El}}}{{Cf{{b{{Ef{Cd{Ed{El}}}}}}}}}}{{{b{dEl}}}{{Cf{{b{d{Ef{Cd{Ed{El}}}}}}}}}}{{{b{El}}}Cd}{{{b{El}}}{{Cf{Ff}}}}{{}Ff}{{}{{Ad{lAb}}}}{{{b{El}}}{{Cf{{b{Ej}}}}}}{{}{{b{Ej}}}}{{{b{El}}}{{Cf{{b{{Id{Ib}}}}}}}}{{{b{El}}}{{Cf{{b{Fh}}}}}}{{}{{Cf{Fh}}}}{{}{{Kb{{Af{Ab}}}}}}9{{}Cd}{{{b{El}}}{{Cf{{b{{Ed{El}}}}}}}}{{{b{dEl}}}{{Cf{{b{d{Ed{El}}}}}}}}{{}{{Cf{Kd}}}}09{{}{{Cf{l}}}}{{}Ch}{{{b{El}}}{{Cf{{b{{Ad{l{Ed{El}}}}}}}}}}{{{b{dEl}}}{{Cf{{b{d{Ad{l{Ed{El}}}}}}}}}}{{}Ab}>8{{{b{El}}}{{Cf{{b{{Jh{l}}}}}}}}1{{}{{Ad{lBd}}}}{{}{{Cf{Bd}}}}{{{b{dEl}}Cd}E`}{{{b{dEl}}{b{Ej}}}E`}{{{b{dEl}}l}E`}{{{b{d{Ad{lAb}}}}}E`}{{{b{dCh}}}E`}{KfKh}","D":"ALh","p":[[1,"reference"],[0,"mut"],[6,"ValidationError",0,1110],[5,"Formatter",1111],[8,"Result",1111],[5,"String",1112],[6,"Result",1113],[5,"TypeId",1114],[5,"DefaultSchemaRaw",151],[5,"BTreeMap",1115],[5,"Parameter",151],[5,"Response",151],[5,"Operation",151],[5,"Ready",21],[5,"Pin",1116],[5,"Context",1117],[6,"Poll",1118],[5,"SecurityScheme",151],[5,"CreatedJson",37,1119],[10,"Display",1111],[10,"Serialize",1120],[10,"Apiv2Schema",1068],[10,"Debug",1111],[5,"AcceptedJson",37,1119],[5,"NoContent",37,1119],[1,"bool"],[6,"Option",1121],[8,"DefaultOperationRaw",151],[5,"ResponseWrapper",37,1119],[10,"OperationModifier",37,1119],[10,"Responder",1122],[17,"Output"],[10,"Future",1123],[10,"Apiv2Operation",1068],[5,"HttpResponseWrapper",37,1119],[5,"HttpRequest",1124],[5,"HttpResponse",1125],[5,"ResponderWrapper",37,1119],[5,"BoxBody",1126],[1,"unit"],[5,"DefaultSchema",151],[6,"Resolvable",151],[6,"Either",151],[6,"HttpMethod",151],[1,"str"],[10,"Schema",1068],[5,"MediaRange",151,1127],[5,"Coders",151,1127],[5,"Coder",151,1127],[6,"Version",151],[6,"DataType",151],[6,"DataTypeFormat",151],[5,"Api",151],[10,"Clone",1128],[6,"SpecFormat",151],[5,"Info",151],[5,"Contact",151],[5,"License",151],[5,"Tag",151],[5,"ExternalDocs",151],[5,"PathItem",151],[5,"Items",151],[6,"ParameterIn",151],[6,"CollectionFormat",151],[5,"Reference",151],[6,"OperationProtocol",151],[5,"Header",151],[6,"Ordering",1129],[5,"Arc",1130],[10,"Default",1131],[10,"Deserializer",1132],[10,"Deserialize",1132],[6,"Value",1133],[1,"slice"],[10,"PartialEq",1129],[5,"Method",1134],[8,"DefaultParameterRaw",151],[6,"Parameter",1135],[5,"RequestBody",1136],[5,"Schema",1137],[1,"never"],[6,"Cow",1138],[10,"FnMut",1139],[5,"BTreeSet",1140],[8,"ResolvableApi",151],[5,"RwLock",1141],[5,"Path",1142],[10,"Serializer",1120],[5,"Vec",1143],[1,"f32"],[8,"DefaultApiRaw",151],[5,"OpenAPI",1144],[8,"ResolvableOperation",151],[8,"DefaultResponseRaw",151],[8,"ResolvablePathItem",151],[8,"DefaultPathItemRaw",151],[15,"Resolved",1066],[10,"Apiv2Errors",1068],[10,"TypedData",1068]],"r":[[5,1110],[37,1119],[38,1145],[39,1145],[40,1145],[41,1119],[42,151],[43,1119],[44,1119],[45,1119],[46,151],[47,1119],[48,1119],[49,1068],[50,1145],[51,1145],[52,1145],[53,1145],[67,1145],[80,1145],[81,1145],[95,1145],[97,1145],[98,1145],[157,1127],[158,1127],[195,1127],[196,1127],[200,1127],[241,1127],[242,1127]],"b":[[8,"impl-Display-for-ValidationError"],[9,"impl-Debug-for-ValidationError"],[68,"impl-Display-for-CreatedJson%3CT%3E"],[69,"impl-Debug-for-CreatedJson%3CT%3E"],[70,"impl-Debug-for-AcceptedJson%3CT%3E"],[71,"impl-Display-for-AcceptedJson%3CT%3E"],[72,"impl-Display-for-NoContent"],[73,"impl-Debug-for-NoContent"],[632,"impl-Debug-for-HttpMethod"],[633,"impl-Display-for-HttpMethod"]],"c":"OjAAAAAAAAA=","e":"OzAAAAEAAHIDRwAHAAMADgAEABUAAAAXAAIAHAACACAABgAqAAEALQAAAC8AAAAxAAEANwAMAEUABQBZAAEAXAADAGEAAABkAAgAbgAWAIsAAgCSAAUAmQAEAKIAAAClAAEArgABALIABAC4AAEAuwAAAL0ABQDGAAEAygACAM8AAQDTAAIA1wAEAOMAAADlAAAA6AABAOsAAwDwAAEA9AAEAPwAPQA8AWIAowEWALsBUQAOAjoASgIMAFgCKwCJAgAAnwIAAKECAACjAgAApQIAAKcCCgDPAgAA0QIHANsCAADdAhAA7wIYAAkDEAAbAwYAIwMNADIDBAA5AwYAQwMxAHYDAAB6AwIAgAOIAAoEIgAwBAAAPgQAAEAEAABDBAEAVAQBAA=="}],\ +["paperclip",{"t":"PPPPPPPPPPPPGIPPPPPCXNNNNNNNNNNNNNNNCCNFYYYFFFKFKKFFRXXXNNNNNNNNNNNNNNNNNNNMNXNNNNNNNNNNNNNNXXNNNNNNNNNNNNMOXMNXXNNNNNNNNONMNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNCNNNNNNMMNNNNNFFNNNFNNNFFNNNFFNNNNFFNNNNNNNNNNNNNNNNNNFFFFNNNNNNNFFNFNNNFFFNFNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNHNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNNNNNNNNNNNNHNNNNNNNNNNNNNNNHNNNNNNNNHHNNNNNNNNNNNNHNNNNNNNNNNNNNHNNNNNNHNNNNNNNNNNNNNNNNNHNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNFNNNNNNNNHNNNNNNEFEEIKMNMNONNNNNCOONMNONOMNONOMNOOOONMNONHOCONMNMNOMNOOCMNOOOMNOMNMNOOMNOCOOONMNMNMNOOOOONNNNNPPFFRGGKFPPPPPONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOCNNMNNNNNNNNNNNNNNNNNNNNNNNONNNNNOFFFPGFFFFFFPONNNNNNNNNNNNNNNNNNNNOONNNNNNNNNNNNNNNNNNNNNNNNOONNNNOOOOOOONNNNNNNNNNNNNNNNNNNNNNNOONONNNNNNNNNNNNONOOOOOOOOOOOOOONNNNNNNNHHNNNNNNNNNNNNNNNNNNNNNNNOOONNNNNNNNNNONNNNNNNNNNNNNOOOFPPPPPFFGFPGGPPIIIIIFFPPGFPPPPPFPPGPFPPPPPPFJJPPFFPPPFGPPFGPPPFPPPPPFGIIIIIPFPFGPPFPPPPGPPJJPOONONOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOONNNNNOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNOOOOOOOOONNNNNNOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOONNONOOOOOOOOOOOOOOOOONOOOOOOOOOOOOOOOOOOOOOOOONOOOOOOOOOOOONNNNNNOOOOOOOOOOOOOOOOOOONOOOONNOOOOOONNNOOOOOOOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOONOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNOOKKKTKKMMNMNMMNMMNNMNMMNNMNMMMNMNMNMNMMMNN","n":["Err","InvalidBasePathURL","InvalidCodegenDirectory","InvalidDefinitionName","InvalidDefinitionPath","InvalidHost","Io","Json","MissingArrayItem","MissingDefinitionName","MissingParametersInPath","Ok","PaperClipError","PaperClipResult","RelativePathNotUnique","Templating","UnsupportedOpenAPIVersion","Validation","Yaml","actix","api_v2_schema","borrow","borrow_mut","fmt","fmt","from","from","from","from","from","from","into","to_string","try_from","try_into","type_id","util","v2","vzip","AcceptedJson","Apiv2Header","Apiv2Schema","Apiv2Security","App","CreatedJson","HttpResponseWrapper","Mountable","NoContent","OpenApiExt","OperationModifier","ResponderWrapper","ResponseWrapper","Wrapper","api_v2_errors","api_v2_errors_overlay","api_v2_operation","app_data","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build","configure","data_factory","default_service","definitions","definitions","delete","external_resource","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","get","head","into","into","into","into","into","into","into","into_future","is_visible","name","name","operation","operations","operations","patch","path","poll","post","put","raw_schema","raw_schema","respond_to","respond_to","respond_to","respond_to","respond_to","respond_to","responder","route","security_definitions","security_definitions","service","to_string","to_string","to_string","trim_base_path","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_poll","type_id","type_id","type_id","type_id","type_id","type_id","type_id","update_definitions","update_operations","update_parameter","update_response","update_response","update_response","update_response","update_security","update_security_definitions","vzip","vzip","vzip","vzip","vzip","vzip","vzip","web","with_json_spec_at","with_json_spec_v3_at","with_raw_json_spec","with_raw_json_spec_v3","with_swagger_ui_at","wrap","wrap_api","wrap_api_with_spec","wrap_fn","Accepted","AlreadyReported","BadGateway","BadRequest","Bytes","BytesMut","Conflict","Continue","Created","Data","ExpectationFailed","FailedDependency","Forbidden","Form","FormConfig","Found","GatewayTimeout","Gone","HttpRequest","HttpResponse","ImATeapot","ImUsed","InsufficientStorage","InternalServerError","Json","JsonConfig","LengthRequired","Locked","LoopDetected","MethodNotAllowed","MisdirectedRequest","MovedPermanently","MultiStatus","MultipleChoices","NetworkAuthenticationRequired","NoContent","NonAuthoritativeInformation","NotAcceptable","NotExtended","NotFound","NotImplemented","NotModified","Ok","PartialContent","Path","PathConfig","Payload","PayloadConfig","PayloadTooLarge","PaymentRequired","PermanentRedirect","PreconditionFailed","PreconditionRequired","Processing","ProxyAuthenticationRequired","Query","QueryConfig","RangeNotSatisfiable","ReqData","RequestHeaderFieldsTooLarge","RequestTimeout","ResetContent","Resource","Route","Scope","SeeOther","ServiceConfig","ServiceUnavailable","SwitchingProtocols","TemporaryRedirect","TooManyRequests","Unauthorized","UnavailableForLegalReasons","UnprocessableEntity","UnsupportedMediaType","UpgradeRequired","UriTooLong","UseProxy","VariantAlsoNegotiates","VersionNotSupported","advance","advance","advance_mut","app_config","app_data","app_data","app_data","app_data","as_mut","as_ref","as_ref","as_ref","block","body","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build","capacity","chunk","chunk","chunk_mut","clear","clear","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","cmp","cmp","cmp","cmp","cmp","compare","compare","compare","compare","compare","configure","conn_data","connection_info","content_type","content_type_required","copy_from_slice","copy_to_bytes","copy_to_bytes","default","default","default","default","default","default","default","default","default_service","default_service","definitions","definitions","definitions","delete","deref","deref","deref","deref","deref","deref","deref","deref","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deserialize","drop","drop","drop","drop_body","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","error","error_handler","error_handler","error_handler","error_handler","extend","extend","extend","extend_from_slice","extensions","extensions","extensions_mut","extensions_mut","external_resource","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","freeze","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_error","from_iter","from_iter","from_iter","from_query","from_request","from_request","from_request","from_request","from_request","from_request","from_request","from_request","from_request","from_static","full_url","get","get_ref","guard","guard","guard","hash","hash","head","head","head","head_mut","headers","headers","headers","headers_mut","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into_body","into_factory","into_inner","into_inner","into_inner","into_inner","into_inner","into_inner","into_inner","into_iter","into_iter","into_iter","into_iter","into_parts","is_empty","is_empty","is_unique","keep_alive","len","len","limit","limit","limit","map_body","map_into_boxed_body","map_into_left_body","map_into_right_body","match_info","match_name","match_pattern","method","method","method","mimetype","name","name","new","new","new","new","new","new","new","new","new_service","operations","operations","operations","options","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","patch","path","path","path","path","peer_addr","poll_next","poll_next","poll_next","post","put","put","put_bytes","put_slice","query_string","raw_schema","register","register","remaining","remaining","remaining_mut","reserve","resize","resource","resource_map","resource_path","resource_path","resource_path","resource_path","respond_to","respond_to","respond_to","respond_to","respond_to","route","route","route","scope","security_definitions","security_definitions","security_definitions","serialize","serialize","serialize","service","service","service","set_body","set_len","size","size","slice","slice_ref","spare_capacity_mut","split","split_off","split_off","split_to","split_to","status","status_mut","take_payload","to","to","to","to_bytes","to_bytes_limited","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","to_string","to_string","to_string","truncate","truncate","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into_bytes","try_into_bytes","try_into_mut","try_into_value","try_poll_next","try_reclaim","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","unsplit","update_definitions","update_definitions","update_definitions","update_operations","update_operations","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_response","upgrade","uri","url_for","url_for_static","version","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","with_body","with_capacity","wrap","wrap","wrap_fn","wrap_fn","write_fmt","write_str","zeroed","Ready","borrow","borrow_mut","definitions","from","into","into_future","operation","poll","ready","security_definitions","try_from","try_into","try_poll","type_id","vzip","DefaultEmitter","DefaultSchema","Emitter","EmitterState","ResolvableApi","Schema","additional_properties","additional_properties","additional_properties_mut","additional_properties_mut","base_path","borrow","borrow_mut","clone","clone_into","clone_to_uninit","codegen","coders","consumes","contains_any","data_type","data_type","data_type","default","definitions","description","description","description","deserialize","enum_","enum_variants","enum_variants","example","extensions","external_docs","extra_props","fmt","format","format","format","from","from_reader","host","im","info","into","is_cyclic","is_cyclic","items","items","items","items_mut","items_mut","maximum","minimum","models","name","name","parameters","paths","produces","properties","properties","properties","properties_mut","properties_mut","reference","reference","reference","required","required_properties","required_properties","responses","schema","schemes","security","security_definitions","serialize","set_cyclic","set_cyclic","set_name","set_name","set_reference","set_reference","spec_format","support_crates","swagger","tags","title","to_owned","try_from","try_into","type_id","vzip","App","Crate","CrateMeta","DefaultEmitter","Definition","EmitMode","EmittedUnit","Emitter","EmitterState","Known","KnownButAnonymous","Module","None","Objects","authors","base_url","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build_def","build_def","clone","clone","clone","clone_into","clone_into","clone_into","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","def_anon_name","def_anon_name","def_mod_path","def_mod_path","def_name","def_name","def_ns_name","def_ns_name","default","default","default","enum_variant","enum_variant","eq","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","from","from","from","from","from","from","generate","generate","into","into","into","into","into","mod_prefix","mode","name","no_root","ns_sep","object","set_meta","set_url","state","state","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","unknown_op_mod_path","unknown_op_mod_path","unknown_op_object","unknown_op_object","version","vzip","vzip","vzip","vzip","vzip","working_dir","ApiObject","ApiObjectBuilderImpl","ApiObjectImpl","Enum","ObjectContainer","ObjectField","ObjectVariant","OpRequirement","Parameter","PathOps","Response","Struct","body_required","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","boxed","child_req_fields","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","contains_any","decoding","default","default","default","default","delimiting","deprecated","description","description","description","description","encoding","fields","fields_mut","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","headers","id","impl_repr","inner","into","into","into","into","into","into","into","into","into","into","is_enum","is_file","is_required","is_string_enum","listable","name","name","name","name","needs_any","params","params","path","paths","presence","req","required","response","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_pascal_case","to_snake_case","to_string","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","ty_path","ty_path","ty_path","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","value","variants","variants_mut","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","with_name","fields","is_string","variants","Api","Array","Binary","Body","Boolean","Byte","Coder","Coders","CollectionFormat","Contact","Csv","DataType","DataTypeFormat","Date","DateTime","DefaultApiRaw","DefaultOperationRaw","DefaultParameterRaw","DefaultPathItemRaw","DefaultResponseRaw","DefaultSchema","DefaultSchemaRaw","Delete","Double","Either","ExternalDocs","File","Float","FormData","Get","Head","Header","Header","Http","HttpMethod","Https","Info","Int32","Int64","Integer","Ip","IpV4","IpV6","Items","JSON_CODER","JSON_MIME","Json","Left","License","MediaRange","Multi","Number","Object","Operation","OperationProtocol","Options","Other","Parameter","ParameterIn","Password","Patch","Path","PathItem","Pipes","Post","Put","Query","Raw","Reference","Resolvable","ResolvableApi","ResolvableOperation","ResolvableParameter","ResolvablePathItem","ResolvableResponse","Resolved","Response","Right","SecurityScheme","SpecFormat","Ssv","String","Tag","Tsv","Url","Uuid","V2","Version","Ws","Wss","YAML_CODER","YAML_MIME","Yaml","allow_empty_value","allow_empty_value","allows_body","any_value","append_map","auth_url","base_path","base_path","base_path","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","builtin","check","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","cmp","cmp","cmp","cmp","cmp","coder","coders","coders","coders","collection_format","collection_format","collection_format","collection_format","compare","compare","compare","compare","compare","consumes","consumes","consumes","consumes","consumes","consumes","contact","data_type","data_type","data_type","data_type","data_type","data_type","decoder_path","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","definitions","definitions","definitions","deprecated","deprecated","deprecated","deref","deref","deref","deref_mut","deref_mut","deref_mut","description","description","description","description","description","description","description","description","description","description","description","description","description","description","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","email","encoder_path","enum_","enum_","enum_","enum_","enum_","enum_","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","error_path","example","example","exclusive_maximum","exclusive_maximum","exclusive_maximum","exclusive_maximum","exclusive_minimum","exclusive_minimum","exclusive_minimum","exclusive_minimum","extensions","extensions","extensions","extensions","external_docs","external_docs","external_docs","external_docs","extra_props","extra_props","flow","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","format","format","format","format","format","format","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","get_description","headers","headers","host","host","host","in_","in_","in_","info","info","info","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","is_primitive","items","items","items","items","items","items","left","left_mut","license","matching_coder","max_items","max_items","max_items","max_items","max_length","max_length","max_length","max_length","maximum","maximum","maximum","maximum","maximum","maximum","methods","methods","methods","mime","min_items","min_items","min_items","min_items","min_length","min_length","min_length","min_length","minimum","minimum","minimum","minimum","minimum","minimum","multiple_of","multiple_of","multiple_of","multiple_of","name","name","name","name","name","name","normalize","operation_id","operation_id","operation_id","parameters","parameters","parameters","parameters","parameters","parameters","parameters","parameters","parameters","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","path_parameters_map","paths","paths","paths","pattern","pattern","pattern","pattern","prefer","produces","produces","produces","produces","produces","produces","properties","properties","reference","reference","reference","remove_refs","required","required","required","required","resolve","resource_path","responses","responses","responses","responses","responses","responses","retain_ref","right","right_mut","schema","schema","schema","schema","schemes","schemes","schemes","schemes","schemes","schemes","scopes","security","security","security","security","security","security","security_definitions","security_definitions","security_definitions","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","set_parameter_names_from_path_template","spec_format","spec_format","spec_format","summary","summary","summary","support_crates","support_crates","support_crates","swagger","swagger","swagger","tags","tags","tags","tags","tags","tags","terms_of_service","title","title","title","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","to_string","token_url","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","unique_items","unique_items","unique_items","unique_items","update_definitions","url","url","url","version","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","new","old","Apiv2Errors","Apiv2Operation","Apiv2Schema","ERROR_MAP","Schema","TypedData","additional_properties","additional_properties_mut","contains_any","data_type","data_type","definitions","description","description","enum_variants","format","format","header_parameter_schema","is_cyclic","is_visible","items","items_mut","max","min","name","name","operation","properties","properties_mut","raw_schema","reference","required","required_properties","schema_with_ref","security_definitions","security_scheme","set_cyclic","set_name","set_reference","update_definitions","update_error_definitions"],"q":[[0,"paperclip"],[39,"paperclip::actix"],[178,"paperclip::actix::web"],[837,"paperclip::util"],[853,"paperclip::v2"],[947,"paperclip::v2::codegen"],[1059,"paperclip::v2::codegen::object"],[1246,"paperclip::v2::codegen::object::ObjectContainer"],[1249,"paperclip::v2::models"],[2130,"paperclip::v2::models::Resolvable"],[2132,"paperclip::v2::schema"],[2173,"paperclip::error"],[2174,"core::fmt"],[2175,"tinytemplate::error"],[2176,"std::io::error"],[2177,"serde_json::error"],[2178,"serde_yaml::error"],[2179,"paperclip_core::error"],[2180,"alloc::string"],[2181,"core::result"],[2182,"core::any"],[2183,"paperclip_actix::app"],[2184,"actix_web::service"],[2185,"actix_web::error::error"],[2186,"actix_service"],[2187,"actix_web::app"],[2188,"paperclip_actix::web"],[2189,"core::ops::function"],[2190,"core::future::future"],[2191,"paperclip_actix"],[2192,"paperclip_core::v2::models"],[2193,"alloc::collections::btree::map"],[2194,"core::convert"],[2195,"paperclip_core::v2::actix"],[2196,"serde::ser"],[2197,"paperclip_core::v2::schema"],[2198,"core::option"],[2199,"core::pin"],[2200,"core::task::wake"],[2201,"core::task::poll"],[2202,"actix_web::response::responder"],[2203,"actix_web::request"],[2204,"actix_web::response::response"],[2205,"serde_json::value"],[2206,"actix_http::body::message_body"],[2207,"actix_service::transform"],[2208,"core::clone"],[2209,"actix_web::response::builder"],[2210,"bytes::bytes"],[2211,"bytes::bytes_mut"],[2212,"actix_web::config"],[2213,"actix_web::resource"],[2214,"actix_web::scope"],[2215,"actix_web::types::path"],[2216,"actix_web::error"],[2217,"core::marker"],[2218,"http::status"],[2219,"bytes::buf::uninit_slice"],[2220,"actix_web::data"],[2221,"actix_web::request_data"],[2222,"actix_web::types::form"],[2223,"actix_web::types::json"],[2224,"actix_web::types::payload"],[2225,"actix_web::types::query"],[2226,"core::cmp"],[2227,"actix_web::info"],[2228,"core::cell"],[2229,"mime"],[2230,"core::default"],[2231,"alloc::sync"],[2232,"serde::de"],[2233,"alloc::vec"],[2234,"core::iter::traits::collect"],[2235,"actix_http::extensions"],[2236,"http::byte_str"],[2237,"alloc::boxed"],[2238,"http::header::name"],[2239,"actix_http::responses::response"],[2240,"actix_http::payload"],[2241,"url"],[2242,"actix_web::guard"],[2243,"core::hash"],[2244,"actix_http::responses::head"],[2245,"actix_http::requests::head"],[2246,"actix_http::header::map"],[2247,"actix_http::body::either"],[2248,"actix_router::url"],[2249,"actix_router::path"],[2250,"http::method"],[2251,"core::net::socket_addr"],[2252,"bytes::buf::buf_impl"],[2253,"actix_web::rmap"],[2254,"actix_router::pattern"],[2255,"actix_http::body::size"],[2256,"core::ops::range"],[2257,"core::mem::maybe_uninit"],[2258,"actix_web::route"],[2259,"actix_web::extract"],[2260,"actix_web::handler"],[2261,"actix_http::body::utils"],[2262,"http::header::value"],[2263,"http::uri"],[2264,"http::version"],[2265,"paperclip_core::util"],[2266,"std::io"],[2267,"alloc::collections::btree::set"],[2268,"paperclip::v2::codegen::state"],[2269,"paperclip::v2::codegen::emitter"],[2270,"anyhow"],[2271,"std::path"],[2272,"core::iter::traits::iterator"],[2273,"paperclip::v2::codegen::impls"],[2274,"paperclip_core::v2::extensions"],[2275,"openapiv3::parameter"],[2276,"openapiv3::request_body"],[2277,"openapiv3::schema"],[2278,"alloc::borrow"],[2279,"std::sync::rwlock"],[2280,"paperclip_core"],[2281,"paperclip_macros"],[2282,"actix_web::web"],[2283,"paperclip_core::v2"]],"i":[214,3,3,3,3,3,3,3,3,3,3,214,0,0,3,3,3,3,3,0,0,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,70,0,0,0,14,57,60,14,50,37,42,43,57,60,14,50,37,42,43,14,14,14,14,32,50,0,14,37,37,42,42,43,43,57,60,14,50,37,42,43,0,0,57,60,14,50,37,42,43,50,50,37,42,50,32,50,0,32,50,0,0,37,42,57,60,50,37,42,43,50,14,32,50,14,37,42,43,14,57,60,14,50,37,42,43,57,60,14,50,37,42,43,50,57,60,14,50,37,42,43,54,32,54,54,37,42,43,54,54,57,60,14,50,37,42,43,0,14,14,14,14,14,14,70,70,14,59,59,59,59,0,0,59,59,59,0,59,59,59,0,0,59,59,59,0,0,59,59,59,59,0,0,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,0,0,0,0,59,59,59,59,59,59,59,0,0,59,0,59,59,59,0,0,0,59,0,59,59,59,59,59,59,59,59,59,59,59,59,59,74,76,76,58,79,81,23,58,76,74,76,84,0,59,79,81,61,23,74,74,76,76,59,135,89,58,91,99,92,107,93,84,94,95,96,97,79,81,61,23,74,76,76,59,135,89,58,91,99,92,107,93,84,94,95,96,97,59,76,74,76,76,74,76,74,76,89,58,91,92,93,94,95,96,97,74,76,89,58,91,92,93,94,95,96,97,74,76,89,58,91,92,93,94,95,96,97,74,76,99,84,96,74,76,99,84,96,81,58,58,93,93,74,74,76,74,76,89,92,93,94,95,97,79,81,79,81,23,0,74,76,89,91,99,107,84,96,76,99,107,84,96,89,74,76,58,59,74,74,74,74,74,74,74,76,76,76,76,76,76,76,99,84,96,74,74,74,74,76,76,76,76,99,99,99,99,84,84,84,84,96,96,96,96,59,92,93,94,97,76,76,76,76,59,58,59,58,23,74,74,74,76,76,76,59,89,58,91,99,99,107,107,84,84,96,96,76,79,81,61,23,23,74,74,74,74,74,74,74,74,74,76,76,76,76,59,59,59,59,59,135,89,89,58,91,99,92,107,93,84,84,84,94,95,96,97,59,74,76,76,96,74,135,89,58,91,99,107,84,96,74,58,0,89,79,81,61,74,76,0,59,58,59,59,58,58,59,79,81,61,23,74,76,59,135,89,58,91,99,92,107,93,84,94,95,96,97,59,61,135,89,91,99,107,84,96,74,74,76,76,59,74,76,74,59,74,76,92,93,95,59,59,59,59,58,58,58,0,61,58,95,79,107,79,81,61,74,76,59,89,95,61,79,81,23,0,74,74,74,74,74,74,76,76,76,76,76,76,99,84,96,0,79,81,23,58,58,74,76,135,0,0,76,76,76,58,107,79,81,74,76,76,76,76,0,58,99,107,84,96,74,76,59,99,107,79,81,23,0,79,81,23,89,99,107,0,81,23,59,76,74,76,74,74,76,76,74,76,74,76,59,59,58,0,79,61,135,135,74,76,89,58,91,92,93,94,95,96,97,99,107,84,96,74,76,79,81,61,23,74,76,59,135,89,58,91,99,92,107,93,84,94,95,96,97,79,81,61,23,74,76,59,135,89,58,91,99,92,107,93,84,94,95,96,97,74,76,74,74,135,76,79,81,61,23,74,76,59,135,89,58,91,99,92,107,93,84,94,95,96,97,76,99,84,96,81,23,99,107,84,84,84,84,84,84,84,84,84,84,84,84,84,84,96,107,59,58,58,58,58,79,81,61,23,74,76,59,135,89,58,91,99,92,107,93,84,94,95,96,97,59,76,79,81,79,81,76,76,76,0,161,161,161,161,161,161,161,161,0,161,161,161,161,161,161,0,0,0,0,0,0,162,165,162,165,168,165,165,165,165,165,0,168,168,162,162,165,165,165,168,162,165,165,165,165,162,165,165,168,168,165,165,162,165,165,165,0,168,0,168,165,162,165,162,165,165,162,165,165,165,0,162,165,168,168,168,162,165,165,162,165,162,165,165,165,162,165,168,0,168,168,168,165,162,165,162,165,162,165,168,168,168,168,165,165,165,165,165,165,177,177,0,0,173,0,0,0,0,174,174,177,174,174,176,171,181,174,171,176,177,181,174,171,176,177,173,173,171,176,177,171,176,177,171,176,177,177,173,173,173,173,173,173,173,173,171,176,177,173,173,177,177,177,177,177,174,171,176,177,181,181,174,171,176,177,173,173,181,174,171,176,177,171,176,176,176,171,0,171,171,173,181,171,176,177,181,174,171,176,177,181,174,171,176,177,181,174,171,176,177,173,173,173,173,176,181,174,171,176,177,171,0,0,0,184,0,0,0,0,0,0,0,184,186,190,191,183,184,185,186,187,188,180,189,190,191,183,184,185,186,187,188,180,189,189,189,183,184,185,186,187,188,180,189,183,184,185,186,187,188,180,189,183,184,185,186,187,188,180,189,187,186,183,184,185,187,188,186,183,186,188,189,186,183,183,190,191,183,183,184,185,186,187,188,180,189,190,191,183,184,185,186,187,188,180,189,187,186,183,183,190,191,183,184,185,186,187,188,180,189,184,187,189,184,186,183,188,180,189,189,185,186,183,183,188,185,188,186,183,184,185,186,187,188,180,189,0,0,190,191,183,190,191,183,184,185,186,187,188,180,189,190,191,183,184,185,186,187,188,180,189,187,188,189,190,191,183,184,185,186,187,188,180,189,180,183,183,190,191,183,184,185,186,187,188,180,189,183,215,216,216,0,166,167,203,166,167,0,0,0,0,204,0,0,167,167,0,0,0,0,0,0,0,49,167,0,0,166,167,203,49,49,0,203,206,0,206,0,167,167,166,167,167,167,0,0,0,196,164,0,0,204,166,166,0,0,49,167,0,0,167,49,203,0,204,49,49,203,163,0,0,0,0,0,0,0,163,0,164,0,0,204,166,0,204,167,167,195,0,206,206,0,0,196,217,46,49,194,62,62,168,218,71,192,193,194,195,166,167,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,164,163,192,193,194,195,166,167,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,164,163,194,46,192,193,194,195,166,167,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,164,163,192,193,194,195,166,167,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,164,163,192,193,194,195,195,166,166,167,71,196,196,33,197,198,199,62,200,201,64,46,202,203,203,204,204,48,205,206,206,47,207,49,49,164,163,192,203,204,206,49,196,168,218,71,217,46,202,207,192,203,204,206,49,168,218,182,219,71,48,197,217,33,165,46,202,207,194,193,194,195,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,47,207,163,217,46,207,168,218,71,182,219,48,193,164,163,193,164,163,217,182,219,220,33,165,197,62,200,201,46,48,47,207,192,193,194,195,166,167,71,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,164,163,198,194,217,33,165,46,202,207,192,195,166,167,196,46,202,203,204,205,206,49,192,192,192,192,195,195,195,195,166,166,166,166,167,167,167,167,196,196,196,196,203,203,203,203,204,204,204,204,205,205,205,205,206,206,206,206,49,49,49,49,194,33,165,217,46,202,207,217,46,202,207,168,218,71,197,168,218,71,200,33,165,62,192,193,194,195,166,167,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,49,164,163,217,33,165,46,202,207,192,193,194,195,166,166,167,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,49,164,164,163,163,163,163,220,47,168,218,71,217,62,46,168,218,71,192,193,194,195,166,167,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,164,163,166,217,33,165,46,202,207,164,164,197,193,217,46,202,207,217,46,202,207,217,33,165,46,202,207,221,222,64,196,217,46,202,207,217,46,202,207,217,33,165,46,202,207,217,46,202,207,217,198,199,62,200,46,64,182,219,48,168,218,221,222,182,219,71,64,48,192,203,204,206,49,71,168,218,71,217,46,202,207,194,168,218,182,219,71,48,33,165,33,165,205,33,217,33,165,46,71,164,168,218,182,219,71,48,33,164,164,217,220,46,47,168,218,182,219,71,48,62,168,218,182,219,71,48,168,218,71,192,193,194,195,166,167,71,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,164,163,48,168,218,71,182,219,48,168,218,71,168,218,71,168,218,182,219,71,48,197,33,165,197,192,193,194,195,166,167,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,164,163,167,49,62,192,193,194,195,166,167,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,164,163,192,193,194,195,166,167,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,164,163,62,192,193,194,195,166,167,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,164,163,217,46,202,207,62,198,199,201,197,192,193,194,195,166,167,71,196,33,197,198,199,62,200,201,64,46,202,203,204,48,205,206,47,207,49,164,163,223,223,0,0,0,224,0,0,162,162,162,162,225,56,162,40,162,162,225,40,162,56,162,162,225,225,162,40,56,162,162,40,162,40,162,40,56,40,162,162,162,224,224],"f":"`````````````````````{b{{b{c}}}{}}{{{b{d}}}{{b{dc}}}{}}{{{b{f}}{b{dh}}}j}0{lf}{cc{}}{nf}{A`f}{Abf}{Adf}{{}c{}}{bAf}{c{{Ah{e}}}{}{}}{{}{{Ah{c}}}{}}{bAj}``4`````````````````{{{Al{c}}e}{{Al{c}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{}}>>>>>>>======={{{Al{c}}}{{Bl{c}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}}{{{Al{c}}e}{{Al{c}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{{C`{{b{dBn}}}}}}{{{Al{c}}k}{{Al{c}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{}Cb{{Cf{}{{Cd{{Ah{eg}}}}}}}{{Ch{}{{Cd{i}}}}}}{{{Al{c}}g}{{Al{c}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{{Bj{An}{{B`{Bb}}{Cj{Cl}}{Bd{Bf}}{Bh{Bb}}}}}{{Cn{eAn}}}}{{{b{dD`}}}{{Dd{AfDb}}}}{{}{{Dd{AfDb}}}}`{{{Al{c}}eg}{{Al{c}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{{Dh{Df}}}{{Dh{Df}}}}{{{b{{Dj{c}}}}{b{dh}}}{{Ah{BbDl}}}{CbDnE`}}{{{b{{Dj{c}}}}{b{dh}}}{{Ah{BbDl}}}{EbDnE`}}{{{b{{Ed{c}}}}{b{dh}}}{{Ah{BbDl}}}{CbDnE`}}{{{b{{Ed{c}}}}{b{dh}}}{{Ah{BbDl}}}{EbDnE`}}{{{b{Ef}}{b{dh}}}{{Ah{BbDl}}}}0{cc{}}000000``{{}c{}}000000{{}}{{}Eh}{{}{{Ej{Af}}}}0{{}{{F`{{El{Db}}{En{Db}}}}}}{{{b{dD`}}}{{Dd{Fb{F`{{El{Db}}{En{Db}}}}}}}}``{{{b{D`}}}{{b{Df}}}}{{{Ff{{b{d{Fd{eg}}}}}}{b{dFh}}}Fj{FlFn}{{Cf{}{{Cd{c}}}}}G`}``{{}Db}0{{Gb{b{Gd}}}Gf}{{{Gh{c}}{b{Gd}}}GfFn}{{{Fd{ce}}{b{Gd}}}GfFn{}}{{{Dj{c}}{b{Gd}}}Gf{DnE`}}{{{Ed{c}}{b{Gd}}}Gf{DnE`}}{{Ef{b{Gd}}}Gf}`{{{Al{c}}{b{Df}}Gj}{{Al{c}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}}{{{b{dD`}}}{{Dd{AfGl}}}}{{}{{Dd{AfGl}}}}{{{Al{c}}e}{{Al{c}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{D`Gn}}{bAf}00{{{Al{c}}}{{Al{c}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}}{c{{Ah{e}}}{}{}}000000{{}{{Ah{c}}}{}}000000{{{Ff{{b{dc}}}}{b{dFh}}}Fj{}}{bAj}000000{{{b{d{Dd{AfDb}}}}}Bb}{{{b{dD`}}{b{d{Dd{Af{H`{{El{Db}}{En{Db}}}}}}}}}Bb}{{{b{d{F`{{El{Db}}{En{Db}}}}}}}Bb}00000{{{b{d{Dd{AfGl}}}}}Bb}{{}c{}}000000`{{{Al{c}}{b{Df}}}{{Al{c}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}}0{{{Al{c}}e}{{Al{c}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{{Hd{{Al{c}}Hb}{{Cd{{Al{c}}}}}}}}01{{{Al{c}}g}{{Al{{`{{Bj{An}{{B`{Bb}}{Cj{{Cl{e}}}}{Bd{Bf}}{Bh{Bb}}}}}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}Hf{{Hh{An}{{Cj{{Cl{e}}}}{Bd{Bf}}{Bh{Bb}}}}}}{{{Hl{}{{Hj{c}}}}}c{}}{{{Hl{}{{Hj{c}}}}{Hn{{El{Db}}{En{Db}}Db}}}c{}}{{{Al{c}}i}{{Al{{`{{Bj{An}{{B`{Bb}}{Cj{{Cl{e}}}}{Bd{Bf}}{Bh{Bb}}}}}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}Hf{{Cf{}{{Cd{{Ah{{Cl{e}}Bf}}}}}}}{{Ch{Anb}{{Cd{g}}}}I`}}{{}Ib}000``000`000``000``0000``000000000000000000````0000000``0`000```0`0000000000000{{{b{dId}}If}Bb}{{{b{dIh}}If}Bb}0{{{b{Gd}}}{{b{Ij}}}}{{{In{{Il{c}}}}e}{{In{{Il{c}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{}}{{{Jb{{J`{c}}}}e}{{Jb{{J`{c}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{}}{{{b{dBn}}c}{{b{dBn}}}{}}{{{b{Gd}}}{{Ej{{b{c}}}}}{}}{{{b{dIh}}}{{b{d{Jf{Jd}}}}}}{{{b{Id}}}{{b{{Jf{Jd}}}}}}{{{b{Ih}}}{{b{{Jf{Jd}}}}}}{{{b{{Jh{c}}}}}{{b{c}}}{}}{e{{`{{Cf{}{{Cd{{Ah{cJj}}}}}}}}}Jl{{C`{}{{Cd{c}}}}Jl}}{{{b{{Gf{c}}}}}{{b{c}}}{}}{b{{b{c}}}{}}000504000000000000000{{{b{d}}}{{b{dc}}}{}}00007000000000000000{JnIb}{{{b{Ih}}}If}87{{{b{dIh}}}{{b{dK`}}}}{{{b{dId}}}Bb}{{{b{dIh}}}Bb}{{{b{Id}}}Id}{{{b{Ih}}}Ih}{{{b{{Kb{c}}}}}{{Kb{c}}}Kd}{{{b{Gd}}}Gd}{{{b{{Kf{c}}}}}{{Kf{c}}}{I`I`}}{{{b{Kh}}}Kh}{{{b{Kj}}}Kj}{{{b{Kl}}}Kl}{{{b{Kn}}}Kn}{{{b{{L`{c}}}}}{{L`{c}}}I`}{{{b{Lb}}}Lb}{{b{b{dc}}}Bb{}}0000000000{bBb}0000000000{{{b{Id}}{b{Id}}}Ld}{{{b{Ih}}{b{Ih}}}Ld}{{{b{{Lf{c}}}}{b{{Lf{c}}}}}LdLh}{{{b{{Jh{c}}}}{b{{Jh{c}}}}}LdLh}{{{b{{L`{c}}}}{b{{L`{c}}}}}LdLh}{{b{b{c}}}Ld{}}0000{{{Jb{{J`{c}}}}e}{{Jb{{J`{c}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{{C`{{b{dBn}}}}}}{{{b{Gd}}}{{Ej{{b{c}}}}}{}}{{{b{Gd}}}{{Ll{Lj}}}}{{Kjc}Kj{{Ch{Ln}{{Cd{Eh}}}}JlM`}}{{KjEh}Kj}{{{b{{Jf{Jd}}}}}Id}{{{b{dId}}If}Id}{{{b{dIh}}If}Id}{{}Id}{{}Ih}{{}{{Kb{c}}}Mb}{{}Kh}{{}Kj}{{}Kl}{{}Kn}{{}Lb}{{{In{{Il{c}}}}g}{{In{{Il{c}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{{Bj{An}{{B`{Bb}}{Cj{Cl}}{Bd{Bf}}{Bh{Bb}}}}}{{Cn{eAn}}}}{{{Jb{{J`{c}}}}g}{{Jb{{J`{c}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{{Bj{An}{{B`{Bb}}{Cj{Cl}}{Bd{Bf}}{Bh{Bb}}}}}{{Cn{eAn}}}}{{{b{d{In{c}}}}}{{Dd{AfDb}}}{}}{{{b{d{Jb{c}}}}}{{Dd{AfDb}}}{}}{{{b{dBn}}}{{Dd{AfDb}}}}{{}Gj}{{{b{Id}}}{{b{{Jf{Jd}}}}}}{{{b{Ih}}}{{b{{Jf{Jd}}}}}}{{{b{{Kb{c}}}}}{{b{{Md{c}}}}}Kd}{{{b{{Kf{c}}}}}{{b{c}}}I`}{{{b{{Lf{c}}}}}{{b{c}}}{}}{{{b{{Mf{c}}}}}{{b{c}}}{}}{{{b{{Jh{c}}}}}b{}}{{{b{{L`{c}}}}}{{b{c}}}{}}{{{b{dIh}}}{{b{d{Jf{Jd}}}}}}{{{b{d{Lf{c}}}}}{{b{dc}}}{}}{{{b{d{Mf{c}}}}}{{b{dc}}}{}}{{{b{d{Jh{c}}}}}{{b{d}}}{}}{{{b{d{L`{c}}}}}{{b{dc}}}{}}{c{{Ah{{Kb{e}}}}}MhMj}{{{b{dId}}}Bb}{{{b{dIh}}}Bb}{{{b{dGd}}}Bb}{{{Gf{c}}}{{Gf{Bb}}}{}}{{{b{Id}}{b{{Jf{Jd}}}}}Eh}{{{b{Id}}{b{Df}}}Eh}{{{b{Id}}{b{{Ml{Jd}}}}}Eh}{{{b{Id}}{b{Af}}}Eh}{{{b{Id}}{b{{b{c}}}}}EhKd}{{{b{Id}}{b{Ih}}}Eh}{{{b{Id}}{b{Id}}}Eh}{{{b{Ih}}{b{{b{c}}}}}EhKd}{{{b{Ih}}{b{Ih}}}Eh}{{{b{Ih}}{b{{Jf{Jd}}}}}Eh}{{{b{Ih}}{b{Df}}}Eh}{{{b{Ih}}{b{{Ml{Jd}}}}}Eh}{{{b{Ih}}{b{Af}}}Eh}{{{b{Ih}}{b{Id}}}Eh}{{{b{{Lf{c}}}}{b{{Lf{c}}}}}EhMn}{{{b{{Jh{c}}}}{b{{Jh{c}}}}}EhMn}{{{b{{L`{c}}}}{b{{L`{c}}}}}EhMn}{{b{b{c}}}Eh{}}0000000000000000000{{{b{{Gf{c}}}}}{{Ej{{b{Bf}}}}}{}}{{Khc}Kh{{Ch{N`{b{Gd}}}{{Cd{Bf}}}}}}{{Kjc}Kj{{Ch{Nb{b{Gd}}}{{Cd{Bf}}}}JlM`}}{{Klc}Kl{{Ch{Nd{b{Gd}}}{{Cd{Bf}}}}JlM`}}{{Lbc}Lb{{Ch{Nf{b{Gd}}}{{Cd{Bf}}}}JlM`}}{{{b{dIh}}c}Bb{{Nj{}{{Nh{Jd}}}}}}{{{b{dIh}}c}Bb{{Nj{}{{Nh{{b{Jd}}}}}}}}{{{b{dIh}}c}Bb{{Nj{}{{Nh{Id}}}}}}{{{b{dIh}}{b{{Jf{Jd}}}}}Bb}{{{b{{Gf{c}}}}}{{Ll{Nl}}}{}}{{{b{Gd}}}{{Ll{Nl}}}}{{{b{d{Gf{c}}}}}{{Nn{Nl}}}{}}{{{b{Gd}}}{{Nn{Nl}}}}{{{b{dBn}}ce}{{b{dBn}}}{{Dh{Df}}}{{Dh{Df}}}}{{{b{Id}}{b{dh}}}{{Ah{BbDl}}}}00{{{b{Ih}}{b{dh}}}{{Ah{BbDl}}}}00{{{b{{Gf{c}}}}{b{dh}}}{{Ah{BbDl}}}Hf}{{{b{{Kb{c}}}}{b{dh}}}{{Ah{BbDl}}}{CbKd}}{{{b{Gd}}{b{dh}}}{{Ah{BbDl}}}}{{{b{{Kf{c}}}}{b{dh}}}{{Ah{BbDl}}}{CbI`}}{{{b{{Lf{c}}}}{b{dh}}}{{Ah{BbDl}}}Eb}{{{b{{Lf{c}}}}{b{dh}}}{{Ah{BbDl}}}Cb}{{{b{{Mf{c}}}}{b{dh}}}{{Ah{BbDl}}}Cb}{{{b{{Mf{c}}}}{b{dh}}}{{Ah{BbDl}}}Eb}{{{b{{Jh{c}}}}{b{dh}}}{{Ah{BbDl}}}Eb}{{{b{{Jh{c}}}}{b{dh}}}{{Ah{BbDl}}}Cb}{{{b{{L`{c}}}}{b{dh}}}{{Ah{BbDl}}}Cb}{{{b{{L`{c}}}}{b{dh}}}{{Ah{BbDl}}}Eb}{IhId}{cc{}}000{{{b{dO`}}}Bn}{ObId}{{{Od{{Jf{Jd}}}}}Id}{AfId}5{{{Ml{Jd}}}Id}{OfId}{{{b{Df}}}Id}7{{{b{{Jf{Jd}}}}}Id}{{{b{{Jf{Jd}}}}}Ih}{{{b{Df}}}Ih}{IdIh};;{IbGf}{{{Oh{c}}}{{Gf{c}}}{}}{BfGf}{{{Cl{c}}}{{Gf{c}}}{}}?{{{Md{c}}}{{Kb{c}}}Kd}{cc{}}000000{Ojc{}}1{c{{Jh{c}}}{}}2222{cGf{{Ol{Bf}}}}{cId{{Nj{}{{Nh{Jd}}}}}}{cIh{{Nj{}{{Nh{{b{Jd}}}}}}}}{cIh{{Nj{}{{Nh{Jd}}}}}}{{{b{Df}}}{{Ah{{L`{c}}Nf}}}On}{{{b{Gd}}{b{dA@`}}}}00000000{{{b{{Jf{Jd}}}}}Id}{{{b{Gd}}}A@b}{{}Gj}{{{b{{Kb{c}}}}}{{b{c}}}Kd}{{{In{{Il{c}}}}e}{{In{{Il{c}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}A@d}{{{Jb{{J`{c}}}}e}{{Jb{{J`{c}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}A@d}{{Gjc}GjA@d}{{{b{Id}}{b{dc}}}BbA@f}{{{b{Ih}}{b{dc}}}BbA@f}6{{{b{{Gf{c}}}}}{{b{A@h}}}{}}{{{b{Gd}}}{{b{A@j}}}}{{{b{d{Gf{c}}}}}{{b{dA@h}}}{}}{{{b{{Gf{c}}}}}{{b{A@l}}}{}}{{{b{Gd}}}{{b{A@l}}}}0{{{b{d{Gf{c}}}}}{{b{dA@l}}}{}}{{}c{}}0000000000000000000{{{Gf{c}}}c{}}1{A@nA@`}{{{Kb{c}}}{{Md{c}}}Kd}{{{Kf{c}}}cI`}{{{Lf{c}}}c{}}{{{Mf{c}}}c{}}{{{Jh{c}}}c{}}{{{L`{c}}}c{}}{Id}{{{b{Id}}}}{{{b{Ih}}}}{Ih}{{{Gf{c}}}{{AA`{{Gf{Bb}}c}}}{}}{{{b{Id}}}Eh}{{{b{Ih}}}Eh}1{{{b{{Gf{c}}}}}Eh{}}{{{b{Id}}}If}{{{b{Ih}}}If}{{KhIf}Kh}{{KjIf}Kj}{{KnIf}Kn}{{{Gf{c}}g}{{Gf{e}}}{}{}{{C`{{b{dA@h}}c}{{Cd{e}}}}}}{{{Gf{c}}}GfHf}{{{Gf{c}}}{{Gf{{AAb{ce}}}}}{}{}}{{{Gf{c}}}{{Gf{{AAb{ec}}}}}{}{}}{{{b{Gd}}}{{b{{AAf{AAd}}}}}}{{{b{Gd}}}{{Ej{{b{Df}}}}}}{{{b{Gd}}}{{Ej{Af}}}}{AAhGj}{{GjAAh}Gj}{{{b{Gd}}}{{b{AAh}}}}{{KnLn}Kn}{{{In{{Il{c}}}}{b{Df}}}{{In{{Il{c}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}}{{}{{Ej{Af}}}}{{{b{Df}}}In}{{{b{Df}}}Jb}{{}Gj}{{}Id}{{}Ih}{JnGf}{c{{Kb{c}}}{}}{IfKn}{{{b{Gj}}}}{{{b{d{In{c}}}}}{{Dd{Fb{F`{{El{Db}}{En{Db}}}}}}}{}}{{{b{d{Jb{c}}}}}{{Dd{Fb{F`{{El{Db}}{En{Db}}}}}}}{}}{{{b{dBn}}}{{Dd{Fb{F`{{El{Db}}{En{Db}}}}}}}}9{{{b{Id}}{b{{b{c}}}}}{{Ej{Ld}}}Kd}{{{b{Id}}{b{Af}}}{{Ej{Ld}}}}{{{b{Id}}{b{{Ml{Jd}}}}}{{Ej{Ld}}}}{{{b{Id}}{b{Df}}}{{Ej{Ld}}}}{{{b{Id}}{b{{Jf{Jd}}}}}{{Ej{Ld}}}}{{{b{Id}}{b{Id}}}{{Ej{Ld}}}}{{{b{Ih}}{b{Ih}}}{{Ej{Ld}}}}{{{b{Ih}}{b{{Jf{Jd}}}}}{{Ej{Ld}}}}{{{b{Ih}}{b{{b{c}}}}}{{Ej{Ld}}}Kd}{{{b{Ih}}{b{Af}}}{{Ej{Ld}}}}{{{b{Ih}}{b{{Ml{Jd}}}}}{{Ej{Ld}}}}{{{b{Ih}}{b{Df}}}{{Ej{Ld}}}}{{{b{{Lf{c}}}}{b{{Lf{c}}}}}{{Ej{Ld}}}AAj}{{{b{{Jh{c}}}}{b{{Jh{c}}}}}{{Ej{Ld}}}AAj}{{{b{{L`{c}}}}{b{{L`{c}}}}}{{Ej{Ld}}}AAj}{{}Gj}{{{b{{In{c}}}}}{{b{Df}}}{}}{{{b{{Jb{c}}}}}{{b{Df}}}{}}{{{b{Bn}}}{{b{Df}}}}{{{b{Gd}}}{{b{Df}}}}{{{b{Gd}}}{{Ej{AAl}}}}{{{Ff{{b{dId}}}}{b{dFh}}}{{Fj{{Ej{{Ah{Id}}}}}}}}{{{Ff{{b{dIh}}}}{b{dFh}}}{{Fj{{Ej{{Ah{Id}}}}}}}}{{{Ff{{b{dA@n}}}}{b{dFh}}}{{Fj{Ej}}}}88{{{b{dIh}}c}BbAAn}{{{b{dIh}}JdIf}Bb}{{{b{dIh}}{b{{Jf{Jd}}}}}Bb}7{{}Db}{{{In{{Il{e}}}}{b{dAB`}}}BbHf{{Bj{An}{{B`{Bb}}{Cj{{Cl{c}}}}{Bd{Bf}}{Bh{Bb}}}}}}{{{Jb{{J`{e}}}}{b{dAB`}}}BbHf{{Bj{An}{{B`{Bb}}{Cj{{Cl{c}}}}{Bd{Bf}}{Bh{Bb}}}}}}{{{b{Id}}}If}{{{b{Ih}}}If}0{{{b{dIh}}If}Bb}{{{b{dIh}}IfJd}Bb}{{{b{Df}}}In}{{{b{Gd}}}{{b{ABb}}}}{{{b{d}}}{{b{dAAf}}}}000{{Id{b{Gd}}}Gf}{{Ih{b{Gd}}}Gf}{{{Gf{c}}{b{Gd}}}GfHf}{{{Lf{c}}{b{Gd}}}GfDn}{{{Mf{c}}{b{Gd}}}GfDn}{{{In{{Il{c}}}}Gj}{{In{{Il{c}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}}{{{Jb{{J`{c}}}}{b{Df}}Gj}{{Jb{{J`{c}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}}{{{b{dBn}}{b{Df}}Gj}{{b{dBn}}}}{{{b{Df}}}Jb}{{{b{d{In{c}}}}}{{Dd{AfGl}}}{}}{{{b{d{Jb{c}}}}}{{Dd{AfGl}}}{}}{{{b{dBn}}}{{Dd{AfGl}}}}{{{b{{Kb{c}}}}e}AhDnABd}{{{b{{Lf{c}}}}e}AhDnABd}{{{b{{Mf{c}}}}e}AhDnABd}{cABfABh}{{{Jb{{J`{c}}}}e}{{Jb{{J`{c}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{D`Gn}}{{{b{dBn}}c}{{b{dBn}}}{D`Gn}}{{{Gf{c}}e}{{Gf{e}}}{}{}}{{{b{dIh}}If}Bb}{{{b{Id}}}ABj}{{{b{Ih}}}ABj}{{{b{Id}}c}Id{{ABl{If}}}}{{{b{Id}}{b{{Jf{Jd}}}}}Id}{{{b{dIh}}}{{b{d{Jf{{ABn{Jd}}}}}}}}{{{b{dIh}}}Ih}{{{b{dId}}If}Id}{{{b{dIh}}If}Ih}10{{{b{{Gf{c}}}}}Jn{}}{{{b{d{Gf{c}}}}}{{b{dJn}}}{}}{{{b{dGd}}}A@`}{eAC`ACb{{ACd{c}}}}{{{In{{Il{c}}}}g}{{In{{Il{c}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}ACb{{ACd{e}}}}{{Gje}GjACb{{ACd{c}}}}{A@n{{Ah{IdBf}}}}{{A@nIf}{{Ah{{Ah{IdBf}}ACf}}}}{bc{}}0000000000{bAf}000{{{b{dId}}If}Bb}{{{b{dIh}}If}Bb}{c{{Ah{e}}}{}{}}0000000000000000000{{}{{Ah{c}}}{}}0000000000000000000{Id{{Ah{IdId}}}}{Ih{{Ah{IdIh}}}}{Id{{Ah{IhId}}}}{Id{{Ah{ACh}}}}{{{Ff{{b{dc}}}}{b{dFh}}}{{Fj{{Ej{Ah}}}}}{}}{{{b{dIh}}If}Eh}{bAj}0000000000000000000{{{b{dIh}}Ih}Bb}{{{b{d{Dd{AfDb}}}}}Bb}00{{{b{d{Jb{c}}}}{b{d{Dd{Af{H`{{El{Db}}{En{Db}}}}}}}}}Bb{}}{{{b{dBn}}{b{d{Dd{Af{H`{{El{Db}}{En{Db}}}}}}}}}Bb}{{{b{d{F`{{El{Db}}{En{Db}}}}}}}Bb}00000000000000000{{{b{{Gf{c}}}}}Eh{}}{{{b{Gd}}}{{b{ACj}}}}{{{b{Gd}}{b{Df}}e}{{Ah{A@bACl}}}{{Dh{Df}}}{{Nj{}{{Nh{c}}}}}}{{{b{Gd}}{b{Df}}}{{Ah{A@bACl}}}}{{{b{Gd}}}ACn}{{}c{}}0000000000000000000{{Jnc}{{Gf{c}}}{}}{IfIh}{{{In{{Il{c}}}}g}{{In{{Il{{`{{Bj{An}{{B`{Bb}}{Cj{{Cl{e}}}}{Bd{Bf}}{Bh{Bb}}}}}}}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}Hf{{Hh{An}{{Cj{{Cl{e}}}}{Bd{Bf}}{Bh{Bb}}}}}}{{{Jb{{J`{c}}}}g}{{Jb{{J`{{`{{Bj{An}{{B`{Bb}}{Cj{{Cl{e}}}}{Bd{Bf}}{Bh{Bb}}}}}}}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}Hf{{Hh{An}{{Cj{{Cl{e}}}}{Bd{Bf}}{Bh{Bb}}}}}}{{{In{{Il{c}}}}i}{{In{{Il{{`{{Bj{An}{{B`{Bb}}{Cj{{Cl{e}}}}{Bd{Bf}}{Bh{Bb}}}}}}}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}Hf{{Cf{}{{Cd{{Ah{{Cl{e}}Bf}}}}}}}{{Ch{Anb}{{Cd{g}}}}I`}}{{{Jb{{J`{c}}}}g}{{Jb{{J`{{`{{Bj{An}{{B`{Bb}}{Cj{Cl}}{Bd{Bf}}{Bh{Bb}}}}}}}}}}}{{Bj{An}{{B`{Bb}}{Bd{Bf}}{Bh{Bb}}}}}{{Cf{}{{Cd{{Ah{ClBf}}}}}}}{{Ch{Anb}{{Cd{e}}}}I`}}{{{b{dIh}}AD`}{{Ah{BbDl}}}}{{{b{dIh}}{b{Df}}}{{Ah{BbDl}}}}6`{b{{b{c}}}{}}{{{b{d}}}{{b{dc}}}{}}{{}{{Dd{AfDb}}}}{cc{}}<{{}}{{}{{F`{{El{Db}}{En{Db}}}}}}{{{Ff{{b{d{ADb{c}}}}}}{b{dFh}}}{{Fj{c}}}{}}{c{{ADb{c}}}{}}{{}{{Dd{AfGl}}}}{c{{Ah{e}}}{}{}}{{}{{Ah{c}}}{}}{{{Ff{{b{dc}}}}{b{dFh}}}Fj{}}{bAj}{{}c{}}``````{{{b{ADd}}}{{Ej{{b{{ADh{Eh{ADf{ADd}}}}}}}}}}{{{b{ADj}}}{{Ej{{b{{ADh{Eh{ADf{ADj}}}}}}}}}}{{{b{dADd}}}{{Ej{{b{d{ADh{Eh{ADf{ADd}}}}}}}}}}{{{b{dADj}}}{{Ej{{b{d{ADh{Eh{ADf{ADj}}}}}}}}}}`{b{{b{c}}}{}}{{{b{d}}}{{b{dc}}}{}}{{{b{ADj}}}ADj}{{b{b{dc}}}Bb{}}{bBb}```{{{b{ADd}}}Eh}{{{b{ADd}}}{{Ej{ADl}}}}{{{b{ADj}}}{{Ej{ADl}}}}`{{}ADj}`{{{b{ADd}}}{{Ej{{b{Df}}}}}}{{{b{ADj}}}{{Ej{{b{Df}}}}}}`{c{{Ah{ADj}}}Mh}`{{{b{ADd}}}{{Ej{{b{{Jf{Hb}}}}}}}}{{{b{ADj}}}{{Ej{{b{{Jf{Hb}}}}}}}}````{{{b{ADj}}{b{dh}}}{{Ah{BbDl}}}}{{{b{ADd}}}{{Ej{{b{ADn}}}}}}{{{b{ADj}}}{{Ej{{b{ADn}}}}}}`{cc{}}{c{{Ah{{AE`{e}}f}}}AEb{MjADd}}```{{}c{}}>{{{b{ADj}}}Eh}{{{b{ADd}}}{{Ej{{b{{ADf{ADd}}}}}}}}{{{b{ADj}}}{{Ej{{b{{ADf{ADj}}}}}}}}`{{{b{dADd}}}{{Ej{{b{d{ADf{ADd}}}}}}}}{{{b{dADj}}}{{Ej{{b{d{ADf{ADj}}}}}}}}```?>```{{{b{ADd}}}{{Ej{{b{{Dd{Af{ADf{ADd}}}}}}}}}}{{{b{ADj}}}{{Ej{{b{{Dd{Af{ADf{ADj}}}}}}}}}}`{{{b{dADd}}}{{Ej{{b{d{Dd{Af{ADf{ADd}}}}}}}}}}{{{b{dADj}}}{{Ej{{b{d{Dd{Af{ADf{ADj}}}}}}}}}}{{{b{ADd}}}{{Ej{{b{Df}}}}}}{{{b{ADj}}}{{Ej{{b{Df}}}}}}``{{{b{ADd}}}{{Ej{{b{{AEd{Af}}}}}}}}{{{b{ADj}}}{{Ej{{b{{AEd{Af}}}}}}}}`````{{{b{ADj}}c}AhABd}{{{b{dADd}}Eh}Bb}{{{b{dADj}}Eh}Bb}{{{b{dADd}}{b{Df}}}Bb}{{{b{dADj}}{b{Df}}}Bb}{{{b{dADd}}Af}Bb}{{{b{dADj}}Af}Bb}`````{bc{}}{c{{Ah{e}}}{}{}}{{}{{Ah{c}}}{}}{bAj}{{}c{}}```````````````{{{b{AEf}}}Af}{b{{b{c}}}{}}0000{{{b{d}}}{{b{dc}}}{}}0000``{{{b{AEf}}}AEf}{{{b{AF`}}}AF`}{{{b{AFb}}}AFb}{{b{b{dc}}}Bb{}}00{bBb}000{{{b{{AEj{}{{AEh{c}}}}}}{b{c}}{b{{Jf{{b{Df}}}}}}}{{Ej{Af}}}{ADdCb}}0{{{b{{AEj{}{{AEh{c}}}}}}{b{c}}}{{Ah{AFdAEn}}}{ADdCb}}0{{{b{{AEj{}{{AEh{c}}}}}}{b{c}}}{{Ah{AfAEn}}}{ADdCb}}0{{{b{{AEj{}{{AEh{c}}}}}}{b{c}}}{{Ah{{Od{AFf}}AEn}}}{ADdCb}}0{{}AEf}{{}AF`}{{}AFb}{{{b{{AEj{}{{AEh{c}}}}}}{b{c}}{b{Hb}}}{{Ej{AFh}}}{ADdCb}}0{{{b{AFb}}{b{AFb}}}Eh}{{b{b{c}}}Eh{}}000{{{b{AEl}}{b{dh}}}j}{{{b{AEf}}{b{dh}}}j}{{{b{AF`}}{b{dh}}}j}{{{b{AFb}}{b{dh}}}j}{cc{}}{AEf{{AFj{c}}}{}}1111{{{b{{AEj{}{{AEh{c}}}}}}{b{{AE`{c}}}}}{{Ah{BbAEn}}}{ADdCb}}0{{}c{}}0000``````{{{b{AEf}}AF`}Bb}{{{b{AEf}}{b{Df}}}{{Ah{BbAEn}}}}{{{b{{AEj{}{{AEh{c}}}}}}}{{b{AEf}}}{ADdCb}}{{{b{{AFj{c}}}}}{{b{AEf}}}{ADdCb}}{bc{}}00{c{{Ah{e}}}{}{}}0000{{}{{Ah{c}}}{}}0000{bAj}0000{{{b{{AEj{}{{AEh{c}}}}}}{b{Df}}Fb{b{{AFl{c}}}}}{{Ah{AFdAEn}}}{ADdCb}}0{{{b{{AEj{}{{AEh{c}}}}}}{b{Df}}Fb{b{{AFl{c}}}}}{{Ah{AFnAEn}}}{ADdCb}}0`:::::``````````````{b{{b{c}}}{}}000000000{{{b{d}}}{{b{dc}}}{}}000000000``{{{b{AFn}}}AFn}{{{b{AG`}}}AG`}{{{b{AGb}}}AGb}{{{b{AGd}}}AGd}{{{b{{AGf{ce}}}}}{{AGf{ce}}}I`I`}{{{b{AGh}}}AGh}{{{b{AFh}}}AFh}{{{b{AGj}}}AGj}{{b{b{dc}}}Bb{}}0000000{bBb}0000000``{{}AFn}{{}AG`}{{}AGb}{{}{{AGf{ce}}}MbMb}```````{{{b{AFn}}}{{b{{Jf{AGj}}}}}}{{{b{dAFn}}}{{b{d{Ml{AGj}}}}}}{{{b{AGl}}{b{dh}}}j}{{{b{AGn}}{b{dh}}}j}{{{b{AFn}}{b{dh}}}j}0{{{b{AG`}}{b{dh}}}j}{{{b{AGb}}{b{dh}}}j}{{{b{AGd}}{b{dh}}}j}{{{b{{AGf{ce}}}}{b{dh}}}jCbCb}{{{b{AGh}}{b{dh}}}j}{{{b{AFh}}{b{dh}}}j}{{{b{AGj}}{b{dh}}}j}{cc{}}000000000``{{{b{AFn}}{b{Df}}}AGl}`{{}c{}}000000000{{{b{AG`}}}Eh}{{{b{{AGf{ce}}}}}Eh{{Dh{Df}}}{}}`1``````````````{bc{}}0000000{{{b{Df}}}Af}0{bAf}00{c{{Ah{e}}}{}{}}000000000{{}{{Ah{c}}}{}}000000000```{bAj}000000000`{{{b{AFn}}}{{b{{Jf{AFh}}}}}}{{{b{dAFn}}}{{b{d{Ml{AFh}}}}}}::::::::::{cAFn{{Ol{Af}}}}``````````````````````````````````````````````````````````````````````````````````````````````````{FbEh}`{{{Dd{AfGl}}{b{d{Dd{AfGl}}}}}Bb}````{b{{b{c}}}{}}000000000000000000000000000{{{b{d}}}{{b{dc}}}{}}000000000000000000000000000`{{{b{{El{{ADf{c}}}}}}{b{Df}}}{{Ah{BbAd}}}ADd}{{{b{AH`}}}AH`}{{{b{AHb}}}AHb}{{{b{AHd}}}AHd}{{{b{AHf}}}AHf}{{{b{ADl}}}ADl}{{{b{ADn}}}ADn}{{{b{{Hn{ceg}}}}}{{Hn{ceg}}}I`I`I`}{{{b{AHh}}}AHh}{{{b{Db}}}Db}{{{b{AHj}}}AHj}{{{b{AHl}}}AHl}{{{b{AHn}}}AHn}{{{b{Gl}}}Gl}{{{b{AI`}}}AI`}{{{b{AIb}}}AIb}{{{b{{H`{ce}}}}}{{H`{ce}}}I`I`}{{{b{{El{c}}}}}{{El{c}}}I`}{{{b{AId}}}AId}{{{b{AIf}}}AIf}{{{b{AIh}}}AIh}{{{b{{F`{ce}}}}}{{F`{ce}}}I`I`}{{{b{AIj}}}AIj}{{{b{AIl}}}AIl}{{{b{{En{c}}}}}{{En{c}}}I`}{{{b{AIn}}}AIn}{{{b{Fb}}}Fb}{{{b{{ADh{ce}}}}}{{ADh{ce}}}I`I`}{{{b{{ADf{c}}}}}{{ADf{c}}}{}}{{b{b{dc}}}Bb{}}000000000000000000000000000{bBb}0000000000000000000000000000000000{{{b{AH`}}{b{AH`}}}Ld}{{{b{AIf}}{b{AIf}}}Ld}{{{b{AIh}}{b{AIh}}}Ld}{{{b{AIl}}{b{AIl}}}Ld}{{{b{Fb}}{b{Fb}}}Ld}{AHh{{Md{AHd}}}}```````{{b{b{c}}}Ld{}}0000``````````````{{}AHb}{{}AHd}{{}AHf}{{}{{Hn{ceg}}}MbMbMb}{{}AHh}{{}Db}{{}AHj}{{}AHl}{{}AHn}{{}Gl}{{}AI`}{{}AIb}{{}{{H`{ce}}}MbMb}{{}{{El{c}}}Mb}{{}AId}{{}AIf}{{}AIh}{{}{{F`{ce}}}MbMb}{{}AIj}{{}{{En{c}}}Mb}{{}AIn}{{}{{ADf{c}}}Mb}`````````{{{b{AHb}}}b}{{{b{{ADh{AIjc}}}}}b{}}{{{b{{ADf{c}}}}}b{}}{{{b{dAHb}}}{{b{d}}}}{{{b{d{ADh{AIjc}}}}}{{b{d}}}{}}{{{b{d{ADf{c}}}}}{{b{d}}}{}}``````````````{c{{Ah{AH`}}}Mh}{c{{Ah{AHb}}}Mh}{c{{Ah{AHd}}}Mh}{c{{Ah{AHf}}}Mh}{c{{Ah{ADl}}}Mh}{c{{Ah{ADn}}}Mh}{c{{Ah{{Hn{egi}}}}}MhMjMjMj}{c{{Ah{Db}}}Mh}{c{{Ah{AHj}}}Mh}{c{{Ah{AHl}}}Mh}{c{{Ah{AHn}}}Mh}{c{{Ah{Gl}}}Mh}{c{{Ah{AI`}}}Mh}{c{{Ah{AIb}}}Mh}{c{{Ah{{H`{eg}}}}}MhMjMj}{c{{Ah{{El{e}}}}}MhMj}{c{{Ah{AId}}}Mh}{c{{Ah{AIf}}}Mh}{c{{Ah{AIh}}}Mh}{c{{Ah{{F`{eg}}}}}MhMjMj}{c{{Ah{AIj}}}Mh}{c{{Ah{AIl}}}Mh}{c{{Ah{{En{e}}}}}MhMj}{c{{Ah{AIn}}}Mh}{c{{Ah{Fb}}}Mh}{c{{Ah{{ADh{eg}}}}}MhMjMj}{c{{Ah{{ADf{e}}}}}MhMj}````````{{{b{AH`}}{b{AH`}}}Eh}{{{b{AHf}}{b{AHf}}}Eh}{{{b{ADl}}{b{ADl}}}Eh}{{{b{ADn}}{b{ADn}}}Eh}{{{b{AHh}}{b{AHh}}}Eh}{{{b{{El{c}}}}{b{{El{c}}}}}EhMn}{{{b{AId}}{b{AId}}}Eh}{{{b{AIf}}{b{AIf}}}Eh}{{{b{AIh}}{b{AIh}}}Eh}{{{b{AIj}}{b{AIj}}}Eh}{{{b{AIl}}{b{AIl}}}Eh}{{{b{Fb}}{b{Fb}}}Eh}{{b{b{c}}}Eh{}}000000000000000000000000000000000000000``````````````````````{{{b{AH`}}{b{dh}}}{{Ah{BbDl}}}}{{{b{AHb}}{b{dh}}}{{Ah{BbDl}}}}{{{b{AHd}}{b{dh}}}{{Ah{BbDl}}}}{{{b{AHf}}{b{dh}}}{{Ah{BbDl}}}}{{{b{ADl}}{b{dh}}}{{Ah{BbDl}}}}{{{b{ADn}}{b{dh}}}{{Ah{BbDl}}}}{{{b{{Hn{ceg}}}}{b{dh}}}{{Ah{BbDl}}}CbCbCb}{{{b{AHh}}{b{dh}}}{{Ah{BbDl}}}}{{{b{Db}}{b{dh}}}{{Ah{BbDl}}}}{{{b{AHj}}{b{dh}}}{{Ah{BbDl}}}}{{{b{AHl}}{b{dh}}}{{Ah{BbDl}}}}{{{b{AHn}}{b{dh}}}{{Ah{BbDl}}}}{{{b{Gl}}{b{dh}}}{{Ah{BbDl}}}}{{{b{AI`}}{b{dh}}}{{Ah{BbDl}}}}{{{b{AIb}}{b{dh}}}{{Ah{BbDl}}}}{{{b{{H`{ce}}}}{b{dh}}}{{Ah{BbDl}}}CbCb}{{{b{{El{c}}}}{b{dh}}}{{Ah{BbDl}}}Cb}{{{b{AId}}{b{dh}}}{{Ah{BbDl}}}}{{{b{AIf}}{b{dh}}}{{Ah{BbDl}}}}{{{b{AIh}}{b{dh}}}{{Ah{BbDl}}}}{{{b{{F`{ce}}}}{b{dh}}}{{Ah{BbDl}}}CbCb}{{{b{AIj}}{b{dh}}}{{Ah{BbDl}}}}{{{b{AIl}}{b{dh}}}{{Ah{BbDl}}}}{{{b{{En{c}}}}{b{dh}}}{{Ah{BbDl}}}Cb}{{{b{AIn}}{b{dh}}}{{Ah{BbDl}}}}{{{b{Fb}}{b{dh}}}{{Ah{BbDl}}}}0{{{b{{ADh{ce}}}}{b{dh}}}{{Ah{BbDl}}}CbCb}{{{b{{ADf{c}}}}{b{dh}}}{{Ah{BbDl}}}Cb}``````{cc{}}0000{ADnADl}111111111111111111111{{{b{AAh}}}Fb}{{{El{Db}}}{{ADh{AJ`{ADh{AJb{Ej{AJd}}}}}}}}33{c{{ADf{c}}}{}}{Ojc{}}{{{b{{ADf{c}}}}}{{Ej{Af}}}ADd}```````````{{}c{}}000000000000000000000000000{ADlEh}``````{{{b{{ADh{ce}}}}}{{Ej{{b{c}}}}}{}{}}{{{b{d{ADh{ce}}}}}{{Ej{{b{dc}}}}}{}{}}`{{{b{AHb}}{b{AH`}}}{{Ej{{Md{AHd}}}}}}`````````````````{AHh{{b{AH`}}}}````````````````````````{{{b{d{H`{{El{c}}{En{c}}}}}}}Bb{}}````````````{{{b{AH`}}{b{AH`}}}{{Ej{Ld}}}}{{{b{AIf}}{b{AIf}}}{{Ej{Ld}}}}{{{b{AIh}}{b{AIh}}}{{Ej{Ld}}}}{{{b{AIl}}{b{AIl}}}{{Ej{Ld}}}}{{{b{Fb}}{b{Fb}}}{{Ej{Ld}}}}{{{b{Df}}c}{{AJf{Df}}}{{Hd{{b{Df}}}{{Cd{{AJf{Df}}}}}}}}```````````````````{{{b{dDb}}}Bb}````{{{Hn{{Md{{AJh{{El{{ADf{c}}}}}}}}{Md{{AJh{{En{{ADf{c}}}}}}}}{ADf{c}}}}}{{Ah{{Hn{{Md{{AJh{{El{{ADf{c}}}}}}}}{Md{{AJh{{En{{ADf{c}}}}}}}}{ADf{c}}}}Ad}}}{ADdMb}}{{{b{d}}}{{b{dAAf}}}}``````2{{{b{{ADh{ce}}}}}{{Ej{{b{e}}}}}{}{}}{{{b{d{ADh{ce}}}}}{{Ej{{b{de}}}}}{}{}}````````````````````{{{b{AH`}}c}AhABd}{{{b{AHb}}c}AhABd}{{{b{AHd}}c}AhABd}{{{b{AHf}}c}AhABd}{{{b{ADl}}c}AhABd}{{{b{ADn}}c}AhABd}{{{b{{Hn{ceg}}}}i}AhDnDnDnABd}{{{b{Db}}c}AhABd}{{{b{AHj}}c}AhABd}{{{b{AHl}}c}AhABd}{{{b{AHn}}c}AhABd}{{{b{Gl}}c}AhABd}{{{b{AI`}}c}AhABd}{{{b{AIb}}c}AhABd}{{{b{{H`{ce}}}}g}AhDnDnABd}{{{b{{El{c}}}}e}AhDnABd}{{{b{AId}}c}AhABd}{{{b{AIf}}c}AhABd}{{{b{AIh}}c}AhABd}{{{b{{F`{ce}}}}g}AhDnDnABd}{{{b{AIj}}c}AhABd}{{{b{AIl}}c}AhABd}{{{b{{En{c}}}}e}AhDnABd}{{{b{AIn}}c}AhABd}{{{b{Fb}}c}AhABd}{{{b{{ADh{ce}}}}g}AhDnDnABd}{{{b{{ADf{c}}}}e}AhDnABd}{{{b{d{F`{{El{c}}{En{c}}}}}}{b{Df}}}Bb{}}``````````````````````{bc{}}000000000000000000000000000{{{b{ADn}}}Af}{bAf}`{c{{Ah{e}}}{}{}}000000000000000000000000000{{}{{Ah{c}}}{}}000000000000000000000000000`{bAj}000000000000000000000000000````{{Gl{b{Df}}{b{d{Dd{AfGl}}}}}Bb}````{{}c{}}000000000000000000000000000````````{{{b{ADd}}}{{Ej{{b{{ADh{Eh{ADf{ADd}}}}}}}}}}{{{b{dADd}}}{{Ej{{b{d{ADh{Eh{ADf{ADd}}}}}}}}}}{{{b{ADd}}}Eh}{{{b{ADd}}}{{Ej{ADl}}}}{{}ADl}{{}{{Dd{AfDb}}}}{{{b{ADd}}}{{Ej{{b{Df}}}}}}{{}{{b{Df}}}}{{{b{ADd}}}{{Ej{{b{{Jf{Hb}}}}}}}}{{{b{ADd}}}{{Ej{{b{ADn}}}}}}{{}{{Ej{ADn}}}}{{}{{Ml{{El{Db}}}}}}9{{}Eh}{{{b{ADd}}}{{Ej{{b{{ADf{ADd}}}}}}}}{{{b{dADd}}}{{Ej{{b{d{ADf{ADd}}}}}}}}{{}{{Ej{AJj}}}}09{{}{{Ej{Af}}}}{{}{{F`{{El{Db}}{En{Db}}}}}}{{{b{ADd}}}{{Ej{{b{{Dd{Af{ADf{ADd}}}}}}}}}}{{{b{dADd}}}{{Ej{{b{d{Dd{Af{ADf{ADd}}}}}}}}}}{{}Db}>8{{{b{ADd}}}{{Ej{{b{{AEd{Af}}}}}}}}1{{}{{Dd{AfGl}}}}{{}{{Ej{Gl}}}}{{{b{dADd}}Eh}Bb}{{{b{dADd}}{b{Df}}}Bb}{{{b{dADd}}Af}Bb}{{{b{d{Dd{AfDb}}}}}Bb}{{{b{d{F`{{El{Db}}{En{Db}}}}}}}Bb}","D":"DLj","p":[[1,"reference"],[0,"mut"],[6,"PaperClipError",0,2173],[5,"Formatter",2174],[8,"Result",2174],[6,"Error",2175],[5,"Error",2176],[5,"Error",2177],[5,"Error",2178],[6,"ValidationError",2179],[5,"String",2180],[6,"Result",2181],[5,"TypeId",2182],[5,"App",39,2183],[5,"ServiceRequest",2184],[17,"Config"],[1,"unit"],[17,"Error"],[5,"Error",2185],[17,"InitError"],[10,"ServiceFactory",2186],[5,"App",2187],[5,"ServiceConfig",178,2188],[10,"FnOnce",2189],[10,"Debug",2174],[17,"Output"],[10,"Future",2190],[10,"Fn",2189],[17,"Response"],[5,"ServiceResponse",2184],[10,"IntoServiceFactory",2186],[10,"Mountable",39,2191],[5,"DefaultSchemaRaw",1249,2192],[5,"BTreeMap",2193],[1,"str"],[10,"AsRef",2194],[5,"CreatedJson",39,2195],[5,"Error",2174],[10,"Serialize",2196],[10,"Apiv2Schema",2132,2197],[10,"Display",2174],[5,"AcceptedJson",39,2195],[5,"NoContent",39,2195],[1,"bool"],[6,"Option",2198],[5,"Parameter",1249,2192],[5,"Response",1249,2192],[5,"Operation",1249,2192],[6,"HttpMethod",1249,2192],[5,"ResponseWrapper",39,2195],[5,"Pin",2199],[5,"Context",2200],[6,"Poll",2201],[10,"OperationModifier",39,2195],[10,"Responder",2202],[10,"Apiv2Operation",2132,2197],[5,"HttpResponseWrapper",39,2195],[5,"HttpRequest",178,2203],[5,"HttpResponse",178,2204],[5,"ResponderWrapper",39,2195],[5,"Route",178,2188],[5,"SecurityScheme",1249,2192],[10,"HttpServiceFactory",2184],[5,"PathItem",1249,2192],[6,"Value",2205],[10,"FnMut",2189],[10,"MessageBody",2206],[10,"Transform",2207],[17,"Wrapper"],[10,"OpenApiExt",39,2183],[5,"Api",1249,2192],[10,"Clone",2208],[5,"HttpResponseBuilder",2209],[5,"Bytes",178,2210],[1,"usize"],[5,"BytesMut",178,2211],[5,"AppConfig",2212],[5,"Resource",2213],[5,"Resource",178,2188],[5,"Scope",2214],[5,"Scope",178,2188],[1,"u8"],[1,"slice"],[5,"Path",178,2215],[5,"BlockingError",2216],[10,"Send",2217],[5,"StatusCode",2218],[5,"UninitSlice",2219],[5,"Data",178,2220],[10,"Sized",2217],[5,"ReqData",178,2221],[5,"FormConfig",178,2222],[5,"JsonConfig",178,2223],[5,"PathConfig",178,2215],[5,"PayloadConfig",178,2224],[5,"Query",178,2225],[5,"QueryConfig",178,2225],[6,"Ordering",2226],[5,"Form",178,2222],[10,"Ord",2226],[5,"ConnectionInfo",2227],[5,"Ref",2228],[5,"Mime",2229],[10,"Sync",2217],[10,"Default",2230],[5,"Arc",2231],[5,"Json",178,2223],[10,"Deserializer",2232],[10,"Deserialize",2232],[5,"Vec",2233],[10,"PartialEq",2226],[6,"UrlencodedError",2216],[6,"JsonPayloadError",2216],[6,"PathError",2216],[6,"QueryPayloadError",2216],[17,"Item"],[10,"IntoIterator",2234],[5,"Extensions",2235],[5,"RefMut",2228],[5,"ServiceConfig",2212],[5,"ByteStr",2236],[5,"Box",2237],[5,"Custom",2238],[5,"Response",2239],[1,"never"],[10,"Into",2194],[10,"DeserializeOwned",2232],[6,"Payload",2240],[5,"Url",2241],[10,"Guard",2242],[10,"Hasher",2243],[5,"ResponseHead",2244],[5,"RequestHead",2245],[5,"HeaderMap",2246],[5,"Payload",178,2224],[1,"tuple"],[6,"EitherBody",2247],[5,"Url",2248],[5,"Path",2249],[5,"Method",2250],[10,"PartialOrd",2226],[6,"SocketAddr",2251],[10,"Buf",2252],[5,"AppService",2212],[5,"ResourceMap",2253],[10,"Serializer",2196],[5,"WebService",2184],[10,"IntoPatterns",2254],[6,"BodySize",2255],[10,"RangeBounds",2256],[20,"MaybeUninit",2257],[5,"Route",2258],[10,"FromRequest",2259],[10,"Handler",2260],[5,"BodyLimitExceeded",2261],[5,"HeaderValue",2262],[5,"Uri",2263],[6,"UrlGenerationError",2216],[5,"Version",2264],[5,"Arguments",2174],[5,"Ready",837,2265],[10,"Schema",853,2197],[6,"Resolvable",1249,2192],[6,"Either",1249,2192],[5,"DefaultSchema",853,2192],[6,"DataType",1249,2192],[6,"DataTypeFormat",1249,2192],[8,"ResolvableApi",853,2192],[10,"Read",2266],[5,"BTreeSet",2267],[5,"EmitterState",947,2268],[17,"Definition"],[10,"Emitter",947,2269],[6,"EmittedUnit",947,2269],[5,"Error",2270],[5,"CrateMeta",947],[6,"EmitMode",947],[5,"PathBuf",2271],[10,"Iterator",2272],[5,"ObjectVariant",1059],[5,"DefaultEmitter",947],[8,"ResolvableOperation",1249,2192],[5,"ApiObject",1059],[6,"ObjectContainer",1059],[5,"PathOps",1059],[5,"OpRequirement",1059],[5,"Response",1059],[5,"Parameter",1059],[5,"ObjectField",1059],[5,"ApiObjectImpl",1059,2273],[5,"ApiObjectBuilderImpl",1059,2273],[5,"MediaRange",1249,2274],[5,"Coders",1249,2274],[5,"Coder",1249,2274],[6,"Version",1249,2192],[6,"SpecFormat",1249,2192],[5,"Info",1249,2192],[5,"Contact",1249,2192],[5,"License",1249,2192],[5,"Tag",1249,2192],[5,"ExternalDocs",1249,2192],[5,"Items",1249,2192],[6,"ParameterIn",1249,2192],[6,"CollectionFormat",1249,2192],[5,"Reference",1249,2192],[6,"OperationProtocol",1249,2192],[5,"Header",1249,2192],[6,"Parameter",2275],[5,"RequestBody",2276],[5,"Schema",2277],[6,"Cow",2278],[5,"RwLock",2279],[1,"f32"],[8,"PaperClipResult",0],[15,"Struct",1246],[15,"Enum",1246],[8,"DefaultParameterRaw",1249],[8,"DefaultApiRaw",1249],[8,"DefaultOperationRaw",1249],[8,"DefaultResponseRaw",1249],[8,"ResolvablePathItem",1249],[8,"DefaultPathItemRaw",1249],[15,"Resolved",2130],[10,"Apiv2Errors",2132],[10,"TypedData",2132]],"r":[[12,2173],[13,2173],[36,2280],[39,2195],[40,2281],[41,2281],[42,2281],[43,2183],[44,2195],[45,2195],[46,2191],[47,2195],[48,2183],[49,2195],[50,2195],[51,2195],[53,2281],[54,2281],[55,2281],[77,2281],[92,2281],[93,2281],[108,2281],[111,2281],[112,2281],[168,2191],[182,2210],[183,2211],[187,2220],[191,2222],[192,2222],[196,2203],[197,2204],[202,2223],[203,2223],[222,2215],[223,2215],[224,2224],[225,2224],[233,2225],[234,2225],[236,2221],[240,2188],[241,2188],[242,2188],[244,2188],[270,2282],[386,2188],[530,2188],[537,2188],[595,2188],[613,2188],[629,2188],[638,2188],[639,2188],[652,2188],[666,2188],[673,2282],[691,2282],[837,2265],[846,2265],[853,947],[854,2192],[855,2269],[856,2268],[857,2192],[858,2197],[896,2280],[908,2283],[926,2283],[953,2269],[954,2269],[955,2268],[1060,2273],[1061,2273],[1249,2192],[1255,2274],[1256,2274],[1257,2192],[1258,2192],[1260,2192],[1261,2192],[1264,2192],[1265,2192],[1266,2192],[1267,2192],[1268,2192],[1269,2192],[1270,2192],[1273,2192],[1274,2192],[1280,2192],[1283,2192],[1285,2192],[1292,2192],[1293,2274],[1294,2274],[1297,2192],[1298,2274],[1302,2192],[1303,2192],[1306,2192],[1307,2192],[1311,2192],[1317,2192],[1318,2192],[1319,2192],[1320,2192],[1321,2192],[1322,2192],[1323,2192],[1325,2192],[1327,2192],[1328,2192],[1331,2192],[1336,2192],[1339,2274],[1340,2274],[2132,2197],[2133,2197],[2134,2197],[2136,2197],[2137,2197]],"b":[[23,"impl-Debug-for-PaperClipError"],[24,"impl-Display-for-PaperClipError"],[25,"impl-From%3CError%3E-for-PaperClipError"],[27,"impl-From%3CError%3E-for-PaperClipError"],[28,"impl-From%3CError%3E-for-PaperClipError"],[29,"impl-From%3CError%3E-for-PaperClipError"],[30,"impl-From%3CValidationError%3E-for-PaperClipError"],[79,"impl-Debug-for-CreatedJson%3CT%3E"],[80,"impl-Display-for-CreatedJson%3CT%3E"],[81,"impl-Debug-for-AcceptedJson%3CT%3E"],[82,"impl-Display-for-AcceptedJson%3CT%3E"],[83,"impl-Debug-for-NoContent"],[84,"impl-Display-for-NoContent"],[405,"impl-PartialEq%3C%5Bu8%5D%3E-for-Bytes"],[406,"impl-PartialEq%3Cstr%3E-for-Bytes"],[407,"impl-PartialEq%3CVec%3Cu8%3E%3E-for-Bytes"],[408,"impl-PartialEq%3CString%3E-for-Bytes"],[409,"impl-PartialEq%3C%26T%3E-for-Bytes"],[410,"impl-PartialEq%3CBytesMut%3E-for-Bytes"],[411,"impl-PartialEq-for-Bytes"],[412,"impl-PartialEq%3C%26T%3E-for-BytesMut"],[413,"impl-PartialEq-for-BytesMut"],[414,"impl-PartialEq%3C%5Bu8%5D%3E-for-BytesMut"],[415,"impl-PartialEq%3Cstr%3E-for-BytesMut"],[416,"impl-PartialEq%3CVec%3Cu8%3E%3E-for-BytesMut"],[417,"impl-PartialEq%3CString%3E-for-BytesMut"],[418,"impl-PartialEq%3CBytes%3E-for-BytesMut"],[447,"impl-Extend%3Cu8%3E-for-BytesMut"],[448,"impl-Extend%3C%26u8%3E-for-BytesMut"],[449,"impl-Extend%3CBytes%3E-for-BytesMut"],[456,"impl-UpperHex-for-Bytes"],[457,"impl-LowerHex-for-Bytes"],[458,"impl-Debug-for-Bytes"],[459,"impl-UpperHex-for-BytesMut"],[460,"impl-LowerHex-for-BytesMut"],[461,"impl-Debug-for-BytesMut"],[466,"impl-Display-for-Form%3CT%3E"],[467,"impl-Debug-for-Form%3CT%3E"],[468,"impl-Debug-for-Json%3CT%3E"],[469,"impl-Display-for-Json%3CT%3E"],[470,"impl-Display-for-Path%3CT%3E"],[471,"impl-Debug-for-Path%3CT%3E"],[472,"impl-Debug-for-Query%3CT%3E"],[473,"impl-Display-for-Query%3CT%3E"],[480,"impl-From%3CByteStr%3E-for-Bytes"],[481,"impl-From%3CBox%3C%5Bu8%5D%3E%3E-for-Bytes"],[482,"impl-From%3CString%3E-for-Bytes"],[483,"impl-From%3CBytesMut%3E-for-Bytes"],[484,"impl-From%3CVec%3Cu8%3E%3E-for-Bytes"],[485,"impl-From%3CCustom%3E-for-Bytes"],[486,"impl-From%3C%26str%3E-for-Bytes"],[488,"impl-From%3C%26%5Bu8%5D%3E-for-Bytes"],[489,"impl-From%3C%26%5Bu8%5D%3E-for-BytesMut"],[490,"impl-From%3C%26str%3E-for-BytesMut"],[491,"impl-From%3CBytes%3E-for-BytesMut"],[494,"impl-From%3CHttpResponseBuilder%3E-for-HttpResponse"],[495,"impl-From%3CResponse%3CB%3E%3E-for-HttpResponse%3CB%3E"],[496,"impl-From%3CError%3E-for-HttpResponse"],[497,"impl-From%3CServiceResponse%3CB%3E%3E-for-HttpResponse%3CB%3E"],[516,"impl-FromIterator%3C%26u8%3E-for-BytesMut"],[517,"impl-FromIterator%3Cu8%3E-for-BytesMut"],[542,"impl-HttpMessage-for-HttpRequest"],[543,"impl-HttpRequest"],[574,"impl-IntoIterator-for-Bytes"],[575,"impl-IntoIterator-for-%26Bytes"],[576,"impl-IntoIterator-for-%26BytesMut"],[577,"impl-IntoIterator-for-BytesMut"],[614,"impl-PartialOrd%3C%26T%3E-for-Bytes"],[615,"impl-PartialOrd%3CString%3E-for-Bytes"],[616,"impl-PartialOrd%3CVec%3Cu8%3E%3E-for-Bytes"],[617,"impl-PartialOrd%3Cstr%3E-for-Bytes"],[618,"impl-PartialOrd%3C%5Bu8%5D%3E-for-Bytes"],[619,"impl-PartialOrd-for-Bytes"],[620,"impl-PartialOrd-for-BytesMut"],[621,"impl-PartialOrd%3C%5Bu8%5D%3E-for-BytesMut"],[622,"impl-PartialOrd%3C%26T%3E-for-BytesMut"],[623,"impl-PartialOrd%3CString%3E-for-BytesMut"],[624,"impl-PartialOrd%3CVec%3Cu8%3E%3E-for-BytesMut"],[625,"impl-PartialOrd%3Cstr%3E-for-BytesMut"],[787,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G,+H,+I)%3E"],[788,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F)%3E"],[789,"impl-OperationModifier-for-Path%3C(A,)%3E"],[790,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G)%3E"],[791,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G,+H,+I,+J,+K,+L,+M)%3E"],[792,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E)%3E"],[793,"impl-OperationModifier-for-Path%3C(A,+B)%3E"],[794,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G,+H,+I,+J,+K,+L)%3E"],[795,"impl-OperationModifier-for-Path%3CT%3E"],[796,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G,+H)%3E"],[797,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G,+H,+I,+J,+K)%3E"],[798,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D)%3E"],[799,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G,+H,+I,+J)%3E"],[800,"impl-OperationModifier-for-Path%3C(A,+B,+C)%3E"],[1135,"impl-Display-for-ApiObject"],[1136,"impl-Debug-for-ApiObject"],[1717,"impl-Debug-for-HttpMethod"],[1718,"impl-Display-for-HttpMethod"]],"c":"OjAAAAAAAAA=","e":"OzAAAAEAABgGpAALAAAAFgAEABwAAwAhAAQAJwABAC0AAAAwAAAANAABADoADQBNAAAAUAAFAGYABABsAAAAbwAAAHIACAB9AAAAfwACAIMAFQCdAAIAogAGALMAAwC5AAIAvQACAMIAAgDHAAMAzQARAOMABgDsAAAA7gACAPQAAAD2AA8ACwEDABEBKgA+AQIAQwEqAHQBCQCAAQIAhAEQAJYBJADAAQIAxQEAAMcBAADJAREA4AEHAOkBAgDvAQMA9AEAAPwBAAD+AQAABAICAAgCCAAYAgEAHwIAADcCAAA/AgMAWQIAAGICAwBnAg4AdwICAHwCAgCBAgIAhQIFAI8CCACcAgUApwIBALMCAAC5Ag4AygIpAPUCAQD4AhMADQMWACkDEwBDAwEARwMCAEwDAgBQAwYAWAMBAF0DAABfAwYAaAMAAGsDAwBwAwMAdQMFAHwDAQCAAwAAggMAAIUDAACHAwEAigMCAI8DAwCUAwEAlwMAAJkDAgCdAwEAoAMDAKUDAACnAwAAqQMAAKwDCQC/AwAAxAMJANADCQDiAwIA5wMIAPEDAAAGBBIAHgQEACcEAAAuBAEAMQQTAEcEFwBhBAMAbgQKAKMEIADHBAkA1AQJAOMEBADsBAAA7wQBAPgEAQD8BAQAAgUBAAUFAAAHBQUAEAUBABQFAgAZBQEAHQUCACEFBAAtBQAALwUAADIFAQA1BQMAOgUBAD4FAgBEBTsAggVfAOYFFQD9BU4ATQY5AIgGDACWBikAxQYAANsGAQDfBgEA4gYKAAoHBQASBwAAFAcQACYHFwA/BxAAUQcGAFkHCgBlBwMAagcGAHQHLgCnBwIArQeEADMIIQBYCAAAZggAAGgIAABrCAEAfAgBAA==","a":{"state":[187,265]}}],\ +["paperclip_actix",{"t":"YYYEKEEEEXXXCMXXXMXMXXMNCFKRNNNNNNNNNNNNNNNNNNNNNNNMMNNNNNFFNNNFNNNFFNNNFFNNNNFFNNNNNNNNNNNNNNNNNNFFFFNNNNNNNFFNFNNNFFFNFNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNHNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNNNNNNNNNNNNHNNNNNNNNNNNNNNNHNNNNNNNNHHNNNNNNNNNNNNHNNNNNNNNNNNNNHNNNNNNHNNNNNNNNNNNNNNNNNHNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN","n":["Apiv2Header","Apiv2Schema","Apiv2Security","App","Mountable","OpenApiExt","Resource","Route","Scope","api_v2_errors","api_v2_errors_overlay","api_v2_operation","app","definitions","delete","get","head","operations","patch","path","post","put","security_definitions","update_operations","web","App","OpenApiExt","Wrapper","app_data","borrow","borrow_mut","build","configure","data_factory","default_service","external_resource","from","into","route","service","trim_base_path","try_from","try_into","type_id","vzip","with_json_spec_at","with_json_spec_v3_at","with_raw_json_spec","with_raw_json_spec_v3","with_swagger_ui_at","wrap","wrap_api","wrap_api_with_spec","wrap_fn","Accepted","AlreadyReported","BadGateway","BadRequest","Bytes","BytesMut","Conflict","Continue","Created","Data","ExpectationFailed","FailedDependency","Forbidden","Form","FormConfig","Found","GatewayTimeout","Gone","HttpRequest","HttpResponse","ImATeapot","ImUsed","InsufficientStorage","InternalServerError","Json","JsonConfig","LengthRequired","Locked","LoopDetected","MethodNotAllowed","MisdirectedRequest","MovedPermanently","MultiStatus","MultipleChoices","NetworkAuthenticationRequired","NoContent","NonAuthoritativeInformation","NotAcceptable","NotExtended","NotFound","NotImplemented","NotModified","Ok","PartialContent","Path","PathConfig","Payload","PayloadConfig","PayloadTooLarge","PaymentRequired","PermanentRedirect","PreconditionFailed","PreconditionRequired","Processing","ProxyAuthenticationRequired","Query","QueryConfig","RangeNotSatisfiable","ReqData","RequestHeaderFieldsTooLarge","RequestTimeout","ResetContent","Resource","Route","Scope","SeeOther","ServiceConfig","ServiceUnavailable","SwitchingProtocols","TemporaryRedirect","TooManyRequests","Unauthorized","UnavailableForLegalReasons","UnprocessableEntity","UnsupportedMediaType","UpgradeRequired","UriTooLong","UseProxy","VariantAlsoNegotiates","VersionNotSupported","advance","advance","advance_mut","app_config","app_data","app_data","app_data","app_data","as_mut","as_ref","as_ref","as_ref","block","body","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build","capacity","chunk","chunk","chunk_mut","clear","clear","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","cmp","cmp","cmp","cmp","cmp","compare","compare","compare","compare","compare","configure","conn_data","connection_info","content_type","content_type_required","copy_from_slice","copy_to_bytes","copy_to_bytes","default","default","default","default","default","default","default","default","default_service","default_service","definitions","definitions","definitions","delete","deref","deref","deref","deref","deref","deref","deref","deref","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deserialize","drop","drop","drop","drop_body","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","error","error_handler","error_handler","error_handler","error_handler","extend","extend","extend","extend_from_slice","extensions","extensions","extensions_mut","extensions_mut","external_resource","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","freeze","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_error","from_iter","from_iter","from_iter","from_query","from_request","from_request","from_request","from_request","from_request","from_request","from_request","from_request","from_request","from_static","full_url","get","get_ref","guard","guard","guard","hash","hash","head","head","head","head_mut","headers","headers","headers","headers_mut","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into_body","into_factory","into_inner","into_inner","into_inner","into_inner","into_inner","into_inner","into_inner","into_iter","into_iter","into_iter","into_iter","into_parts","is_empty","is_empty","is_unique","keep_alive","len","len","limit","limit","limit","map_body","map_into_boxed_body","map_into_left_body","map_into_right_body","match_info","match_name","match_pattern","method","method","method","mimetype","name","name","new","new","new","new","new","new","new","new","new_service","operations","operations","operations","options","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","patch","path","path","path","path","peer_addr","poll_next","poll_next","poll_next","post","put","put","put_bytes","put_slice","query_string","raw_schema","register","register","remaining","remaining","remaining_mut","reserve","resize","resource","resource_map","resource_path","resource_path","resource_path","resource_path","respond_to","respond_to","respond_to","respond_to","respond_to","route","route","route","scope","security_definitions","security_definitions","security_definitions","serialize","serialize","serialize","service","service","service","set_body","set_len","size","size","slice","slice_ref","spare_capacity_mut","split","split_off","split_off","split_to","split_to","status","status_mut","take_payload","to","to","to","to_bytes","to_bytes_limited","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","to_string","to_string","to_string","truncate","truncate","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into_bytes","try_into_bytes","try_into_mut","try_into_value","try_poll_next","try_reclaim","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","unsplit","update_definitions","update_definitions","update_definitions","update_operations","update_operations","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_parameter","update_response","upgrade","uri","url_for","url_for_static","version","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","with_body","with_capacity","wrap","wrap","wrap_fn","wrap_fn","write_fmt","write_str","zeroed"],"q":[[0,"paperclip_actix"],[25,"paperclip_actix::app"],[54,"paperclip_actix::web"],[713,"alloc::string"],[714,"paperclip_core::v2::models"],[715,"alloc::collections::btree::map"],[716,"actix_web::service"],[717,"actix_web::error::error"],[718,"actix_service"],[719,"actix_web::app"],[720,"core::ops::function"],[721,"core::fmt"],[722,"core::result"],[723,"core::future::future"],[724,"core::convert"],[725,"core::any"],[726,"serde_json::value"],[727,"actix_http::body::message_body"],[728,"actix_service::transform"],[729,"core::clone"],[730,"actix_web::response::builder"],[731,"bytes::bytes"],[732,"bytes::bytes_mut"],[733,"actix_web::request"],[734,"actix_web::config"],[735,"actix_web::resource"],[736,"actix_web::scope"],[737,"core::option"],[738,"actix_web::types::path"],[739,"actix_web::error"],[740,"core::marker"],[741,"actix_web::response::response"],[742,"http::status"],[743,"bytes::buf::uninit_slice"],[744,"actix_web::data"],[745,"actix_web::request_data"],[746,"actix_web::types::form"],[747,"actix_web::types::json"],[748,"actix_web::types::payload"],[749,"actix_web::types::query"],[750,"core::cmp"],[751,"actix_web::info"],[752,"core::cell"],[753,"mime"],[754,"core::default"],[755,"alloc::sync"],[756,"serde::de"],[757,"alloc::vec"],[758,"core::iter::traits::collect"],[759,"actix_http::extensions"],[760,"http::header::name"],[761,"http::byte_str"],[762,"alloc::boxed"],[763,"actix_http::responses::response"],[764,"actix_http::payload"],[765,"url"],[766,"actix_web::guard"],[767,"core::hash"],[768,"actix_http::responses::head"],[769,"actix_http::requests::head"],[770,"actix_http::header::map"],[771,"actix_http::body::either"],[772,"actix_router::url"],[773,"actix_router::path"],[774,"http::method"],[775,"core::net::socket_addr"],[776,"core::pin"],[777,"core::task::wake"],[778,"core::task::poll"],[779,"bytes::buf::buf_impl"],[780,"actix_web::rmap"],[781,"serde::ser"],[782,"actix_router::pattern"],[783,"actix_http::body::size"],[784,"core::ops::range"],[785,"core::mem::maybe_uninit"],[786,"actix_web::route"],[787,"actix_web::extract"],[788,"actix_web::handler"],[789,"actix_http::body::utils"],[790,"http::header::value"],[791,"http::uri"],[792,"http::version"],[793,"paperclip_macros"],[794,"actix_web::web"]],"i":[0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,2,0,2,0,0,2,2,0,0,0,40,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,40,40,13,59,59,59,59,0,0,59,59,59,0,59,59,59,0,0,59,59,59,0,0,59,59,59,59,0,0,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,0,0,0,0,59,59,59,59,59,59,59,0,0,59,0,59,59,59,0,0,0,59,0,59,59,59,59,59,59,59,59,59,59,59,59,59,44,46,46,47,50,52,21,47,46,44,46,56,0,59,50,52,32,21,44,44,46,46,59,112,62,47,64,72,65,81,66,56,67,68,69,70,50,52,32,21,44,46,46,59,112,62,47,64,72,65,81,66,56,67,68,69,70,59,46,44,46,46,44,46,44,46,62,47,64,65,66,67,68,69,70,44,46,62,47,64,65,66,67,68,69,70,44,46,62,47,64,65,66,67,68,69,70,44,46,72,56,69,44,46,72,56,69,52,47,47,66,66,44,44,46,44,46,62,65,66,67,68,70,50,52,50,52,21,0,44,46,62,64,72,81,56,69,46,72,81,56,69,62,44,46,47,59,44,44,44,44,44,44,44,46,46,46,46,46,46,46,72,56,69,44,44,44,44,46,46,46,46,72,72,72,72,56,56,56,56,69,69,69,69,59,65,66,67,70,46,46,46,46,59,47,59,47,21,44,44,44,46,46,46,59,62,47,64,72,72,81,81,56,56,69,69,46,50,52,32,21,21,44,44,44,44,44,44,44,44,44,46,46,46,46,59,59,59,59,59,112,62,62,47,64,72,65,81,66,56,56,56,67,68,69,70,59,44,46,46,69,44,112,62,47,64,72,81,56,69,44,47,0,62,50,52,32,44,46,0,59,47,59,59,47,47,59,50,52,32,21,44,46,59,112,62,47,64,72,65,81,66,56,67,68,69,70,59,32,112,62,64,72,81,56,69,44,44,46,46,59,44,46,44,59,44,46,65,66,68,59,59,59,59,47,47,47,0,32,47,68,50,81,50,52,32,44,46,59,62,68,32,50,52,21,0,44,44,44,44,44,44,46,46,46,46,46,46,72,56,69,0,50,52,21,47,47,44,46,112,0,0,46,46,46,47,81,50,52,44,46,46,46,46,0,47,72,81,56,69,44,46,59,72,81,50,52,21,0,50,52,21,62,72,81,0,52,21,59,46,44,46,44,44,46,46,44,46,44,46,59,59,47,0,50,32,112,112,44,46,62,47,64,65,66,67,68,69,70,72,81,56,69,44,46,50,52,32,21,44,46,59,112,62,47,64,72,65,81,66,56,67,68,69,70,50,52,32,21,44,46,59,112,62,47,64,72,65,81,66,56,67,68,69,70,44,46,44,44,112,46,50,52,32,21,44,46,59,112,62,47,64,72,65,81,66,56,67,68,69,70,46,72,56,69,52,21,72,81,56,56,56,56,56,56,56,56,56,56,56,56,56,56,69,81,59,47,47,47,47,50,52,32,21,44,46,59,112,62,47,64,72,65,81,66,56,67,68,69,70,59,46,50,52,50,52,46,46,46],"f":"`````````````{{{f{bd}}}{{l{hj}}}}```{{{f{bd}}}{{l{nA`}}}}`{{{f{d}}}{{f{Ab}}}}``{{{f{bd}}}{{l{hAd}}}}{{{f{bd}}{f{b{l{hAf}}}}}Ah}````{{{Aj{c}}e}{{Aj{c}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{}}{f{{f{c}}}{}}{{{f{b}}}{{f{bc}}}{}}{{{Aj{c}}}{{Bh{c}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}}{{{Aj{c}}e}{{Aj{c}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{{Bl{{f{bBj}}}}}}{{{Aj{c}}k}{{Aj{c}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{}Bn{{Cd{}{{C`{{Cb{eg}}}}}}}{{Cf{}{{C`{i}}}}}}{{{Aj{c}}g}{{Aj{c}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{{Bf{Al}{{An{Ah}}{Ch{Cj}}{B`{Bb}}{Bd{Ah}}}}}{{Cl{eAl}}}}{{{Aj{c}}eg}{{Aj{c}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{{Cn{Ab}}}{{Cn{Ab}}}}{cc{}}{{}c{}}{{{Aj{c}}{f{Ab}}D`}{{Aj{c}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}}{{{Aj{c}}e}{{Aj{c}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{dDb}}{{{Aj{c}}}{{Aj{c}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}}{c{{Cb{e}}}{}{}}{{}{{Cb{c}}}{}}{fDd}6{{{Aj{c}}{f{Ab}}}{{Aj{c}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}}0{{{Aj{c}}e}{{Aj{c}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{{Dh{{Aj{c}}Df}{{C`{{Aj{c}}}}}}}}01{{{Aj{c}}g}{{Aj{{`{{Bf{Al}{{An{Ah}}{Ch{{Cj{e}}}}{B`{Bb}}{Bd{Ah}}}}}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}Dj{{Dl{Al}{{Ch{{Cj{e}}}}{B`{Bb}}{Bd{Ah}}}}}}{{{E`{}{{Dn{c}}}}}c{}}{{{E`{}{{Dn{c}}}}Eb}c{}}{{{Aj{c}}i}{{Aj{{`{{Bf{Al}{{An{Ah}}{Ch{{Cj{e}}}}{B`{Bb}}{Bd{Ah}}}}}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}Dj{{Cd{}{{C`{{Cb{{Cj{e}}Bb}}}}}}}{{Cf{Alf}{{C`{g}}}}Ed}}{{}Ef}000``000`000``000``0000``000000000000000000````0000000``0`000```0`0000000000000{{{f{bEh}}Ej}Ah}{{{f{bEl}}Ej}Ah}0{{{f{En}}}{{f{F`}}}}{{{Fd{{Fb{c}}}}e}{{Fd{{Fb{c}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{}}{{{Fh{{Ff{c}}}}e}{{Fh{{Ff{c}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{}}{{{f{bBj}}c}{{f{bBj}}}{}}{{{f{En}}}{{Fj{{f{c}}}}}{}}{{{f{bEl}}}{{f{b{Fn{Fl}}}}}}{{{f{Eh}}}{{f{{Fn{Fl}}}}}}{{{f{El}}}{{f{{Fn{Fl}}}}}}{{{f{{G`{c}}}}}{{f{c}}}{}}{e{{`{{Cd{}{{C`{{Cb{cGb}}}}}}}}}Gd{{Bl{}{{C`{c}}}}Gd}}{{{f{{Gf{c}}}}}{{f{c}}}{}}{f{{f{c}}}{}}000500400000000000000{{{f{b}}}{{f{bc}}}{}}00007000000000000000{GhEf}{{{f{El}}}Ej}87{{{f{bEl}}}{{f{bGj}}}}{{{f{bEh}}}Ah}{{{f{bEl}}}Ah}{{{f{Eh}}}Eh}{{{f{El}}}El}{{{f{{Gl{c}}}}}{{Gl{c}}}Gn}{{{f{En}}}En}{{{f{{H`{c}}}}}{{H`{c}}}{EdEd}}{{{f{Hb}}}Hb}{{{f{Hd}}}Hd}{{{f{Hf}}}Hf}{{{f{Hh}}}Hh}{{{f{{Hj{c}}}}}{{Hj{c}}}Ed}{{{f{Hl}}}Hl}{{f{f{bc}}}Ah{}}0000000000{fAh}0000000000{{{f{Eh}}{f{Eh}}}Hn}{{{f{El}}{f{El}}}Hn}{{{f{{I`{c}}}}{f{{I`{c}}}}}HnIb}{{{f{{G`{c}}}}{f{{G`{c}}}}}HnIb}{{{f{{Hj{c}}}}{f{{Hj{c}}}}}HnIb}{{f{f{c}}}Hn{}}0000{{{Fh{{Ff{c}}}}e}{{Fh{{Ff{c}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{{Bl{{f{bBj}}}}}}{{{f{En}}}{{Fj{{f{c}}}}}{}}{{{f{En}}}{{If{Id}}}}{{Hdc}Hd{{Cf{Ih}{{C`{Ij}}}}GdIl}}{{HdIj}Hd}{{{f{{Fn{Fl}}}}}Eh}{{{f{bEh}}Ej}Eh}{{{f{bEl}}Ej}Eh}{{}Eh}{{}El}{{}{{Gl{c}}}In}{{}Hb}{{}Hd}{{}Hf}{{}Hh}{{}Hl}{{{Fd{{Fb{c}}}}g}{{Fd{{Fb{c}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{{Bf{Al}{{An{Ah}}{Ch{Cj}}{B`{Bb}}{Bd{Ah}}}}}{{Cl{eAl}}}}{{{Fh{{Ff{c}}}}g}{{Fh{{Ff{c}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{{Bf{Al}{{An{Ah}}{Ch{Cj}}{B`{Bb}}{Bd{Ah}}}}}{{Cl{eAl}}}}{{{f{b{Fd{c}}}}}{{l{hj}}}{}}{{{f{b{Fh{c}}}}}{{l{hj}}}{}}{{{f{bBj}}}{{l{hj}}}}{{}D`}{{{f{Eh}}}{{f{{Fn{Fl}}}}}}{{{f{El}}}{{f{{Fn{Fl}}}}}}{{{f{{Gl{c}}}}}{{f{{J`{c}}}}}Gn}{{{f{{H`{c}}}}}{{f{c}}}Ed}{{{f{{I`{c}}}}}{{f{c}}}{}}{{{f{{Jb{c}}}}}{{f{c}}}{}}{{{f{{G`{c}}}}}f{}}{{{f{{Hj{c}}}}}{{f{c}}}{}}{{{f{bEl}}}{{f{b{Fn{Fl}}}}}}{{{f{b{I`{c}}}}}{{f{bc}}}{}}{{{f{b{Jb{c}}}}}{{f{bc}}}{}}{{{f{b{G`{c}}}}}{{f{b}}}{}}{{{f{b{Hj{c}}}}}{{f{bc}}}{}}{c{{Cb{{Gl{e}}}}}JdJf}{{{f{bEh}}}Ah}{{{f{bEl}}}Ah}{{{f{bEn}}}Ah}{{{Gf{c}}}{{Gf{Ah}}}{}}{{{f{Eh}}{f{{f{c}}}}}IjGn}{{{f{Eh}}{f{{Fn{Fl}}}}}Ij}{{{f{Eh}}{f{Ab}}}Ij}{{{f{Eh}}{f{El}}}Ij}{{{f{Eh}}{f{Eh}}}Ij}{{{f{Eh}}{f{{Jh{Fl}}}}}Ij}{{{f{Eh}}{f{h}}}Ij}{{{f{El}}{f{{f{c}}}}}IjGn}{{{f{El}}{f{Eh}}}Ij}{{{f{El}}{f{h}}}Ij}{{{f{El}}{f{{Jh{Fl}}}}}Ij}{{{f{El}}{f{Ab}}}Ij}{{{f{El}}{f{El}}}Ij}{{{f{El}}{f{{Fn{Fl}}}}}Ij}{{{f{{I`{c}}}}{f{{I`{c}}}}}IjJj}{{{f{{G`{c}}}}{f{{G`{c}}}}}IjJj}{{{f{{Hj{c}}}}{f{{Hj{c}}}}}IjJj}{{f{f{c}}}Ij{}}0000000000000000000{{{f{{Gf{c}}}}}{{Fj{{f{Bb}}}}}{}}{{Hbc}Hb{{Cf{Jl{f{En}}}{{C`{Bb}}}}}}{{Hdc}Hd{{Cf{Jn{f{En}}}{{C`{Bb}}}}GdIl}}{{Hfc}Hf{{Cf{K`{f{En}}}{{C`{Bb}}}}GdIl}}{{Hlc}Hl{{Cf{Kb{f{En}}}{{C`{Bb}}}}GdIl}}{{{f{bEl}}c}Ah{{Kf{}{{Kd{Eh}}}}}}{{{f{bEl}}c}Ah{{Kf{}{{Kd{{f{Fl}}}}}}}}{{{f{bEl}}c}Ah{{Kf{}{{Kd{Fl}}}}}}{{{f{bEl}}{f{{Fn{Fl}}}}}Ah}{{{f{{Gf{c}}}}}{{If{Kh}}}{}}{{{f{En}}}{{If{Kh}}}}{{{f{b{Gf{c}}}}}{{Kj{Kh}}}{}}{{{f{En}}}{{Kj{Kh}}}}{{{f{bBj}}ce}{{f{bBj}}}{{Cn{Ab}}}{{Cn{Ab}}}}{{{f{Eh}}{f{bKl}}}{{Cb{AhKn}}}}00{{{f{El}}{f{bKl}}}{{Cb{AhKn}}}}00{{{f{{Gf{c}}}}{f{bKl}}}{{Cb{AhKn}}}Dj}{{{f{{Gl{c}}}}{f{bKl}}}{{Cb{AhKn}}}{BnGn}}{{{f{En}}{f{bKl}}}{{Cb{AhKn}}}}{{{f{{H`{c}}}}{f{bKl}}}{{Cb{AhKn}}}{BnEd}}{{{f{{I`{c}}}}{f{bKl}}}{{Cb{AhKn}}}L`}{{{f{{I`{c}}}}{f{bKl}}}{{Cb{AhKn}}}Bn}{{{f{{Jb{c}}}}{f{bKl}}}{{Cb{AhKn}}}L`}{{{f{{Jb{c}}}}{f{bKl}}}{{Cb{AhKn}}}Bn}{{{f{{G`{c}}}}{f{bKl}}}{{Cb{AhKn}}}Bn}{{{f{{G`{c}}}}{f{bKl}}}{{Cb{AhKn}}}L`}{{{f{{Hj{c}}}}{f{bKl}}}{{Cb{AhKn}}}L`}{{{f{{Hj{c}}}}{f{bKl}}}{{Cb{AhKn}}}Bn}{ElEh}{cc{}}000{{{f{bLb}}}Bj}1{{{Jh{Fl}}}Eh}{LdEh}{LfEh}5{{{f{{Fn{Fl}}}}}Eh}{hEh}{{{f{Ab}}}Eh}{{{Lh{{Fn{Fl}}}}}Eh}{{{f{{Fn{Fl}}}}}El}{EhEl}:{{{f{Ab}}}El};{EfGf}{{{Lj{c}}}{{Gf{c}}}{}}{BbGf}{{{Cj{c}}}{{Gf{c}}}{}}??{{{J`{c}}}{{Gl{c}}}Gn}{cc{}}00000{Llc{}}1{c{{G`{c}}}{}}2222{cGf{{Ln{Bb}}}}{cEh{{Kf{}{{Kd{Fl}}}}}}{cEl{{Kf{}{{Kd{Fl}}}}}}{cEl{{Kf{}{{Kd{{f{Fl}}}}}}}}{{{f{Ab}}}{{Cb{{Hj{c}}Kb}}}M`}{{{f{En}}{f{bMb}}}}00000000{{{f{{Fn{Fl}}}}}Eh}{{{f{En}}}Md}{{}D`}{{{f{{Gl{c}}}}}{{f{c}}}Gn}{{{Fd{{Fb{c}}}}e}{{Fd{{Fb{c}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}Mf}{{{Fh{{Ff{c}}}}e}{{Fh{{Ff{c}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}Mf}{{D`c}D`Mf}{{{f{Eh}}{f{bc}}}AhMh}{{{f{El}}{f{bc}}}AhMh}6{{{f{{Gf{c}}}}}{{f{Mj}}}{}}{{{f{En}}}{{f{Ml}}}}{{{f{b{Gf{c}}}}}{{f{bMj}}}{}}{{{f{{Gf{c}}}}}{{f{Mn}}}{}}{{{f{En}}}{{f{Mn}}}}0{{{f{b{Gf{c}}}}}{{f{bMn}}}{}}{{}c{}}0000000000000000000{{{Gf{c}}}c{}}1{N`Mb}{{{Gl{c}}}{{J`{c}}}Gn}{{{H`{c}}}cEd}{{{I`{c}}}c{}}{{{Jb{c}}}c{}}{{{G`{c}}}c{}}{{{Hj{c}}}c{}}{{{f{Eh}}}}{Eh}{{{f{El}}}}{El}{{{Gf{c}}}{{Nb{{Gf{Ah}}c}}}{}}{{{f{Eh}}}Ij}{{{f{El}}}Ij}1{{{f{{Gf{c}}}}}Ij{}}{{{f{Eh}}}Ej}{{{f{El}}}Ej}{{HbEj}Hb}{{HdEj}Hd}{{HhEj}Hh}{{{Gf{c}}g}{{Gf{e}}}{}{}{{Bl{{f{bMj}}c}{{C`{e}}}}}}{{{Gf{c}}}GfDj}{{{Gf{c}}}{{Gf{{Nd{ce}}}}}{}{}}{{{Gf{c}}}{{Gf{{Nd{ec}}}}}{}{}}{{{f{En}}}{{f{{Nh{Nf}}}}}}{{{f{En}}}{{Fj{{f{Ab}}}}}}{{{f{En}}}{{Fj{h}}}}{NjD`}{{D`Nj}D`}{{{f{En}}}{{f{Nj}}}}{{HhIh}Hh}{{{Fd{{Fb{c}}}}{f{Ab}}}{{Fd{{Fb{c}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}}{{}{{Fj{h}}}}{{{f{Ab}}}Fd}{{{f{Ab}}}Fh}{{}D`}{{}Eh}{{}El}{GhGf}{c{{Gl{c}}}{}}{EjHh}{{{f{D`}}c}e{}{}}{{{f{b{Fd{c}}}}}{{l{nA`}}}{}}{{{f{b{Fh{c}}}}}{{l{nA`}}}{}}{{{f{bBj}}}{{l{nA`}}}}9{{{f{Eh}}{f{{Jh{Fl}}}}}{{Fj{Hn}}}}{{{f{Eh}}{f{h}}}{{Fj{Hn}}}}{{{f{Eh}}{f{{f{c}}}}}{{Fj{Hn}}}Gn}{{{f{Eh}}{f{Ab}}}{{Fj{Hn}}}}{{{f{Eh}}{f{{Fn{Fl}}}}}{{Fj{Hn}}}}{{{f{Eh}}{f{Eh}}}{{Fj{Hn}}}}{{{f{El}}{f{{Jh{Fl}}}}}{{Fj{Hn}}}}{{{f{El}}{f{{f{c}}}}}{{Fj{Hn}}}Gn}{{{f{El}}{f{h}}}{{Fj{Hn}}}}{{{f{El}}{f{Ab}}}{{Fj{Hn}}}}{{{f{El}}{f{{Fn{Fl}}}}}{{Fj{Hn}}}}{{{f{El}}{f{El}}}{{Fj{Hn}}}}{{{f{{I`{c}}}}{f{{I`{c}}}}}{{Fj{Hn}}}Nl}{{{f{{G`{c}}}}{f{{G`{c}}}}}{{Fj{Hn}}}Nl}{{{f{{Hj{c}}}}{f{{Hj{c}}}}}{{Fj{Hn}}}Nl}{{}D`}{{{f{{Fd{c}}}}}{{f{Ab}}}{}}{{{f{{Fh{c}}}}}{{f{Ab}}}{}}{{{f{Bj}}}{{f{Ab}}}}{{{f{En}}}{{f{Ab}}}}{{{f{En}}}{{Fj{Nn}}}}{{{O`{{f{bEh}}}}{f{bOb}}}{{Od{{Fj{{Cb{Eh}}}}}}}}{{{O`{{f{bEl}}}}{f{bOb}}}{{Od{{Fj{{Cb{Eh}}}}}}}}{{{O`{{f{bN`}}}}{f{bOb}}}{{Od{Fj}}}}88{{{f{bEl}}c}AhOf}{{{f{bEl}}FlEj}Ah}{{{f{bEl}}{f{{Fn{Fl}}}}}Ah}7{{}j}{{{Fd{{Fb{e}}}}{f{bOh}}}AhDj{{Bf{Al}{{An{Ah}}{Ch{{Cj{c}}}}{B`{Bb}}{Bd{Ah}}}}}}{{{Fh{{Ff{e}}}}{f{bOh}}}AhDj{{Bf{Al}{{An{Ah}}{Ch{{Cj{c}}}}{B`{Bb}}{Bd{Ah}}}}}}{{{f{Eh}}}Ej}{{{f{El}}}Ej}0{{{f{bEl}}Ej}Ah}{{{f{bEl}}EjFl}Ah}{{{f{Ab}}}Fd}{{{f{En}}}{{f{Oj}}}}{{{f{b}}}{{f{bNh}}}}000{{Eh{f{En}}}Gf}{{El{f{En}}}Gf}{{{Gf{c}}{f{En}}}GfDj}{{{I`{c}}{f{En}}}GfOl}{{{Jb{c}}{f{En}}}GfOl}{{{Fd{{Fb{c}}}}D`}{{Fd{{Fb{c}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}}{{{Fh{{Ff{c}}}}{f{Ab}}D`}{{Fh{{Ff{c}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}}{{{f{bBj}}{f{Ab}}D`}{{f{bBj}}}}{{{f{Ab}}}Fh}{{{f{b{Fd{c}}}}}{{l{hAd}}}{}}{{{f{b{Fh{c}}}}}{{l{hAd}}}{}}{{{f{bBj}}}{{l{hAd}}}}{{{f{{Gl{c}}}}e}CbOlOn}{{{f{{I`{c}}}}e}CbOlOn}{{{f{{Jb{c}}}}e}CbOlOn}{cA@`A@b}{{{Fh{{Ff{c}}}}e}{{Fh{{Ff{c}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{dDb}}{{{f{bBj}}c}{{f{bBj}}}{dDb}}{{{Gf{c}}e}{{Gf{e}}}{}{}}{{{f{bEl}}Ej}Ah}{{{f{Eh}}}A@d}{{{f{El}}}A@d}{{{f{Eh}}c}Eh{{A@f{Ej}}}}{{{f{Eh}}{f{{Fn{Fl}}}}}Eh}{{{f{bEl}}}{{f{b{Fn{{A@h{Fl}}}}}}}}{{{f{bEl}}}El}{{{f{bEh}}Ej}Eh}{{{f{bEl}}Ej}El}10{{{f{{Gf{c}}}}}Gh{}}{{{f{b{Gf{c}}}}}{{f{bGh}}}{}}{{{f{bEn}}}Mb}{eA@jA@l{{A@n{c}}}}{{{Fd{{Fb{c}}}}g}{{Fd{{Fb{c}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}A@l{{A@n{e}}}}{{D`e}D`A@l{{A@n{c}}}}{N`{{Cb{EhBb}}}}{{N`Ej}{{Cb{{Cb{EhBb}}AA`}}}}{fc{}}0000000000{fh}000{{{f{bEh}}Ej}Ah}{{{f{bEl}}Ej}Ah}{c{{Cb{e}}}{}{}}0000000000000000000{{}{{Cb{c}}}{}}0000000000000000000{Eh{{Cb{EhEh}}}}{El{{Cb{EhEl}}}}{Eh{{Cb{ElEh}}}}{Eh{{Cb{AAb}}}}{{{O`{{f{bc}}}}{f{bOb}}}{{Od{{Fj{Cb}}}}}{}}{{{f{bEl}}Ej}Ij}{fDd}0000000000000000000{{{f{bEl}}El}Ah}{{{f{b{l{hj}}}}}Ah}00{{{f{b{Fh{c}}}}{f{b{l{hAf}}}}}Ah{}}{{{f{bBj}}{f{b{l{hAf}}}}}Ah}{{{f{b{AAh{{AAd{j}}{AAf{j}}}}}}}Ah}00000000000000000{{{f{{Gf{c}}}}}Ij{}}{{{f{En}}}{{f{AAj}}}}{{{f{En}}{f{Ab}}e}{{Cb{MdAAl}}}{{Cn{Ab}}}{{Kf{}{{Kd{c}}}}}}{{{f{En}}{f{Ab}}}{{Cb{MdAAl}}}}{{{f{En}}}AAn}{{}c{}}0000000000000000000{{Ghc}{{Gf{c}}}{}}{EjEl}{{{Fd{{Fb{c}}}}g}{{Fd{{Fb{{`{{Bf{Al}{{An{Ah}}{Ch{{Cj{e}}}}{B`{Bb}}{Bd{Ah}}}}}}}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}Dj{{Dl{Al}{{Ch{{Cj{e}}}}{B`{Bb}}{Bd{Ah}}}}}}{{{Fh{{Ff{c}}}}g}{{Fh{{Ff{{`{{Bf{Al}{{An{Ah}}{Ch{{Cj{e}}}}{B`{Bb}}{Bd{Ah}}}}}}}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}Dj{{Dl{Al}{{Ch{{Cj{e}}}}{B`{Bb}}{Bd{Ah}}}}}}{{{Fd{{Fb{c}}}}i}{{Fd{{Fb{{`{{Bf{Al}{{An{Ah}}{Ch{{Cj{e}}}}{B`{Bb}}{Bd{Ah}}}}}}}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}Dj{{Cd{}{{C`{{Cb{{Cj{e}}Bb}}}}}}}{{Cf{Alf}{{C`{g}}}}Ed}}{{{Fh{{Ff{c}}}}g}{{Fh{{Ff{{`{{Bf{Al}{{An{Ah}}{Ch{Cj}}{B`{Bb}}{Bd{Ah}}}}}}}}}}}{{Bf{Al}{{An{Ah}}{B`{Bb}}{Bd{Ah}}}}}{{Cd{}{{C`{{Cb{CjBb}}}}}}}{{Cf{Alf}{{C`{e}}}}Ed}}{{{f{bEl}}AB`}{{Cb{AhKn}}}}{{{f{bEl}}{f{Ab}}}{{Cb{AhKn}}}}6","D":"AMn","p":[[0,"mut"],[10,"Mountable",0],[1,"reference"],[5,"String",713],[5,"DefaultSchemaRaw",714],[5,"BTreeMap",715],[6,"HttpMethod",714],[8,"DefaultOperationRaw",714],[1,"str"],[5,"SecurityScheme",714],[8,"DefaultPathItemRaw",714],[1,"unit"],[5,"App",25],[5,"ServiceRequest",716],[17,"Config"],[17,"Error"],[5,"Error",717],[17,"InitError"],[10,"ServiceFactory",718],[5,"App",719],[5,"ServiceConfig",54],[10,"FnOnce",720],[10,"Debug",721],[17,"Output"],[6,"Result",722],[10,"Future",723],[10,"Fn",720],[17,"Response"],[5,"ServiceResponse",716],[10,"IntoServiceFactory",718],[10,"AsRef",724],[5,"Route",54],[10,"HttpServiceFactory",716],[5,"TypeId",725],[6,"Value",726],[10,"FnMut",720],[10,"MessageBody",727],[10,"Transform",728],[17,"Wrapper"],[10,"OpenApiExt",25],[8,"DefaultApiRaw",714],[10,"Clone",729],[5,"HttpResponseBuilder",730],[5,"Bytes",54,731],[1,"usize"],[5,"BytesMut",54,732],[5,"HttpRequest",54,733],[5,"AppConfig",734],[5,"Resource",735],[5,"Resource",54],[5,"Scope",736],[5,"Scope",54],[6,"Option",737],[1,"u8"],[1,"slice"],[5,"Path",54,738],[5,"BlockingError",739],[10,"Send",740],[5,"HttpResponse",54,741],[5,"StatusCode",742],[5,"UninitSlice",743],[5,"Data",54,744],[10,"Sized",740],[5,"ReqData",54,745],[5,"FormConfig",54,746],[5,"JsonConfig",54,747],[5,"PathConfig",54,738],[5,"PayloadConfig",54,748],[5,"Query",54,749],[5,"QueryConfig",54,749],[6,"Ordering",750],[5,"Form",54,746],[10,"Ord",750],[5,"ConnectionInfo",751],[5,"Ref",752],[5,"Mime",753],[1,"bool"],[10,"Sync",740],[10,"Default",754],[5,"Arc",755],[5,"Json",54,747],[10,"Deserializer",756],[10,"Deserialize",756],[5,"Vec",757],[10,"PartialEq",750],[6,"UrlencodedError",739],[6,"JsonPayloadError",739],[6,"PathError",739],[6,"QueryPayloadError",739],[17,"Item"],[10,"IntoIterator",758],[5,"Extensions",759],[5,"RefMut",752],[5,"Formatter",721],[5,"Error",721],[10,"Display",721],[5,"ServiceConfig",734],[5,"Custom",760],[5,"ByteStr",761],[5,"Box",762],[5,"Response",763],[1,"never"],[10,"Into",724],[10,"DeserializeOwned",756],[6,"Payload",764],[5,"Url",765],[10,"Guard",766],[10,"Hasher",767],[5,"ResponseHead",768],[5,"RequestHead",769],[5,"HeaderMap",770],[5,"Payload",54,748],[1,"tuple"],[6,"EitherBody",771],[5,"Url",772],[5,"Path",773],[5,"Method",774],[10,"PartialOrd",750],[6,"SocketAddr",775],[5,"Pin",776],[5,"Context",777],[6,"Poll",778],[10,"Buf",779],[5,"AppService",734],[5,"ResourceMap",780],[10,"Serialize",781],[10,"Serializer",781],[5,"WebService",716],[10,"IntoPatterns",782],[6,"BodySize",783],[10,"RangeBounds",784],[20,"MaybeUninit",785],[5,"Route",786],[10,"FromRequest",787],[10,"Handler",788],[5,"BodyLimitExceeded",789],[5,"HeaderValue",790],[5,"Parameter",714],[5,"Response",714],[5,"Operation",714],[5,"Uri",791],[6,"UrlGenerationError",739],[5,"Version",792],[5,"Arguments",721]],"r":[[0,793],[1,793],[2,793],[3,25],[5,25],[6,54],[7,54],[8,54],[9,793],[10,793],[11,793],[14,793],[15,793],[16,793],[18,793],[20,793],[21,793],[58,731],[59,732],[63,744],[67,746],[68,746],[72,733],[73,741],[78,747],[79,747],[98,738],[99,738],[100,748],[101,748],[109,749],[110,749],[112,745],[146,794],[549,794],[567,794]],"b":[[281,"impl-PartialEq%3C%26T%3E-for-Bytes"],[282,"impl-PartialEq%3C%5Bu8%5D%3E-for-Bytes"],[283,"impl-PartialEq%3Cstr%3E-for-Bytes"],[284,"impl-PartialEq%3CBytesMut%3E-for-Bytes"],[285,"impl-PartialEq-for-Bytes"],[286,"impl-PartialEq%3CVec%3Cu8%3E%3E-for-Bytes"],[287,"impl-PartialEq%3CString%3E-for-Bytes"],[288,"impl-PartialEq%3C%26T%3E-for-BytesMut"],[289,"impl-PartialEq%3CBytes%3E-for-BytesMut"],[290,"impl-PartialEq%3CString%3E-for-BytesMut"],[291,"impl-PartialEq%3CVec%3Cu8%3E%3E-for-BytesMut"],[292,"impl-PartialEq%3Cstr%3E-for-BytesMut"],[293,"impl-PartialEq-for-BytesMut"],[294,"impl-PartialEq%3C%5Bu8%5D%3E-for-BytesMut"],[323,"impl-Extend%3CBytes%3E-for-BytesMut"],[324,"impl-Extend%3C%26u8%3E-for-BytesMut"],[325,"impl-Extend%3Cu8%3E-for-BytesMut"],[332,"impl-Debug-for-Bytes"],[333,"impl-UpperHex-for-Bytes"],[334,"impl-LowerHex-for-Bytes"],[335,"impl-Debug-for-BytesMut"],[336,"impl-UpperHex-for-BytesMut"],[337,"impl-LowerHex-for-BytesMut"],[342,"impl-Display-for-Form%3CT%3E"],[343,"impl-Debug-for-Form%3CT%3E"],[344,"impl-Display-for-Json%3CT%3E"],[345,"impl-Debug-for-Json%3CT%3E"],[346,"impl-Debug-for-Path%3CT%3E"],[347,"impl-Display-for-Path%3CT%3E"],[348,"impl-Display-for-Query%3CT%3E"],[349,"impl-Debug-for-Query%3CT%3E"],[357,"impl-From%3CVec%3Cu8%3E%3E-for-Bytes"],[358,"impl-From%3CCustom%3E-for-Bytes"],[359,"impl-From%3CByteStr%3E-for-Bytes"],[360,"impl-From%3CBytesMut%3E-for-Bytes"],[361,"impl-From%3C%26%5Bu8%5D%3E-for-Bytes"],[362,"impl-From%3CString%3E-for-Bytes"],[363,"impl-From%3C%26str%3E-for-Bytes"],[364,"impl-From%3CBox%3C%5Bu8%5D%3E%3E-for-Bytes"],[365,"impl-From%3C%26%5Bu8%5D%3E-for-BytesMut"],[366,"impl-From%3CBytes%3E-for-BytesMut"],[368,"impl-From%3C%26str%3E-for-BytesMut"],[370,"impl-From%3CHttpResponseBuilder%3E-for-HttpResponse"],[371,"impl-From%3CResponse%3CB%3E%3E-for-HttpResponse%3CB%3E"],[372,"impl-From%3CError%3E-for-HttpResponse"],[373,"impl-From%3CServiceResponse%3CB%3E%3E-for-HttpResponse%3CB%3E"],[392,"impl-FromIterator%3Cu8%3E-for-BytesMut"],[393,"impl-FromIterator%3C%26u8%3E-for-BytesMut"],[418,"impl-HttpMessage-for-HttpRequest"],[419,"impl-HttpRequest"],[450,"impl-IntoIterator-for-%26Bytes"],[451,"impl-IntoIterator-for-Bytes"],[452,"impl-IntoIterator-for-%26BytesMut"],[453,"impl-IntoIterator-for-BytesMut"],[490,"impl-PartialOrd%3CVec%3Cu8%3E%3E-for-Bytes"],[491,"impl-PartialOrd%3CString%3E-for-Bytes"],[492,"impl-PartialOrd%3C%26T%3E-for-Bytes"],[493,"impl-PartialOrd%3Cstr%3E-for-Bytes"],[494,"impl-PartialOrd%3C%5Bu8%5D%3E-for-Bytes"],[495,"impl-PartialOrd-for-Bytes"],[496,"impl-PartialOrd%3CVec%3Cu8%3E%3E-for-BytesMut"],[497,"impl-PartialOrd%3C%26T%3E-for-BytesMut"],[498,"impl-PartialOrd%3CString%3E-for-BytesMut"],[499,"impl-PartialOrd%3Cstr%3E-for-BytesMut"],[500,"impl-PartialOrd%3C%5Bu8%5D%3E-for-BytesMut"],[501,"impl-PartialOrd-for-BytesMut"],[663,"impl-OperationModifier-for-Path%3C(A,+B,+C)%3E"],[664,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G,+H,+I,+J,+K,+L)%3E"],[665,"impl-OperationModifier-for-Path%3C(A,+B)%3E"],[666,"impl-OperationModifier-for-Path%3C(A,)%3E"],[667,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G,+H,+I,+J,+K)%3E"],[668,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D)%3E"],[669,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E)%3E"],[670,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G,+H,+I,+J,+K,+L,+M)%3E"],[671,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F)%3E"],[672,"impl-OperationModifier-for-Path%3CT%3E"],[673,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G)%3E"],[674,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G,+H)%3E"],[675,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G,+H,+I)%3E"],[676,"impl-OperationModifier-for-Path%3C(A,+B,+C,+D,+E,+F,+G,+H,+I,+J)%3E"]],"c":"OjAAAAAAAAA=","e":"OzAAAAEAANoBPQAAAAAABAAAAAYAAwANAAAAHAAAAB4AAQAqAAMANwADAD0AAgBBAAIARgACAEsAAwBRABEAZwAGAHAAAAByAAIAeAAAAHoADwCPAAMAlQAqAMIAAgDHACoA+AAJAAQBAgAIARAAGgEkAEQBAgBJAQAASwEAAE0BEQBkAQAAZgEIAHEBAABzAQMAeQEAAIABAACCAQAAiAECAIwBCACcAQEAowEAALsBAADDAQMA3QEAAOYBAwDrAQ4A+wECAAACAgAFAgIACQIFABMCCAAgAgUAKwIBADcCAAA9Ag4ATgIpAHkCAQB8AhMAkQIWAK0CEwDHAgEA","a":{"state":[63,141]}}],\ +["paperclip_core",{"t":"PPPPPGNNNNNCNNNNNCCCNFNNNNNNNNHNNNNNNFYYYFEFFKEFFEXXXXNNNNNNNNNNNNNXNNNNNNNNNNNNXXNNNNNNNNCNNNOXNXXNNNNNNNNOCNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNFPPPPPFFGFPGGPPIIIIIFFPPGFPPPPPFPPGPFPPPPPPFJJPPFFPPPFGPPFGPPPFPPPPPFGIIIIIPFPFGPPFPPPPGPPJJPNNOONONOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOONNNNNOOOOOOONOOOOOOONNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOONNNNNNNOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOONNNONOOOOOOOOOOOOOOOOONOOOOOOOOOOOOOOOOOONOOOOOONOOOOOOOOOOOONNNNNNOOOOOOOOOOOOOONOONNOOONOOOONNNNOOOOOONNNOOOOOOOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOONOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOKKKTKKMMNMNMMNMMNNMNMMNNMNMMMNMNMNMNMMMNNH","n":["InvalidHeader","InvalidParameterType","InvalidRefUri","MissingReference","MissingSchemaForBodyParameter","ValidationError","borrow","borrow_mut","fmt","fmt","from","im","into","to_string","try_from","try_into","type_id","util","v2","v3","vzip","Ready","borrow","borrow_mut","definitions","from","into","into_future","operation","poll","ready","security_definitions","try_from","try_into","try_poll","type_id","vzip","AcceptedJson","Apiv2Header","Apiv2Schema","Apiv2Security","CreatedJson","DefaultSchema","HttpResponseWrapper","NoContent","OperationModifier","ResolvableApi","ResponderWrapper","ResponseWrapper","Schema","api_v2_errors","api_v2_errors_overlay","api_v2_operation","api_v2_schema_struct","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","definitions","delete","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","get","head","into","into","into","into","into","into","into_future","is_visible","models","name","name","operation","operations","patch","poll","post","put","raw_schema","raw_schema","respond_to","respond_to","respond_to","respond_to","respond_to","respond_to","responder","schema","security_definitions","to_string","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_poll","type_id","type_id","type_id","type_id","type_id","type_id","update_definitions","update_definitions","update_parameter","update_parameter","update_response","update_response","update_response","update_response","update_response","update_security","update_security","update_security_definitions","update_security_definitions","vzip","vzip","vzip","vzip","vzip","vzip","Api","Array","Binary","Body","Boolean","Byte","Coder","Coders","CollectionFormat","Contact","Csv","DataType","DataTypeFormat","Date","DateTime","DefaultApiRaw","DefaultOperationRaw","DefaultParameterRaw","DefaultPathItemRaw","DefaultResponseRaw","DefaultSchema","DefaultSchemaRaw","Delete","Double","Either","ExternalDocs","File","Float","FormData","Get","Head","Header","Header","Http","HttpMethod","Https","Info","Int32","Int64","Integer","Ip","IpV4","IpV6","Items","JSON_CODER","JSON_MIME","Json","Left","License","MediaRange","Multi","Number","Object","Operation","OperationProtocol","Options","Other","Parameter","ParameterIn","Password","Patch","Path","PathItem","Pipes","Post","Put","Query","Raw","Reference","Resolvable","ResolvableApi","ResolvableOperation","ResolvableParameter","ResolvablePathItem","ResolvableResponse","Resolved","Response","Right","SecurityScheme","SpecFormat","Ssv","String","Tag","Tsv","Url","Uuid","V2","Version","Ws","Wss","YAML_CODER","YAML_MIME","Yaml","additional_properties","additional_properties_mut","allow_empty_value","allow_empty_value","allows_body","any_value","append_map","auth_url","base_path","base_path","base_path","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","builtin","check","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","clone_to_uninit","cmp","cmp","cmp","cmp","cmp","coder","coders","coders","coders","collection_format","collection_format","collection_format","collection_format","compare","compare","compare","compare","compare","consumes","consumes","consumes","consumes","consumes","consumes","contact","data_type","data_type","data_type","data_type","data_type","data_type","data_type","decoder_path","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","default","definitions","definitions","definitions","deprecated","deprecated","deprecated","deref","deref","deref","deref_mut","deref_mut","deref_mut","description","description","description","description","description","description","description","description","description","description","description","description","description","description","description","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","email","encoder_path","enum_","enum_","enum_","enum_","enum_","enum_","enum_variants","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","error_path","example","example","exclusive_maximum","exclusive_maximum","exclusive_maximum","exclusive_maximum","exclusive_minimum","exclusive_minimum","exclusive_minimum","exclusive_minimum","extensions","extensions","extensions","extensions","external_docs","external_docs","external_docs","external_docs","extra_props","extra_props","flow","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","format","format","format","format","format","format","format","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","get_description","headers","headers","host","host","host","in_","in_","in_","info","info","info","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","is_cyclic","is_primitive","items","items","items","items","items","items","items","items_mut","left","left_mut","license","matching_coder","max_items","max_items","max_items","max_items","max_length","max_length","max_length","max_length","maximum","maximum","maximum","maximum","maximum","maximum","methods","methods","methods","mime","min_items","min_items","min_items","min_items","min_length","min_length","min_length","min_length","minimum","minimum","minimum","minimum","minimum","minimum","multiple_of","multiple_of","multiple_of","multiple_of","name","name","name","name","name","name","name","normalize","operation_id","operation_id","operation_id","parameters","parameters","parameters","parameters","parameters","parameters","parameters","parameters","parameters","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","path_parameters_map","paths","paths","paths","pattern","pattern","pattern","pattern","prefer","produces","produces","produces","produces","produces","produces","properties","properties","properties","properties_mut","reference","reference","reference","reference","remove_refs","required","required","required","required","required_properties","resolve","resolve","resource_path","responses","responses","responses","responses","responses","responses","retain_ref","right","right_mut","schema","schema","schema","schema","schemes","schemes","schemes","schemes","schemes","schemes","scopes","security","security","security","security","security","security","security_definitions","security_definitions","security_definitions","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","set_cyclic","set_name","set_parameter_names_from_path_template","set_reference","spec_format","spec_format","spec_format","summary","summary","summary","support_crates","support_crates","support_crates","swagger","swagger","swagger","tags","tags","tags","tags","tags","tags","terms_of_service","title","title","title","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","to_string","token_url","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","unique_items","unique_items","unique_items","unique_items","update_definitions","url","url","url","version","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","new","old","Apiv2Errors","Apiv2Operation","Apiv2Schema","ERROR_MAP","Schema","TypedData","additional_properties","additional_properties_mut","contains_any","data_type","data_type","definitions","description","description","enum_variants","format","format","header_parameter_schema","is_cyclic","is_visible","items","items_mut","max","min","name","name","operation","properties","properties_mut","raw_schema","reference","required","required_properties","schema_with_ref","security_definitions","security_scheme","set_cyclic","set_name","set_reference","update_definitions","update_error_definitions","openapiv2_to_v3"],"q":[[0,"paperclip_core"],[21,"paperclip_core::util"],[37,"paperclip_core::v2"],[151,"paperclip_core::v2::models"],[1066,"paperclip_core::v2::models::Resolvable"],[1068,"paperclip_core::v2::schema"],[1109,"paperclip_core::v3"],[1110,"paperclip_core::error"],[1111,"core::fmt"],[1112,"alloc::string"],[1113,"core::result"],[1114,"core::any"],[1115,"alloc::collections::btree::map"],[1116,"core::pin"],[1117,"core::task::wake"],[1118,"core::task::poll"],[1119,"paperclip_core::v2::actix"],[1120,"serde::ser"],[1121,"core::option"],[1122,"actix_web::response::responder"],[1123,"core::future::future"],[1124,"actix_web::request"],[1125,"actix_web::response::response"],[1126,"actix_http::body::boxed"],[1127,"paperclip_core::v2::extensions"],[1128,"core::clone"],[1129,"core::cmp"],[1130,"alloc::sync"],[1131,"core::default"],[1132,"serde::de"],[1133,"serde_json::value"],[1134,"http::method"],[1135,"openapiv3::parameter"],[1136,"openapiv3::request_body"],[1137,"openapiv3::schema"],[1138,"alloc::borrow"],[1139,"core::ops::function"],[1140,"alloc::collections::btree::set"],[1141,"std::sync::rwlock"],[1142,"actix_router::path"],[1143,"alloc::vec"],[1144,"openapiv3::openapi"],[1145,"paperclip_macros"]],"i":[3,3,3,3,3,0,3,3,3,3,3,0,3,3,3,3,3,0,0,0,3,0,14,14,14,14,14,14,14,14,0,14,14,14,14,14,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,35,38,29,19,24,25,35,38,29,19,24,25,29,0,19,19,24,24,25,25,35,38,29,19,24,25,0,0,35,38,29,19,24,25,29,29,0,19,24,29,29,0,29,0,0,19,24,35,38,29,19,24,25,29,0,29,19,24,25,35,38,29,19,24,25,35,38,29,19,24,25,29,35,38,29,19,24,25,30,30,30,30,30,30,19,24,25,30,30,30,30,35,38,29,19,24,25,0,51,52,63,51,52,0,0,0,0,64,0,0,52,52,0,0,0,0,0,0,0,44,52,0,0,51,52,63,44,44,0,63,66,0,66,0,52,52,51,52,52,52,0,0,0,55,43,0,0,64,51,51,0,0,44,52,0,0,52,44,63,0,64,44,44,63,42,0,0,0,0,0,0,0,42,0,43,0,0,64,51,0,64,52,52,50,0,66,66,0,0,55,41,41,77,11,44,49,18,18,85,91,53,47,48,49,50,51,52,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,43,42,47,48,49,50,51,52,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,43,42,49,11,47,48,49,50,51,52,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,43,42,47,48,49,50,51,52,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,43,42,47,48,49,50,50,51,51,52,53,55,55,9,41,56,57,58,18,59,60,61,11,62,63,63,64,64,13,65,66,66,12,67,44,44,43,42,47,63,64,66,44,55,85,91,53,77,11,62,67,47,63,64,66,44,85,91,93,28,53,13,56,41,77,9,41,11,62,67,49,48,49,50,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,12,67,42,77,11,67,85,91,53,93,28,13,48,43,42,48,43,42,41,77,93,28,94,9,41,56,18,59,60,11,13,12,67,47,48,49,50,51,52,53,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,43,42,57,49,77,9,41,11,62,67,41,47,50,51,52,55,11,62,63,64,65,66,44,47,47,47,47,50,50,50,50,51,51,51,51,52,52,52,52,55,55,55,55,63,63,63,63,64,64,64,64,65,65,65,65,66,66,66,66,44,44,44,44,49,9,41,77,11,62,67,77,11,62,67,85,91,53,56,85,91,53,59,9,41,18,47,48,49,50,51,52,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,44,43,42,41,77,9,41,11,62,67,47,48,49,50,51,51,52,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,44,43,43,42,42,42,42,94,12,85,91,53,77,18,11,85,91,53,47,48,49,50,51,52,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,43,42,41,51,41,77,9,41,11,62,67,41,43,43,56,48,77,11,62,67,77,11,62,67,77,9,41,11,62,67,95,96,61,55,77,11,62,67,77,11,62,67,77,9,41,11,62,67,77,11,62,67,41,77,57,58,18,59,11,61,93,28,13,85,91,95,96,93,28,53,61,13,47,63,64,66,44,53,85,91,53,77,11,62,67,49,85,91,93,28,53,13,41,9,41,41,41,9,41,65,9,77,9,41,11,41,85,53,43,85,91,93,28,53,13,9,43,43,77,94,11,12,85,91,93,28,53,13,18,85,91,93,28,53,13,85,91,53,47,48,49,50,51,52,53,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,43,42,41,41,13,41,85,91,53,93,28,13,85,91,53,85,91,53,85,91,93,28,53,13,56,9,41,56,47,48,49,50,51,52,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,43,42,52,44,18,47,48,49,50,51,52,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,43,42,47,48,49,50,51,52,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,43,42,18,47,48,49,50,51,52,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,43,42,77,11,62,67,18,57,58,60,56,47,48,49,50,51,52,53,55,9,41,56,57,58,18,59,60,61,11,62,63,64,13,65,66,12,67,44,43,42,97,97,0,0,0,98,0,0,46,46,46,46,99,34,46,22,46,46,99,22,46,34,46,46,99,99,46,22,34,46,46,22,46,22,46,22,34,22,46,46,46,98,98,0],"f":"``````{b{{b{c}}}{}}{{{b{d}}}{{b{dc}}}{}}{{{b{f}}{b{dh}}}j}0{cc{}}`{{}c{}}{bl}{c{{n{e}}}{}{}}{{}{{n{c}}}{}}{bA`}```4`87{{}{{Ad{lAb}}}}65{{}}{{}{{Aj{{Af{Ab}}{Ah{Ab}}}}}}{{{An{{b{d{Al{c}}}}}}{b{dB`}}}{{Bb{c}}}{}}{c{{Al{c}}}{}}{{}{{Ad{lBd}}}}87{{{An{{b{dc}}}}{b{dB`}}}Bb{}}7;`````````````````??????>>>>>>6`{{{b{{Bf{c}}}}{b{dh}}}j{BhBjBl}}{{{b{{Bf{c}}}}{b{dh}}}j{BnBjBl}}{{{b{{C`{c}}}}{b{dh}}}j{BhBjBl}}{{{b{{C`{c}}}}{b{dh}}}j{BnBjBl}}{{{b{Cb}}{b{dh}}}j}0{cc{}}00000``{{}c{}}00000<{{}Cd}`{{}{{Cf{l}}}}0{{}Ch}``{{{An{{b{d{Cj{eg}}}}}}{b{dB`}}}{{Bb{i}}}{ClCn}{{Db{}{{D`{c}}}}}Dd{}}``{{}Ab}0{{Df{b{Dh}}}{{Dj{c}}}{}}{{{Dl{c}}{b{Dh}}}{{Dj{e}}}Cn{}}{{{Cj{ce}}{b{Dh}}}{{Dj{g}}}Cn{}{}}{{{Bf{c}}{b{Dh}}}{{Dj{Dn}}}{BjBl}}{{{C`{c}}{b{Dh}}}{{Dj{Dn}}}{BjBl}}{{Cb{b{Dh}}}{{Dj{Dn}}}}``{{}{{Ad{lBd}}}}{bl}00{c{{n{e}}}{}{}}00000{{}{{n{c}}}{}}00000{{{An{{b{dc}}}}{b{dB`}}}Bb{}}{bA`}00000{{{b{d{Ad{lAb}}}}}E`}0{{{b{dCh}}}E`}00000000{{{b{d{Ad{lBd}}}}}E`}0{{}c{}}00000`````````````````````````````````````````````````````````````````````````````````````````````{{{b{Eb}}}{{Cf{{b{{Ef{Cd{Ed{Eb}}}}}}}}}}{{{b{dEb}}}{{Cf{{b{d{Ef{Cd{Ed{Eb}}}}}}}}}}``{EhCd}`{{{Ad{lBd}}{b{d{Ad{lBd}}}}}E`}````{b{{b{c}}}{}}0000000000000000000000000000{{{b{d}}}{{b{dc}}}{}}0000000000000000000000000000`{{{b{{Af{{Ed{c}}}}}}{b{Ej}}}{{n{E`f}}}El}{{{b{En}}}En}{{{b{F`}}}F`}{{{b{Fb}}}Fb}{{{b{Fd}}}Fd}{{{b{Ff}}}Ff}{{{b{Fh}}}Fh}{{{b{{Fj{ceg}}}}}{{Fj{ceg}}}FlFlFl}{{{b{Fn}}}Fn}{{{b{Ab}}}Ab}{{{b{Eb}}}Eb}{{{b{G`}}}G`}{{{b{Gb}}}Gb}{{{b{Gd}}}Gd}{{{b{Bd}}}Bd}{{{b{Gf}}}Gf}{{{b{Gh}}}Gh}{{{b{{Gj{ce}}}}}{{Gj{ce}}}FlFl}{{{b{{Af{c}}}}}{{Af{c}}}Fl}{{{b{Gl}}}Gl}{{{b{Gn}}}Gn}{{{b{H`}}}H`}{{{b{{Aj{ce}}}}}{{Aj{ce}}}FlFl}{{{b{Hb}}}Hb}{{{b{Hd}}}Hd}{{{b{{Ah{c}}}}}{{Ah{c}}}Fl}{{{b{Hf}}}Hf}{{{b{Eh}}}Eh}{{{b{{Ef{ce}}}}}{{Ef{ce}}}FlFl}{{{b{{Ed{c}}}}}{{Ed{c}}}{}}{{b{b{dc}}}E`{}}0000000000000000000000000000{bE`}00000000000000000000000000000000000{{{b{En}}{b{En}}}Hh}{{{b{Gn}}{b{Gn}}}Hh}{{{b{H`}}{b{H`}}}Hh}{{{b{Hd}}{b{Hd}}}Hh}{{{b{Eh}}{b{Eh}}}Hh}{Fn{{Hj{Fb}}}}```````{{b{b{c}}}Hh{}}0000```````{{{b{Eb}}}{{Cf{Ff}}}}```````{{}F`}{{}Fb}{{}Fd}{{}{{Fj{ceg}}}HlHlHl}{{}Fn}{{}Ab}{{}Eb}{{}G`}{{}Gb}{{}Gd}{{}Bd}{{}Gf}{{}Gh}{{}{{Gj{ce}}}HlHl}{{}{{Af{c}}}Hl}{{}Gl}{{}Gn}{{}H`}{{}{{Aj{ce}}}HlHl}{{}Hb}{{}{{Ah{c}}}Hl}{{}Hf}{{}{{Ed{c}}}Hl}`````````{{{b{F`}}}{{b{c}}}{}}{{{b{{Ef{Hbc}}}}}{{b{e}}}{}{}}{{{b{{Ed{c}}}}}{{b{e}}}{}{}}{{{b{dF`}}}{{b{dc}}}{}}{{{b{d{Ef{Hbc}}}}}{{b{de}}}{}{}}{{{b{d{Ed{c}}}}}{{b{de}}}{}{}}{{{b{Eb}}}{{Cf{{b{Ej}}}}}}``````````````{c{{n{En}}}Hn}{c{{n{F`}}}Hn}{c{{n{Fb}}}Hn}{c{{n{Fd}}}Hn}{c{{n{Ff}}}Hn}{c{{n{Fh}}}Hn}{c{{n{{Fj{egi}}}}}HnI`I`I`}{c{{n{Ab}}}Hn}{c{{n{Eb}}}Hn}{c{{n{G`}}}Hn}{c{{n{Gb}}}Hn}{c{{n{Gd}}}Hn}{c{{n{Bd}}}Hn}{c{{n{Gf}}}Hn}{c{{n{Gh}}}Hn}{c{{n{{Gj{eg}}}}}HnI`I`}{c{{n{{Af{e}}}}}HnI`}{c{{n{Gl}}}Hn}{c{{n{Gn}}}Hn}{c{{n{H`}}}Hn}{c{{n{{Aj{eg}}}}}HnI`I`}{c{{n{Hb}}}Hn}{c{{n{Hd}}}Hn}{c{{n{{Ah{e}}}}}HnI`}{c{{n{Hf}}}Hn}{c{{n{Eh}}}Hn}{c{{n{{Ef{eg}}}}}HnI`I`}{c{{n{{Ed{e}}}}}HnI`}````````{{{b{Eb}}}{{Cf{{b{{Id{Ib}}}}}}}}{{{b{En}}{b{En}}}Cd}{{{b{Fd}}{b{Fd}}}Cd}{{{b{Ff}}{b{Ff}}}Cd}{{{b{Fh}}{b{Fh}}}Cd}{{{b{Fn}}{b{Fn}}}Cd}{{{b{{Af{c}}}}{b{{Af{c}}}}}CdIf}{{{b{Gl}}{b{Gl}}}Cd}{{{b{Gn}}{b{Gn}}}Cd}{{{b{H`}}{b{H`}}}Cd}{{{b{Hb}}{b{Hb}}}Cd}{{{b{Hd}}{b{Hd}}}Cd}{{{b{Eh}}{b{Eh}}}Cd}{{b{b{c}}}Cd{}}000000000000000000000000000000000000000``````````````````````{{{b{En}}{b{dh}}}j}{{{b{F`}}{b{dh}}}j}{{{b{Fb}}{b{dh}}}j}{{{b{Fd}}{b{dh}}}j}{{{b{Ff}}{b{dh}}}j}{{{b{Fh}}{b{dh}}}j}{{{b{{Fj{ceg}}}}{b{dh}}}jBnBnBn}{{{b{Fn}}{b{dh}}}j}{{{b{Ab}}{b{dh}}}j}{{{b{Eb}}{b{dh}}}j}{{{b{G`}}{b{dh}}}j}{{{b{Gb}}{b{dh}}}j}{{{b{Gd}}{b{dh}}}j}{{{b{Bd}}{b{dh}}}j}{{{b{Gf}}{b{dh}}}j}{{{b{Gh}}{b{dh}}}j}{{{b{{Gj{ce}}}}{b{dh}}}jBnBn}{{{b{{Af{c}}}}{b{dh}}}jBn}{{{b{Gl}}{b{dh}}}j}{{{b{Gn}}{b{dh}}}j}{{{b{H`}}{b{dh}}}j}{{{b{{Aj{ce}}}}{b{dh}}}jBnBn}{{{b{Hb}}{b{dh}}}j}{{{b{Hd}}{b{dh}}}j}{{{b{{Ah{c}}}}{b{dh}}}jBn}{{{b{Hf}}{b{dh}}}j}{{{b{Eh}}{b{dh}}}j}0{{{b{{Ef{ce}}}}{b{dh}}}jBnBn}{{{b{{Ed{c}}}}{b{dh}}}jBn}{{{b{Eb}}}{{Cf{{b{Fh}}}}}}``````{cc{}}0000{FhFf}111111111111111111111{{{b{Ih}}}Eh}2{Ij{{Ef{Il{Ef{In{Cf{J`}}}}}}}}3{c{{Ed{c}}}{}}{Jbc{}}5{{{b{{Ed{c}}}}}{{Cf{l}}}El}```````````{{}c{}}0000000000000000000000000000{{{b{Eb}}}Cd}{FfCd}{{{b{Eb}}}{{Cf{{b{{Ed{Eb}}}}}}}}``````{{{b{dEb}}}{{Cf{{b{d{Ed{Eb}}}}}}}}{{{b{{Ef{ce}}}}}{{Cf{{b{c}}}}}{}{}}{{{b{d{Ef{ce}}}}}{{Cf{{b{dc}}}}}{}{}}`{{{b{F`}}{b{En}}}{{Cf{{Hj{Fb}}}}}}`````````````````{Fn{{b{En}}}}``````````````````{{{b{Eb}}}{{Cf{{b{Ej}}}}}}``````{{{b{d{Gj{{Af{c}}{Ah{c}}}}}}}E`{}}````````````{{{b{En}}{b{En}}}{{Cf{Hh}}}}{{{b{Gn}}{b{Gn}}}{{Cf{Hh}}}}{{{b{H`}}{b{H`}}}{{Cf{Hh}}}}{{{b{Hd}}{b{Hd}}}{{Cf{Hh}}}}{{{b{Eh}}{b{Eh}}}{{Cf{Hh}}}}{{{b{Ej}}c}{{Jd{Ej}}}{{Jf{{b{Ej}}}{{D`{{Jd{Ej}}}}}}}}``````````````{{{b{Eb}}}{{Cf{{b{{Ad{l{Ed{Eb}}}}}}}}}}``{{{b{dEb}}}{{Cf{{b{d{Ad{l{Ed{Eb}}}}}}}}}}9```{{{b{dAb}}}E`}````{{{b{Eb}}}{{Cf{{b{{Jh{l}}}}}}}}{{{Jj{c}}}{{n{{Jj{c}}f}}}{ElHl}}{{{Fj{{Hj{{Jl{{Af{{Ed{c}}}}}}}}{Hj{{Jl{{Ah{{Ed{c}}}}}}}}{Ed{c}}}}}{{n{{Jj{c}}f}}}{ElHl}}{{{b{d}}}{{b{dJn}}}}``````4{{{b{{Ef{ce}}}}}{{Cf{{b{e}}}}}{}{}}{{{b{d{Ef{ce}}}}}{{Cf{{b{de}}}}}{}{}}````````````````````{{{b{En}}c}nK`}{{{b{F`}}c}nK`}{{{b{Fb}}c}nK`}{{{b{Fd}}c}nK`}{{{b{Ff}}c}nK`}{{{b{Fh}}c}nK`}{{{b{{Fj{ceg}}}}i}nBjBjBjK`}{{{b{Ab}}c}nK`}{{{b{Eb}}c}nK`}{{{b{G`}}c}nK`}{{{b{Gb}}c}nK`}{{{b{Gd}}c}nK`}{{{b{Bd}}c}nK`}{{{b{Gf}}c}nK`}{{{b{Gh}}c}nK`}{{{b{{Gj{ce}}}}g}nBjBjK`}{{{b{{Af{c}}}}e}nBjK`}{{{b{Gl}}c}nK`}{{{b{Gn}}c}nK`}{{{b{H`}}c}nK`}{{{b{{Aj{ce}}}}g}nBjBjK`}{{{b{Hb}}c}nK`}{{{b{Hd}}c}nK`}{{{b{{Ah{c}}}}e}nBjK`}{{{b{Hf}}c}nK`}{{{b{Eh}}c}nK`}{{{b{{Ef{ce}}}}g}nBjBjK`}{{{b{{Ed{c}}}}e}nBjK`}{{{b{dEb}}Cd}E`}{{{b{dEb}}{b{Ej}}}E`}{{{b{d{Aj{{Af{c}}{Ah{c}}}}}}{b{Ej}}}E`{}}{{{b{dEb}}l}E`}``````````````````````{bc{}}0000000000000000000000000000{{{b{Fh}}}l}{bl}`{c{{n{e}}}{}{}}0000000000000000000000000000{{}{{n{c}}}{}}0000000000000000000000000000`{bA`}0000000000000000000000000000````{{Bd{b{Ej}}{b{d{Ad{lBd}}}}}E`}````{{}c{}}0000000000000000000000000000````````{{{b{El}}}{{Cf{{b{{Ef{Cd{Ed{El}}}}}}}}}}{{{b{dEl}}}{{Cf{{b{d{Ef{Cd{Ed{El}}}}}}}}}}{{{b{El}}}Cd}{{{b{El}}}{{Cf{Ff}}}}{{}Ff}{{}{{Ad{lAb}}}}{{{b{El}}}{{Cf{{b{Ej}}}}}}{{}{{b{Ej}}}}{{{b{El}}}{{Cf{{b{{Id{Ib}}}}}}}}{{{b{El}}}{{Cf{{b{Fh}}}}}}{{}{{Cf{Fh}}}}{{}{{Kb{{Af{Ab}}}}}}9{{}Cd}{{{b{El}}}{{Cf{{b{{Ed{El}}}}}}}}{{{b{dEl}}}{{Cf{{b{d{Ed{El}}}}}}}}{{}{{Cf{Kd}}}}09{{}{{Cf{l}}}}{{}Ch}{{{b{El}}}{{Cf{{b{{Ad{l{Ed{El}}}}}}}}}}{{{b{dEl}}}{{Cf{{b{d{Ad{l{Ed{El}}}}}}}}}}{{}Ab}>8{{{b{El}}}{{Cf{{b{{Jh{l}}}}}}}}1{{}{{Ad{lBd}}}}{{}{{Cf{Bd}}}}{{{b{dEl}}Cd}E`}{{{b{dEl}}{b{Ej}}}E`}{{{b{dEl}}l}E`}{{{b{d{Ad{lAb}}}}}E`}{{{b{dCh}}}E`}{KfKh}","D":"ALh","p":[[1,"reference"],[0,"mut"],[6,"ValidationError",0,1110],[5,"Formatter",1111],[8,"Result",1111],[5,"String",1112],[6,"Result",1113],[5,"TypeId",1114],[5,"DefaultSchemaRaw",151],[5,"BTreeMap",1115],[5,"Parameter",151],[5,"Response",151],[5,"Operation",151],[5,"Ready",21],[5,"Pin",1116],[5,"Context",1117],[6,"Poll",1118],[5,"SecurityScheme",151],[5,"CreatedJson",37,1119],[10,"Display",1111],[10,"Serialize",1120],[10,"Apiv2Schema",1068],[10,"Debug",1111],[5,"AcceptedJson",37,1119],[5,"NoContent",37,1119],[1,"bool"],[6,"Option",1121],[8,"DefaultOperationRaw",151],[5,"ResponseWrapper",37,1119],[10,"OperationModifier",37,1119],[10,"Responder",1122],[17,"Output"],[10,"Future",1123],[10,"Apiv2Operation",1068],[5,"HttpResponseWrapper",37,1119],[5,"HttpRequest",1124],[5,"HttpResponse",1125],[5,"ResponderWrapper",37,1119],[5,"BoxBody",1126],[1,"unit"],[5,"DefaultSchema",151],[6,"Resolvable",151],[6,"Either",151],[6,"HttpMethod",151],[1,"str"],[10,"Schema",1068],[5,"MediaRange",151,1127],[5,"Coders",151,1127],[5,"Coder",151,1127],[6,"Version",151],[6,"DataType",151],[6,"DataTypeFormat",151],[5,"Api",151],[10,"Clone",1128],[6,"SpecFormat",151],[5,"Info",151],[5,"Contact",151],[5,"License",151],[5,"Tag",151],[5,"ExternalDocs",151],[5,"PathItem",151],[5,"Items",151],[6,"ParameterIn",151],[6,"CollectionFormat",151],[5,"Reference",151],[6,"OperationProtocol",151],[5,"Header",151],[6,"Ordering",1129],[5,"Arc",1130],[10,"Default",1131],[10,"Deserializer",1132],[10,"Deserialize",1132],[6,"Value",1133],[1,"slice"],[10,"PartialEq",1129],[5,"Method",1134],[8,"DefaultParameterRaw",151],[6,"Parameter",1135],[5,"RequestBody",1136],[5,"Schema",1137],[1,"never"],[6,"Cow",1138],[10,"FnMut",1139],[5,"BTreeSet",1140],[8,"ResolvableApi",151],[5,"RwLock",1141],[5,"Path",1142],[10,"Serializer",1120],[5,"Vec",1143],[1,"f32"],[8,"DefaultApiRaw",151],[5,"OpenAPI",1144],[8,"ResolvableOperation",151],[8,"DefaultResponseRaw",151],[8,"ResolvablePathItem",151],[8,"DefaultPathItemRaw",151],[15,"Resolved",1066],[10,"Apiv2Errors",1068],[10,"TypedData",1068]],"r":[[5,1110],[37,1119],[38,1145],[39,1145],[40,1145],[41,1119],[42,151],[43,1119],[44,1119],[45,1119],[46,151],[47,1119],[48,1119],[49,1068],[50,1145],[51,1145],[52,1145],[53,1145],[67,1145],[80,1145],[81,1145],[95,1145],[97,1145],[98,1145],[157,1127],[158,1127],[195,1127],[196,1127],[200,1127],[241,1127],[242,1127]],"b":[[8,"impl-Debug-for-ValidationError"],[9,"impl-Display-for-ValidationError"],[68,"impl-Display-for-CreatedJson%3CT%3E"],[69,"impl-Debug-for-CreatedJson%3CT%3E"],[70,"impl-Display-for-AcceptedJson%3CT%3E"],[71,"impl-Debug-for-AcceptedJson%3CT%3E"],[72,"impl-Display-for-NoContent"],[73,"impl-Debug-for-NoContent"],[632,"impl-Debug-for-HttpMethod"],[633,"impl-Display-for-HttpMethod"]],"c":"OjAAAAAAAAA=","e":"OzAAAAEAAHIDRgAHAAMADgAEABUAAAAXAAIAHAACACAABgAqAAEALQAAAC8AAAAxAAEANwAMAEUABQBZAAEAXAADAGEAAABkAAgAbgAWAIsAAgCSAAUAmQAEAKIAAAClAAEArgABALIABAC4AAEAuwAAAL0ABQDGAAEAygACAM8AAQDTAAIA1wAEAOMAAADlAAAA6AABAOsAAwDwAAEA9AAEAPwAPQA8AWIAowEWALsBUQAOAjoASgIMAFgCKwCJAgAAnwIAAKECAACjAgEApwIKAM8CAADRAgcA2wIAAN0CEADvAhgACQMQABsDBgAjAw0AMgMEADkDBgBDAzEAdgMAAHoDAgCAA4gACgQiADAEAAA+BAAAQAQAAEMEAQBUBAEA"}],\ ["paperclip_macros",{"t":"YYYXXXXXXXXXX","n":["Apiv2Header","Apiv2Schema","Apiv2Security","api_v2_errors","api_v2_errors_overlay","api_v2_operation","api_v2_schema_struct","delete","get","head","patch","post","put"],"q":[[0,"paperclip_macros"]],"i":[0,0,0,0,0,0,0,0,0,0,0,0,0],"f":"`````````````","D":"Al","p":[],"r":[],"b":[],"c":"OjAAAAAAAAA=","e":"OjAAAAAAAAA="}]\ ]')); if (typeof exports !== 'undefined') exports.searchIndex = searchIndex; diff --git a/search.desc/paperclip/paperclip-desc-0-.js b/search.desc/paperclip/paperclip-desc-0-.js index fa8c9d725..5ea66d6a4 100644 --- a/search.desc/paperclip/paperclip-desc-0-.js +++ b/search.desc/paperclip/paperclip-desc-0-.js @@ -1 +1 @@ -searchState.loadedDescShard("paperclip", 0, "Paperclip is a OpenAPI code generator for efficient …\nContains the error value\nInvalid base path URL.\nThe given directory cannot be used for generating code.\nThe name for the given definition is invalid.\nA valid path cannot be obtained for the given definition.\nInvalid host for URL.\nI/O errors.\nJSON coding errors.\nThe given schema object is an array, but the items field …\nThe name for the given definition is missing.\nContains the success value\nGlobal error which encapsulates all related errors.\nGeneric result used throughout this library.\nPaths listed in the spec must be unique.\nErrors in templating.\nCurrently, we only support OpenAPI v2, and eventually v3.\nError encountered during spec validation.\nYAML coding errors.\nPlugin types, traits and macros for actix-web framework.\nConverts your struct to support deserializing from an …\nReturns the argument unchanged.\nCalls U::from(self).\nUtilities related to the OpenAPI v2 specification.\nDerive attribute for indicating that a type is an OpenAPI …\nDerive attribute for indicating that a type is an OpenAPI …\nMarker attribute for indicating that an object forbids …\nWrapper for actix_web::App.\nWorkaround for possibility to directly return HttpResponse …\nIndicates that this thingmabob has a path and a bunch of …\nExtension trait for actix-web applications.\nActix-specific trait for indicating that this entity can …\nWrapper for wrapping over impl Responder thingies (to …\nMarker attribute for indicating that the marked object can …\nMarker attribute for indicating that the marked object can …\nMarker attribute for indicating that a function is an …\nProxy for actix_web::App::app_data.\nBuilds and returns the actix_web::App.\nWrapper for actix_web::App::configure.\nProxy for actix_web::App::data_factory.\nProxy for actix_web::App::default_service.\nThe definitions recorded by this object.\nCreates route handler with paperclip::actix::web::Resource.\nProxy for actix_web::App::external_resource.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreates route handler with paperclip::actix::web::Resource.\nCreates route handler with paperclip::actix::web::Resource.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nMap of HTTP methods and the associated API operations.\nCreates route handler with paperclip::actix::web::Resource.\nWhere this thing gets mounted.\nCreates route handler with paperclip::actix::web::Resource.\nCreates route handler with paperclip::actix::web::Resource.\nWrapper for actix_web::App::route.\nThe security definitions recorded by this object.\nWrapper for actix_web::App::service.\nTrim’s the Api base path from the start of all method …\nUpdate the definitions map (if needed).\nUpdates the given map of operations with operations …\nUpdate the parameters list in the given operation (if …\nUpdate the responses map in the given operation (if …\nUpdate the security map in the given operation (if needed).\nUpdate the security definition map (if needed).\nProxy module for actix_web::web.\nMounts the specification for all operations and definitions\nConverts the generated v2 specification to v3 and then …\nCalls the given function with App and JSON Value …\nCalls the given function with App and JSON Value …\nExposes the previously built JSON specification with …\nProxy for actix_web::web::App::wrap.\nConsumes this app and produces its wrapper to start …\nSame as wrap_api initializing with provided specification …\nProxy for actix_web::web::App::wrap_fn.\nA cheaply cloneable and sliceable chunk of contiguous …\nA unique reference to a contiguous slice of memory.\nApplication data wrapper and extractor.\nURL encoded payload extractor and responder.\nForm extractor configuration.\nAn incoming request.\nAn outgoing response.\nJSON extractor and responder.\nJson extractor configuration.\nExtract typed data from request path segments.\nPath extractor configuration\nExtract a request’s raw payload stream.\nConfiguration for request payloads.\nExtract typed information from the request’s query.\nQuery extractor configuration.\nRequest-local data extractor.\nWrapper for actix_web::Resource\nWrapper for actix_web::Route\nWrapper for actix_web::Scope\nWrapper for actix_web::web::ServiceConfig.\nReturns a reference to the application’s connection …\nProxy for actix_web::Resource::app_data.\nProxy for actix_web::Scope::app_data.\nProxy for actix_web::web::ServiceConfig::app_data.\nRetrieves a piece of application state.\nExecutes blocking function on a thread pool, returns …\nReturns a reference to this response’s body.\nConstructs a response builder with specific HTTP status.\nReturns the number of bytes the BytesMut can hold without …\nClears the buffer, removing all data.\nClears the buffer, removing all data. Existing capacity is …\nWrapper for actix_web::Scope::configure.\nReturns a reference a piece of connection data set in an …\nReturns connection info for the current request.\nSet predicate for allowed content types.\nSets whether or not the request must have a Content-Type …\nCreates Bytes instance from slice, by copying it.\nProxy for actix_web::web::Resource::default_service.\nProxy for actix_web::web::Scope::default_service.\nWrapper for actix_web::web::delete.\nDrops body and returns new response.\nThe source error for this response\nSet custom error handler\nSet custom error handler.\nSet custom error handler.\nSet custom error handler\nAppends given bytes to this BytesMut.\nReturns reference to the response-local data/extensions …\nReturns reference to the response-local data/extensions …\nProxy for actix_web::web::ServiceConfig::external_resource.\nConverts self into an immutable Bytes.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreate an error response.\nDeserialize a T from the URL encoded query parameter …\nCreates a new Bytes from a static slice.\nReturns request’s original full URL.\nWrapper for actix_web::web::get.\nReturns reference to inner T.\nProxy for actix_web::Resource::guard.\nProxy for actix_web::Scope::guard.\nProxy for actix_web::Route::guard.\nWrapper for actix_web::web::head.\nReturns a reference to response head.\nThis method returns reference to the request head\nReturns a mutable reference to response head.\nGet the headers from the response\nReturns request’s headers.\nGet a mutable reference to the headers\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns the response body, dropping all other parts.\nUnwrap to inner Payload type.\nUnwraps to the internal Arc<T>\nConsumes the ReqData, returning its wrapped data.\nUnwrap into inner T value.\nUnwrap into inner T value.\nUnwrap into inner T value.\nUnwrap into inner T value.\nReturns split head and body.\nReturns true if the Bytes has a length of 0.\nReturns true if the BytesMut has a length of 0.\nReturns true if this is the only reference to the data.\nKeep-alive status for this connection\nReturns the number of bytes contained in this Bytes.\nReturns the number of bytes contained in this BytesMut.\nSet maximum accepted payload size. By default this limit …\nSet maximum accepted payload size. By default this limit …\nSet maximum accepted payload size in bytes. The default …\nMap the current body type to another using a closure, …\nMap the current body to a type-erased BoxBody.\nMap the current body type B to EitherBody::Left(B).\nMap the current body type B to EitherBody::Right(B).\nReturns a reference to the URL parameters container.\nThe resource name that matched the path. Useful for …\nThe resource definition pattern that matched the path. …\nWrapper for actix_web::web::method.\nWrapper for actix_web::Route::method\nRead the Request method.\nSet required mime type of the request. By default mime …\nProxy for actix_web::Resource::name.\nWrapper for actix_web::Resource::new.\nWrapper for actix_web::Scope::new\nWrapper for actix_web::Route::new\nCreates a new empty Bytes.\nCreates a new BytesMut with default capacity.\nConstructs a response.\nCreate new Data instance.\nCreate new instance with a size limit (in bytes) and no …\nWrapper for actix_web::web::options.\nWrapper for actix_web::web::patch.\nThe target path of this request.\nReturns peer socket address.\nWrapper for actix_web::web::post.\nWrapper for actix_web::web::put.\nThe query string in the URL.\nReserves capacity for at least additional more bytes to be …\nResizes the buffer so that len is equal to new_len.\nWrapper for actix_web::web::resource.\nGet a reference to a ResourceMap of current application.\nWrapper for actix_web::Resource::route.\nWrapper for actix_web::Scope::route.\nWrapper for actix_web::web::ServiceConfig::route.\nWrapper for actix_web::web::scope.\nCreates a raw service for a specific path.\nWrapper for actix_web::Scope::service.\nWrapper for actix_web::web::ServiceConfig::service.\nSets new body.\nSets the length of the buffer.\nReturns a slice of self for the provided range.\nReturns a slice of self that is equivalent to the given …\nReturns the remaining spare capacity of the buffer as a …\nRemoves the bytes from the current view, returning them in …\nSplits the bytes into two at the given index.\nSplits the bytes into two at the given index.\nSplits the bytes into two at the given index.\nSplits the buffer into two at the given index.\nGet the response status code\nSet the StatusCode for this response\nCreates a new any-method route with handler.\nWrapper for actix_web::Resource::to.\nWrapper for actix_web::Route::to\nBuffers entire payload from request.\nBuffers payload from request up to limit bytes.\nShortens the buffer, keeping the first len bytes and …\nShortens the buffer, keeping the first len bytes and …\nAbsorbs a BytesMut that was previously split off.\nConnection upgrade status\nRequest’s uri.\nGenerates URL for a named resource.\nGenerate URL for named resource\nRead the Request Version.\nConstructs a response with body\nCreates a new BytesMut with the specified capacity.\nProxy for actix_web::web::Resource::wrap.\nProxy for actix_web::web::Scope::wrap.\nProxy for actix_web::web::Resource::wrap_fn.\nProxy for actix_web::web::Scope::wrap_fn.\nCreates a new BytesMut, which is initialized with zero.\nUnstabilized Ready future.\nReturns the argument unchanged.\nCalls U::from(self).\nUnstabilized ready function.\nDefault schema if your schema doesn’t have any custom …\nOpenAPI v2 spec which can be traversed and resolved for …\nInterface for the Schema object.\nValue schema for maps (additional_properties field).\nMutable access to additional_properties field, if it’s a …\nCode generation for OpenAPI v2.\nExtension for custom coders to be used for decoding API …\nReturns whether this definition “is” or “has” Any …\nData type of this schema, if any (type field).\nDescription for this schema, if any (description field).\nEnum variants in this schema (if any). It’s …\nData type format used by this schema, if any (format …\nReturns the argument unchanged.\nDeserialize the schema from the given reader. Currently, …\nInterior mutability stuff.\nCalls U::from(self).\nReturns whether this definition is cyclic.\nSchema for array definitions, if any (items field).\nMutable access to the items field, if it exists.\nModels used by OpenAPI v2.\nName of this schema, if any.\nMap of names and schema for properties, if it’s an …\nMutable access to properties field.\nReference to some other schema, if any ($ref field).\nReturns the required properties (if any) for this object.\nTraits used for code and spec generation.\nSet whether this definition is cyclic. This is done by the …\nSets the name for this schema. This is done by the …\nSet the reference to this schema.\nThis field is set manually, because we don’t know the …\nAdditional crates that need to be added to the manifest.\nMetadata for generating a crate.\nDefault emitter for anything that implements Schema trait.\nThe associated Schema implementor.\nMode of codegen (module, crate or CLI app).\nSome “thing” emitted by the emitter.\nEmitter represents the interface for generating the …\nHolds the state for your schema emitter.\nSome Rust type.\nWe’ve identified the Rust type, but then we also have a …\nNothing to do.\nBunch of emitted Rust objects.\nList of authors for this crate. Defaults to cargo’s …\nBase URL for this API.\nBuilds a schema. This resolves type aliases to known types …\nBuilds a schema. This resolves type aliases to known types …\nReturns the CamelCase name for some definition based on …\nReturns the CamelCase name for some definition based on …\nReturns the module path (from working directory) for the …\nReturns the module path (from working directory) for the …\nReturns the CamelCase name for the given definition.\nReturns the CamelCase name for the given definition.\nReturns an iterator of path components for the given …\nReturns an iterator of path components for the given …\nReturns the enum variant of a possible value in the given …\nReturns the enum variant of a possible value in the given …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nEntrypoint for emitter. Given an API spec, generate code …\nEntrypoint for emitter. Given an API spec, generate code …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nModule prefix for using in generated code.\nWhether we’re planning to emit a lib, app or module.\nName of the crate. If this is not specified, then the name …\nWhether or not to make this a root crate.\nNamespace separation string.\nSimplified objects for codegen.\nSets the crate metadata for this session.\nSets the base URL for this session.\nReturns a reference to the underlying state.\nCalled whenever we encounter an operation that can’t be …\nCalled whenever we encounter an operation that can’t be …\nCalled whenever we don’t have an object for the module …\nCalled whenever we don’t have an object for the module …\nVersion (defaults to 0.1.0)\nWorking directory - the path in which the necessary …\nRepresents a (simplified) Rust struct or enum.\nRepresents the API object builder impl.\nRepresents the API object impl.\nContainer for the struct/enum containing fields/variants.\nRepresents a struct field.\nRepresents an enum variant.\nRequirement for an object corresponding to some operation.\nRepresents some parameter somewhere (header, path, query, …\nOperations in a path.\nWhether the object itself is required (in body) for this …\nWhether this field should be boxed.\nRequired fields of the “deepest” child type in the …\nWhether the response contains an Any. This is useful when …\nPreferred media range and decoder for the client. This is …\nIf the parameter is an array of values, then the format …\nWhether the operation is deprecated or not.\nDescription for this object (if any), to be used for docs.\nDescription of this operation (if any), to be used for …\nDescription of this operation (if any), to be used for …\nDescription of this operation (if any), to be used for …\nPreferred media range and encoder for the client. This is …\nGet a reference to the struct fields. Panics if this is …\nGet a mutable reference to the struct fields. Panics if …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCustom response headers for this operation (if any).\nOperation ID (if it’s provided in the schema).\nReturns a struct representing the impl for this object. …\nFields/variants based on whether this is a struct/enum.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns whether this object is an enum.\nReturns whether this response is a file.\nWhether this field is required (i.e., not optional).\nReturns whether this enum is to represent a string.\nWhether this operation returns a list of the associated …\nName of the struct (camel-cased).\nName of the parameter.\nName of the variant (case unspecified).\nName of the field.\nWhether this field’s type “is” or “has” an Any …\nParameters required for all operations in this path.\nParameters required for this operation.\nPath to this object from (generated) root module.\nPaths with operations which address this object.\nWhere the parameter lives.\nOperations for this object and their associated …\nWhether this parameter is required.\nResponse information for this operation.\nType path for this operation’s response (if any). If …\nType of the parameter as a path.\nType of the field as a path.\nValue of this variant (if any). Note that this is only …\nGet a reference to the enum variants. Panics if this is …\nGet a mutable reference to the enum variants. Panics if …\nCreate an object with the given name.\nFields if it’s a struct.\nFlag to represent whether this enum is a string. When that…\nVariants if it’s an enum.\nOpenAPI v2 (swagger) spec generic over parameter and …\nRepresents the en/decoder for some MIME media range.\nx-rust-coders global extension for custom encoders and …\nPossible formats for array values in parameter.\nContact object.\nSupported data types.\nSupported data type formats.\nOpenAPI v2 spec with defaults.\nOperation with default raw parameter and response.\nParameter with the default raw schema.\nPath item with default parameter and response.\nResponse with the default raw schema.\nDefault schema if your schema doesn’t have any custom …\nRaw version of schema.\nEither from “either” crate. We can’t use that crate …\nExternal Documentation object.\nHeader object.\nThe HTTP method used for an operation.\nInfo object.\nItems object.\nDefault coder for JSON.\nMedia range for JSON.\nLicense object.\nWrapper for mime::MediaRange to support BTree{Set, Map}.\nOperation object.\nThe protocol used for an operation.\nRequest parameter object.\nThe location of the parameter.\nPath item object.\nReference object.\nWrapper for schema. This uses Arc<RwLock<S>> for interior …\nOpenAPI v2 spec which can be traversed and resolved for …\nOperation that can be traversed and resolved for codegen.\nParameter that can be traversed and resolved for codegen.\nPath item that can be traversed and resolved for codegen.\nResponse that can be traversed and resolved for codegen.\nResponse object.\nSecurity Scheme object.\nThe format used by spec (JSON/YAML).\nTag object.\nOpenAPI version.\nDefault coder for YAML.\nMedia range for YAML.\nWhether this method allows body in requests.\nPath to the struct/enum that represents Any (such as …\nAppends one map to the other whilst merging individual …\nWhether this en/decoder is built-in.\nChecks the validity of this parameter using the relative …\nThe en/decoder used for this format.\nExtension for custom coders to be used for decoding API …\nExtension for custom coders to be used for decoding API …\nExtension for custom coders to be used for decoding API …\nPath to the decoding function.\nPath to the encoding function.\nPath to the error type.\nInline extensions to this object.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nFetch the description for this schema.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nChecks if this is a primitive type.\nGet a readable reference to the left variant (if it …\nGet a mutable reference to the left variant (if it exists).\nReturns the matching coder for the given media range (if …\nThe mime for this format.\nNormalizes this operation map.\nGets the parameters from the given path template and calls …\nWhether this media type should be preferred when multiple …\nRecursively removes all $ref values in this schema.\nConsumes this API schema, resolves the references and …\nRecursively removes all properties other than $ref value …\nGet a readable reference to the right variant (if it …\nGet a mutable reference to the right variant (if it …\nOverwrites the names of parameters in this operation using …\nThis field is set manually, because we don’t know the …\nThis field is set manually, because we don’t know the …\nThis field is set manually, because we don’t know the …\nAdditional crates that need to be added to the manifest.\nAdditional crates that need to be added to the manifest.\nAdditional crates that need to be added to the manifest.\nAdds or updates this definition to the map of security …\nRepresents a OpenAPI v2 error convertible. This is …\nRepresents a OpenAPI v2 operation convertible. This is …\nRepresents a OpenAPI v2 schema object convertible. This is …\nInterface for the Schema object.\nTrait for returning OpenAPI data type and format for the …\nValue schema for maps (additional_properties field).\nMutable access to additional_properties field, if it’s a …\nReturns whether this definition “is” or “has” Any …\nData type of this schema, if any (type field).\nThe OpenAPI type for this implementor.\nReturns the definitions used by this operation.\nDescription for this schema, if any (description field).\nDescription of this schema. In case the trait is derived, …\nEnum variants in this schema (if any). It’s …\nData type format used by this schema, if any (format …\nThe optional OpenAPI data format for this implementor.\nReturns whether this definition is cyclic.\nSchema for array definitions, if any (items field).\nMutable access to the items field, if it exists.\nName of this schema, if any.\nName of this schema. This is the name to which the …\nReturns the definition for this operation.\nMap of names and schema for properties, if it’s an …\nMutable access to properties field.\nReturns the raw schema for this object.\nReference to some other schema, if any ($ref field).\nIndicates the requirement of this schema.\nReturns the required properties (if any) for this object.\nReturns the schema with a reference (if this is an object).\nReturns a map of security definitions that will be merged …\nReturns the security scheme for this object.\nSet whether this definition is cyclic. This is done by the …\nSets the name for this schema. This is done by the …\nSet the reference to this schema.") \ No newline at end of file +searchState.loadedDescShard("paperclip", 0, "Paperclip is a OpenAPI code generator for efficient …\nContains the error value\nInvalid base path URL.\nThe given directory cannot be used for generating code.\nThe name for the given definition is invalid.\nA valid path cannot be obtained for the given definition.\nInvalid host for URL.\nI/O errors.\nJSON coding errors.\nThe given schema object is an array, but the items field …\nThe name for the given definition is missing.\nContains the success value\nGlobal error which encapsulates all related errors.\nGeneric result used throughout this library.\nPaths listed in the spec must be unique.\nErrors in templating.\nCurrently, we only support OpenAPI v2, and eventually v3.\nError encountered during spec validation.\nYAML coding errors.\nPlugin types, traits and macros for actix-web framework.\nConverts your struct to support deserializing from an …\nReturns the argument unchanged.\nCalls U::from(self).\nUtilities related to the OpenAPI v2 specification.\nDerive attribute for indicating that a type is an OpenAPI …\nDerive attribute for indicating that a type is an OpenAPI …\nMarker attribute for indicating that an object forbids …\nWrapper for actix_web::App.\nWorkaround for possibility to directly return HttpResponse …\nIndicates that this thingmabob has a path and a bunch of …\nExtension trait for actix-web applications.\nActix-specific trait for indicating that this entity can …\nWrapper for wrapping over impl Responder thingies (to …\nMarker attribute for indicating that the marked object can …\nMarker attribute for indicating that the marked object can …\nMarker attribute for indicating that a function is an …\nProxy for actix_web::App::app_data.\nBuilds and returns the actix_web::App.\nWrapper for actix_web::App::configure.\nProxy for actix_web::App::data_factory.\nProxy for actix_web::App::default_service.\nThe definitions recorded by this object.\nCreates route handler with paperclip::actix::web::Resource.\nProxy for actix_web::App::external_resource.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreates route handler with paperclip::actix::web::Resource.\nCreates route handler with paperclip::actix::web::Resource.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nMap of HTTP methods and the associated API operations.\nCreates route handler with paperclip::actix::web::Resource.\nWhere this thing gets mounted.\nCreates route handler with paperclip::actix::web::Resource.\nCreates route handler with paperclip::actix::web::Resource.\nWrapper for actix_web::App::route.\nThe security definitions recorded by this object.\nWrapper for actix_web::App::service.\nTrim’s the Api base path from the start of all method …\nUpdate the definitions map (if needed).\nUpdates the given map of operations with operations …\nUpdate the parameters list in the given operation (if …\nUpdate the responses map in the given operation (if …\nUpdate the security map in the given operation (if needed).\nUpdate the security definition map (if needed).\nProxy module for actix_web::web.\nMounts the specification for all operations and definitions\nConverts the generated v2 specification to v3 and then …\nCalls the given function with App and JSON Value …\nCalls the given function with App and JSON Value …\nExposes the previously built JSON specification with …\nProxy for actix_web::web::App::wrap.\nConsumes this app and produces its wrapper to start …\nSame as wrap_api initializing with provided specification …\nProxy for actix_web::web::App::wrap_fn.\nA cheaply cloneable and sliceable chunk of contiguous …\nA unique reference to a contiguous slice of memory.\nApplication data wrapper and extractor.\nURL encoded payload extractor and responder.\nForm extractor configuration.\nAn incoming request.\nAn outgoing response.\nJSON extractor and responder.\nJson extractor configuration.\nExtract typed data from request path segments.\nPath extractor configuration\nExtract a request’s raw payload stream.\nConfiguration for request payloads.\nExtract typed information from the request’s query.\nQuery extractor configuration.\nRequest-local data extractor.\nWrapper for actix_web::Resource\nWrapper for actix_web::Route\nWrapper for actix_web::Scope\nWrapper for actix_web::web::ServiceConfig.\nReturns a reference to the application’s connection …\nProxy for actix_web::Resource::app_data.\nProxy for actix_web::Scope::app_data.\nProxy for actix_web::web::ServiceConfig::app_data.\nRetrieves a piece of application state.\nExecutes blocking function on a thread pool, returns …\nReturns a reference to this response’s body.\nConstructs a response builder with specific HTTP status.\nReturns the number of bytes the BytesMut can hold without …\nClears the buffer, removing all data.\nClears the buffer, removing all data. Existing capacity is …\nWrapper for actix_web::Scope::configure.\nReturns a reference a piece of connection data set in an …\nReturns connection info for the current request.\nSet predicate for allowed content types.\nSets whether or not the request must have a Content-Type …\nCreates Bytes instance from slice, by copying it.\nProxy for actix_web::web::Resource::default_service.\nProxy for actix_web::web::Scope::default_service.\nWrapper for actix_web::web::delete.\nDrops body and returns new response.\nThe source error for this response\nSet custom error handler\nSet custom error handler.\nSet custom error handler.\nSet custom error handler\nAppends given bytes to this BytesMut.\nReturns reference to the response-local data/extensions …\nReturns reference to the response-local data/extensions …\nProxy for actix_web::web::ServiceConfig::external_resource.\nConverts self into an immutable Bytes.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nConvert self into BytesMut.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreate an error response.\nDeserialize a T from the URL encoded query parameter …\nCreates a new Bytes from a static slice.\nReturns request’s original full URL.\nWrapper for actix_web::web::get.\nReturns reference to inner T.\nProxy for actix_web::Resource::guard.\nProxy for actix_web::Scope::guard.\nProxy for actix_web::Route::guard.\nWrapper for actix_web::web::head.\nReturns a reference to response head.\nThis method returns reference to the request head\nReturns a mutable reference to response head.\nGet the headers from the response\nReturns request’s headers.\nGet a mutable reference to the headers\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns the response body, dropping all other parts.\nUnwrap to inner Payload type.\nUnwraps to the internal Arc<T>\nConsumes the ReqData, returning its wrapped data.\nUnwrap into inner T value.\nUnwrap into inner T value.\nUnwrap into inner T value.\nUnwrap into inner T value.\nReturns split head and body.\nReturns true if the Bytes has a length of 0.\nReturns true if the BytesMut has a length of 0.\nReturns true if this is the only reference to the data.\nKeep-alive status for this connection\nReturns the number of bytes contained in this Bytes.\nReturns the number of bytes contained in this BytesMut.\nSet maximum accepted payload size. By default this limit …\nSet maximum accepted payload size. By default this limit …\nSet maximum accepted payload size in bytes. The default …\nMap the current body type to another using a closure, …\nMap the current body to a type-erased BoxBody.\nMap the current body type B to EitherBody::Left(B).\nMap the current body type B to EitherBody::Right(B).\nReturns a reference to the URL parameters container.\nThe resource name that matched the path. Useful for …\nThe resource definition pattern that matched the path. …\nWrapper for actix_web::web::method.\nWrapper for actix_web::Route::method\nRead the Request method.\nSet required mime type of the request. By default mime …\nProxy for actix_web::Resource::name.\nWrapper for actix_web::Resource::new.\nWrapper for actix_web::Scope::new\nWrapper for actix_web::Route::new\nCreates a new empty Bytes.\nCreates a new BytesMut with default capacity.\nConstructs a response.\nCreate new Data instance.\nCreate new instance with a size limit (in bytes) and no …\nWrapper for actix_web::web::options.\nWrapper for actix_web::web::patch.\nThe target path of this request.\nReturns peer socket address.\nWrapper for actix_web::web::post.\nWrapper for actix_web::web::put.\nThe query string in the URL.\nReserves capacity for at least additional more bytes to be …\nResizes the buffer so that len is equal to new_len.\nWrapper for actix_web::web::resource.\nGet a reference to a ResourceMap of current application.\nWrapper for actix_web::Resource::route.\nWrapper for actix_web::Scope::route.\nWrapper for actix_web::web::ServiceConfig::route.\nWrapper for actix_web::web::scope.\nCreates a raw service for a specific path.\nWrapper for actix_web::Scope::service.\nWrapper for actix_web::web::ServiceConfig::service.\nSets new body.\nSets the length of the buffer.\nReturns a slice of self for the provided range.\nReturns a slice of self that is equivalent to the given …\nReturns the remaining spare capacity of the buffer as a …\nRemoves the bytes from the current view, returning them in …\nSplits the bytes into two at the given index.\nSplits the bytes into two at the given index.\nSplits the bytes into two at the given index.\nSplits the buffer into two at the given index.\nGet the response status code\nSet the StatusCode for this response\nCreates a new any-method route with handler.\nWrapper for actix_web::Resource::to.\nWrapper for actix_web::Route::to\nBuffers entire payload from request.\nBuffers payload from request up to limit bytes.\nShortens the buffer, keeping the first len bytes and …\nShortens the buffer, keeping the first len bytes and …\nTry to convert self into BytesMut.\nAttempts to cheaply reclaim already allocated capacity for …\nAbsorbs a BytesMut that was previously split off.\nConnection upgrade status\nRequest’s uri.\nGenerates URL for a named resource.\nGenerate URL for named resource\nRead the Request Version.\nConstructs a response with body\nCreates a new BytesMut with the specified capacity.\nProxy for actix_web::web::Resource::wrap.\nProxy for actix_web::web::Scope::wrap.\nProxy for actix_web::web::Resource::wrap_fn.\nProxy for actix_web::web::Scope::wrap_fn.\nCreates a new BytesMut containing len zeros.\nUnstabilized Ready future.\nReturns the argument unchanged.\nCalls U::from(self).\nUnstabilized ready function.\nDefault schema if your schema doesn’t have any custom …\nOpenAPI v2 spec which can be traversed and resolved for …\nInterface for the Schema object.\nValue schema for maps (additional_properties field).\nMutable access to additional_properties field, if it’s a …\nCode generation for OpenAPI v2.\nExtension for custom coders to be used for decoding API …\nReturns whether this definition “is” or “has” Any …\nData type of this schema, if any (type field).\nDescription for this schema, if any (description field).\nEnum variants in this schema (if any). It’s …\nData type format used by this schema, if any (format …\nReturns the argument unchanged.\nDeserialize the schema from the given reader. Currently, …\nInterior mutability stuff.\nCalls U::from(self).\nReturns whether this definition is cyclic.\nSchema for array definitions, if any (items field).\nMutable access to the items field, if it exists.\nModels used by OpenAPI v2.\nName of this schema, if any.\nMap of names and schema for properties, if it’s an …\nMutable access to properties field.\nReference to some other schema, if any ($ref field).\nReturns the required properties (if any) for this object.\nTraits used for code and spec generation.\nSet whether this definition is cyclic. This is done by the …\nSets the name for this schema. This is done by the …\nSet the reference to this schema.\nThis field is set manually, because we don’t know the …\nAdditional crates that need to be added to the manifest.\nMetadata for generating a crate.\nDefault emitter for anything that implements Schema trait.\nThe associated Schema implementor.\nMode of codegen (module, crate or CLI app).\nSome “thing” emitted by the emitter.\nEmitter represents the interface for generating the …\nHolds the state for your schema emitter.\nSome Rust type.\nWe’ve identified the Rust type, but then we also have a …\nNothing to do.\nBunch of emitted Rust objects.\nList of authors for this crate. Defaults to cargo’s …\nBase URL for this API.\nBuilds a schema. This resolves type aliases to known types …\nBuilds a schema. This resolves type aliases to known types …\nReturns the CamelCase name for some definition based on …\nReturns the CamelCase name for some definition based on …\nReturns the module path (from working directory) for the …\nReturns the module path (from working directory) for the …\nReturns the CamelCase name for the given definition.\nReturns the CamelCase name for the given definition.\nReturns an iterator of path components for the given …\nReturns an iterator of path components for the given …\nReturns the enum variant of a possible value in the given …\nReturns the enum variant of a possible value in the given …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nEntrypoint for emitter. Given an API spec, generate code …\nEntrypoint for emitter. Given an API spec, generate code …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nModule prefix for using in generated code.\nWhether we’re planning to emit a lib, app or module.\nName of the crate. If this is not specified, then the name …\nWhether or not to make this a root crate.\nNamespace separation string.\nSimplified objects for codegen.\nSets the crate metadata for this session.\nSets the base URL for this session.\nReturns a reference to the underlying state.\nCalled whenever we encounter an operation that can’t be …\nCalled whenever we encounter an operation that can’t be …\nCalled whenever we don’t have an object for the module …\nCalled whenever we don’t have an object for the module …\nVersion (defaults to 0.1.0)\nWorking directory - the path in which the necessary …\nRepresents a (simplified) Rust struct or enum.\nRepresents the API object builder impl.\nRepresents the API object impl.\nContainer for the struct/enum containing fields/variants.\nRepresents a struct field.\nRepresents an enum variant.\nRequirement for an object corresponding to some operation.\nRepresents some parameter somewhere (header, path, query, …\nOperations in a path.\nWhether the object itself is required (in body) for this …\nWhether this field should be boxed.\nRequired fields of the “deepest” child type in the …\nWhether the response contains an Any. This is useful when …\nPreferred media range and decoder for the client. This is …\nIf the parameter is an array of values, then the format …\nWhether the operation is deprecated or not.\nDescription for this object (if any), to be used for docs.\nDescription of this operation (if any), to be used for …\nDescription of this operation (if any), to be used for …\nDescription of this operation (if any), to be used for …\nPreferred media range and encoder for the client. This is …\nGet a reference to the struct fields. Panics if this is …\nGet a mutable reference to the struct fields. Panics if …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCustom response headers for this operation (if any).\nOperation ID (if it’s provided in the schema).\nReturns a struct representing the impl for this object. …\nFields/variants based on whether this is a struct/enum.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns whether this object is an enum.\nReturns whether this response is a file.\nWhether this field is required (i.e., not optional).\nReturns whether this enum is to represent a string.\nWhether this operation returns a list of the associated …\nName of the struct (camel-cased).\nName of the parameter.\nName of the variant (case unspecified).\nName of the field.\nWhether this field’s type “is” or “has” an Any …\nParameters required for all operations in this path.\nParameters required for this operation.\nPath to this object from (generated) root module.\nPaths with operations which address this object.\nWhere the parameter lives.\nOperations for this object and their associated …\nWhether this parameter is required.\nResponse information for this operation.\nType path for this operation’s response (if any). If …\nType of the parameter as a path.\nType of the field as a path.\nValue of this variant (if any). Note that this is only …\nGet a reference to the enum variants. Panics if this is …\nGet a mutable reference to the enum variants. Panics if …\nCreate an object with the given name.\nFields if it’s a struct.\nFlag to represent whether this enum is a string. When that…\nVariants if it’s an enum.\nOpenAPI v2 (swagger) spec generic over parameter and …\nRepresents the en/decoder for some MIME media range.\nx-rust-coders global extension for custom encoders and …\nPossible formats for array values in parameter.\nContact object.\nSupported data types.\nSupported data type formats.\nOpenAPI v2 spec with defaults.\nOperation with default raw parameter and response.\nParameter with the default raw schema.\nPath item with default parameter and response.\nResponse with the default raw schema.\nDefault schema if your schema doesn’t have any custom …\nRaw version of schema.\nEither from “either” crate. We can’t use that crate …\nExternal Documentation object.\nHeader object.\nThe HTTP method used for an operation.\nInfo object.\nItems object.\nDefault coder for JSON.\nMedia range for JSON.\nLicense object.\nWrapper for mime::MediaRange to support BTree{Set, Map}.\nOperation object.\nThe protocol used for an operation.\nRequest parameter object.\nThe location of the parameter.\nPath item object.\nReference object.\nWrapper for schema. This uses Arc<RwLock<S>> for interior …\nOpenAPI v2 spec which can be traversed and resolved for …\nOperation that can be traversed and resolved for codegen.\nParameter that can be traversed and resolved for codegen.\nPath item that can be traversed and resolved for codegen.\nResponse that can be traversed and resolved for codegen.\nResponse object.\nSecurity Scheme object.\nThe format used by spec (JSON/YAML).\nTag object.\nOpenAPI version.\nDefault coder for YAML.\nMedia range for YAML.\nWhether this method allows body in requests.\nPath to the struct/enum that represents Any (such as …\nAppends one map to the other whilst merging individual …\nWhether this en/decoder is built-in.\nChecks the validity of this parameter using the relative …\nThe en/decoder used for this format.\nExtension for custom coders to be used for decoding API …\nExtension for custom coders to be used for decoding API …\nExtension for custom coders to be used for decoding API …\nPath to the decoding function.\nPath to the encoding function.\nPath to the error type.\nInline extensions to this object.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nFetch the description for this schema.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nChecks if this is a primitive type.\nGet a readable reference to the left variant (if it …\nGet a mutable reference to the left variant (if it exists).\nReturns the matching coder for the given media range (if …\nThe mime for this format.\nNormalizes this operation map.\nGets the parameters from the given path template and calls …\nWhether this media type should be preferred when multiple …\nRecursively removes all $ref values in this schema.\nConsumes this API schema, resolves the references and …\nRecursively removes all properties other than $ref value …\nGet a readable reference to the right variant (if it …\nGet a mutable reference to the right variant (if it …\nOverwrites the names of parameters in this operation using …\nThis field is set manually, because we don’t know the …\nThis field is set manually, because we don’t know the …\nThis field is set manually, because we don’t know the …\nAdditional crates that need to be added to the manifest.\nAdditional crates that need to be added to the manifest.\nAdditional crates that need to be added to the manifest.\nAdds or updates this definition to the map of security …\nRepresents a OpenAPI v2 error convertible. This is …\nRepresents a OpenAPI v2 operation convertible. This is …\nRepresents a OpenAPI v2 schema object convertible. This is …\nInterface for the Schema object.\nTrait for returning OpenAPI data type and format for the …\nValue schema for maps (additional_properties field).\nMutable access to additional_properties field, if it’s a …\nReturns whether this definition “is” or “has” Any …\nData type of this schema, if any (type field).\nThe OpenAPI type for this implementor.\nReturns the definitions used by this operation.\nDescription for this schema, if any (description field).\nDescription of this schema. In case the trait is derived, …\nEnum variants in this schema (if any). It’s …\nData type format used by this schema, if any (format …\nThe optional OpenAPI data format for this implementor.\nReturns whether this definition is cyclic.\nSchema for array definitions, if any (items field).\nMutable access to the items field, if it exists.\nName of this schema, if any.\nName of this schema. This is the name to which the …\nReturns the definition for this operation.\nMap of names and schema for properties, if it’s an …\nMutable access to properties field.\nReturns the raw schema for this object.\nReference to some other schema, if any ($ref field).\nIndicates the requirement of this schema.\nReturns the required properties (if any) for this object.\nReturns the schema with a reference (if this is an object).\nReturns a map of security definitions that will be merged …\nReturns the security scheme for this object.\nSet whether this definition is cyclic. This is done by the …\nSets the name for this schema. This is done by the …\nSet the reference to this schema.") \ No newline at end of file diff --git a/search.desc/paperclip_actix/paperclip_actix-desc-0-.js b/search.desc/paperclip_actix/paperclip_actix-desc-0-.js index d72116b85..6183fb087 100644 --- a/search.desc/paperclip_actix/paperclip_actix-desc-0-.js +++ b/search.desc/paperclip_actix/paperclip_actix-desc-0-.js @@ -1 +1 @@ -searchState.loadedDescShard("paperclip_actix", 0, "Derive attribute for indicating that a type is an OpenAPI …\nDerive attribute for indicating that a type is an OpenAPI …\nMarker attribute for indicating that an object forbids …\nIndicates that this thingmabob has a path and a bunch of …\nMarker attribute for indicating that the marked object can …\nMarker attribute for indicating that the marked object can …\nMarker attribute for indicating that a function is an …\nThe definitions recorded by this object.\nCreates route handler with paperclip::actix::web::Resource.\nCreates route handler with paperclip::actix::web::Resource.\nCreates route handler with paperclip::actix::web::Resource.\nMap of HTTP methods and the associated API operations.\nCreates route handler with paperclip::actix::web::Resource.\nWhere this thing gets mounted.\nCreates route handler with paperclip::actix::web::Resource.\nCreates route handler with paperclip::actix::web::Resource.\nThe security definitions recorded by this object.\nUpdates the given map of operations with operations …\nProxy module for actix_web::web.\nWrapper for actix_web::App.\nExtension trait for actix-web applications.\nProxy for actix_web::App::app_data.\nBuilds and returns the actix_web::App.\nWrapper for actix_web::App::configure.\nProxy for actix_web::App::data_factory.\nProxy for actix_web::App::default_service.\nProxy for actix_web::App::external_resource.\nReturns the argument unchanged.\nCalls U::from(self).\nWrapper for actix_web::App::route.\nWrapper for actix_web::App::service.\nTrim’s the Api base path from the start of all method …\nMounts the specification for all operations and definitions\nConverts the generated v2 specification to v3 and then …\nCalls the given function with App and JSON Value …\nCalls the given function with App and JSON Value …\nExposes the previously built JSON specification with …\nProxy for actix_web::web::App::wrap.\nConsumes this app and produces its wrapper to start …\nSame as wrap_api initializing with provided specification …\nProxy for actix_web::web::App::wrap_fn.\nA cheaply cloneable and sliceable chunk of contiguous …\nA unique reference to a contiguous slice of memory.\nApplication data wrapper and extractor.\nURL encoded payload extractor and responder.\nForm extractor configuration.\nAn incoming request.\nAn outgoing response.\nJSON extractor and responder.\nJson extractor configuration.\nExtract typed data from request path segments.\nPath extractor configuration\nExtract a request’s raw payload stream.\nConfiguration for request payloads.\nExtract typed information from the request’s query.\nQuery extractor configuration.\nRequest-local data extractor.\nWrapper for actix_web::Resource\nWrapper for actix_web::Route\nWrapper for actix_web::Scope\nWrapper for actix_web::web::ServiceConfig.\nReturns a reference to the application’s connection …\nProxy for actix_web::Resource::app_data.\nProxy for actix_web::Scope::app_data.\nProxy for actix_web::web::ServiceConfig::app_data.\nRetrieves a piece of application state.\nExecutes blocking function on a thread pool, returns …\nReturns a reference to this response’s body.\nConstructs a response builder with specific HTTP status.\nReturns the number of bytes the BytesMut can hold without …\nClears the buffer, removing all data.\nClears the buffer, removing all data. Existing capacity is …\nWrapper for actix_web::Scope::configure.\nReturns a reference a piece of connection data set in an …\nReturns connection info for the current request.\nSet predicate for allowed content types.\nSets whether or not the request must have a Content-Type …\nCreates Bytes instance from slice, by copying it.\nProxy for actix_web::web::Resource::default_service.\nProxy for actix_web::web::Scope::default_service.\nWrapper for actix_web::web::delete.\nDrops body and returns new response.\nThe source error for this response\nSet custom error handler\nSet custom error handler.\nSet custom error handler.\nSet custom error handler\nAppends given bytes to this BytesMut.\nReturns reference to the response-local data/extensions …\nReturns reference to the response-local data/extensions …\nProxy for actix_web::web::ServiceConfig::external_resource.\nConverts self into an immutable Bytes.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreate an error response.\nDeserialize a T from the URL encoded query parameter …\nCreates a new Bytes from a static slice.\nReturns request’s original full URL.\nWrapper for actix_web::web::get.\nReturns reference to inner T.\nProxy for actix_web::Resource::guard.\nProxy for actix_web::Scope::guard.\nProxy for actix_web::Route::guard.\nWrapper for actix_web::web::head.\nReturns a reference to response head.\nThis method returns reference to the request head\nReturns a mutable reference to response head.\nGet the headers from the response\nReturns request’s headers.\nGet a mutable reference to the headers\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns the response body, dropping all other parts.\nUnwrap to inner Payload type.\nUnwraps to the internal Arc<T>\nConsumes the ReqData, returning its wrapped data.\nUnwrap into inner T value.\nUnwrap into inner T value.\nUnwrap into inner T value.\nUnwrap into inner T value.\nReturns split head and body.\nReturns true if the Bytes has a length of 0.\nReturns true if the BytesMut has a length of 0.\nReturns true if this is the only reference to the data.\nKeep-alive status for this connection\nReturns the number of bytes contained in this Bytes.\nReturns the number of bytes contained in this BytesMut.\nSet maximum accepted payload size. By default this limit …\nSet maximum accepted payload size. By default this limit …\nSet maximum accepted payload size in bytes. The default …\nMap the current body type to another using a closure, …\nMap the current body to a type-erased BoxBody.\nMap the current body type B to EitherBody::Left(B).\nMap the current body type B to EitherBody::Right(B).\nReturns a reference to the URL parameters container.\nThe resource name that matched the path. Useful for …\nThe resource definition pattern that matched the path. …\nWrapper for actix_web::web::method.\nWrapper for actix_web::Route::method\nRead the Request method.\nSet required mime type of the request. By default mime …\nProxy for actix_web::Resource::name.\nWrapper for actix_web::Resource::new.\nWrapper for actix_web::Scope::new\nWrapper for actix_web::Route::new\nCreates a new empty Bytes.\nCreates a new BytesMut with default capacity.\nConstructs a response.\nCreate new Data instance.\nCreate new instance with a size limit (in bytes) and no …\nWrapper for actix_web::web::options.\nWrapper for actix_web::web::patch.\nThe target path of this request.\nReturns peer socket address.\nWrapper for actix_web::web::post.\nWrapper for actix_web::web::put.\nThe query string in the URL.\nReserves capacity for at least additional more bytes to be …\nResizes the buffer so that len is equal to new_len.\nWrapper for actix_web::web::resource.\nGet a reference to a ResourceMap of current application.\nWrapper for actix_web::Resource::route.\nWrapper for actix_web::Scope::route.\nWrapper for actix_web::web::ServiceConfig::route.\nWrapper for actix_web::web::scope.\nCreates a raw service for a specific path.\nWrapper for actix_web::Scope::service.\nWrapper for actix_web::web::ServiceConfig::service.\nSets new body.\nSets the length of the buffer.\nReturns a slice of self for the provided range.\nReturns a slice of self that is equivalent to the given …\nReturns the remaining spare capacity of the buffer as a …\nRemoves the bytes from the current view, returning them in …\nSplits the bytes into two at the given index.\nSplits the bytes into two at the given index.\nSplits the bytes into two at the given index.\nSplits the buffer into two at the given index.\nGet the response status code\nSet the StatusCode for this response\nCreates a new any-method route with handler.\nWrapper for actix_web::Resource::to.\nWrapper for actix_web::Route::to\nBuffers entire payload from request.\nBuffers payload from request up to limit bytes.\nShortens the buffer, keeping the first len bytes and …\nShortens the buffer, keeping the first len bytes and …\nAbsorbs a BytesMut that was previously split off.\nConnection upgrade status\nRequest’s uri.\nGenerates URL for a named resource.\nGenerate URL for named resource\nRead the Request Version.\nConstructs a response with body\nCreates a new BytesMut with the specified capacity.\nProxy for actix_web::web::Resource::wrap.\nProxy for actix_web::web::Scope::wrap.\nProxy for actix_web::web::Resource::wrap_fn.\nProxy for actix_web::web::Scope::wrap_fn.\nCreates a new BytesMut, which is initialized with zero.") \ No newline at end of file +searchState.loadedDescShard("paperclip_actix", 0, "Derive attribute for indicating that a type is an OpenAPI …\nDerive attribute for indicating that a type is an OpenAPI …\nMarker attribute for indicating that an object forbids …\nIndicates that this thingmabob has a path and a bunch of …\nMarker attribute for indicating that the marked object can …\nMarker attribute for indicating that the marked object can …\nMarker attribute for indicating that a function is an …\nThe definitions recorded by this object.\nCreates route handler with paperclip::actix::web::Resource.\nCreates route handler with paperclip::actix::web::Resource.\nCreates route handler with paperclip::actix::web::Resource.\nMap of HTTP methods and the associated API operations.\nCreates route handler with paperclip::actix::web::Resource.\nWhere this thing gets mounted.\nCreates route handler with paperclip::actix::web::Resource.\nCreates route handler with paperclip::actix::web::Resource.\nThe security definitions recorded by this object.\nUpdates the given map of operations with operations …\nProxy module for actix_web::web.\nWrapper for actix_web::App.\nExtension trait for actix-web applications.\nProxy for actix_web::App::app_data.\nBuilds and returns the actix_web::App.\nWrapper for actix_web::App::configure.\nProxy for actix_web::App::data_factory.\nProxy for actix_web::App::default_service.\nProxy for actix_web::App::external_resource.\nReturns the argument unchanged.\nCalls U::from(self).\nWrapper for actix_web::App::route.\nWrapper for actix_web::App::service.\nTrim’s the Api base path from the start of all method …\nMounts the specification for all operations and definitions\nConverts the generated v2 specification to v3 and then …\nCalls the given function with App and JSON Value …\nCalls the given function with App and JSON Value …\nExposes the previously built JSON specification with …\nProxy for actix_web::web::App::wrap.\nConsumes this app and produces its wrapper to start …\nSame as wrap_api initializing with provided specification …\nProxy for actix_web::web::App::wrap_fn.\nA cheaply cloneable and sliceable chunk of contiguous …\nA unique reference to a contiguous slice of memory.\nApplication data wrapper and extractor.\nURL encoded payload extractor and responder.\nForm extractor configuration.\nAn incoming request.\nAn outgoing response.\nJSON extractor and responder.\nJson extractor configuration.\nExtract typed data from request path segments.\nPath extractor configuration\nExtract a request’s raw payload stream.\nConfiguration for request payloads.\nExtract typed information from the request’s query.\nQuery extractor configuration.\nRequest-local data extractor.\nWrapper for actix_web::Resource\nWrapper for actix_web::Route\nWrapper for actix_web::Scope\nWrapper for actix_web::web::ServiceConfig.\nReturns a reference to the application’s connection …\nProxy for actix_web::Resource::app_data.\nProxy for actix_web::Scope::app_data.\nProxy for actix_web::web::ServiceConfig::app_data.\nRetrieves a piece of application state.\nExecutes blocking function on a thread pool, returns …\nReturns a reference to this response’s body.\nConstructs a response builder with specific HTTP status.\nReturns the number of bytes the BytesMut can hold without …\nClears the buffer, removing all data.\nClears the buffer, removing all data. Existing capacity is …\nWrapper for actix_web::Scope::configure.\nReturns a reference a piece of connection data set in an …\nReturns connection info for the current request.\nSet predicate for allowed content types.\nSets whether or not the request must have a Content-Type …\nCreates Bytes instance from slice, by copying it.\nProxy for actix_web::web::Resource::default_service.\nProxy for actix_web::web::Scope::default_service.\nWrapper for actix_web::web::delete.\nDrops body and returns new response.\nThe source error for this response\nSet custom error handler\nSet custom error handler.\nSet custom error handler.\nSet custom error handler\nAppends given bytes to this BytesMut.\nReturns reference to the response-local data/extensions …\nReturns reference to the response-local data/extensions …\nProxy for actix_web::web::ServiceConfig::external_resource.\nConverts self into an immutable Bytes.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nConvert self into BytesMut.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreate an error response.\nDeserialize a T from the URL encoded query parameter …\nCreates a new Bytes from a static slice.\nReturns request’s original full URL.\nWrapper for actix_web::web::get.\nReturns reference to inner T.\nProxy for actix_web::Resource::guard.\nProxy for actix_web::Scope::guard.\nProxy for actix_web::Route::guard.\nWrapper for actix_web::web::head.\nReturns a reference to response head.\nThis method returns reference to the request head\nReturns a mutable reference to response head.\nGet the headers from the response\nReturns request’s headers.\nGet a mutable reference to the headers\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns the response body, dropping all other parts.\nUnwrap to inner Payload type.\nUnwraps to the internal Arc<T>\nConsumes the ReqData, returning its wrapped data.\nUnwrap into inner T value.\nUnwrap into inner T value.\nUnwrap into inner T value.\nUnwrap into inner T value.\nReturns split head and body.\nReturns true if the Bytes has a length of 0.\nReturns true if the BytesMut has a length of 0.\nReturns true if this is the only reference to the data.\nKeep-alive status for this connection\nReturns the number of bytes contained in this Bytes.\nReturns the number of bytes contained in this BytesMut.\nSet maximum accepted payload size. By default this limit …\nSet maximum accepted payload size. By default this limit …\nSet maximum accepted payload size in bytes. The default …\nMap the current body type to another using a closure, …\nMap the current body to a type-erased BoxBody.\nMap the current body type B to EitherBody::Left(B).\nMap the current body type B to EitherBody::Right(B).\nReturns a reference to the URL parameters container.\nThe resource name that matched the path. Useful for …\nThe resource definition pattern that matched the path. …\nWrapper for actix_web::web::method.\nWrapper for actix_web::Route::method\nRead the Request method.\nSet required mime type of the request. By default mime …\nProxy for actix_web::Resource::name.\nWrapper for actix_web::Resource::new.\nWrapper for actix_web::Scope::new\nWrapper for actix_web::Route::new\nCreates a new empty Bytes.\nCreates a new BytesMut with default capacity.\nConstructs a response.\nCreate new Data instance.\nCreate new instance with a size limit (in bytes) and no …\nWrapper for actix_web::web::options.\nWrapper for actix_web::web::patch.\nThe target path of this request.\nReturns peer socket address.\nWrapper for actix_web::web::post.\nWrapper for actix_web::web::put.\nThe query string in the URL.\nReserves capacity for at least additional more bytes to be …\nResizes the buffer so that len is equal to new_len.\nWrapper for actix_web::web::resource.\nGet a reference to a ResourceMap of current application.\nWrapper for actix_web::Resource::route.\nWrapper for actix_web::Scope::route.\nWrapper for actix_web::web::ServiceConfig::route.\nWrapper for actix_web::web::scope.\nCreates a raw service for a specific path.\nWrapper for actix_web::Scope::service.\nWrapper for actix_web::web::ServiceConfig::service.\nSets new body.\nSets the length of the buffer.\nReturns a slice of self for the provided range.\nReturns a slice of self that is equivalent to the given …\nReturns the remaining spare capacity of the buffer as a …\nRemoves the bytes from the current view, returning them in …\nSplits the bytes into two at the given index.\nSplits the bytes into two at the given index.\nSplits the bytes into two at the given index.\nSplits the buffer into two at the given index.\nGet the response status code\nSet the StatusCode for this response\nCreates a new any-method route with handler.\nWrapper for actix_web::Resource::to.\nWrapper for actix_web::Route::to\nBuffers entire payload from request.\nBuffers payload from request up to limit bytes.\nShortens the buffer, keeping the first len bytes and …\nShortens the buffer, keeping the first len bytes and …\nTry to convert self into BytesMut.\nAttempts to cheaply reclaim already allocated capacity for …\nAbsorbs a BytesMut that was previously split off.\nConnection upgrade status\nRequest’s uri.\nGenerates URL for a named resource.\nGenerate URL for named resource\nRead the Request Version.\nConstructs a response with body\nCreates a new BytesMut with the specified capacity.\nProxy for actix_web::web::Resource::wrap.\nProxy for actix_web::web::Scope::wrap.\nProxy for actix_web::web::Resource::wrap_fn.\nProxy for actix_web::web::Scope::wrap_fn.\nCreates a new BytesMut containing len zeros.") \ No newline at end of file diff --git a/settings.html b/settings.html index 859e1fade..e54e01083 100644 --- a/settings.html +++ b/settings.html @@ -1 +1 @@ -Settings

    Rustdoc settings

    Back
    \ No newline at end of file +Settings

    Rustdoc settings

    Back
    \ No newline at end of file diff --git a/src/paperclip/error.rs.html b/src/paperclip/error.rs.html index c364cf7ce..875c423a7 100644 --- a/src/paperclip/error.rs.html +++ b/src/paperclip/error.rs.html @@ -1,4 +1,4 @@ -error.rs - source
    1
    +error.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip/home/runner/work/paperclip/paperclip/target/debug/build/paperclip-8e7f8d1df2ad29bd/out/template.rs.html b/src/paperclip/home/runner/work/paperclip/paperclip/target/debug/build/paperclip-8e7f8d1df2ad29bd/out/template.rs.html
    index 9f89a8fa0..58b7a7038 100644
    --- a/src/paperclip/home/runner/work/paperclip/paperclip/target/debug/build/paperclip-8e7f8d1df2ad29bd/out/template.rs.html
    +++ b/src/paperclip/home/runner/work/paperclip/paperclip/target/debug/build/paperclip-8e7f8d1df2ad29bd/out/template.rs.html
    @@ -1,4 +1,4 @@
    -template.rs - source
    1
    +template.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip/lib.rs.html b/src/paperclip/lib.rs.html
    index 76f5d0fd7..b7c215f77 100644
    --- a/src/paperclip/lib.rs.html
    +++ b/src/paperclip/lib.rs.html
    @@ -1,4 +1,4 @@
    -lib.rs - source
    1
    +lib.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip/v2/codegen/author.rs.html b/src/paperclip/v2/codegen/author.rs.html
    index 5ddf91051..764c2745d 100644
    --- a/src/paperclip/v2/codegen/author.rs.html
    +++ b/src/paperclip/v2/codegen/author.rs.html
    @@ -1,4 +1,4 @@
    -author.rs - source
    1
    +author.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip/v2/codegen/emitter.rs.html b/src/paperclip/v2/codegen/emitter.rs.html
    index 52629a73b..4b6674c15 100644
    --- a/src/paperclip/v2/codegen/emitter.rs.html
    +++ b/src/paperclip/v2/codegen/emitter.rs.html
    @@ -1,4 +1,4 @@
    -emitter.rs - source
    1
    +emitter.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip/v2/codegen/impls.rs.html b/src/paperclip/v2/codegen/impls.rs.html
    index 03dda36f0..9d1c5a78f 100644
    --- a/src/paperclip/v2/codegen/impls.rs.html
    +++ b/src/paperclip/v2/codegen/impls.rs.html
    @@ -1,4 +1,4 @@
    -impls.rs - source
    1
    +impls.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip/v2/codegen/mod.rs.html b/src/paperclip/v2/codegen/mod.rs.html
    index befc3131c..9bfbd02b5 100644
    --- a/src/paperclip/v2/codegen/mod.rs.html
    +++ b/src/paperclip/v2/codegen/mod.rs.html
    @@ -1,4 +1,4 @@
    -mod.rs - source
    1
    +mod.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip/v2/codegen/object.rs.html b/src/paperclip/v2/codegen/object.rs.html
    index aa5823693..3f67f2218 100644
    --- a/src/paperclip/v2/codegen/object.rs.html
    +++ b/src/paperclip/v2/codegen/object.rs.html
    @@ -1,4 +1,4 @@
    -object.rs - source
    1
    +object.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip/v2/codegen/state.rs.html b/src/paperclip/v2/codegen/state.rs.html
    index 6d61317f2..543b50595 100644
    --- a/src/paperclip/v2/codegen/state.rs.html
    +++ b/src/paperclip/v2/codegen/state.rs.html
    @@ -1,4 +1,4 @@
    -state.rs - source
    1
    +state.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip/v2/mod.rs.html b/src/paperclip/v2/mod.rs.html
    index 9f759cb2a..2cf5fe2f5 100644
    --- a/src/paperclip/v2/mod.rs.html
    +++ b/src/paperclip/v2/mod.rs.html
    @@ -1,4 +1,4 @@
    -mod.rs - source
    1
    +mod.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_actix/app.rs.html b/src/paperclip_actix/app.rs.html
    index b8996a850..af1f343dd 100644
    --- a/src/paperclip_actix/app.rs.html
    +++ b/src/paperclip_actix/app.rs.html
    @@ -1,4 +1,4 @@
    -app.rs - source
    1
    +app.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_actix/lib.rs.html b/src/paperclip_actix/lib.rs.html
    index 6dd9d4894..16baddbb5 100644
    --- a/src/paperclip_actix/lib.rs.html
    +++ b/src/paperclip_actix/lib.rs.html
    @@ -1,4 +1,4 @@
    -lib.rs - source
    1
    +lib.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_actix/web.rs.html b/src/paperclip_actix/web.rs.html
    index dd7520c61..795248aa7 100644
    --- a/src/paperclip_actix/web.rs.html
    +++ b/src/paperclip_actix/web.rs.html
    @@ -1,4 +1,4 @@
    -web.rs - source
    1
    +web.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_core/error.rs.html b/src/paperclip_core/error.rs.html
    index 2ec69fbaf..c73f5df23 100644
    --- a/src/paperclip_core/error.rs.html
    +++ b/src/paperclip_core/error.rs.html
    @@ -1,4 +1,4 @@
    -error.rs - source
    1
    +error.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_core/im.rs.html b/src/paperclip_core/im.rs.html
    index 4bdce7b5a..e75e1e246 100644
    --- a/src/paperclip_core/im.rs.html
    +++ b/src/paperclip_core/im.rs.html
    @@ -1,4 +1,4 @@
    -im.rs - source
    1
    +im.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_core/lib.rs.html b/src/paperclip_core/lib.rs.html
    index 39bd80eeb..684d5e5e2 100644
    --- a/src/paperclip_core/lib.rs.html
    +++ b/src/paperclip_core/lib.rs.html
    @@ -1,4 +1,4 @@
    -lib.rs - source
    1
    +lib.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_core/util.rs.html b/src/paperclip_core/util.rs.html
    index 30c09f4e0..0113550db 100644
    --- a/src/paperclip_core/util.rs.html
    +++ b/src/paperclip_core/util.rs.html
    @@ -1,4 +1,4 @@
    -util.rs - source
    1
    +util.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_core/v2/actix.rs.html b/src/paperclip_core/v2/actix.rs.html
    index dcb8caef8..808889cd2 100644
    --- a/src/paperclip_core/v2/actix.rs.html
    +++ b/src/paperclip_core/v2/actix.rs.html
    @@ -1,4 +1,4 @@
    -actix.rs - source
    1
    +actix.rs - source
    1
     2
     3
     4
    @@ -913,6 +913,10 @@
     913
     914
     915
    +916
    +917
    +918
    +919
     
    #[cfg(feature = "actix3-validator")]
     extern crate actix_web_validator2 as actix_web_validator;
     #[cfg(feature = "actix4-validator")]
    @@ -1195,6 +1199,10 @@
         impl_simple!(usize);
         #[cfg(feature = "chrono")]
         impl_simple!(chrono::NaiveDateTime);
    +    #[cfg(feature = "jiff01")]
    +    impl_simple!(jiff::Timestamp);
    +    #[cfg(feature = "jiff01")]
    +    impl_simple!(jiff::Zoned);
         #[cfg(feature = "rust_decimal")]
         impl_simple!(rust_decimal::Decimal);
         #[cfg(feature = "url")]
    diff --git a/src/paperclip_core/v2/extensions.rs.html b/src/paperclip_core/v2/extensions.rs.html
    index 47c9a4d39..01eb4f1b5 100644
    --- a/src/paperclip_core/v2/extensions.rs.html
    +++ b/src/paperclip_core/v2/extensions.rs.html
    @@ -1,4 +1,4 @@
    -extensions.rs - source
    1
    +extensions.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_core/v2/mod.rs.html b/src/paperclip_core/v2/mod.rs.html
    index 064f0e991..85ca9facc 100644
    --- a/src/paperclip_core/v2/mod.rs.html
    +++ b/src/paperclip_core/v2/mod.rs.html
    @@ -1,4 +1,4 @@
    -mod.rs - source
    1
    +mod.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_core/v2/models.rs.html b/src/paperclip_core/v2/models.rs.html
    index 0dbb77e0b..3439331ff 100644
    --- a/src/paperclip_core/v2/models.rs.html
    +++ b/src/paperclip_core/v2/models.rs.html
    @@ -1,4 +1,4 @@
    -models.rs - source
    1
    +models.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_core/v2/resolver.rs.html b/src/paperclip_core/v2/resolver.rs.html
    index bcb1a0dae..2ae0ea0a4 100644
    --- a/src/paperclip_core/v2/resolver.rs.html
    +++ b/src/paperclip_core/v2/resolver.rs.html
    @@ -1,4 +1,4 @@
    -resolver.rs - source
    1
    +resolver.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_core/v2/schema.rs.html b/src/paperclip_core/v2/schema.rs.html
    index 1bcff651a..14f395c5b 100644
    --- a/src/paperclip_core/v2/schema.rs.html
    +++ b/src/paperclip_core/v2/schema.rs.html
    @@ -1,4 +1,4 @@
    -schema.rs - source
    1
    +schema.rs - source
    1
     2
     3
     4
    @@ -615,6 +615,34 @@
     615
     616
     617
    +618
    +619
    +620
    +621
    +622
    +623
    +624
    +625
    +626
    +627
    +628
    +629
    +630
    +631
    +632
    +633
    +634
    +635
    +636
    +637
    +638
    +639
    +640
    +641
    +642
    +643
    +644
    +645
     
    //! Traits used for code and spec generation.
     
     use super::models::{
    @@ -880,6 +908,34 @@
         DataType::File,
         DataTypeFormat::Binary
     );
    +#[cfg(feature = "jiff01")]
    +impl_type_simple!(jiff::Timestamp, DataType::String, DataTypeFormat::DateTime);
    +#[cfg(feature = "jiff01")]
    +impl_type_simple!(
    +    jiff::Zoned,
    +    DataType::String,
    +    DataTypeFormat::Other //RFC 8536
    +);
    +#[cfg(feature = "jiff01")]
    +impl_type_simple!(
    +    jiff::civil::DateTime,
    +    DataType::String,
    +    DataTypeFormat::Other //2024-06-19T15:22:45
    +);
    +#[cfg(feature = "jiff01")]
    +impl_type_simple!(jiff::civil::Date, DataType::String, DataTypeFormat::Date);
    +#[cfg(feature = "jiff01")]
    +impl_type_simple!(
    +    jiff::civil::Time,
    +    DataType::String,
    +    DataTypeFormat::Other //15:22:45
    +);
    +#[cfg(feature = "jiff01")]
    +impl_type_simple!(
    +    jiff::Span,
    +    DataType::String,
    +    DataTypeFormat::Other //ISO 8601
    +);
     #[cfg(feature = "chrono")]
     impl_type_simple!(
         chrono::NaiveDateTime,
    diff --git a/src/paperclip_core/v3/contact.rs.html b/src/paperclip_core/v3/contact.rs.html
    index da88ab63b..211745f53 100644
    --- a/src/paperclip_core/v3/contact.rs.html
    +++ b/src/paperclip_core/v3/contact.rs.html
    @@ -1,4 +1,4 @@
    -contact.rs - source
    1
    +contact.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_core/v3/external_documentation.rs.html b/src/paperclip_core/v3/external_documentation.rs.html
    index 969c13cc8..499bec8f2 100644
    --- a/src/paperclip_core/v3/external_documentation.rs.html
    +++ b/src/paperclip_core/v3/external_documentation.rs.html
    @@ -1,4 +1,4 @@
    -external_documentation.rs - source
    1
    +external_documentation.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_core/v3/header.rs.html b/src/paperclip_core/v3/header.rs.html
    index 1dfb95e6b..464539d40 100644
    --- a/src/paperclip_core/v3/header.rs.html
    +++ b/src/paperclip_core/v3/header.rs.html
    @@ -1,4 +1,4 @@
    -header.rs - source
    1
    +header.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_core/v3/info.rs.html b/src/paperclip_core/v3/info.rs.html
    index 034d6e960..cb83ec9f0 100644
    --- a/src/paperclip_core/v3/info.rs.html
    +++ b/src/paperclip_core/v3/info.rs.html
    @@ -1,4 +1,4 @@
    -info.rs - source
    1
    +info.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_core/v3/license.rs.html b/src/paperclip_core/v3/license.rs.html
    index 2d734efbd..6de7d4e05 100644
    --- a/src/paperclip_core/v3/license.rs.html
    +++ b/src/paperclip_core/v3/license.rs.html
    @@ -1,4 +1,4 @@
    -license.rs - source
    1
    +license.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_core/v3/mod.rs.html b/src/paperclip_core/v3/mod.rs.html
    index 1877d68a1..8cd555b3b 100644
    --- a/src/paperclip_core/v3/mod.rs.html
    +++ b/src/paperclip_core/v3/mod.rs.html
    @@ -1,4 +1,4 @@
    -mod.rs - source
    1
    +mod.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_core/v3/openapi.rs.html b/src/paperclip_core/v3/openapi.rs.html
    index 91654154b..0dc8634f8 100644
    --- a/src/paperclip_core/v3/openapi.rs.html
    +++ b/src/paperclip_core/v3/openapi.rs.html
    @@ -1,4 +1,4 @@
    -openapi.rs - source
    1
    +openapi.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_core/v3/operation.rs.html b/src/paperclip_core/v3/operation.rs.html
    index ac43e341d..40d3e9eeb 100644
    --- a/src/paperclip_core/v3/operation.rs.html
    +++ b/src/paperclip_core/v3/operation.rs.html
    @@ -1,4 +1,4 @@
    -operation.rs - source
    1
    +operation.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_core/v3/parameter.rs.html b/src/paperclip_core/v3/parameter.rs.html
    index b5bc2d484..20016bdaa 100644
    --- a/src/paperclip_core/v3/parameter.rs.html
    +++ b/src/paperclip_core/v3/parameter.rs.html
    @@ -1,4 +1,4 @@
    -parameter.rs - source
    1
    +parameter.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_core/v3/paths.rs.html b/src/paperclip_core/v3/paths.rs.html
    index 2ea1c4b0c..a0aead34d 100644
    --- a/src/paperclip_core/v3/paths.rs.html
    +++ b/src/paperclip_core/v3/paths.rs.html
    @@ -1,4 +1,4 @@
    -paths.rs - source
    1
    +paths.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_core/v3/reference.rs.html b/src/paperclip_core/v3/reference.rs.html
    index 960ad4899..e129477e1 100644
    --- a/src/paperclip_core/v3/reference.rs.html
    +++ b/src/paperclip_core/v3/reference.rs.html
    @@ -1,4 +1,4 @@
    -reference.rs - source
    1
    +reference.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_core/v3/request_body.rs.html b/src/paperclip_core/v3/request_body.rs.html
    index 4fdd49c62..6ff6d8349 100644
    --- a/src/paperclip_core/v3/request_body.rs.html
    +++ b/src/paperclip_core/v3/request_body.rs.html
    @@ -1,4 +1,4 @@
    -request_body.rs - source
    1
    +request_body.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_core/v3/response.rs.html b/src/paperclip_core/v3/response.rs.html
    index 620e3318c..8526ba06f 100644
    --- a/src/paperclip_core/v3/response.rs.html
    +++ b/src/paperclip_core/v3/response.rs.html
    @@ -1,4 +1,4 @@
    -response.rs - source
    1
    +response.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_core/v3/schema.rs.html b/src/paperclip_core/v3/schema.rs.html
    index 4d008e3b4..ef02ed430 100644
    --- a/src/paperclip_core/v3/schema.rs.html
    +++ b/src/paperclip_core/v3/schema.rs.html
    @@ -1,4 +1,4 @@
    -schema.rs - source
    1
    +schema.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_core/v3/security_scheme.rs.html b/src/paperclip_core/v3/security_scheme.rs.html
    index 25fff1e74..56be3a702 100644
    --- a/src/paperclip_core/v3/security_scheme.rs.html
    +++ b/src/paperclip_core/v3/security_scheme.rs.html
    @@ -1,4 +1,4 @@
    -security_scheme.rs - source
    1
    +security_scheme.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_core/v3/tag.rs.html b/src/paperclip_core/v3/tag.rs.html
    index 24c7a4457..764d7f24d 100644
    --- a/src/paperclip_core/v3/tag.rs.html
    +++ b/src/paperclip_core/v3/tag.rs.html
    @@ -1,4 +1,4 @@
    -tag.rs - source
    1
    +tag.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_macros/actix.rs.html b/src/paperclip_macros/actix.rs.html
    index 3deebba94..b3df4b1c8 100644
    --- a/src/paperclip_macros/actix.rs.html
    +++ b/src/paperclip_macros/actix.rs.html
    @@ -1,4 +1,4 @@
    -actix.rs - source
    1
    +actix.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_macros/core.rs.html b/src/paperclip_macros/core.rs.html
    index 319749049..783125bf4 100644
    --- a/src/paperclip_macros/core.rs.html
    +++ b/src/paperclip_macros/core.rs.html
    @@ -1,4 +1,4 @@
    -core.rs - source
    1
    +core.rs - source
    1
     2
     3
     4
    diff --git a/src/paperclip_macros/lib.rs.html b/src/paperclip_macros/lib.rs.html
    index be6d7e410..b0c4cd280 100644
    --- a/src/paperclip_macros/lib.rs.html
    +++ b/src/paperclip_macros/lib.rs.html
    @@ -1,4 +1,4 @@
    -lib.rs - source
    1
    +lib.rs - source
    1
     2
     3
     4
    diff --git a/static.files/main-20a3ad099b048cf2.js b/static.files/main-20a3ad099b048cf2.js
    deleted file mode 100644
    index 133116e4d..000000000
    --- a/static.files/main-20a3ad099b048cf2.js
    +++ /dev/null
    @@ -1,11 +0,0 @@
    -"use strict";window.RUSTDOC_TOOLTIP_HOVER_MS=300;window.RUSTDOC_TOOLTIP_HOVER_EXIT_MS=450;function resourcePath(basename,extension){return getVar("root-path")+basename+getVar("resource-suffix")+extension}function hideMain(){addClass(document.getElementById(MAIN_ID),"hidden")}function showMain(){removeClass(document.getElementById(MAIN_ID),"hidden")}function blurHandler(event,parentElem,hideCallback){if(!parentElem.contains(document.activeElement)&&!parentElem.contains(event.relatedTarget)){hideCallback()}}window.rootPath=getVar("root-path");window.currentCrate=getVar("current-crate");function setMobileTopbar(){const mobileTopbar=document.querySelector(".mobile-topbar");const locationTitle=document.querySelector(".sidebar h2.location");if(mobileTopbar){const mobileTitle=document.createElement("h2");mobileTitle.className="location";if(hasClass(document.querySelector(".rustdoc"),"crate")){mobileTitle.innerHTML=`Crate ${window.currentCrate}`}else if(locationTitle){mobileTitle.innerHTML=locationTitle.innerHTML}mobileTopbar.appendChild(mobileTitle)}}function getVirtualKey(ev){if("key"in ev&&typeof ev.key!=="undefined"){return ev.key}const c=ev.charCode||ev.keyCode;if(c===27){return"Escape"}return String.fromCharCode(c)}const MAIN_ID="main-content";const SETTINGS_BUTTON_ID="settings-menu";const ALTERNATIVE_DISPLAY_ID="alternative-display";const NOT_DISPLAYED_ID="not-displayed";const HELP_BUTTON_ID="help-button";function getSettingsButton(){return document.getElementById(SETTINGS_BUTTON_ID)}function getHelpButton(){return document.getElementById(HELP_BUTTON_ID)}function getNakedUrl(){return window.location.href.split("?")[0].split("#")[0]}function insertAfter(newNode,referenceNode){referenceNode.parentNode.insertBefore(newNode,referenceNode.nextSibling)}function getOrCreateSection(id,classes){let el=document.getElementById(id);if(!el){el=document.createElement("section");el.id=id;el.className=classes;insertAfter(el,document.getElementById(MAIN_ID))}return el}function getAlternativeDisplayElem(){return getOrCreateSection(ALTERNATIVE_DISPLAY_ID,"content hidden")}function getNotDisplayedElem(){return getOrCreateSection(NOT_DISPLAYED_ID,"hidden")}function switchDisplayedElement(elemToDisplay){const el=getAlternativeDisplayElem();if(el.children.length>0){getNotDisplayedElem().appendChild(el.firstElementChild)}if(elemToDisplay===null){addClass(el,"hidden");showMain();return}el.appendChild(elemToDisplay);hideMain();removeClass(el,"hidden")}function browserSupportsHistoryApi(){return window.history&&typeof window.history.pushState==="function"}function preLoadCss(cssUrl){const link=document.createElement("link");link.href=cssUrl;link.rel="preload";link.as="style";document.getElementsByTagName("head")[0].appendChild(link)}(function(){const isHelpPage=window.location.pathname.endsWith("/help.html");function loadScript(url,errorCallback){const script=document.createElement("script");script.src=url;if(errorCallback!==undefined){script.onerror=errorCallback}document.head.append(script)}getSettingsButton().onclick=event=>{if(event.ctrlKey||event.altKey||event.metaKey){return}window.hideAllModals(false);addClass(getSettingsButton(),"rotate");event.preventDefault();loadScript(getVar("static-root-path")+getVar("settings-js"));setTimeout(()=>{const themes=getVar("themes").split(",");for(const theme of themes){if(theme!==""){preLoadCss(getVar("root-path")+theme+".css")}}},0)};window.searchState={loadingText:"Loading search results...",input:document.getElementsByClassName("search-input")[0],outputElement:()=>{let el=document.getElementById("search");if(!el){el=document.createElement("section");el.id="search";getNotDisplayedElem().appendChild(el)}return el},title:document.title,titleBeforeSearch:document.title,timeout:null,currentTab:0,focusedByTab:[null,null,null],clearInputTimeout:()=>{if(searchState.timeout!==null){clearTimeout(searchState.timeout);searchState.timeout=null}},isDisplayed:()=>searchState.outputElement().parentElement.id===ALTERNATIVE_DISPLAY_ID,focus:()=>{searchState.input.focus()},defocus:()=>{searchState.input.blur()},showResults:search=>{if(search===null||typeof search==="undefined"){search=searchState.outputElement()}switchDisplayedElement(search);searchState.mouseMovedAfterSearch=false;document.title=searchState.title},removeQueryParameters:()=>{document.title=searchState.titleBeforeSearch;if(browserSupportsHistoryApi()){history.replaceState(null,"",getNakedUrl()+window.location.hash)}},hideResults:()=>{switchDisplayedElement(null);searchState.removeQueryParameters()},getQueryStringParams:()=>{const params={};window.location.search.substring(1).split("&").map(s=>{const pair=s.split("=").map(x=>x.replace(/\+/g," "));params[decodeURIComponent(pair[0])]=typeof pair[1]==="undefined"?null:decodeURIComponent(pair[1])});return params},setup:()=>{const search_input=searchState.input;if(!searchState.input){return}let searchLoaded=false;function sendSearchForm(){document.getElementsByClassName("search-form")[0].submit()}function loadSearch(){if(!searchLoaded){searchLoaded=true;loadScript(getVar("static-root-path")+getVar("search-js"),sendSearchForm);loadScript(resourcePath("search-index",".js"),sendSearchForm)}}search_input.addEventListener("focus",()=>{search_input.origPlaceholder=search_input.placeholder;search_input.placeholder="Type your search here.";loadSearch()});if(search_input.value!==""){loadSearch()}const params=searchState.getQueryStringParams();if(params.search!==undefined){searchState.setLoadingSearch();loadSearch()}},setLoadingSearch:()=>{const search=searchState.outputElement();search.innerHTML="

    "+searchState.loadingText+"

    ";searchState.showResults(search)},descShards:new Map(),loadDesc:async function({descShard,descIndex}){if(descShard.promise===null){descShard.promise=new Promise((resolve,reject)=>{descShard.resolve=resolve;const ds=descShard;const fname=`${ds.crate}-desc-${ds.shard}-`;const url=resourcePath(`search.desc/${descShard.crate}/${fname}`,".js",);loadScript(url,reject)})}const list=await descShard.promise;return list[descIndex]},loadedDescShard:function(crate,shard,data){this.descShards.get(crate)[shard].resolve(data.split("\n"))},};const toggleAllDocsId="toggle-all-docs";let savedHash="";function handleHashes(ev){if(ev!==null&&searchState.isDisplayed()&&ev.newURL){switchDisplayedElement(null);const hash=ev.newURL.slice(ev.newURL.indexOf("#")+1);if(browserSupportsHistoryApi()){history.replaceState(null,"",getNakedUrl()+window.location.search+"#"+hash)}const elem=document.getElementById(hash);if(elem){elem.scrollIntoView()}}const pageId=window.location.hash.replace(/^#/,"");if(savedHash!==pageId){savedHash=pageId;if(pageId!==""){expandSection(pageId)}}if(savedHash.startsWith("impl-")){const splitAt=savedHash.indexOf("/");if(splitAt!==-1){const implId=savedHash.slice(0,splitAt);const assocId=savedHash.slice(splitAt+1);const implElem=document.getElementById(implId);if(implElem&&implElem.parentElement.tagName==="SUMMARY"&&implElem.parentElement.parentElement.tagName==="DETAILS"){onEachLazy(implElem.parentElement.parentElement.querySelectorAll(`[id^="${assocId}"]`),item=>{const numbered=/([^-]+)-([0-9]+)/.exec(item.id);if(item.id===assocId||(numbered&&numbered[1]===assocId)){openParentDetails(item);item.scrollIntoView();setTimeout(()=>{window.location.replace("#"+item.id)},0)}},)}}}}function onHashChange(ev){hideSidebar();handleHashes(ev)}function openParentDetails(elem){while(elem){if(elem.tagName==="DETAILS"){elem.open=true}elem=elem.parentNode}}function expandSection(id){openParentDetails(document.getElementById(id))}function handleEscape(ev){searchState.clearInputTimeout();searchState.hideResults();ev.preventDefault();searchState.defocus();window.hideAllModals(true)}function handleShortcut(ev){const disableShortcuts=getSettingValue("disable-shortcuts")==="true";if(ev.ctrlKey||ev.altKey||ev.metaKey||disableShortcuts){return}if(document.activeElement.tagName==="INPUT"&&document.activeElement.type!=="checkbox"&&document.activeElement.type!=="radio"){switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break}}else{switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break;case"s":case"S":case"/":ev.preventDefault();searchState.focus();break;case"+":ev.preventDefault();expandAllDocs();break;case"-":ev.preventDefault();collapseAllDocs();break;case"?":showHelp();break;default:break}}}document.addEventListener("keypress",handleShortcut);document.addEventListener("keydown",handleShortcut);function addSidebarItems(){if(!window.SIDEBAR_ITEMS){return}const sidebar=document.getElementsByClassName("sidebar-elems")[0];function block(shortty,id,longty){const filtered=window.SIDEBAR_ITEMS[shortty];if(!filtered){return}const modpath=hasClass(document.querySelector(".rustdoc"),"mod")?"../":"";const h3=document.createElement("h3");h3.innerHTML=`${longty}`;const ul=document.createElement("ul");ul.className="block "+shortty;for(const name of filtered){let path;if(shortty==="mod"){path=`${modpath}${name}/index.html`}else{path=`${modpath}${shortty}.${name}.html`}let current_page=document.location.href.toString();if(current_page.endsWith("/")){current_page+="index.html"}const link=document.createElement("a");link.href=path;if(path===current_page){link.className="current"}link.textContent=name;const li=document.createElement("li");li.appendChild(link);ul.appendChild(li)}sidebar.appendChild(h3);sidebar.appendChild(ul)}if(sidebar){block("primitive","primitives","Primitive Types");block("mod","modules","Modules");block("macro","macros","Macros");block("struct","structs","Structs");block("enum","enums","Enums");block("constant","constants","Constants");block("static","static","Statics");block("trait","traits","Traits");block("fn","functions","Functions");block("type","types","Type Aliases");block("union","unions","Unions");block("foreigntype","foreign-types","Foreign Types");block("keyword","keywords","Keywords");block("opaque","opaque-types","Opaque Types");block("attr","attributes","Attribute Macros");block("derive","derives","Derive Macros");block("traitalias","trait-aliases","Trait Aliases")}}window.register_implementors=imp=>{const implementors=document.getElementById("implementors-list");const synthetic_implementors=document.getElementById("synthetic-implementors-list");const inlined_types=new Set();const TEXT_IDX=0;const SYNTHETIC_IDX=1;const TYPES_IDX=2;if(synthetic_implementors){onEachLazy(synthetic_implementors.getElementsByClassName("impl"),el=>{const aliases=el.getAttribute("data-aliases");if(!aliases){return}aliases.split(",").forEach(alias=>{inlined_types.add(alias)})})}let currentNbImpls=implementors.getElementsByClassName("impl").length;const traitName=document.querySelector(".main-heading h1 > .trait").textContent;const baseIdName="impl-"+traitName+"-";const libs=Object.getOwnPropertyNames(imp);const script=document.querySelector("script[data-ignore-extern-crates]");const ignoreExternCrates=new Set((script?script.getAttribute("data-ignore-extern-crates"):"").split(","),);for(const lib of libs){if(lib===window.currentCrate||ignoreExternCrates.has(lib)){continue}const structs=imp[lib];struct_loop:for(const struct of structs){const list=struct[SYNTHETIC_IDX]?synthetic_implementors:implementors;if(struct[SYNTHETIC_IDX]){for(const struct_type of struct[TYPES_IDX]){if(inlined_types.has(struct_type)){continue struct_loop}inlined_types.add(struct_type)}}const code=document.createElement("h3");code.innerHTML=struct[TEXT_IDX];addClass(code,"code-header");onEachLazy(code.getElementsByTagName("a"),elem=>{const href=elem.getAttribute("href");if(href&&!href.startsWith("#")&&!/^(?:[a-z+]+:)?\/\//.test(href)){elem.setAttribute("href",window.rootPath+href)}});const currentId=baseIdName+currentNbImpls;const anchor=document.createElement("a");anchor.href="#"+currentId;addClass(anchor,"anchor");const display=document.createElement("div");display.id=currentId;addClass(display,"impl");display.appendChild(anchor);display.appendChild(code);list.appendChild(display);currentNbImpls+=1}}};if(window.pending_implementors){window.register_implementors(window.pending_implementors)}window.register_type_impls=imp=>{if(!imp||!imp[window.currentCrate]){return}window.pending_type_impls=null;const idMap=new Map();let implementations=document.getElementById("implementations-list");let trait_implementations=document.getElementById("trait-implementations-list");let trait_implementations_header=document.getElementById("trait-implementations");const script=document.querySelector("script[data-self-path]");const selfPath=script?script.getAttribute("data-self-path"):null;const mainContent=document.querySelector("#main-content");const sidebarSection=document.querySelector(".sidebar section");let methods=document.querySelector(".sidebar .block.method");let associatedTypes=document.querySelector(".sidebar .block.associatedtype");let associatedConstants=document.querySelector(".sidebar .block.associatedconstant");let sidebarTraitList=document.querySelector(".sidebar .block.trait-implementation");for(const impList of imp[window.currentCrate]){const types=impList.slice(2);const text=impList[0];const isTrait=impList[1]!==0;const traitName=impList[1];if(types.indexOf(selfPath)===-1){continue}let outputList=isTrait?trait_implementations:implementations;if(outputList===null){const outputListName=isTrait?"Trait Implementations":"Implementations";const outputListId=isTrait?"trait-implementations-list":"implementations-list";const outputListHeaderId=isTrait?"trait-implementations":"implementations";const outputListHeader=document.createElement("h2");outputListHeader.id=outputListHeaderId;outputListHeader.innerText=outputListName;outputList=document.createElement("div");outputList.id=outputListId;if(isTrait){const link=document.createElement("a");link.href=`#${outputListHeaderId}`;link.innerText="Trait Implementations";const h=document.createElement("h3");h.appendChild(link);trait_implementations=outputList;trait_implementations_header=outputListHeader;sidebarSection.appendChild(h);sidebarTraitList=document.createElement("ul");sidebarTraitList.className="block trait-implementation";sidebarSection.appendChild(sidebarTraitList);mainContent.appendChild(outputListHeader);mainContent.appendChild(outputList)}else{implementations=outputList;if(trait_implementations){mainContent.insertBefore(outputListHeader,trait_implementations_header);mainContent.insertBefore(outputList,trait_implementations_header)}else{const mainContent=document.querySelector("#main-content");mainContent.appendChild(outputListHeader);mainContent.appendChild(outputList)}}}const template=document.createElement("template");template.innerHTML=text;onEachLazy(template.content.querySelectorAll("a"),elem=>{const href=elem.getAttribute("href");if(href&&!href.startsWith("#")&&!/^(?:[a-z+]+:)?\/\//.test(href)){elem.setAttribute("href",window.rootPath+href)}});onEachLazy(template.content.querySelectorAll("[id]"),el=>{let i=0;if(idMap.has(el.id)){i=idMap.get(el.id)}else if(document.getElementById(el.id)){i=1;while(document.getElementById(`${el.id}-${2 * i}`)){i=2*i}while(document.getElementById(`${el.id}-${i}`)){i+=1}}if(i!==0){const oldHref=`#${el.id}`;const newHref=`#${el.id}-${i}`;el.id=`${el.id}-${i}`;onEachLazy(template.content.querySelectorAll("a[href]"),link=>{if(link.getAttribute("href")===oldHref){link.href=newHref}})}idMap.set(el.id,i+1)});const templateAssocItems=template.content.querySelectorAll("section.tymethod, "+"section.method, section.associatedtype, section.associatedconstant");if(isTrait){const li=document.createElement("li");const a=document.createElement("a");a.href=`#${template.content.querySelector(".impl").id}`;a.textContent=traitName;li.appendChild(a);sidebarTraitList.append(li)}else{onEachLazy(templateAssocItems,item=>{let block=hasClass(item,"associatedtype")?associatedTypes:(hasClass(item,"associatedconstant")?associatedConstants:(methods));if(!block){const blockTitle=hasClass(item,"associatedtype")?"Associated Types":(hasClass(item,"associatedconstant")?"Associated Constants":("Methods"));const blockClass=hasClass(item,"associatedtype")?"associatedtype":(hasClass(item,"associatedconstant")?"associatedconstant":("method"));const blockHeader=document.createElement("h3");const blockLink=document.createElement("a");blockLink.href="#implementations";blockLink.innerText=blockTitle;blockHeader.appendChild(blockLink);block=document.createElement("ul");block.className=`block ${blockClass}`;const insertionReference=methods||sidebarTraitList;if(insertionReference){const insertionReferenceH=insertionReference.previousElementSibling;sidebarSection.insertBefore(blockHeader,insertionReferenceH);sidebarSection.insertBefore(block,insertionReferenceH)}else{sidebarSection.appendChild(blockHeader);sidebarSection.appendChild(block)}if(hasClass(item,"associatedtype")){associatedTypes=block}else if(hasClass(item,"associatedconstant")){associatedConstants=block}else{methods=block}}const li=document.createElement("li");const a=document.createElement("a");a.innerText=item.id.split("-")[0].split(".")[1];a.href=`#${item.id}`;li.appendChild(a);block.appendChild(li)})}outputList.appendChild(template.content)}for(const list of[methods,associatedTypes,associatedConstants,sidebarTraitList]){if(!list){continue}const newChildren=Array.prototype.slice.call(list.children);newChildren.sort((a,b)=>{const aI=a.innerText;const bI=b.innerText;return aIbI?1:0});list.replaceChildren(...newChildren)}};if(window.pending_type_impls){window.register_type_impls(window.pending_type_impls)}function addSidebarCrates(){if(!window.ALL_CRATES){return}const sidebarElems=document.getElementsByClassName("sidebar-elems")[0];if(!sidebarElems){return}const h3=document.createElement("h3");h3.innerHTML="Crates";const ul=document.createElement("ul");ul.className="block crate";for(const crate of window.ALL_CRATES){const link=document.createElement("a");link.href=window.rootPath+crate+"/index.html";link.textContent=crate;const li=document.createElement("li");if(window.rootPath!=="./"&&crate===window.currentCrate){li.className="current"}li.appendChild(link);ul.appendChild(li)}sidebarElems.appendChild(h3);sidebarElems.appendChild(ul)}function expandAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);removeClass(innerToggle,"will-expand");onEachLazy(document.getElementsByClassName("toggle"),e=>{if(!hasClass(e,"type-contents-toggle")&&!hasClass(e,"more-examples-toggle")){e.open=true}});innerToggle.title="collapse all docs";innerToggle.children[0].innerText="\u2212"}function collapseAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);addClass(innerToggle,"will-expand");onEachLazy(document.getElementsByClassName("toggle"),e=>{if(e.parentNode.id!=="implementations-list"||(!hasClass(e,"implementors-toggle")&&!hasClass(e,"type-contents-toggle"))){e.open=false}});innerToggle.title="expand all docs";innerToggle.children[0].innerText="+"}function toggleAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);if(!innerToggle){return}if(hasClass(innerToggle,"will-expand")){expandAllDocs()}else{collapseAllDocs()}}(function(){const toggles=document.getElementById(toggleAllDocsId);if(toggles){toggles.onclick=toggleAllDocs}const hideMethodDocs=getSettingValue("auto-hide-method-docs")==="true";const hideImplementations=getSettingValue("auto-hide-trait-implementations")==="true";const hideLargeItemContents=getSettingValue("auto-hide-large-items")!=="false";function setImplementorsTogglesOpen(id,open){const list=document.getElementById(id);if(list!==null){onEachLazy(list.getElementsByClassName("implementors-toggle"),e=>{e.open=open})}}if(hideImplementations){setImplementorsTogglesOpen("trait-implementations-list",false);setImplementorsTogglesOpen("blanket-implementations-list",false)}onEachLazy(document.getElementsByClassName("toggle"),e=>{if(!hideLargeItemContents&&hasClass(e,"type-contents-toggle")){e.open=true}if(hideMethodDocs&&hasClass(e,"method-toggle")){e.open=false}})}());window.rustdoc_add_line_numbers_to_examples=()=>{onEachLazy(document.getElementsByClassName("rust-example-rendered"),x=>{const parent=x.parentNode;const line_numbers=parent.querySelectorAll(".example-line-numbers");if(line_numbers.length>0){return}const count=x.textContent.split("\n").length;const elems=[];for(let i=0;i{onEachLazy(document.getElementsByClassName("rust-example-rendered"),x=>{const parent=x.parentNode;const line_numbers=parent.querySelectorAll(".example-line-numbers");for(const node of line_numbers){parent.removeChild(node)}})};if(getSettingValue("line-numbers")==="true"){window.rustdoc_add_line_numbers_to_examples()}function showSidebar(){window.hideAllModals(false);const sidebar=document.getElementsByClassName("sidebar")[0];addClass(sidebar,"shown")}function hideSidebar(){const sidebar=document.getElementsByClassName("sidebar")[0];removeClass(sidebar,"shown")}window.addEventListener("resize",()=>{if(window.CURRENT_TOOLTIP_ELEMENT){const base=window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE;const force_visible=base.TOOLTIP_FORCE_VISIBLE;hideTooltip(false);if(force_visible){showTooltip(base);base.TOOLTIP_FORCE_VISIBLE=true}}});const mainElem=document.getElementById(MAIN_ID);if(mainElem){mainElem.addEventListener("click",hideSidebar)}onEachLazy(document.querySelectorAll("a[href^='#']"),el=>{el.addEventListener("click",()=>{expandSection(el.hash.slice(1));hideSidebar()})});onEachLazy(document.querySelectorAll(".toggle > summary:not(.hideme)"),el=>{el.addEventListener("click",e=>{if(e.target.tagName!=="SUMMARY"&&e.target.tagName!=="A"){e.preventDefault()}})});function showTooltip(e){const notable_ty=e.getAttribute("data-notable-ty");if(!window.NOTABLE_TRAITS&¬able_ty){const data=document.getElementById("notable-traits-data");if(data){window.NOTABLE_TRAITS=JSON.parse(data.innerText)}else{throw new Error("showTooltip() called with notable without any notable traits!")}}if(window.CURRENT_TOOLTIP_ELEMENT&&window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE===e){clearTooltipHoverTimeout(window.CURRENT_TOOLTIP_ELEMENT);return}window.hideAllModals(false);const wrapper=document.createElement("div");if(notable_ty){wrapper.innerHTML="
    "+window.NOTABLE_TRAITS[notable_ty]+"
    "}else{if(e.getAttribute("title")!==null){e.setAttribute("data-title",e.getAttribute("title"));e.removeAttribute("title")}if(e.getAttribute("data-title")!==null){const titleContent=document.createElement("div");titleContent.className="content";titleContent.appendChild(document.createTextNode(e.getAttribute("data-title")));wrapper.appendChild(titleContent)}}wrapper.className="tooltip popover";const focusCatcher=document.createElement("div");focusCatcher.setAttribute("tabindex","0");focusCatcher.onfocus=hideTooltip;wrapper.appendChild(focusCatcher);const pos=e.getBoundingClientRect();wrapper.style.top=(pos.top+window.scrollY+pos.height)+"px";wrapper.style.left=0;wrapper.style.right="auto";wrapper.style.visibility="hidden";const body=document.getElementsByTagName("body")[0];body.appendChild(wrapper);const wrapperPos=wrapper.getBoundingClientRect();const finalPos=pos.left+window.scrollX-wrapperPos.width+24;if(finalPos>0){wrapper.style.left=finalPos+"px"}else{wrapper.style.setProperty("--popover-arrow-offset",(wrapperPos.right-pos.right+4)+"px",)}wrapper.style.visibility="";window.CURRENT_TOOLTIP_ELEMENT=wrapper;window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE=e;clearTooltipHoverTimeout(window.CURRENT_TOOLTIP_ELEMENT);wrapper.onpointerenter=ev=>{if(ev.pointerType!=="mouse"){return}clearTooltipHoverTimeout(e)};wrapper.onpointerleave=ev=>{if(ev.pointerType!=="mouse"){return}if(!e.TOOLTIP_FORCE_VISIBLE&&!e.contains(ev.relatedTarget)){setTooltipHoverTimeout(e,false);addClass(wrapper,"fade-out")}}}function setTooltipHoverTimeout(element,show){clearTooltipHoverTimeout(element);if(!show&&!window.CURRENT_TOOLTIP_ELEMENT){return}if(show&&window.CURRENT_TOOLTIP_ELEMENT){return}if(window.CURRENT_TOOLTIP_ELEMENT&&window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE!==element){return}element.TOOLTIP_HOVER_TIMEOUT=setTimeout(()=>{if(show){showTooltip(element)}else if(!element.TOOLTIP_FORCE_VISIBLE){hideTooltip(false)}},show?window.RUSTDOC_TOOLTIP_HOVER_MS:window.RUSTDOC_TOOLTIP_HOVER_EXIT_MS)}function clearTooltipHoverTimeout(element){if(element.TOOLTIP_HOVER_TIMEOUT!==undefined){removeClass(window.CURRENT_TOOLTIP_ELEMENT,"fade-out");clearTimeout(element.TOOLTIP_HOVER_TIMEOUT);delete element.TOOLTIP_HOVER_TIMEOUT}}function tooltipBlurHandler(event){if(window.CURRENT_TOOLTIP_ELEMENT&&!window.CURRENT_TOOLTIP_ELEMENT.contains(document.activeElement)&&!window.CURRENT_TOOLTIP_ELEMENT.contains(event.relatedTarget)&&!window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.contains(document.activeElement)&&!window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.contains(event.relatedTarget)){setTimeout(()=>hideTooltip(false),0)}}function hideTooltip(focus){if(window.CURRENT_TOOLTIP_ELEMENT){if(window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.TOOLTIP_FORCE_VISIBLE){if(focus){window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.focus()}window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.TOOLTIP_FORCE_VISIBLE=false}const body=document.getElementsByTagName("body")[0];body.removeChild(window.CURRENT_TOOLTIP_ELEMENT);clearTooltipHoverTimeout(window.CURRENT_TOOLTIP_ELEMENT);window.CURRENT_TOOLTIP_ELEMENT=null}}onEachLazy(document.getElementsByClassName("tooltip"),e=>{e.onclick=()=>{e.TOOLTIP_FORCE_VISIBLE=e.TOOLTIP_FORCE_VISIBLE?false:true;if(window.CURRENT_TOOLTIP_ELEMENT&&!e.TOOLTIP_FORCE_VISIBLE){hideTooltip(true)}else{showTooltip(e);window.CURRENT_TOOLTIP_ELEMENT.setAttribute("tabindex","0");window.CURRENT_TOOLTIP_ELEMENT.focus();window.CURRENT_TOOLTIP_ELEMENT.onblur=tooltipBlurHandler}return false};e.onpointerenter=ev=>{if(ev.pointerType!=="mouse"){return}setTooltipHoverTimeout(e,true)};e.onpointermove=ev=>{if(ev.pointerType!=="mouse"){return}setTooltipHoverTimeout(e,true)};e.onpointerleave=ev=>{if(ev.pointerType!=="mouse"){return}if(!e.TOOLTIP_FORCE_VISIBLE&&window.CURRENT_TOOLTIP_ELEMENT&&!window.CURRENT_TOOLTIP_ELEMENT.contains(ev.relatedTarget)){setTooltipHoverTimeout(e,false);addClass(window.CURRENT_TOOLTIP_ELEMENT,"fade-out")}}});const sidebar_menu_toggle=document.getElementsByClassName("sidebar-menu-toggle")[0];if(sidebar_menu_toggle){sidebar_menu_toggle.addEventListener("click",()=>{const sidebar=document.getElementsByClassName("sidebar")[0];if(!hasClass(sidebar,"shown")){showSidebar()}else{hideSidebar()}})}function helpBlurHandler(event){blurHandler(event,getHelpButton(),window.hidePopoverMenus)}function buildHelpMenu(){const book_info=document.createElement("span");const channel=getVar("channel");book_info.className="top";book_info.innerHTML=`You can find more information in \ -the rustdoc book.`;const shortcuts=[["?","Show this help dialog"],["S / /","Focus the search field"],["↑","Move up in search results"],["↓","Move down in search results"],["← / →","Switch result tab (when results focused)"],["⏎","Go to active search result"],["+","Expand all sections"],["-","Collapse all sections"],].map(x=>"
    "+x[0].split(" ").map((y,index)=>((index&1)===0?""+y+"":" "+y+" ")).join("")+"
    "+x[1]+"
    ").join("");const div_shortcuts=document.createElement("div");addClass(div_shortcuts,"shortcuts");div_shortcuts.innerHTML="

    Keyboard Shortcuts

    "+shortcuts+"
    ";const infos=[`For a full list of all search features, take a look here.`,"Prefix searches with a type followed by a colon (e.g., fn:) to \ - restrict the search to a given item kind.","Accepted kinds are: fn, mod, struct, \ - enum, trait, type, macro, \ - and const.","Search functions by type signature (e.g., vec -> usize or \ - -> vec or String, enum:Cow -> bool)","You can look for items with an exact name by putting double quotes around \ - your request: \"string\"","Look for functions that accept or return \ - slices and \ - arrays by writing \ - square brackets (e.g., -> [u8] or [] -> Option)","Look for items inside another one by searching for a path: vec::Vec",].map(x=>"

    "+x+"

    ").join("");const div_infos=document.createElement("div");addClass(div_infos,"infos");div_infos.innerHTML="

    Search Tricks

    "+infos;const rustdoc_version=document.createElement("span");rustdoc_version.className="bottom";const rustdoc_version_code=document.createElement("code");rustdoc_version_code.innerText="rustdoc "+getVar("rustdoc-version");rustdoc_version.appendChild(rustdoc_version_code);const container=document.createElement("div");if(!isHelpPage){container.className="popover"}container.id="help";container.style.display="none";const side_by_side=document.createElement("div");side_by_side.className="side-by-side";side_by_side.appendChild(div_shortcuts);side_by_side.appendChild(div_infos);container.appendChild(book_info);container.appendChild(side_by_side);container.appendChild(rustdoc_version);if(isHelpPage){const help_section=document.createElement("section");help_section.appendChild(container);document.getElementById("main-content").appendChild(help_section);container.style.display="block"}else{const help_button=getHelpButton();help_button.appendChild(container);container.onblur=helpBlurHandler;help_button.onblur=helpBlurHandler;help_button.children[0].onblur=helpBlurHandler}return container}window.hideAllModals=switchFocus=>{hideSidebar();window.hidePopoverMenus();hideTooltip(switchFocus)};window.hidePopoverMenus=()=>{onEachLazy(document.querySelectorAll(".search-form .popover"),elem=>{elem.style.display="none"})};function getHelpMenu(buildNeeded){let menu=getHelpButton().querySelector(".popover");if(!menu&&buildNeeded){menu=buildHelpMenu()}return menu}function showHelp(){getHelpButton().querySelector("a").focus();const menu=getHelpMenu(true);if(menu.style.display==="none"){window.hideAllModals();menu.style.display=""}}if(isHelpPage){showHelp();document.querySelector(`#${HELP_BUTTON_ID} > a`).addEventListener("click",event=>{const target=event.target;if(target.tagName!=="A"||target.parentElement.id!==HELP_BUTTON_ID||event.ctrlKey||event.altKey||event.metaKey){return}event.preventDefault()})}else{document.querySelector(`#${HELP_BUTTON_ID} > a`).addEventListener("click",event=>{const target=event.target;if(target.tagName!=="A"||target.parentElement.id!==HELP_BUTTON_ID||event.ctrlKey||event.altKey||event.metaKey){return}event.preventDefault();const menu=getHelpMenu(true);const shouldShowHelp=menu.style.display==="none";if(shouldShowHelp){showHelp()}else{window.hidePopoverMenus()}})}setMobileTopbar();addSidebarItems();addSidebarCrates();onHashChange(null);window.addEventListener("hashchange",onHashChange);searchState.setup()}());(function(){const SIDEBAR_MIN=100;const SIDEBAR_MAX=500;const RUSTDOC_MOBILE_BREAKPOINT=700;const BODY_MIN=400;const SIDEBAR_VANISH_THRESHOLD=SIDEBAR_MIN/2;const sidebarButton=document.getElementById("sidebar-button");if(sidebarButton){sidebarButton.addEventListener("click",e=>{removeClass(document.documentElement,"hide-sidebar");updateLocalStorage("hide-sidebar","false");if(document.querySelector(".rustdoc.src")){window.rustdocToggleSrcSidebar()}e.preventDefault()})}let currentPointerId=null;let desiredSidebarSize=null;let pendingSidebarResizingFrame=false;const resizer=document.querySelector(".sidebar-resizer");const sidebar=document.querySelector(".sidebar");if(!resizer||!sidebar){return}const isSrcPage=hasClass(document.body,"src");function hideSidebar(){if(isSrcPage){window.rustdocCloseSourceSidebar();updateLocalStorage("src-sidebar-width",null);document.documentElement.style.removeProperty("--src-sidebar-width");sidebar.style.removeProperty("--src-sidebar-width");resizer.style.removeProperty("--src-sidebar-width")}else{addClass(document.documentElement,"hide-sidebar");updateLocalStorage("hide-sidebar","true");updateLocalStorage("desktop-sidebar-width",null);document.documentElement.style.removeProperty("--desktop-sidebar-width");sidebar.style.removeProperty("--desktop-sidebar-width");resizer.style.removeProperty("--desktop-sidebar-width")}}function showSidebar(){if(isSrcPage){window.rustdocShowSourceSidebar()}else{removeClass(document.documentElement,"hide-sidebar");updateLocalStorage("hide-sidebar","false")}}function changeSidebarSize(size){if(isSrcPage){updateLocalStorage("src-sidebar-width",size);sidebar.style.setProperty("--src-sidebar-width",size+"px");resizer.style.setProperty("--src-sidebar-width",size+"px")}else{updateLocalStorage("desktop-sidebar-width",size);sidebar.style.setProperty("--desktop-sidebar-width",size+"px");resizer.style.setProperty("--desktop-sidebar-width",size+"px")}}function isSidebarHidden(){return isSrcPage?!hasClass(document.documentElement,"src-sidebar-expanded"):hasClass(document.documentElement,"hide-sidebar")}function resize(e){if(currentPointerId===null||currentPointerId!==e.pointerId){return}e.preventDefault();const pos=e.clientX-3;if(pos=SIDEBAR_MIN){if(isSidebarHidden()){showSidebar()}const constrainedPos=Math.min(pos,window.innerWidth-BODY_MIN,SIDEBAR_MAX);changeSidebarSize(constrainedPos);desiredSidebarSize=constrainedPos;if(pendingSidebarResizingFrame!==false){clearTimeout(pendingSidebarResizingFrame)}pendingSidebarResizingFrame=setTimeout(()=>{if(currentPointerId===null||pendingSidebarResizingFrame===false){return}pendingSidebarResizingFrame=false;document.documentElement.style.setProperty("--resizing-sidebar-width",desiredSidebarSize+"px",)},100)}}window.addEventListener("resize",()=>{if(window.innerWidth=(window.innerWidth-BODY_MIN)){changeSidebarSize(window.innerWidth-BODY_MIN)}else if(desiredSidebarSize!==null&&desiredSidebarSize>SIDEBAR_MIN){changeSidebarSize(desiredSidebarSize)}});function stopResize(e){if(currentPointerId===null){return}if(e){e.preventDefault()}desiredSidebarSize=sidebar.getBoundingClientRect().width;removeClass(resizer,"active");window.removeEventListener("pointermove",resize,false);window.removeEventListener("pointerup",stopResize,false);removeClass(document.documentElement,"sidebar-resizing");document.documentElement.style.removeProperty("--resizing-sidebar-width");if(resizer.releasePointerCapture){resizer.releasePointerCapture(currentPointerId);currentPointerId=null}}function initResize(e){if(currentPointerId!==null||e.altKey||e.ctrlKey||e.metaKey||e.button!==0){return}if(resizer.setPointerCapture){resizer.setPointerCapture(e.pointerId);if(!resizer.hasPointerCapture(e.pointerId)){resizer.releasePointerCapture(e.pointerId);return}currentPointerId=e.pointerId}window.hideAllModals(false);e.preventDefault();window.addEventListener("pointermove",resize,false);window.addEventListener("pointercancel",stopResize,false);window.addEventListener("pointerup",stopResize,false);addClass(resizer,"active");addClass(document.documentElement,"sidebar-resizing");const pos=e.clientX-sidebar.offsetLeft-3;document.documentElement.style.setProperty("--resizing-sidebar-width",pos+"px");desiredSidebarSize=null}resizer.addEventListener("pointerdown",initResize,false)}());(function(){let reset_button_timeout=null;const but=document.getElementById("copy-path");if(!but){return}but.onclick=()=>{const parent=but.parentElement;const path=[];onEach(parent.childNodes,child=>{if(child.tagName==="A"){path.push(child.textContent)}});const el=document.createElement("textarea");el.value=path.join("::");el.setAttribute("readonly","");el.style.position="absolute";el.style.left="-9999px";document.body.appendChild(el);el.select();document.execCommand("copy");document.body.removeChild(el);but.classList.add("clicked");if(reset_button_timeout!==null){window.clearTimeout(reset_button_timeout)}function reset_button(){reset_button_timeout=null;but.classList.remove("clicked")}reset_button_timeout=window.setTimeout(reset_button,1000)}}()) \ No newline at end of file diff --git a/static.files/main-cb0df477c2d67d00.js b/static.files/main-cb0df477c2d67d00.js new file mode 100644 index 000000000..6357eea3b --- /dev/null +++ b/static.files/main-cb0df477c2d67d00.js @@ -0,0 +1,11 @@ +"use strict";window.RUSTDOC_TOOLTIP_HOVER_MS=300;window.RUSTDOC_TOOLTIP_HOVER_EXIT_MS=450;function resourcePath(basename,extension){return getVar("root-path")+basename+getVar("resource-suffix")+extension}function hideMain(){addClass(document.getElementById(MAIN_ID),"hidden")}function showMain(){removeClass(document.getElementById(MAIN_ID),"hidden")}function blurHandler(event,parentElem,hideCallback){if(!parentElem.contains(document.activeElement)&&!parentElem.contains(event.relatedTarget)){hideCallback()}}window.rootPath=getVar("root-path");window.currentCrate=getVar("current-crate");function setMobileTopbar(){const mobileTopbar=document.querySelector(".mobile-topbar");const locationTitle=document.querySelector(".sidebar h2.location");if(mobileTopbar){const mobileTitle=document.createElement("h2");mobileTitle.className="location";if(hasClass(document.querySelector(".rustdoc"),"crate")){mobileTitle.innerHTML=`Crate ${window.currentCrate}`}else if(locationTitle){mobileTitle.innerHTML=locationTitle.innerHTML}mobileTopbar.appendChild(mobileTitle)}}function getVirtualKey(ev){if("key"in ev&&typeof ev.key!=="undefined"){return ev.key}const c=ev.charCode||ev.keyCode;if(c===27){return"Escape"}return String.fromCharCode(c)}const MAIN_ID="main-content";const SETTINGS_BUTTON_ID="settings-menu";const ALTERNATIVE_DISPLAY_ID="alternative-display";const NOT_DISPLAYED_ID="not-displayed";const HELP_BUTTON_ID="help-button";function getSettingsButton(){return document.getElementById(SETTINGS_BUTTON_ID)}function getHelpButton(){return document.getElementById(HELP_BUTTON_ID)}function getNakedUrl(){return window.location.href.split("?")[0].split("#")[0]}function insertAfter(newNode,referenceNode){referenceNode.parentNode.insertBefore(newNode,referenceNode.nextSibling)}function getOrCreateSection(id,classes){let el=document.getElementById(id);if(!el){el=document.createElement("section");el.id=id;el.className=classes;insertAfter(el,document.getElementById(MAIN_ID))}return el}function getAlternativeDisplayElem(){return getOrCreateSection(ALTERNATIVE_DISPLAY_ID,"content hidden")}function getNotDisplayedElem(){return getOrCreateSection(NOT_DISPLAYED_ID,"hidden")}function switchDisplayedElement(elemToDisplay){const el=getAlternativeDisplayElem();if(el.children.length>0){getNotDisplayedElem().appendChild(el.firstElementChild)}if(elemToDisplay===null){addClass(el,"hidden");showMain();return}el.appendChild(elemToDisplay);hideMain();removeClass(el,"hidden")}function browserSupportsHistoryApi(){return window.history&&typeof window.history.pushState==="function"}function preLoadCss(cssUrl){const link=document.createElement("link");link.href=cssUrl;link.rel="preload";link.as="style";document.getElementsByTagName("head")[0].appendChild(link)}(function(){const isHelpPage=window.location.pathname.endsWith("/help.html");function loadScript(url,errorCallback){const script=document.createElement("script");script.src=url;if(errorCallback!==undefined){script.onerror=errorCallback}document.head.append(script)}getSettingsButton().onclick=event=>{if(event.ctrlKey||event.altKey||event.metaKey){return}window.hideAllModals(false);addClass(getSettingsButton(),"rotate");event.preventDefault();loadScript(getVar("static-root-path")+getVar("settings-js"));setTimeout(()=>{const themes=getVar("themes").split(",");for(const theme of themes){if(theme!==""){preLoadCss(getVar("root-path")+theme+".css")}}},0)};window.searchState={loadingText:"Loading search results...",input:document.getElementsByClassName("search-input")[0],outputElement:()=>{let el=document.getElementById("search");if(!el){el=document.createElement("section");el.id="search";getNotDisplayedElem().appendChild(el)}return el},title:document.title,titleBeforeSearch:document.title,timeout:null,currentTab:0,focusedByTab:[null,null,null],clearInputTimeout:()=>{if(searchState.timeout!==null){clearTimeout(searchState.timeout);searchState.timeout=null}},isDisplayed:()=>searchState.outputElement().parentElement.id===ALTERNATIVE_DISPLAY_ID,focus:()=>{searchState.input.focus()},defocus:()=>{searchState.input.blur()},showResults:search=>{if(search===null||typeof search==="undefined"){search=searchState.outputElement()}switchDisplayedElement(search);searchState.mouseMovedAfterSearch=false;document.title=searchState.title},removeQueryParameters:()=>{document.title=searchState.titleBeforeSearch;if(browserSupportsHistoryApi()){history.replaceState(null,"",getNakedUrl()+window.location.hash)}},hideResults:()=>{switchDisplayedElement(null);searchState.removeQueryParameters()},getQueryStringParams:()=>{const params={};window.location.search.substring(1).split("&").map(s=>{const pair=s.split("=").map(x=>x.replace(/\+/g," "));params[decodeURIComponent(pair[0])]=typeof pair[1]==="undefined"?null:decodeURIComponent(pair[1])});return params},setup:()=>{const search_input=searchState.input;if(!searchState.input){return}let searchLoaded=false;function sendSearchForm(){document.getElementsByClassName("search-form")[0].submit()}function loadSearch(){if(!searchLoaded){searchLoaded=true;loadScript(getVar("static-root-path")+getVar("search-js"),sendSearchForm);loadScript(resourcePath("search-index",".js"),sendSearchForm)}}search_input.addEventListener("focus",()=>{search_input.origPlaceholder=search_input.placeholder;search_input.placeholder="Type your search here.";loadSearch()});if(search_input.value!==""){loadSearch()}const params=searchState.getQueryStringParams();if(params.search!==undefined){searchState.setLoadingSearch();loadSearch()}},setLoadingSearch:()=>{const search=searchState.outputElement();search.innerHTML="

    "+searchState.loadingText+"

    ";searchState.showResults(search)},descShards:new Map(),loadDesc:async function({descShard,descIndex}){if(descShard.promise===null){descShard.promise=new Promise((resolve,reject)=>{descShard.resolve=resolve;const ds=descShard;const fname=`${ds.crate}-desc-${ds.shard}-`;const url=resourcePath(`search.desc/${descShard.crate}/${fname}`,".js",);loadScript(url,reject)})}const list=await descShard.promise;return list[descIndex]},loadedDescShard:function(crate,shard,data){this.descShards.get(crate)[shard].resolve(data.split("\n"))},};const toggleAllDocsId="toggle-all-docs";let savedHash="";function handleHashes(ev){if(ev!==null&&searchState.isDisplayed()&&ev.newURL){switchDisplayedElement(null);const hash=ev.newURL.slice(ev.newURL.indexOf("#")+1);if(browserSupportsHistoryApi()){history.replaceState(null,"",getNakedUrl()+window.location.search+"#"+hash)}const elem=document.getElementById(hash);if(elem){elem.scrollIntoView()}}const pageId=window.location.hash.replace(/^#/,"");if(savedHash!==pageId){savedHash=pageId;if(pageId!==""){expandSection(pageId)}}if(savedHash.startsWith("impl-")){const splitAt=savedHash.indexOf("/");if(splitAt!==-1){const implId=savedHash.slice(0,splitAt);const assocId=savedHash.slice(splitAt+1);const implElems=document.querySelectorAll(`details > summary > section[id^="${implId}"]`,);onEachLazy(implElems,implElem=>{const numbered=/^(.+?)-([0-9]+)$/.exec(implElem.id);if(implElem.id!==implId&&(!numbered||numbered[1]!==implId)){return false}return onEachLazy(implElem.parentElement.parentElement.querySelectorAll(`[id^="${assocId}"]`),item=>{const numbered=/^(.+?)-([0-9]+)$/.exec(item.id);if(item.id===assocId||(numbered&&numbered[1]===assocId)){openParentDetails(item);item.scrollIntoView();setTimeout(()=>{window.location.replace("#"+item.id)},0);return true}},)})}}}function onHashChange(ev){hideSidebar();handleHashes(ev)}function openParentDetails(elem){while(elem){if(elem.tagName==="DETAILS"){elem.open=true}elem=elem.parentNode}}function expandSection(id){openParentDetails(document.getElementById(id))}function handleEscape(ev){searchState.clearInputTimeout();searchState.hideResults();ev.preventDefault();searchState.defocus();window.hideAllModals(true)}function handleShortcut(ev){const disableShortcuts=getSettingValue("disable-shortcuts")==="true";if(ev.ctrlKey||ev.altKey||ev.metaKey||disableShortcuts){return}if(document.activeElement.tagName==="INPUT"&&document.activeElement.type!=="checkbox"&&document.activeElement.type!=="radio"){switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break}}else{switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break;case"s":case"S":case"/":ev.preventDefault();searchState.focus();break;case"+":ev.preventDefault();expandAllDocs();break;case"-":ev.preventDefault();collapseAllDocs();break;case"?":showHelp();break;default:break}}}document.addEventListener("keypress",handleShortcut);document.addEventListener("keydown",handleShortcut);function addSidebarItems(){if(!window.SIDEBAR_ITEMS){return}const sidebar=document.getElementsByClassName("sidebar-elems")[0];function block(shortty,id,longty){const filtered=window.SIDEBAR_ITEMS[shortty];if(!filtered){return}const modpath=hasClass(document.querySelector(".rustdoc"),"mod")?"../":"";const h3=document.createElement("h3");h3.innerHTML=`${longty}`;const ul=document.createElement("ul");ul.className="block "+shortty;for(const name of filtered){let path;if(shortty==="mod"){path=`${modpath}${name}/index.html`}else{path=`${modpath}${shortty}.${name}.html`}let current_page=document.location.href.toString();if(current_page.endsWith("/")){current_page+="index.html"}const link=document.createElement("a");link.href=path;link.textContent=name;const li=document.createElement("li");if(link.href===current_page){li.classList.add("current")}li.appendChild(link);ul.appendChild(li)}sidebar.appendChild(h3);sidebar.appendChild(ul)}if(sidebar){block("primitive","primitives","Primitive Types");block("mod","modules","Modules");block("macro","macros","Macros");block("struct","structs","Structs");block("enum","enums","Enums");block("constant","constants","Constants");block("static","static","Statics");block("trait","traits","Traits");block("fn","functions","Functions");block("type","types","Type Aliases");block("union","unions","Unions");block("foreigntype","foreign-types","Foreign Types");block("keyword","keywords","Keywords");block("attr","attributes","Attribute Macros");block("derive","derives","Derive Macros");block("traitalias","trait-aliases","Trait Aliases")}}window.register_implementors=imp=>{const implementors=document.getElementById("implementors-list");const synthetic_implementors=document.getElementById("synthetic-implementors-list");const inlined_types=new Set();const TEXT_IDX=0;const SYNTHETIC_IDX=1;const TYPES_IDX=2;if(synthetic_implementors){onEachLazy(synthetic_implementors.getElementsByClassName("impl"),el=>{const aliases=el.getAttribute("data-aliases");if(!aliases){return}aliases.split(",").forEach(alias=>{inlined_types.add(alias)})})}let currentNbImpls=implementors.getElementsByClassName("impl").length;const traitName=document.querySelector(".main-heading h1 > .trait").textContent;const baseIdName="impl-"+traitName+"-";const libs=Object.getOwnPropertyNames(imp);const script=document.querySelector("script[data-ignore-extern-crates]");const ignoreExternCrates=new Set((script?script.getAttribute("data-ignore-extern-crates"):"").split(","),);for(const lib of libs){if(lib===window.currentCrate||ignoreExternCrates.has(lib)){continue}const structs=imp[lib];struct_loop:for(const struct of structs){const list=struct[SYNTHETIC_IDX]?synthetic_implementors:implementors;if(struct[SYNTHETIC_IDX]){for(const struct_type of struct[TYPES_IDX]){if(inlined_types.has(struct_type)){continue struct_loop}inlined_types.add(struct_type)}}const code=document.createElement("h3");code.innerHTML=struct[TEXT_IDX];addClass(code,"code-header");onEachLazy(code.getElementsByTagName("a"),elem=>{const href=elem.getAttribute("href");if(href&&!href.startsWith("#")&&!/^(?:[a-z+]+:)?\/\//.test(href)){elem.setAttribute("href",window.rootPath+href)}});const currentId=baseIdName+currentNbImpls;const anchor=document.createElement("a");anchor.href="#"+currentId;addClass(anchor,"anchor");const display=document.createElement("div");display.id=currentId;addClass(display,"impl");display.appendChild(anchor);display.appendChild(code);list.appendChild(display);currentNbImpls+=1}}};if(window.pending_implementors){window.register_implementors(window.pending_implementors)}window.register_type_impls=imp=>{if(!imp||!imp[window.currentCrate]){return}window.pending_type_impls=null;const idMap=new Map();let implementations=document.getElementById("implementations-list");let trait_implementations=document.getElementById("trait-implementations-list");let trait_implementations_header=document.getElementById("trait-implementations");const script=document.querySelector("script[data-self-path]");const selfPath=script?script.getAttribute("data-self-path"):null;const mainContent=document.querySelector("#main-content");const sidebarSection=document.querySelector(".sidebar section");let methods=document.querySelector(".sidebar .block.method");let associatedTypes=document.querySelector(".sidebar .block.associatedtype");let associatedConstants=document.querySelector(".sidebar .block.associatedconstant");let sidebarTraitList=document.querySelector(".sidebar .block.trait-implementation");for(const impList of imp[window.currentCrate]){const types=impList.slice(2);const text=impList[0];const isTrait=impList[1]!==0;const traitName=impList[1];if(types.indexOf(selfPath)===-1){continue}let outputList=isTrait?trait_implementations:implementations;if(outputList===null){const outputListName=isTrait?"Trait Implementations":"Implementations";const outputListId=isTrait?"trait-implementations-list":"implementations-list";const outputListHeaderId=isTrait?"trait-implementations":"implementations";const outputListHeader=document.createElement("h2");outputListHeader.id=outputListHeaderId;outputListHeader.innerText=outputListName;outputList=document.createElement("div");outputList.id=outputListId;if(isTrait){const link=document.createElement("a");link.href=`#${outputListHeaderId}`;link.innerText="Trait Implementations";const h=document.createElement("h3");h.appendChild(link);trait_implementations=outputList;trait_implementations_header=outputListHeader;sidebarSection.appendChild(h);sidebarTraitList=document.createElement("ul");sidebarTraitList.className="block trait-implementation";sidebarSection.appendChild(sidebarTraitList);mainContent.appendChild(outputListHeader);mainContent.appendChild(outputList)}else{implementations=outputList;if(trait_implementations){mainContent.insertBefore(outputListHeader,trait_implementations_header);mainContent.insertBefore(outputList,trait_implementations_header)}else{const mainContent=document.querySelector("#main-content");mainContent.appendChild(outputListHeader);mainContent.appendChild(outputList)}}}const template=document.createElement("template");template.innerHTML=text;onEachLazy(template.content.querySelectorAll("a"),elem=>{const href=elem.getAttribute("href");if(href&&!href.startsWith("#")&&!/^(?:[a-z+]+:)?\/\//.test(href)){elem.setAttribute("href",window.rootPath+href)}});onEachLazy(template.content.querySelectorAll("[id]"),el=>{let i=0;if(idMap.has(el.id)){i=idMap.get(el.id)}else if(document.getElementById(el.id)){i=1;while(document.getElementById(`${el.id}-${2 * i}`)){i=2*i}while(document.getElementById(`${el.id}-${i}`)){i+=1}}if(i!==0){const oldHref=`#${el.id}`;const newHref=`#${el.id}-${i}`;el.id=`${el.id}-${i}`;onEachLazy(template.content.querySelectorAll("a[href]"),link=>{if(link.getAttribute("href")===oldHref){link.href=newHref}})}idMap.set(el.id,i+1)});const templateAssocItems=template.content.querySelectorAll("section.tymethod, "+"section.method, section.associatedtype, section.associatedconstant");if(isTrait){const li=document.createElement("li");const a=document.createElement("a");a.href=`#${template.content.querySelector(".impl").id}`;a.textContent=traitName;li.appendChild(a);sidebarTraitList.append(li)}else{onEachLazy(templateAssocItems,item=>{let block=hasClass(item,"associatedtype")?associatedTypes:(hasClass(item,"associatedconstant")?associatedConstants:(methods));if(!block){const blockTitle=hasClass(item,"associatedtype")?"Associated Types":(hasClass(item,"associatedconstant")?"Associated Constants":("Methods"));const blockClass=hasClass(item,"associatedtype")?"associatedtype":(hasClass(item,"associatedconstant")?"associatedconstant":("method"));const blockHeader=document.createElement("h3");const blockLink=document.createElement("a");blockLink.href="#implementations";blockLink.innerText=blockTitle;blockHeader.appendChild(blockLink);block=document.createElement("ul");block.className=`block ${blockClass}`;const insertionReference=methods||sidebarTraitList;if(insertionReference){const insertionReferenceH=insertionReference.previousElementSibling;sidebarSection.insertBefore(blockHeader,insertionReferenceH);sidebarSection.insertBefore(block,insertionReferenceH)}else{sidebarSection.appendChild(blockHeader);sidebarSection.appendChild(block)}if(hasClass(item,"associatedtype")){associatedTypes=block}else if(hasClass(item,"associatedconstant")){associatedConstants=block}else{methods=block}}const li=document.createElement("li");const a=document.createElement("a");a.innerText=item.id.split("-")[0].split(".")[1];a.href=`#${item.id}`;li.appendChild(a);block.appendChild(li)})}outputList.appendChild(template.content)}for(const list of[methods,associatedTypes,associatedConstants,sidebarTraitList]){if(!list){continue}const newChildren=Array.prototype.slice.call(list.children);newChildren.sort((a,b)=>{const aI=a.innerText;const bI=b.innerText;return aIbI?1:0});list.replaceChildren(...newChildren)}};if(window.pending_type_impls){window.register_type_impls(window.pending_type_impls)}function addSidebarCrates(){if(!window.ALL_CRATES){return}const sidebarElems=document.getElementsByClassName("sidebar-elems")[0];if(!sidebarElems){return}const h3=document.createElement("h3");h3.innerHTML="Crates";const ul=document.createElement("ul");ul.className="block crate";for(const crate of window.ALL_CRATES){const link=document.createElement("a");link.href=window.rootPath+crate+"/index.html";link.textContent=crate;const li=document.createElement("li");if(window.rootPath!=="./"&&crate===window.currentCrate){li.className="current"}li.appendChild(link);ul.appendChild(li)}sidebarElems.appendChild(h3);sidebarElems.appendChild(ul)}function expandAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);removeClass(innerToggle,"will-expand");onEachLazy(document.getElementsByClassName("toggle"),e=>{if(!hasClass(e,"type-contents-toggle")&&!hasClass(e,"more-examples-toggle")){e.open=true}});innerToggle.title="collapse all docs";innerToggle.children[0].innerText="\u2212"}function collapseAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);addClass(innerToggle,"will-expand");onEachLazy(document.getElementsByClassName("toggle"),e=>{if(e.parentNode.id!=="implementations-list"||(!hasClass(e,"implementors-toggle")&&!hasClass(e,"type-contents-toggle"))){e.open=false}});innerToggle.title="expand all docs";innerToggle.children[0].innerText="+"}function toggleAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);if(!innerToggle){return}if(hasClass(innerToggle,"will-expand")){expandAllDocs()}else{collapseAllDocs()}}(function(){const toggles=document.getElementById(toggleAllDocsId);if(toggles){toggles.onclick=toggleAllDocs}const hideMethodDocs=getSettingValue("auto-hide-method-docs")==="true";const hideImplementations=getSettingValue("auto-hide-trait-implementations")==="true";const hideLargeItemContents=getSettingValue("auto-hide-large-items")!=="false";function setImplementorsTogglesOpen(id,open){const list=document.getElementById(id);if(list!==null){onEachLazy(list.getElementsByClassName("implementors-toggle"),e=>{e.open=open})}}if(hideImplementations){setImplementorsTogglesOpen("trait-implementations-list",false);setImplementorsTogglesOpen("blanket-implementations-list",false)}onEachLazy(document.getElementsByClassName("toggle"),e=>{if(!hideLargeItemContents&&hasClass(e,"type-contents-toggle")){e.open=true}if(hideMethodDocs&&hasClass(e,"method-toggle")){e.open=false}})}());window.rustdoc_add_line_numbers_to_examples=()=>{onEachLazy(document.getElementsByClassName("rust-example-rendered"),x=>{const parent=x.parentNode;const line_numbers=parent.querySelectorAll(".example-line-numbers");if(line_numbers.length>0){return}const count=x.textContent.split("\n").length;const elems=[];for(let i=0;i{onEachLazy(document.getElementsByClassName("rust-example-rendered"),x=>{const parent=x.parentNode;const line_numbers=parent.querySelectorAll(".example-line-numbers");for(const node of line_numbers){parent.removeChild(node)}})};if(getSettingValue("line-numbers")==="true"){window.rustdoc_add_line_numbers_to_examples()}function showSidebar(){window.hideAllModals(false);const sidebar=document.getElementsByClassName("sidebar")[0];addClass(sidebar,"shown")}function hideSidebar(){const sidebar=document.getElementsByClassName("sidebar")[0];removeClass(sidebar,"shown")}window.addEventListener("resize",()=>{if(window.CURRENT_TOOLTIP_ELEMENT){const base=window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE;const force_visible=base.TOOLTIP_FORCE_VISIBLE;hideTooltip(false);if(force_visible){showTooltip(base);base.TOOLTIP_FORCE_VISIBLE=true}}});const mainElem=document.getElementById(MAIN_ID);if(mainElem){mainElem.addEventListener("click",hideSidebar)}onEachLazy(document.querySelectorAll("a[href^='#']"),el=>{el.addEventListener("click",()=>{expandSection(el.hash.slice(1));hideSidebar()})});onEachLazy(document.querySelectorAll(".toggle > summary:not(.hideme)"),el=>{el.addEventListener("click",e=>{if(e.target.tagName!=="SUMMARY"&&e.target.tagName!=="A"){e.preventDefault()}})});function showTooltip(e){const notable_ty=e.getAttribute("data-notable-ty");if(!window.NOTABLE_TRAITS&¬able_ty){const data=document.getElementById("notable-traits-data");if(data){window.NOTABLE_TRAITS=JSON.parse(data.innerText)}else{throw new Error("showTooltip() called with notable without any notable traits!")}}if(window.CURRENT_TOOLTIP_ELEMENT&&window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE===e){clearTooltipHoverTimeout(window.CURRENT_TOOLTIP_ELEMENT);return}window.hideAllModals(false);const wrapper=document.createElement("div");if(notable_ty){wrapper.innerHTML="
    "+window.NOTABLE_TRAITS[notable_ty]+"
    "}else{if(e.getAttribute("title")!==null){e.setAttribute("data-title",e.getAttribute("title"));e.removeAttribute("title")}if(e.getAttribute("data-title")!==null){const titleContent=document.createElement("div");titleContent.className="content";titleContent.appendChild(document.createTextNode(e.getAttribute("data-title")));wrapper.appendChild(titleContent)}}wrapper.className="tooltip popover";const focusCatcher=document.createElement("div");focusCatcher.setAttribute("tabindex","0");focusCatcher.onfocus=hideTooltip;wrapper.appendChild(focusCatcher);const pos=e.getBoundingClientRect();wrapper.style.top=(pos.top+window.scrollY+pos.height)+"px";wrapper.style.left=0;wrapper.style.right="auto";wrapper.style.visibility="hidden";document.body.appendChild(wrapper);const wrapperPos=wrapper.getBoundingClientRect();const finalPos=pos.left+window.scrollX-wrapperPos.width+24;if(finalPos>0){wrapper.style.left=finalPos+"px"}else{wrapper.style.setProperty("--popover-arrow-offset",(wrapperPos.right-pos.right+4)+"px",)}wrapper.style.visibility="";window.CURRENT_TOOLTIP_ELEMENT=wrapper;window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE=e;clearTooltipHoverTimeout(window.CURRENT_TOOLTIP_ELEMENT);wrapper.onpointerenter=ev=>{if(ev.pointerType!=="mouse"){return}clearTooltipHoverTimeout(e)};wrapper.onpointerleave=ev=>{if(ev.pointerType!=="mouse"){return}if(!e.TOOLTIP_FORCE_VISIBLE&&!e.contains(ev.relatedTarget)){setTooltipHoverTimeout(e,false);addClass(wrapper,"fade-out")}}}function setTooltipHoverTimeout(element,show){clearTooltipHoverTimeout(element);if(!show&&!window.CURRENT_TOOLTIP_ELEMENT){return}if(show&&window.CURRENT_TOOLTIP_ELEMENT){return}if(window.CURRENT_TOOLTIP_ELEMENT&&window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE!==element){return}element.TOOLTIP_HOVER_TIMEOUT=setTimeout(()=>{if(show){showTooltip(element)}else if(!element.TOOLTIP_FORCE_VISIBLE){hideTooltip(false)}},show?window.RUSTDOC_TOOLTIP_HOVER_MS:window.RUSTDOC_TOOLTIP_HOVER_EXIT_MS)}function clearTooltipHoverTimeout(element){if(element.TOOLTIP_HOVER_TIMEOUT!==undefined){removeClass(window.CURRENT_TOOLTIP_ELEMENT,"fade-out");clearTimeout(element.TOOLTIP_HOVER_TIMEOUT);delete element.TOOLTIP_HOVER_TIMEOUT}}function tooltipBlurHandler(event){if(window.CURRENT_TOOLTIP_ELEMENT&&!window.CURRENT_TOOLTIP_ELEMENT.contains(document.activeElement)&&!window.CURRENT_TOOLTIP_ELEMENT.contains(event.relatedTarget)&&!window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.contains(document.activeElement)&&!window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.contains(event.relatedTarget)){setTimeout(()=>hideTooltip(false),0)}}function hideTooltip(focus){if(window.CURRENT_TOOLTIP_ELEMENT){if(window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.TOOLTIP_FORCE_VISIBLE){if(focus){window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.focus()}window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.TOOLTIP_FORCE_VISIBLE=false}document.body.removeChild(window.CURRENT_TOOLTIP_ELEMENT);clearTooltipHoverTimeout(window.CURRENT_TOOLTIP_ELEMENT);window.CURRENT_TOOLTIP_ELEMENT=null}}onEachLazy(document.getElementsByClassName("tooltip"),e=>{e.onclick=()=>{e.TOOLTIP_FORCE_VISIBLE=e.TOOLTIP_FORCE_VISIBLE?false:true;if(window.CURRENT_TOOLTIP_ELEMENT&&!e.TOOLTIP_FORCE_VISIBLE){hideTooltip(true)}else{showTooltip(e);window.CURRENT_TOOLTIP_ELEMENT.setAttribute("tabindex","0");window.CURRENT_TOOLTIP_ELEMENT.focus();window.CURRENT_TOOLTIP_ELEMENT.onblur=tooltipBlurHandler}return false};e.onpointerenter=ev=>{if(ev.pointerType!=="mouse"){return}setTooltipHoverTimeout(e,true)};e.onpointermove=ev=>{if(ev.pointerType!=="mouse"){return}setTooltipHoverTimeout(e,true)};e.onpointerleave=ev=>{if(ev.pointerType!=="mouse"){return}if(!e.TOOLTIP_FORCE_VISIBLE&&window.CURRENT_TOOLTIP_ELEMENT&&!window.CURRENT_TOOLTIP_ELEMENT.contains(ev.relatedTarget)){setTooltipHoverTimeout(e,false);addClass(window.CURRENT_TOOLTIP_ELEMENT,"fade-out")}}});const sidebar_menu_toggle=document.getElementsByClassName("sidebar-menu-toggle")[0];if(sidebar_menu_toggle){sidebar_menu_toggle.addEventListener("click",()=>{const sidebar=document.getElementsByClassName("sidebar")[0];if(!hasClass(sidebar,"shown")){showSidebar()}else{hideSidebar()}})}function helpBlurHandler(event){blurHandler(event,getHelpButton(),window.hidePopoverMenus)}function buildHelpMenu(){const book_info=document.createElement("span");const channel=getVar("channel");book_info.className="top";book_info.innerHTML=`You can find more information in \ +the rustdoc book.`;const shortcuts=[["?","Show this help dialog"],["S / /","Focus the search field"],["↑","Move up in search results"],["↓","Move down in search results"],["← / →","Switch result tab (when results focused)"],["⏎","Go to active search result"],["+","Expand all sections"],["-","Collapse all sections"],].map(x=>"
    "+x[0].split(" ").map((y,index)=>((index&1)===0?""+y+"":" "+y+" ")).join("")+"
    "+x[1]+"
    ").join("");const div_shortcuts=document.createElement("div");addClass(div_shortcuts,"shortcuts");div_shortcuts.innerHTML="

    Keyboard Shortcuts

    "+shortcuts+"
    ";const infos=[`For a full list of all search features, take a look here.`,"Prefix searches with a type followed by a colon (e.g., fn:) to \ + restrict the search to a given item kind.","Accepted kinds are: fn, mod, struct, \ + enum, trait, type, macro, \ + and const.","Search functions by type signature (e.g., vec -> usize or \ + -> vec or String, enum:Cow -> bool)","You can look for items with an exact name by putting double quotes around \ + your request: \"string\"","Look for functions that accept or return \ + slices and \ + arrays by writing \ + square brackets (e.g., -> [u8] or [] -> Option)","Look for items inside another one by searching for a path: vec::Vec",].map(x=>"

    "+x+"

    ").join("");const div_infos=document.createElement("div");addClass(div_infos,"infos");div_infos.innerHTML="

    Search Tricks

    "+infos;const rustdoc_version=document.createElement("span");rustdoc_version.className="bottom";const rustdoc_version_code=document.createElement("code");rustdoc_version_code.innerText="rustdoc "+getVar("rustdoc-version");rustdoc_version.appendChild(rustdoc_version_code);const container=document.createElement("div");if(!isHelpPage){container.className="popover"}container.id="help";container.style.display="none";const side_by_side=document.createElement("div");side_by_side.className="side-by-side";side_by_side.appendChild(div_shortcuts);side_by_side.appendChild(div_infos);container.appendChild(book_info);container.appendChild(side_by_side);container.appendChild(rustdoc_version);if(isHelpPage){const help_section=document.createElement("section");help_section.appendChild(container);document.getElementById("main-content").appendChild(help_section);container.style.display="block"}else{const help_button=getHelpButton();help_button.appendChild(container);container.onblur=helpBlurHandler;help_button.onblur=helpBlurHandler;help_button.children[0].onblur=helpBlurHandler}return container}window.hideAllModals=switchFocus=>{hideSidebar();window.hidePopoverMenus();hideTooltip(switchFocus)};window.hidePopoverMenus=()=>{onEachLazy(document.querySelectorAll(".search-form .popover"),elem=>{elem.style.display="none"})};function getHelpMenu(buildNeeded){let menu=getHelpButton().querySelector(".popover");if(!menu&&buildNeeded){menu=buildHelpMenu()}return menu}function showHelp(){getHelpButton().querySelector("a").focus();const menu=getHelpMenu(true);if(menu.style.display==="none"){window.hideAllModals();menu.style.display=""}}if(isHelpPage){showHelp();document.querySelector(`#${HELP_BUTTON_ID} > a`).addEventListener("click",event=>{const target=event.target;if(target.tagName!=="A"||target.parentElement.id!==HELP_BUTTON_ID||event.ctrlKey||event.altKey||event.metaKey){return}event.preventDefault()})}else{document.querySelector(`#${HELP_BUTTON_ID} > a`).addEventListener("click",event=>{const target=event.target;if(target.tagName!=="A"||target.parentElement.id!==HELP_BUTTON_ID||event.ctrlKey||event.altKey||event.metaKey){return}event.preventDefault();const menu=getHelpMenu(true);const shouldShowHelp=menu.style.display==="none";if(shouldShowHelp){showHelp()}else{window.hidePopoverMenus()}})}setMobileTopbar();addSidebarItems();addSidebarCrates();onHashChange(null);window.addEventListener("hashchange",onHashChange);searchState.setup()}());(function(){const SIDEBAR_MIN=100;const SIDEBAR_MAX=500;const RUSTDOC_MOBILE_BREAKPOINT=700;const BODY_MIN=400;const SIDEBAR_VANISH_THRESHOLD=SIDEBAR_MIN/2;const sidebarButton=document.getElementById("sidebar-button");if(sidebarButton){sidebarButton.addEventListener("click",e=>{removeClass(document.documentElement,"hide-sidebar");updateLocalStorage("hide-sidebar","false");if(document.querySelector(".rustdoc.src")){window.rustdocToggleSrcSidebar()}e.preventDefault()})}let currentPointerId=null;let desiredSidebarSize=null;let pendingSidebarResizingFrame=false;const resizer=document.querySelector(".sidebar-resizer");const sidebar=document.querySelector(".sidebar");if(!resizer||!sidebar){return}const isSrcPage=hasClass(document.body,"src");function hideSidebar(){if(isSrcPage){window.rustdocCloseSourceSidebar();updateLocalStorage("src-sidebar-width",null);document.documentElement.style.removeProperty("--src-sidebar-width");sidebar.style.removeProperty("--src-sidebar-width");resizer.style.removeProperty("--src-sidebar-width")}else{addClass(document.documentElement,"hide-sidebar");updateLocalStorage("hide-sidebar","true");updateLocalStorage("desktop-sidebar-width",null);document.documentElement.style.removeProperty("--desktop-sidebar-width");sidebar.style.removeProperty("--desktop-sidebar-width");resizer.style.removeProperty("--desktop-sidebar-width")}}function showSidebar(){if(isSrcPage){window.rustdocShowSourceSidebar()}else{removeClass(document.documentElement,"hide-sidebar");updateLocalStorage("hide-sidebar","false")}}function changeSidebarSize(size){if(isSrcPage){updateLocalStorage("src-sidebar-width",size);sidebar.style.setProperty("--src-sidebar-width",size+"px");resizer.style.setProperty("--src-sidebar-width",size+"px")}else{updateLocalStorage("desktop-sidebar-width",size);sidebar.style.setProperty("--desktop-sidebar-width",size+"px");resizer.style.setProperty("--desktop-sidebar-width",size+"px")}}function isSidebarHidden(){return isSrcPage?!hasClass(document.documentElement,"src-sidebar-expanded"):hasClass(document.documentElement,"hide-sidebar")}function resize(e){if(currentPointerId===null||currentPointerId!==e.pointerId){return}e.preventDefault();const pos=e.clientX-3;if(pos=SIDEBAR_MIN){if(isSidebarHidden()){showSidebar()}const constrainedPos=Math.min(pos,window.innerWidth-BODY_MIN,SIDEBAR_MAX);changeSidebarSize(constrainedPos);desiredSidebarSize=constrainedPos;if(pendingSidebarResizingFrame!==false){clearTimeout(pendingSidebarResizingFrame)}pendingSidebarResizingFrame=setTimeout(()=>{if(currentPointerId===null||pendingSidebarResizingFrame===false){return}pendingSidebarResizingFrame=false;document.documentElement.style.setProperty("--resizing-sidebar-width",desiredSidebarSize+"px",)},100)}}window.addEventListener("resize",()=>{if(window.innerWidth=(window.innerWidth-BODY_MIN)){changeSidebarSize(window.innerWidth-BODY_MIN)}else if(desiredSidebarSize!==null&&desiredSidebarSize>SIDEBAR_MIN){changeSidebarSize(desiredSidebarSize)}});function stopResize(e){if(currentPointerId===null){return}if(e){e.preventDefault()}desiredSidebarSize=sidebar.getBoundingClientRect().width;removeClass(resizer,"active");window.removeEventListener("pointermove",resize,false);window.removeEventListener("pointerup",stopResize,false);removeClass(document.documentElement,"sidebar-resizing");document.documentElement.style.removeProperty("--resizing-sidebar-width");if(resizer.releasePointerCapture){resizer.releasePointerCapture(currentPointerId);currentPointerId=null}}function initResize(e){if(currentPointerId!==null||e.altKey||e.ctrlKey||e.metaKey||e.button!==0){return}if(resizer.setPointerCapture){resizer.setPointerCapture(e.pointerId);if(!resizer.hasPointerCapture(e.pointerId)){resizer.releasePointerCapture(e.pointerId);return}currentPointerId=e.pointerId}window.hideAllModals(false);e.preventDefault();window.addEventListener("pointermove",resize,false);window.addEventListener("pointercancel",stopResize,false);window.addEventListener("pointerup",stopResize,false);addClass(resizer,"active");addClass(document.documentElement,"sidebar-resizing");const pos=e.clientX-sidebar.offsetLeft-3;document.documentElement.style.setProperty("--resizing-sidebar-width",pos+"px");desiredSidebarSize=null}resizer.addEventListener("pointerdown",initResize,false)}());(function(){function copyContentToClipboard(content){const el=document.createElement("textarea");el.value=content;el.setAttribute("readonly","");el.style.position="absolute";el.style.left="-9999px";document.body.appendChild(el);el.select();document.execCommand("copy");document.body.removeChild(el)}function copyButtonAnimation(button){button.classList.add("clicked");if(button.reset_button_timeout!==undefined){window.clearTimeout(button.reset_button_timeout)}button.reset_button_timeout=window.setTimeout(()=>{button.reset_button_timeout=undefined;button.classList.remove("clicked")},1000)}const but=document.getElementById("copy-path");if(!but){return}but.onclick=()=>{const parent=but.parentElement;const path=[];onEach(parent.childNodes,child=>{if(child.tagName==="A"){path.push(child.textContent)}});copyContentToClipboard(path.join("::"));copyButtonAnimation(but)};function copyCode(codeElem){if(!codeElem){return}copyContentToClipboard(codeElem.textContent)}function getExampleWrap(event){let elem=event.target;while(!hasClass(elem,"example-wrap")){if(elem===document.body||elem.tagName==="A"||elem.tagName==="BUTTON"||hasClass(elem,"docblock")){return null}elem=elem.parentElement}return elem}function addCopyButton(event){const elem=getExampleWrap(event);if(elem===null){return}elem.removeEventListener("mouseover",addCopyButton);const parent=document.createElement("div");parent.className="button-holder";const runButton=elem.querySelector(".test-arrow");if(runButton!==null){parent.appendChild(runButton)}elem.appendChild(parent);const copyButton=document.createElement("button");copyButton.className="copy-button";copyButton.title="Copy code to clipboard";copyButton.addEventListener("click",()=>{copyCode(elem.querySelector("pre > code"));copyButtonAnimation(copyButton)});parent.appendChild(copyButton)}function showHideCodeExampleButtons(event){const elem=getExampleWrap(event);if(elem===null){return}const buttons=elem.querySelector(".button-holder");if(buttons===null){return}buttons.classList.toggle("keep-visible")}onEachLazy(document.querySelectorAll(".docblock .example-wrap"),elem=>{elem.addEventListener("mouseover",addCopyButton);elem.addEventListener("click",showHideCodeExampleButtons)})}()) \ No newline at end of file diff --git a/static.files/noscript-3b12f09e550e0385.css b/static.files/noscript-3b12f09e550e0385.css new file mode 100644 index 000000000..befe41634 --- /dev/null +++ b/static.files/noscript-3b12f09e550e0385.css @@ -0,0 +1 @@ + #main-content .attributes{margin-left:0 !important;}#copy-path,#sidebar-button,.sidebar-resizer{display:none !important;}nav.sub{display:none;}.src .sidebar{display:none;}.notable-traits{display:none;}:root,:root:not([data-theme]){--main-background-color:white;--main-color:black;--settings-input-color:#2196f3;--settings-input-border-color:#717171;--settings-button-color:#000;--settings-button-border-focus:#717171;--sidebar-background-color:#f5f5f5;--sidebar-background-color-hover:#e0e0e0;--code-block-background-color:#f5f5f5;--scrollbar-track-background-color:#dcdcdc;--scrollbar-thumb-background-color:rgba(36,37,39,0.6);--scrollbar-color:rgba(36,37,39,0.6) #d9d9d9;--headings-border-bottom-color:#ddd;--border-color:#e0e0e0;--button-background-color:#fff;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:none;--mobile-sidebar-menu-filter:none;--search-input-focused-border-color:#66afe9;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(35%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#ad378a;--trait-link-color:#6e4fc9;--assoc-item-link-color:#3873ad;--function-link-color:#ad7c37;--macro-link-color:#068000;--keyword-link-color:#3873ad;--mod-link-color:#3873ad;--link-color:#3873ad;--sidebar-link-color:#356da4;--sidebar-current-link-background-color:#fff;--search-result-link-focus-background-color:#ccc;--search-result-border-color:#aaa3;--search-color:#000;--search-error-code-background-color:#d0cccc;--search-results-alias-color:#000;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#e6e6e6;--search-tab-button-not-selected-background:#e6e6e6;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#fff;--settings-menu-filter:none;--stab-background-color:#fff5d6;--stab-code-color:#000;--code-highlight-kw-color:#8959a8;--code-highlight-kw-2-color:#4271ae;--code-highlight-lifetime-color:#b76514;--code-highlight-prelude-color:#4271ae;--code-highlight-prelude-val-color:#c82829;--code-highlight-number-color:#718c00;--code-highlight-string-color:#718c00;--code-highlight-literal-color:#c82829;--code-highlight-attribute-color:#c82829;--code-highlight-self-color:#c82829;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8e908c;--code-highlight-doc-comment-color:#4d4d4c;--src-line-numbers-span-color:#c67e2d;--src-line-number-highlighted-background-color:#fdffd3;--target-background-color:#fdffd3;--target-border-color:#ad7c37;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:initial;--crate-search-div-filter:invert(100%) sepia(0%) saturate(4223%) hue-rotate(289deg) brightness(114%) contrast(76%);--crate-search-div-hover-filter:invert(44%) sepia(18%) saturate(23%) hue-rotate(317deg) brightness(96%) contrast(93%);--crate-search-hover-border:#717171;--src-sidebar-background-selected:#fff;--src-sidebar-background-hover:#e0e0e0;--table-alt-row-background-color:#f5f5f5;--codeblock-link-background:#eee;--scrape-example-toggle-line-background:#ccc;--scrape-example-toggle-line-hover-background:#999;--scrape-example-code-line-highlight:#fcffd6;--scrape-example-code-line-highlight-focus:#f6fdb0;--scrape-example-help-border-color:#555;--scrape-example-help-color:#333;--scrape-example-help-hover-border-color:#000;--scrape-example-help-hover-color:#000;--scrape-example-code-wrapper-background-start:rgba(255,255,255,1);--scrape-example-code-wrapper-background-end:rgba(255,255,255,0);--sidebar-resizer-hover:hsl(207,90%,66%);--sidebar-resizer-active:hsl(207,90%,54%);}@media (prefers-color-scheme:dark){:root,:root:not([data-theme]){--main-background-color:#353535;--main-color:#ddd;--settings-input-color:#2196f3;--settings-input-border-color:#999;--settings-button-color:#000;--settings-button-border-focus:#ffb900;--sidebar-background-color:#505050;--sidebar-background-color-hover:#676767;--code-block-background-color:#2A2A2A;--scrollbar-track-background-color:#717171;--scrollbar-thumb-background-color:rgba(32,34,37,.6);--scrollbar-color:rgba(32,34,37,.6) #5a5a5a;--headings-border-bottom-color:#d2d2d2;--border-color:#e0e0e0;--button-background-color:#f0f0f0;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--mobile-sidebar-menu-filter:invert(100%);--search-input-focused-border-color:#008dfd;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(65%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#2dbfb8;--trait-link-color:#b78cf2;--assoc-item-link-color:#d2991d;--function-link-color:#2bab63;--macro-link-color:#09bd00;--keyword-link-color:#d2991d;--mod-link-color:#d2991d;--link-color:#d2991d;--sidebar-link-color:#fdbf35;--sidebar-current-link-background-color:#444;--search-result-link-focus-background-color:#616161;--search-result-border-color:#aaa3;--search-color:#111;--search-error-code-background-color:#484848;--search-results-alias-color:#fff;--search-results-grey-color:#ccc;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#252525;--search-tab-button-not-selected-background:#252525;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#353535;--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ab8ac1;--code-highlight-kw-2-color:#769acb;--code-highlight-lifetime-color:#d97f26;--code-highlight-prelude-color:#769acb;--code-highlight-prelude-val-color:#ee6868;--code-highlight-number-color:#83a300;--code-highlight-string-color:#83a300;--code-highlight-literal-color:#ee6868;--code-highlight-attribute-color:#ee6868;--code-highlight-self-color:#ee6868;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8d8d8b;--code-highlight-doc-comment-color:#8ca375;--src-line-numbers-span-color:#3b91e2;--src-line-number-highlighted-background-color:#0a042f;--target-background-color:#494a3d;--target-border-color:#bb7410;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(94%) sepia(0%) saturate(721%) hue-rotate(255deg) brightness(90%) contrast(90%);--crate-search-div-hover-filter:invert(69%) sepia(60%) saturate(6613%) hue-rotate(184deg) brightness(100%) contrast(91%);--crate-search-hover-border:#2196f3;--src-sidebar-background-selected:#333;--src-sidebar-background-hover:#444;--table-alt-row-background-color:#2a2a2a;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:#5b3b01;--scrape-example-code-line-highlight-focus:#7c4b0f;--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(53,53,53,1);--scrape-example-code-wrapper-background-end:rgba(53,53,53,0);--sidebar-resizer-hover:hsl(207,30%,54%);--sidebar-resizer-active:hsl(207,90%,54%);}} \ No newline at end of file diff --git a/static.files/noscript-df360f571f6edeae.css b/static.files/noscript-df360f571f6edeae.css deleted file mode 100644 index 4c310ae52..000000000 --- a/static.files/noscript-df360f571f6edeae.css +++ /dev/null @@ -1 +0,0 @@ - #main-content .attributes{margin-left:0 !important;}#copy-path,#sidebar-button,.sidebar-resizer{display:none !important;}nav.sub{display:none;}.src .sidebar{display:none;}.notable-traits{display:none;}:root,:root:not([data-theme]){--main-background-color:white;--main-color:black;--settings-input-color:#2196f3;--settings-input-border-color:#717171;--settings-button-color:#000;--settings-button-border-focus:#717171;--sidebar-background-color:#f5f5f5;--sidebar-background-color-hover:#e0e0e0;--code-block-background-color:#f5f5f5;--scrollbar-track-background-color:#dcdcdc;--scrollbar-thumb-background-color:rgba(36,37,39,0.6);--scrollbar-color:rgba(36,37,39,0.6) #d9d9d9;--headings-border-bottom-color:#ddd;--border-color:#e0e0e0;--button-background-color:#fff;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:none;--mobile-sidebar-menu-filter:none;--search-input-focused-border-color:#66afe9;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(35%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#ad378a;--trait-link-color:#6e4fc9;--assoc-item-link-color:#3873ad;--function-link-color:#ad7c37;--macro-link-color:#068000;--keyword-link-color:#3873ad;--mod-link-color:#3873ad;--link-color:#3873ad;--sidebar-link-color:#356da4;--sidebar-current-link-background-color:#fff;--search-result-link-focus-background-color:#ccc;--search-result-border-color:#aaa3;--search-color:#000;--search-error-code-background-color:#d0cccc;--search-results-alias-color:#000;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#e6e6e6;--search-tab-button-not-selected-background:#e6e6e6;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#fff;--settings-menu-filter:none;--stab-background-color:#fff5d6;--stab-code-color:#000;--code-highlight-kw-color:#8959a8;--code-highlight-kw-2-color:#4271ae;--code-highlight-lifetime-color:#b76514;--code-highlight-prelude-color:#4271ae;--code-highlight-prelude-val-color:#c82829;--code-highlight-number-color:#718c00;--code-highlight-string-color:#718c00;--code-highlight-literal-color:#c82829;--code-highlight-attribute-color:#c82829;--code-highlight-self-color:#c82829;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8e908c;--code-highlight-doc-comment-color:#4d4d4c;--src-line-numbers-span-color:#c67e2d;--src-line-number-highlighted-background-color:#fdffd3;--test-arrow-color:#f5f5f5;--test-arrow-background-color:rgba(78,139,202,0.2);--test-arrow-hover-color:#f5f5f5;--test-arrow-hover-background-color:rgb(78,139,202);--target-background-color:#fdffd3;--target-border-color:#ad7c37;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:initial;--crate-search-div-filter:invert(100%) sepia(0%) saturate(4223%) hue-rotate(289deg) brightness(114%) contrast(76%);--crate-search-div-hover-filter:invert(44%) sepia(18%) saturate(23%) hue-rotate(317deg) brightness(96%) contrast(93%);--crate-search-hover-border:#717171;--src-sidebar-background-selected:#fff;--src-sidebar-background-hover:#e0e0e0;--table-alt-row-background-color:#f5f5f5;--codeblock-link-background:#eee;--scrape-example-toggle-line-background:#ccc;--scrape-example-toggle-line-hover-background:#999;--scrape-example-code-line-highlight:#fcffd6;--scrape-example-code-line-highlight-focus:#f6fdb0;--scrape-example-help-border-color:#555;--scrape-example-help-color:#333;--scrape-example-help-hover-border-color:#000;--scrape-example-help-hover-color:#000;--scrape-example-code-wrapper-background-start:rgba(255,255,255,1);--scrape-example-code-wrapper-background-end:rgba(255,255,255,0);--sidebar-resizer-hover:hsl(207,90%,66%);--sidebar-resizer-active:hsl(207,90%,54%);}@media (prefers-color-scheme:dark){:root,:root:not([data-theme]){--main-background-color:#353535;--main-color:#ddd;--settings-input-color:#2196f3;--settings-input-border-color:#999;--settings-button-color:#000;--settings-button-border-focus:#ffb900;--sidebar-background-color:#505050;--sidebar-background-color-hover:#676767;--code-block-background-color:#2A2A2A;--scrollbar-track-background-color:#717171;--scrollbar-thumb-background-color:rgba(32,34,37,.6);--scrollbar-color:rgba(32,34,37,.6) #5a5a5a;--headings-border-bottom-color:#d2d2d2;--border-color:#e0e0e0;--button-background-color:#f0f0f0;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--mobile-sidebar-menu-filter:invert(100%);--search-input-focused-border-color:#008dfd;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(65%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#2dbfb8;--trait-link-color:#b78cf2;--assoc-item-link-color:#d2991d;--function-link-color:#2bab63;--macro-link-color:#09bd00;--keyword-link-color:#d2991d;--mod-link-color:#d2991d;--link-color:#d2991d;--sidebar-link-color:#fdbf35;--sidebar-current-link-background-color:#444;--search-result-link-focus-background-color:#616161;--search-result-border-color:#aaa3;--search-color:#111;--search-error-code-background-color:#484848;--search-results-alias-color:#fff;--search-results-grey-color:#ccc;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#252525;--search-tab-button-not-selected-background:#252525;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#353535;--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ab8ac1;--code-highlight-kw-2-color:#769acb;--code-highlight-lifetime-color:#d97f26;--code-highlight-prelude-color:#769acb;--code-highlight-prelude-val-color:#ee6868;--code-highlight-number-color:#83a300;--code-highlight-string-color:#83a300;--code-highlight-literal-color:#ee6868;--code-highlight-attribute-color:#ee6868;--code-highlight-self-color:#ee6868;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8d8d8b;--code-highlight-doc-comment-color:#8ca375;--src-line-numbers-span-color:#3b91e2;--src-line-number-highlighted-background-color:#0a042f;--test-arrow-color:#dedede;--test-arrow-background-color:rgba(78,139,202,0.2);--test-arrow-hover-color:#dedede;--test-arrow-hover-background-color:#4e8bca;--target-background-color:#494a3d;--target-border-color:#bb7410;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(94%) sepia(0%) saturate(721%) hue-rotate(255deg) brightness(90%) contrast(90%);--crate-search-div-hover-filter:invert(69%) sepia(60%) saturate(6613%) hue-rotate(184deg) brightness(100%) contrast(91%);--crate-search-hover-border:#2196f3;--src-sidebar-background-selected:#333;--src-sidebar-background-hover:#444;--table-alt-row-background-color:#2a2a2a;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:#5b3b01;--scrape-example-code-line-highlight-focus:#7c4b0f;--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(53,53,53,1);--scrape-example-code-wrapper-background-end:rgba(53,53,53,0);--sidebar-resizer-hover:hsl(207,30%,54%);--sidebar-resizer-active:hsl(207,90%,54%);}} \ No newline at end of file diff --git a/static.files/rustdoc-b25d77b18a16a9a4.css b/static.files/rustdoc-b25d77b18a16a9a4.css new file mode 100644 index 000000000..5670beebf --- /dev/null +++ b/static.files/rustdoc-b25d77b18a16a9a4.css @@ -0,0 +1,47 @@ + :root{--nav-sub-mobile-padding:8px;--search-typename-width:6.75rem;--desktop-sidebar-width:200px;--src-sidebar-width:300px;--desktop-sidebar-z-index:100;--sidebar-elems-left-padding:24px;--clipboard-image:url('data:image/svg+xml,\ +\ +\ +');--copy-path-height:34px;--copy-path-width:33px;--checkmark-image:url('data:image/svg+xml,\ +\ +');--button-left-margin:4px;--button-border-radius:2px;}@font-face {font-family:'Fira Sans';font-style:normal;font-weight:400;src:local('Fira Sans'),url("FiraSans-Regular-018c141bf0843ffd.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Fira Sans';font-style:normal;font-weight:500;src:local('Fira Sans Medium'),url("FiraSans-Medium-8f9a781e4970d388.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:normal;font-weight:400;src:local('Source Serif 4'),url("SourceSerif4-Regular-46f98efaafac5295.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:italic;font-weight:400;src:local('Source Serif 4 Italic'),url("SourceSerif4-It-acdfaf1a8af734b1.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:normal;font-weight:700;src:local('Source Serif 4 Bold'),url("SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:400;src:url("SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:italic;font-weight:400;src:url("SourceCodePro-It-1cc31594bf4f1f79.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:600;src:url("SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'NanumBarunGothic';src:url("NanumBarunGothic-0f09457c7a19b7c6.ttf.woff2") format("woff2");font-display:swap;unicode-range:U+AC00-D7AF,U+1100-11FF,U+3130-318F,U+A960-A97F,U+D7B0-D7FF;}*{box-sizing:border-box;}body{font:1rem/1.5 "Source Serif 4",NanumBarunGothic,serif;margin:0;position:relative;overflow-wrap:break-word;overflow-wrap:anywhere;font-feature-settings:"kern","liga";background-color:var(--main-background-color);color:var(--main-color);}h1{font-size:1.5rem;}h2{font-size:1.375rem;}h3{font-size:1.25rem;}h1,h2,h3,h4,h5,h6{font-weight:500;}h1,h2,h3,h4{margin:25px 0 15px 0;padding-bottom:6px;}.docblock h3,.docblock h4,h5,h6{margin:15px 0 5px 0;}.docblock>h2:first-child,.docblock>h3:first-child,.docblock>h4:first-child,.docblock>h5:first-child,.docblock>h6:first-child{margin-top:0;}.main-heading h1{margin:0;padding:0;flex-grow:1;overflow-wrap:break-word;overflow-wrap:anywhere;}.main-heading{display:flex;flex-wrap:wrap;padding-bottom:6px;margin-bottom:15px;}.content h2,.top-doc .docblock>h3,.top-doc .docblock>h4{border-bottom:1px solid var(--headings-border-bottom-color);}h1,h2{line-height:1.25;padding-top:3px;padding-bottom:9px;}h3.code-header{font-size:1.125rem;}h4.code-header{font-size:1rem;}.code-header{font-weight:600;margin:0;padding:0;white-space:pre-wrap;}#crate-search,h1,h2,h3,h4,h5,h6,.sidebar,.mobile-topbar,.search-input,.search-results .result-name,.item-name>a,.out-of-band,span.since,a.src,#help-button>a,summary.hideme,.scraped-example-list,ul.all-items{font-family:"Fira Sans",Arial,NanumBarunGothic,sans-serif;}#toggle-all-docs,a.anchor,.section-header a,#src-sidebar a,.rust a,.sidebar h2 a,.sidebar h3 a,.mobile-topbar h2 a,h1 a,.search-results a,.stab,.result-name i{color:var(--main-color);}span.enum,a.enum,span.struct,a.struct,span.union,a.union,span.primitive,a.primitive,span.type,a.type,span.foreigntype,a.foreigntype{color:var(--type-link-color);}span.trait,a.trait,span.traitalias,a.traitalias{color:var(--trait-link-color);}span.associatedtype,a.associatedtype,span.constant,a.constant,span.static,a.static{color:var(--assoc-item-link-color);}span.fn,a.fn,span.method,a.method,span.tymethod,a.tymethod{color:var(--function-link-color);}span.attr,a.attr,span.derive,a.derive,span.macro,a.macro{color:var(--macro-link-color);}span.mod,a.mod{color:var(--mod-link-color);}span.keyword,a.keyword{color:var(--keyword-link-color);}a{color:var(--link-color);text-decoration:none;}ol,ul{padding-left:24px;}ul ul,ol ul,ul ol,ol ol{margin-bottom:.625em;}p,.docblock>.warning{margin:0 0 .75em 0;}p:last-child,.docblock>.warning:last-child{margin:0;}button{padding:1px 6px;cursor:pointer;}button#toggle-all-docs{padding:0;background:none;border:none;-webkit-appearance:none;opacity:1;}.rustdoc{display:flex;flex-direction:row;flex-wrap:nowrap;}main{position:relative;flex-grow:1;padding:10px 15px 40px 45px;min-width:0;}.src main{padding:15px;}.width-limiter{max-width:960px;margin-right:auto;}details:not(.toggle) summary{margin-bottom:.6em;}code,pre,.code-header{font-family:"Source Code Pro",monospace;}.docblock code,.docblock-short code{border-radius:3px;padding:0 0.125em;}.docblock pre code,.docblock-short pre code{padding:0;}pre{padding:14px;line-height:1.5;}pre.item-decl{overflow-x:auto;}.item-decl .type-contents-toggle{contain:initial;}.src .content pre{padding:20px;}.rustdoc.src .example-wrap pre.src-line-numbers{padding:20px 0 20px 4px;}img{max-width:100%;}.logo-container{line-height:0;display:block;}.rust-logo{filter:var(--rust-logo-filter);}.sidebar{font-size:0.875rem;flex:0 0 var(--desktop-sidebar-width);width:var(--desktop-sidebar-width);overflow-y:scroll;overscroll-behavior:contain;position:sticky;height:100vh;top:0;left:0;z-index:var(--desktop-sidebar-z-index);}.rustdoc.src .sidebar{flex-basis:50px;width:50px;border-right:1px solid;overflow-x:hidden;overflow-y:hidden;}.hide-sidebar .sidebar,.hide-sidebar .sidebar-resizer{display:none;}.sidebar-resizer{touch-action:none;width:9px;cursor:col-resize;z-index:calc(var(--desktop-sidebar-z-index) + 1);position:fixed;height:100%;left:calc(var(--desktop-sidebar-width) + 1px);}.rustdoc.src .sidebar-resizer{left:49px;}.src-sidebar-expanded .src .sidebar-resizer{left:var(--src-sidebar-width);}.sidebar-resizing{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;}.sidebar-resizing*{cursor:col-resize !important;}.sidebar-resizing .sidebar{position:fixed;}.sidebar-resizing>body{padding-left:var(--resizing-sidebar-width);}.sidebar-resizer:hover,.sidebar-resizer:active,.sidebar-resizer:focus,.sidebar-resizer.active{width:10px;margin:0;left:var(--desktop-sidebar-width);border-left:solid 1px var(--sidebar-resizer-hover);}.src-sidebar-expanded .rustdoc.src .sidebar-resizer:hover,.src-sidebar-expanded .rustdoc.src .sidebar-resizer:active,.src-sidebar-expanded .rustdoc.src .sidebar-resizer:focus,.src-sidebar-expanded .rustdoc.src .sidebar-resizer.active{left:calc(var(--src-sidebar-width) - 1px);}@media (pointer:coarse){.sidebar-resizer{display:none !important;}}.sidebar-resizer.active{padding:0 140px;width:2px;margin-left:-140px;border-left:none;}.sidebar-resizer.active:before{border-left:solid 2px var(--sidebar-resizer-active);display:block;height:100%;content:"";}.sidebar,.mobile-topbar,.sidebar-menu-toggle,#src-sidebar{background-color:var(--sidebar-background-color);}.src .sidebar>*{visibility:hidden;}.src-sidebar-expanded .src .sidebar{overflow-y:auto;flex-basis:var(--src-sidebar-width);width:var(--src-sidebar-width);}.src-sidebar-expanded .src .sidebar>*{visibility:visible;}#all-types{margin-top:1em;}*{scrollbar-width:initial;scrollbar-color:var(--scrollbar-color);}.sidebar{scrollbar-width:thin;scrollbar-color:var(--scrollbar-color);}::-webkit-scrollbar{width:12px;}.sidebar::-webkit-scrollbar{width:8px;}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0;background-color:var(--scrollbar-track-background-color);}.sidebar::-webkit-scrollbar-track{background-color:var(--scrollbar-track-background-color);}::-webkit-scrollbar-thumb,.sidebar::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-background-color);}.hidden{display:none !important;}.logo-container>img{height:48px;width:48px;}ul.block,.block li{padding:0;margin:0;list-style:none;}.sidebar-elems a,.sidebar>h2 a{display:block;padding:0.25rem;margin-right:0.25rem;border-left:solid var(--sidebar-elems-left-padding) transparent;margin-left:calc(-0.25rem - var(--sidebar-elems-left-padding));background-clip:border-box;}.sidebar h2{text-wrap:balance;overflow-wrap:anywhere;padding:0;margin:0.7rem 0;}.sidebar h3{text-wrap:balance;overflow-wrap:anywhere;font-size:1.125rem;padding:0;margin:0;}.sidebar-elems,.sidebar>.version,.sidebar>h2{padding-left:var(--sidebar-elems-left-padding);}.sidebar a{color:var(--sidebar-link-color);}.sidebar .current,.sidebar .current a,.sidebar-crate a.logo-container:hover+h2 a,.sidebar a:hover:not(.logo-container){background-color:var(--sidebar-current-link-background-color);}.sidebar-elems .block{margin-bottom:2em;}.sidebar-elems .block li a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}.sidebar-crate{display:flex;align-items:center;justify-content:center;margin:14px 32px 1rem;row-gap:10px;column-gap:32px;flex-wrap:wrap;}.sidebar-crate h2{flex-grow:1;margin:0 -8px;align-self:start;}.sidebar-crate .logo-container{margin:0 calc(-16px - var(--sidebar-elems-left-padding));padding:0 var(--sidebar-elems-left-padding);text-align:center;}.sidebar-crate .logo-container img{margin-top:-16px;border-top:solid 16px transparent;box-sizing:content-box;position:relative;background-clip:border-box;z-index:1;}.sidebar-crate h2 a{display:block;border-left:solid var(--sidebar-elems-left-padding) transparent;background-clip:border-box;margin:0 calc(-24px + 0.25rem) 0 calc(-0.2rem - var(--sidebar-elems-left-padding));padding:calc((16px - 0.57rem ) / 2 ) 0.25rem;padding-left:0.2rem;}.sidebar-crate h2 .version{display:block;font-weight:normal;font-size:1rem;overflow-wrap:break-word;}.sidebar-crate+.version{margin-top:-1rem;margin-bottom:1rem;}.mobile-topbar{display:none;}.rustdoc .example-wrap{display:flex;position:relative;margin-bottom:10px;}.rustdoc .example-wrap>pre{border-radius:6px;}.rustdoc .example-wrap:last-child{margin-bottom:0px;}.rustdoc .example-wrap pre{margin:0;flex-grow:1;}.rustdoc:not(.src) .example-wrap pre{overflow:auto hidden;}.rustdoc .example-wrap pre.example-line-numbers,.rustdoc .example-wrap pre.src-line-numbers{flex-grow:0;min-width:fit-content;overflow:initial;text-align:right;-webkit-user-select:none;user-select:none;padding:14px 8px;color:var(--src-line-numbers-span-color);}.rustdoc .example-wrap pre.src-line-numbers{padding:14px 0;}.src-line-numbers a,.src-line-numbers span{color:var(--src-line-numbers-span-color);padding:0 8px;}.src-line-numbers :target{background-color:transparent;border-right:none;padding:0 8px;}.src-line-numbers .line-highlighted{background-color:var(--src-line-number-highlighted-background-color);}.search-loading{text-align:center;}.docblock-short{overflow-wrap:break-word;overflow-wrap:anywhere;}.docblock :not(pre)>code,.docblock-short code{white-space:pre-wrap;}.top-doc .docblock h2{font-size:1.375rem;}.top-doc .docblock h3{font-size:1.25rem;}.top-doc .docblock h4,.top-doc .docblock h5{font-size:1.125rem;}.top-doc .docblock h6{font-size:1rem;}.docblock h5{font-size:1rem;}.docblock h6{font-size:0.875rem;}.docblock{margin-left:24px;position:relative;}.docblock>:not(.more-examples-toggle):not(.example-wrap){max-width:100%;overflow-x:auto;}.out-of-band{flex-grow:0;font-size:1.125rem;}.docblock code,.docblock-short code,pre,.rustdoc.src .example-wrap{background-color:var(--code-block-background-color);}#main-content{position:relative;}.docblock table{margin:.5em 0;border-collapse:collapse;}.docblock table td,.docblock table th{padding:.5em;border:1px solid var(--border-color);}.docblock table tbody tr:nth-child(2n){background:var(--table-alt-row-background-color);}.docblock .stab,.docblock-short .stab{display:inline-block;}div.where{white-space:pre-wrap;font-size:0.875rem;}.item-info{display:block;margin-left:24px;}.item-info code{font-size:0.875rem;}#main-content>.item-info{margin-left:0;}nav.sub{flex-grow:1;flex-flow:row nowrap;margin:4px 0 25px 0;display:flex;align-items:center;}.search-form{position:relative;display:flex;height:34px;flex-grow:1;}.src nav.sub{margin:0 0 15px 0;}.section-header{display:block;position:relative;}.section-header:hover>.anchor,.impl:hover>.anchor,.trait-impl:hover>.anchor,.variant:hover>.anchor{display:initial;}.anchor{display:none;position:absolute;left:-0.5em;background:none !important;}.anchor.field{left:-5px;}.section-header>.anchor{left:-15px;padding-right:8px;}h2.section-header>.anchor{padding-right:6px;}a.doc-anchor{color:var(--main-color);display:none;position:absolute;left:-17px;padding-right:10px;padding-left:3px;}*:hover>.doc-anchor{display:block;}.top-doc>.docblock>*:first-child>.doc-anchor{display:none !important;}.main-heading a:hover,.example-wrap .rust a:hover,.all-items a:hover,.docblock a:not(.scrape-help):not(.tooltip):hover:not(.doc-anchor),.docblock-short a:not(.scrape-help):not(.tooltip):hover,.item-info a{text-decoration:underline;}.crate.block li.current a{font-weight:500;}table,.item-table{overflow-wrap:break-word;}.item-table{display:table;padding:0;margin:0;width:100%;}.item-table>li{display:table-row;}.item-table>li>div{display:table-cell;}.item-table>li>.item-name{padding-right:1.25rem;}.search-results-title{margin-top:0;white-space:nowrap;display:flex;align-items:baseline;}#crate-search-div{position:relative;min-width:5em;}#crate-search{min-width:115px;padding:0 23px 0 4px;max-width:100%;text-overflow:ellipsis;border:1px solid var(--border-color);border-radius:4px;outline:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;text-indent:0.01px;background-color:var(--main-background-color);color:inherit;line-height:1.5;font-weight:500;}#crate-search:hover,#crate-search:focus{border-color:var(--crate-search-hover-border);}#crate-search-div::after{pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0;content:"";background-repeat:no-repeat;background-size:20px;background-position:calc(100% - 2px) 56%;background-image:url('data:image/svg+xml, \ + ');filter:var(--crate-search-div-filter);}#crate-search-div:hover::after,#crate-search-div:focus-within::after{filter:var(--crate-search-div-hover-filter);}#crate-search>option{font-size:1rem;}.search-input{-webkit-appearance:none;outline:none;border:1px solid var(--border-color);border-radius:2px;padding:8px;font-size:1rem;flex-grow:1;background-color:var(--button-background-color);color:var(--search-color);}.search-input:focus{border-color:var(--search-input-focused-border-color);}.search-results{display:none;}.search-results.active{display:block;}.search-results>a{display:flex;margin-left:2px;margin-right:2px;border-bottom:1px solid var(--search-result-border-color);gap:1em;}.search-results>a>div.desc{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:2;}.search-results a:hover,.search-results a:focus{background-color:var(--search-result-link-focus-background-color);}.search-results .result-name{display:flex;align-items:center;justify-content:start;flex:3;}.search-results .result-name .alias{color:var(--search-results-alias-color);}.search-results .result-name .grey{color:var(--search-results-grey-color);}.search-results .result-name .typename{color:var(--search-results-grey-color);font-size:0.875rem;width:var(--search-typename-width);}.search-results .result-name .path{word-break:break-all;max-width:calc(100% - var(--search-typename-width));display:inline-block;}.search-results .result-name .path>*{display:inline;}.popover{position:absolute;top:100%;right:0;z-index:calc(var(--desktop-sidebar-z-index) + 1);margin-top:7px;border-radius:3px;border:1px solid var(--border-color);background-color:var(--main-background-color);color:var(--main-color);--popover-arrow-offset:11px;}.popover::before{content:'';position:absolute;right:var(--popover-arrow-offset);border:solid var(--border-color);border-width:1px 1px 0 0;background-color:var(--main-background-color);padding:4px;transform:rotate(-45deg);top:-5px;}.setting-line{margin:1.2em 0.6em;}.setting-radio input,.setting-check input{margin-right:0.3em;height:1.2rem;width:1.2rem;border:2px solid var(--settings-input-border-color);outline:none;-webkit-appearance:none;cursor:pointer;}.setting-radio input{border-radius:50%;}.setting-radio span,.setting-check span{padding-bottom:1px;}.setting-radio{margin-top:0.1em;margin-bottom:0.1em;min-width:3.8em;padding:0.3em;display:inline-flex;align-items:center;cursor:pointer;}.setting-radio+.setting-radio{margin-left:0.5em;}.setting-check{margin-right:20px;display:flex;align-items:center;cursor:pointer;}.setting-radio input:checked{box-shadow:inset 0 0 0 3px var(--main-background-color);background-color:var(--settings-input-color);}.setting-check input:checked{background-color:var(--settings-input-color);border-width:1px;content:url('data:image/svg+xml,\ + \ + ');}.setting-radio input:focus,.setting-check input:focus{box-shadow:0 0 1px 1px var(--settings-input-color);}.setting-radio input:checked:focus{box-shadow:inset 0 0 0 3px var(--main-background-color),0 0 2px 2px var(--settings-input-color);}.setting-radio input:hover,.setting-check input:hover{border-color:var(--settings-input-color) !important;}#help.popover{max-width:600px;--popover-arrow-offset:48px;}#help dt{float:left;clear:left;margin-right:0.5rem;}#help span.top,#help span.bottom{text-align:center;display:block;font-size:1.125rem;}#help span.top{margin:10px 0;border-bottom:1px solid var(--border-color);padding-bottom:4px;margin-bottom:6px;}#help span.bottom{clear:both;border-top:1px solid var(--border-color);}.side-by-side>div{width:50%;float:left;padding:0 20px 20px 17px;}.item-info .stab{display:block;padding:3px;margin-bottom:5px;}.item-name .stab{margin-left:0.3125em;}.stab{padding:0 2px;font-size:0.875rem;font-weight:normal;color:var(--main-color);background-color:var(--stab-background-color);width:fit-content;white-space:pre-wrap;border-radius:3px;display:inline;vertical-align:baseline;}.stab.portability>code{background:none;color:var(--stab-code-color);}.stab .emoji,.item-info .stab::before{font-size:1.25rem;}.stab .emoji{margin-right:0.3rem;}.item-info .stab::before{content:"\0";width:0;display:inline-block;color:transparent;}.emoji{text-shadow:1px 0 0 black,-1px 0 0 black,0 1px 0 black,0 -1px 0 black;}.since{font-weight:normal;font-size:initial;}.rightside{padding-left:12px;float:right;}.rightside:not(a),.out-of-band{color:var(--right-side-color);}pre.rust{tab-size:4;-moz-tab-size:4;}pre.rust .kw{color:var(--code-highlight-kw-color);}pre.rust .kw-2{color:var(--code-highlight-kw-2-color);}pre.rust .lifetime{color:var(--code-highlight-lifetime-color);}pre.rust .prelude-ty{color:var(--code-highlight-prelude-color);}pre.rust .prelude-val{color:var(--code-highlight-prelude-val-color);}pre.rust .string{color:var(--code-highlight-string-color);}pre.rust .number{color:var(--code-highlight-number-color);}pre.rust .bool-val{color:var(--code-highlight-literal-color);}pre.rust .self{color:var(--code-highlight-self-color);}pre.rust .attr{color:var(--code-highlight-attribute-color);}pre.rust .macro,pre.rust .macro-nonterminal{color:var(--code-highlight-macro-color);}pre.rust .question-mark{font-weight:bold;color:var(--code-highlight-question-mark-color);}pre.rust .comment{color:var(--code-highlight-comment-color);}pre.rust .doccomment{color:var(--code-highlight-doc-comment-color);}.rustdoc.src .example-wrap pre.rust a{background:var(--codeblock-link-background);}.example-wrap.compile_fail,.example-wrap.should_panic{border-left:2px solid var(--codeblock-error-color);}.ignore.example-wrap{border-left:2px solid var(--codeblock-ignore-color);}.example-wrap.compile_fail:hover,.example-wrap.should_panic:hover{border-left:2px solid var(--codeblock-error-hover-color);}.example-wrap.ignore:hover{border-left:2px solid var(--codeblock-ignore-hover-color);}.example-wrap.compile_fail .tooltip,.example-wrap.should_panic .tooltip{color:var(--codeblock-error-color);}.example-wrap.ignore .tooltip{color:var(--codeblock-ignore-color);}.example-wrap.compile_fail:hover .tooltip,.example-wrap.should_panic:hover .tooltip{color:var(--codeblock-error-hover-color);}.example-wrap.ignore:hover .tooltip{color:var(--codeblock-ignore-hover-color);}.example-wrap .tooltip{position:absolute;display:block;left:-25px;top:5px;margin:0;line-height:1;}.example-wrap.compile_fail .tooltip,.example-wrap.should_panic .tooltip,.example-wrap.ignore .tooltip{font-weight:bold;font-size:1.25rem;}.content .docblock .warning{border-left:2px solid var(--warning-border-color);padding:14px;position:relative;overflow-x:visible !important;}.content .docblock .warning::before{color:var(--warning-border-color);content:"ⓘ";position:absolute;left:-25px;top:5px;font-weight:bold;font-size:1.25rem;}.top-doc>.docblock>.warning:first-child::before{top:20px;}.example-wrap>a.test-arrow,.example-wrap .button-holder{visibility:hidden;position:absolute;top:4px;right:4px;z-index:1;}a.test-arrow{height:var(--copy-path-height);padding:6px 4px 0 11px;}a.test-arrow::before{content:url('data:image/svg+xml,');}.example-wrap .button-holder{display:flex;}@media not (pointer:coarse){.example-wrap:hover>a.test-arrow,.example-wrap:hover>.button-holder{visibility:visible;}}.example-wrap .button-holder.keep-visible{visibility:visible;}.example-wrap .button-holder .copy-button,.example-wrap .test-arrow{background:var(--main-background-color);cursor:pointer;border-radius:var(--button-border-radius);height:var(--copy-path-height);width:var(--copy-path-width);}.example-wrap .button-holder .copy-button{margin-left:var(--button-left-margin);padding:2px 0 0 4px;border:0;}.example-wrap .button-holder .copy-button::before,.example-wrap .test-arrow::before{filter:var(--copy-path-img-filter);}.example-wrap .button-holder .copy-button::before{content:var(--clipboard-image);}.example-wrap .button-holder .copy-button:hover::before,.example-wrap .test-arrow:hover::before{filter:var(--copy-path-img-hover-filter);}.example-wrap .button-holder .copy-button.clicked::before{content:var(--checkmark-image);padding-right:5px;}.code-attribute{font-weight:300;color:var(--code-attribute-color);}.item-spacer{width:100%;height:12px;display:block;}.out-of-band>span.since{font-size:1.25rem;}.sub-variant h4{font-size:1rem;font-weight:400;margin-top:0;margin-bottom:0;}.sub-variant{margin-left:24px;margin-bottom:40px;}.sub-variant>.sub-variant-field{margin-left:24px;}:target{padding-right:3px;background-color:var(--target-background-color);border-right:3px solid var(--target-border-color);}.code-header a.tooltip{color:inherit;margin-right:15px;position:relative;}.code-header a.tooltip:hover{color:var(--link-color);}a.tooltip:hover::after{position:absolute;top:calc(100% - 10px);left:-15px;right:-15px;height:20px;content:"\00a0";}.fade-out{opacity:0;transition:opacity 0.45s cubic-bezier(0,0,0.1,1.0);}.popover.tooltip .content{margin:0.25em 0.5em;}.popover.tooltip .content pre,.popover.tooltip .content code{background:transparent;margin:0;padding:0;font-size:1.25rem;white-space:pre-wrap;}.popover.tooltip .content>h3:first-child{margin:0 0 5px 0;}.search-failed{text-align:center;margin-top:20px;display:none;}.search-failed.active{display:block;}.search-failed>ul{text-align:left;max-width:570px;margin-left:auto;margin-right:auto;}#search-tabs{display:flex;flex-direction:row;gap:1px;margin-bottom:4px;}#search-tabs button{text-align:center;font-size:1.125rem;border:0;border-top:2px solid;flex:1;line-height:1.5;color:inherit;}#search-tabs button:not(.selected){background-color:var(--search-tab-button-not-selected-background);border-top-color:var(--search-tab-button-not-selected-border-top-color);}#search-tabs button:hover,#search-tabs button.selected{background-color:var(--search-tab-button-selected-background);border-top-color:var(--search-tab-button-selected-border-top-color);}#search-tabs .count{font-size:1rem;font-variant-numeric:tabular-nums;color:var(--search-tab-title-count-color);}#search .error code{border-radius:3px;background-color:var(--search-error-code-background-color);}.search-corrections{font-weight:normal;}#src-sidebar{width:100%;overflow:auto;}#src-sidebar div.files>a:hover,details.dir-entry summary:hover,#src-sidebar div.files>a:focus,details.dir-entry summary:focus{background-color:var(--src-sidebar-background-hover);}#src-sidebar div.files>a.selected{background-color:var(--src-sidebar-background-selected);}.src-sidebar-title{position:sticky;top:0;display:flex;padding:8px 8px 0 48px;margin-bottom:7px;background:var(--sidebar-background-color);border-bottom:1px solid var(--border-color);}#settings-menu,#help-button{margin-left:var(--button-left-margin);display:flex;}#sidebar-button{display:none;line-height:0;}.hide-sidebar #sidebar-button,.src #sidebar-button{display:flex;margin-right:4px;position:fixed;left:6px;height:34px;width:34px;background-color:var(--main-background-color);z-index:1;}.src #sidebar-button{left:8px;z-index:calc(var(--desktop-sidebar-z-index) + 1);}.hide-sidebar .src #sidebar-button{position:static;}#settings-menu>a,#help-button>a,#sidebar-button>a{display:flex;align-items:center;justify-content:center;background-color:var(--button-background-color);border:1px solid var(--border-color);border-radius:var(--button-border-radius);color:var(--settings-button-color);font-size:20px;width:33px;}#settings-menu>a:hover,#settings-menu>a:focus,#help-button>a:hover,#help-button>a:focus,#sidebar-button>a:hover,#sidebar-button>a:focus{border-color:var(--settings-button-border-focus);}#settings-menu>a{line-height:0;font-size:0;}#settings-menu>a:before{content:url('data:image/svg+xml,\ + ');width:22px;height:22px;filter:var(--settings-menu-filter);}#sidebar-button>a:before{content:url('data:image/svg+xml,\ + \ + \ + ');width:22px;height:22px;}#copy-path{color:var(--copy-path-button-color);background:var(--main-background-color);height:var(--copy-path-height);width:var(--copy-path-width);margin-left:10px;padding:0;padding-left:2px;border:0;font-size:0;}#copy-path::before{filter:var(--copy-path-img-filter);content:var(--clipboard-image);}#copy-path:hover::before{filter:var(--copy-path-img-hover-filter);}#copy-path.clicked::before{content:var(--checkmark-image);}@keyframes rotating{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}#settings-menu.rotate>a img{animation:rotating 2s linear infinite;}kbd{display:inline-block;padding:3px 5px;font:15px monospace;line-height:10px;vertical-align:middle;border:solid 1px var(--border-color);border-radius:3px;color:var(--kbd-color);background-color:var(--kbd-background);box-shadow:inset 0 -1px 0 var(--kbd-box-shadow-color);}ul.all-items>li{list-style:none;}details.dir-entry{padding-left:4px;}details.dir-entry>summary{margin:0 0 0 -4px;padding:0 0 0 4px;cursor:pointer;}details.dir-entry div.folders,details.dir-entry div.files{padding-left:23px;}details.dir-entry a{display:block;}details.toggle{contain:layout;position:relative;}details.toggle>summary.hideme{cursor:pointer;font-size:1rem;}details.toggle>summary{list-style:none;outline:none;}details.toggle>summary::-webkit-details-marker,details.toggle>summary::marker{display:none;}details.toggle>summary.hideme>span{margin-left:9px;}details.toggle>summary::before{background:url('data:image/svg+xml,') no-repeat top left;content:"";cursor:pointer;width:16px;height:16px;display:inline-block;vertical-align:middle;opacity:.5;filter:var(--toggle-filter);}details.toggle>summary.hideme>span,.more-examples-toggle summary,.more-examples-toggle .hide-more{color:var(--toggles-color);}details.toggle>summary::after{content:"Expand";overflow:hidden;width:0;height:0;position:absolute;}details.toggle>summary.hideme::after{content:"";}details.toggle>summary:focus::before,details.toggle>summary:hover::before{opacity:1;}details.toggle>summary:focus-visible::before{outline:1px dotted #000;outline-offset:1px;}details.non-exhaustive{margin-bottom:8px;}details.toggle>summary.hideme::before{position:relative;}details.toggle>summary:not(.hideme)::before{position:absolute;left:-24px;top:4px;}.impl-items>details.toggle>summary:not(.hideme)::before{position:absolute;left:-24px;}details.toggle[open] >summary.hideme{position:absolute;}details.toggle[open] >summary.hideme>span{display:none;}details.toggle[open] >summary::before{background:url('data:image/svg+xml,') no-repeat top left;}details.toggle[open] >summary::after{content:"Collapse";}.docblock summary>*{display:inline-block;}.docblock>.example-wrap:first-child .tooltip{margin-top:16px;}.src #sidebar-button>a:before,.sidebar-menu-toggle:before{content:url('data:image/svg+xml,\ + ');opacity:0.75;}.sidebar-menu-toggle:hover:before,.sidebar-menu-toggle:active:before,.sidebar-menu-toggle:focus:before{opacity:1;}.src #sidebar-button>a:before{content:url('data:image/svg+xml,\ + \ + \ + ');opacity:0.75;}@media (max-width:850px){#search-tabs .count{display:block;}}@media (max-width:700px){*[id]{scroll-margin-top:45px;}.rustdoc{display:block;}main{padding-left:15px;padding-top:0px;}.main-heading{flex-direction:column;}.out-of-band{text-align:left;margin-left:initial;padding:initial;}.out-of-band .since::before{content:"Since ";}.sidebar .logo-container,.sidebar .location,.sidebar-resizer{display:none;}.sidebar{position:fixed;top:45px;left:-1000px;z-index:11;height:calc(100vh - 45px);width:200px;}.src main,.rustdoc.src .sidebar{top:0;padding:0;height:100vh;border:0;}.src .search-form{margin-left:40px;}.hide-sidebar .search-form{margin-left:32px;}.hide-sidebar .src .search-form{margin-left:0;}.sidebar.shown,.src-sidebar-expanded .src .sidebar,.rustdoc:not(.src) .sidebar:focus-within{left:0;}.mobile-topbar h2{padding-bottom:0;margin:auto 0.5em auto auto;overflow:hidden;font-size:24px;white-space:nowrap;text-overflow:ellipsis;}.mobile-topbar .logo-container>img{max-width:35px;max-height:35px;margin:5px 0 5px 20px;}.mobile-topbar{display:flex;flex-direction:row;position:sticky;z-index:10;font-size:2rem;height:45px;width:100%;left:0;top:0;}.hide-sidebar .mobile-topbar{display:none;}.sidebar-menu-toggle{width:45px;border:none;line-height:0;}.hide-sidebar .sidebar-menu-toggle{display:none;}.sidebar-elems{margin-top:1em;}.anchor{display:none !important;}#main-content>details.toggle>summary::before,#main-content>div>details.toggle>summary::before{left:-11px;}#copy-path,#help-button{display:none;}#sidebar-button>a:before{content:url('data:image/svg+xml,\ + \ + \ + ');width:22px;height:22px;}.sidebar-menu-toggle:before{filter:var(--mobile-sidebar-menu-filter);}.sidebar-menu-toggle:hover{background:var(--main-background-color);}.item-table,.item-row,.item-table>li,.item-table>li>div,.search-results>a,.search-results>a>div{display:block;}.search-results>a{padding:5px 0px;}.search-results>a>div.desc,.item-table>li>div.desc{padding-left:2em;}.search-results .result-name{display:block;}.search-results .result-name .typename{width:initial;margin-right:0;}.search-results .result-name .typename,.search-results .result-name .path{display:inline;}.src-sidebar-expanded .src .sidebar{position:fixed;max-width:100vw;width:100vw;}.src .src-sidebar-title{padding-top:0;}details.toggle:not(.top-doc)>summary{margin-left:10px;}.impl-items>details.toggle>summary:not(.hideme)::before,#main-content>details.toggle:not(.top-doc)>summary::before,#main-content>div>details.toggle>summary::before{left:-11px;}.impl-items>.item-info{margin-left:34px;}.src nav.sub{margin:0;padding:var(--nav-sub-mobile-padding);}}@media (min-width:701px){.scraped-example-title{position:absolute;z-index:10;background:var(--main-background-color);bottom:8px;right:5px;padding:2px 4px;box-shadow:0 0 4px var(--main-background-color);}.item-table>li>.item-name{width:33%;}.item-table>li>div{overflow-wrap:anywhere;}}@media print{nav.sidebar,nav.sub,.out-of-band,a.src,#copy-path,details.toggle[open] >summary::before,details.toggle>summary::before,details.toggle.top-doc>summary{display:none;}.docblock{margin-left:0;}main{padding:10px;}}@media (max-width:464px){.docblock{margin-left:12px;}.docblock code{overflow-wrap:break-word;overflow-wrap:anywhere;}nav.sub{flex-direction:column;}.search-form{align-self:stretch;}}.variant,.implementors-toggle>summary,.impl,#implementors-list>.docblock,.impl-items>section,.impl-items>.toggle>summary,.methods>section,.methods>.toggle>summary{margin-bottom:0.75em;}.variants>.docblock,.implementors-toggle>.docblock,.impl-items>.toggle[open]:not(:last-child),.methods>.toggle[open]:not(:last-child),.implementors-toggle[open]:not(:last-child){margin-bottom:2em;}#trait-implementations-list .impl-items>.toggle:not(:last-child),#synthetic-implementations-list .impl-items>.toggle:not(:last-child),#blanket-implementations-list .impl-items>.toggle:not(:last-child){margin-bottom:1em;}.scraped-example-list .scrape-help{margin-left:10px;padding:0 4px;font-weight:normal;font-size:12px;position:relative;bottom:1px;border:1px solid var(--scrape-example-help-border-color);border-radius:50px;color:var(--scrape-example-help-color);}.scraped-example-list .scrape-help:hover{border-color:var(--scrape-example-help-hover-border-color);color:var(--scrape-example-help-hover-color);}.scraped-example{position:relative;}.scraped-example .code-wrapper{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;width:100%;}.scraped-example:not(.expanded) .code-wrapper{max-height:calc(1.5em * 5 + 10px);}.scraped-example:not(.expanded) .code-wrapper pre{overflow-y:hidden;padding-bottom:0;max-height:calc(1.5em * 5 + 10px);}.more-scraped-examples .scraped-example:not(.expanded) .code-wrapper,.more-scraped-examples .scraped-example:not(.expanded) .code-wrapper pre{max-height:calc(1.5em * 10 + 10px);}.scraped-example .code-wrapper .next,.scraped-example .code-wrapper .prev,.scraped-example .code-wrapper .expand{color:var(--main-color);position:absolute;top:0.25em;z-index:1;padding:0;background:none;border:none;-webkit-appearance:none;opacity:1;}.scraped-example .code-wrapper .prev{right:2.25em;}.scraped-example .code-wrapper .next{right:1.25em;}.scraped-example .code-wrapper .expand{right:0.25em;}.scraped-example:not(.expanded) .code-wrapper::before,.scraped-example:not(.expanded) .code-wrapper::after{content:" ";width:100%;height:5px;position:absolute;z-index:1;}.scraped-example:not(.expanded) .code-wrapper::before{top:0;background:linear-gradient(to bottom,var(--scrape-example-code-wrapper-background-start),var(--scrape-example-code-wrapper-background-end));}.scraped-example:not(.expanded) .code-wrapper::after{bottom:0;background:linear-gradient(to top,var(--scrape-example-code-wrapper-background-start),var(--scrape-example-code-wrapper-background-end));}.scraped-example .code-wrapper .example-wrap{width:100%;overflow-y:hidden;margin-bottom:0;}.scraped-example:not(.expanded) .code-wrapper .example-wrap{overflow-x:hidden;}.scraped-example .example-wrap .rust span.highlight{background:var(--scrape-example-code-line-highlight);}.scraped-example .example-wrap .rust span.highlight.focus{background:var(--scrape-example-code-line-highlight-focus);}.more-examples-toggle{max-width:calc(100% + 25px);margin-top:10px;margin-left:-25px;}.more-examples-toggle .hide-more{margin-left:25px;cursor:pointer;}.more-scraped-examples{margin-left:25px;position:relative;}.toggle-line{position:absolute;top:5px;bottom:0;right:calc(100% + 10px);padding:0 4px;cursor:pointer;}.toggle-line-inner{min-width:2px;height:100%;background:var(--scrape-example-toggle-line-background);}.toggle-line:hover .toggle-line-inner{background:var(--scrape-example-toggle-line-hover-background);}.more-scraped-examples .scraped-example,.example-links{margin-top:20px;}.more-scraped-examples .scraped-example:first-child{margin-top:5px;}.example-links ul{margin-bottom:0;}:root[data-theme="light"],:root:not([data-theme]){--main-background-color:white;--main-color:black;--settings-input-color:#2196f3;--settings-input-border-color:#717171;--settings-button-color:#000;--settings-button-border-focus:#717171;--sidebar-background-color:#f5f5f5;--sidebar-background-color-hover:#e0e0e0;--code-block-background-color:#f5f5f5;--scrollbar-track-background-color:#dcdcdc;--scrollbar-thumb-background-color:rgba(36,37,39,0.6);--scrollbar-color:rgba(36,37,39,0.6) #d9d9d9;--headings-border-bottom-color:#ddd;--border-color:#e0e0e0;--button-background-color:#fff;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:none;--mobile-sidebar-menu-filter:none;--search-input-focused-border-color:#66afe9;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(35%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#ad378a;--trait-link-color:#6e4fc9;--assoc-item-link-color:#3873ad;--function-link-color:#ad7c37;--macro-link-color:#068000;--keyword-link-color:#3873ad;--mod-link-color:#3873ad;--link-color:#3873ad;--sidebar-link-color:#356da4;--sidebar-current-link-background-color:#fff;--search-result-link-focus-background-color:#ccc;--search-result-border-color:#aaa3;--search-color:#000;--search-error-code-background-color:#d0cccc;--search-results-alias-color:#000;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#e6e6e6;--search-tab-button-not-selected-background:#e6e6e6;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#fff;--settings-menu-filter:none;--stab-background-color:#fff5d6;--stab-code-color:#000;--code-highlight-kw-color:#8959a8;--code-highlight-kw-2-color:#4271ae;--code-highlight-lifetime-color:#b76514;--code-highlight-prelude-color:#4271ae;--code-highlight-prelude-val-color:#c82829;--code-highlight-number-color:#718c00;--code-highlight-string-color:#718c00;--code-highlight-literal-color:#c82829;--code-highlight-attribute-color:#c82829;--code-highlight-self-color:#c82829;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8e908c;--code-highlight-doc-comment-color:#4d4d4c;--src-line-numbers-span-color:#c67e2d;--src-line-number-highlighted-background-color:#fdffd3;--target-background-color:#fdffd3;--target-border-color:#ad7c37;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:initial;--crate-search-div-filter:invert(100%) sepia(0%) saturate(4223%) hue-rotate(289deg) brightness(114%) contrast(76%);--crate-search-div-hover-filter:invert(44%) sepia(18%) saturate(23%) hue-rotate(317deg) brightness(96%) contrast(93%);--crate-search-hover-border:#717171;--src-sidebar-background-selected:#fff;--src-sidebar-background-hover:#e0e0e0;--table-alt-row-background-color:#f5f5f5;--codeblock-link-background:#eee;--scrape-example-toggle-line-background:#ccc;--scrape-example-toggle-line-hover-background:#999;--scrape-example-code-line-highlight:#fcffd6;--scrape-example-code-line-highlight-focus:#f6fdb0;--scrape-example-help-border-color:#555;--scrape-example-help-color:#333;--scrape-example-help-hover-border-color:#000;--scrape-example-help-hover-color:#000;--scrape-example-code-wrapper-background-start:rgba(255,255,255,1);--scrape-example-code-wrapper-background-end:rgba(255,255,255,0);--sidebar-resizer-hover:hsl(207,90%,66%);--sidebar-resizer-active:hsl(207,90%,54%);}:root[data-theme="dark"]{--main-background-color:#353535;--main-color:#ddd;--settings-input-color:#2196f3;--settings-input-border-color:#999;--settings-button-color:#000;--settings-button-border-focus:#ffb900;--sidebar-background-color:#505050;--sidebar-background-color-hover:#676767;--code-block-background-color:#2A2A2A;--scrollbar-track-background-color:#717171;--scrollbar-thumb-background-color:rgba(32,34,37,.6);--scrollbar-color:rgba(32,34,37,.6) #5a5a5a;--headings-border-bottom-color:#d2d2d2;--border-color:#e0e0e0;--button-background-color:#f0f0f0;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--mobile-sidebar-menu-filter:invert(100%);--search-input-focused-border-color:#008dfd;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(65%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#2dbfb8;--trait-link-color:#b78cf2;--assoc-item-link-color:#d2991d;--function-link-color:#2bab63;--macro-link-color:#09bd00;--keyword-link-color:#d2991d;--mod-link-color:#d2991d;--link-color:#d2991d;--sidebar-link-color:#fdbf35;--sidebar-current-link-background-color:#444;--search-result-link-focus-background-color:#616161;--search-result-border-color:#aaa3;--search-color:#111;--search-error-code-background-color:#484848;--search-results-alias-color:#fff;--search-results-grey-color:#ccc;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#252525;--search-tab-button-not-selected-background:#252525;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#353535;--settings-menu-filter:none;--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ab8ac1;--code-highlight-kw-2-color:#769acb;--code-highlight-lifetime-color:#d97f26;--code-highlight-prelude-color:#769acb;--code-highlight-prelude-val-color:#ee6868;--code-highlight-number-color:#83a300;--code-highlight-string-color:#83a300;--code-highlight-literal-color:#ee6868;--code-highlight-attribute-color:#ee6868;--code-highlight-self-color:#ee6868;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8d8d8b;--code-highlight-doc-comment-color:#8ca375;--src-line-numbers-span-color:#3b91e2;--src-line-number-highlighted-background-color:#0a042f;--target-background-color:#494a3d;--target-border-color:#bb7410;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(94%) sepia(0%) saturate(721%) hue-rotate(255deg) brightness(90%) contrast(90%);--crate-search-div-hover-filter:invert(69%) sepia(60%) saturate(6613%) hue-rotate(184deg) brightness(100%) contrast(91%);--crate-search-hover-border:#2196f3;--src-sidebar-background-selected:#333;--src-sidebar-background-hover:#444;--table-alt-row-background-color:#2a2a2a;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:#5b3b01;--scrape-example-code-line-highlight-focus:#7c4b0f;--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(53,53,53,1);--scrape-example-code-wrapper-background-end:rgba(53,53,53,0);--sidebar-resizer-hover:hsl(207,30%,54%);--sidebar-resizer-active:hsl(207,90%,54%);}:root[data-theme="ayu"]{--main-background-color:#0f1419;--main-color:#c5c5c5;--settings-input-color:#ffb454;--settings-input-border-color:#999;--settings-button-color:#fff;--settings-button-border-focus:#e0e0e0;--sidebar-background-color:#14191f;--sidebar-background-color-hover:rgba(70,70,70,0.33);--code-block-background-color:#191f26;--scrollbar-track-background-color:transparent;--scrollbar-thumb-background-color:#5c6773;--scrollbar-color:#5c6773 #24292f;--headings-border-bottom-color:#5c6773;--border-color:#5c6773;--button-background-color:#141920;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--mobile-sidebar-menu-filter:invert(100%);--search-input-focused-border-color:#5c6773;--copy-path-button-color:#fff;--copy-path-img-filter:invert(70%);--copy-path-img-hover-filter:invert(100%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#ffa0a5;--trait-link-color:#39afd7;--assoc-item-link-color:#39afd7;--function-link-color:#fdd687;--macro-link-color:#a37acc;--keyword-link-color:#39afd7;--mod-link-color:#39afd7;--link-color:#39afd7;--sidebar-link-color:#53b1db;--sidebar-current-link-background-color:transparent;--search-result-link-focus-background-color:#3c3c3c;--search-result-border-color:#aaa3;--search-color:#fff;--search-error-code-background-color:#4f4c4c;--search-results-alias-color:#c5c5c5;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:none;--search-tab-button-not-selected-background:transparent !important;--search-tab-button-selected-border-top-color:none;--search-tab-button-selected-background:#141920 !important;--settings-menu-filter:invert(100%);--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ff7733;--code-highlight-kw-2-color:#ff7733;--code-highlight-lifetime-color:#ff7733;--code-highlight-prelude-color:#69f2df;--code-highlight-prelude-val-color:#ff7733;--code-highlight-number-color:#b8cc52;--code-highlight-string-color:#b8cc52;--code-highlight-literal-color:#ff7733;--code-highlight-attribute-color:#e6e1cf;--code-highlight-self-color:#36a3d9;--code-highlight-macro-color:#a37acc;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#788797;--code-highlight-doc-comment-color:#a1ac88;--src-line-numbers-span-color:#5c6773;--src-line-number-highlighted-background-color:rgba(255,236,164,0.06);--target-background-color:rgba(255,236,164,0.06);--target-border-color:rgba(255,180,76,0.85);--kbd-color:#c5c5c5;--kbd-background:#314559;--kbd-box-shadow-color:#5c6773;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(41%) sepia(12%) saturate(487%) hue-rotate(171deg) brightness(94%) contrast(94%);--crate-search-div-hover-filter:invert(98%) sepia(12%) saturate(81%) hue-rotate(343deg) brightness(113%) contrast(76%);--crate-search-hover-border:#e0e0e0;--src-sidebar-background-selected:#14191f;--src-sidebar-background-hover:#14191f;--table-alt-row-background-color:#191f26;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:#5b3b01;--scrape-example-code-line-highlight-focus:#7c4b0f;--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(15,20,25,1);--scrape-example-code-wrapper-background-end:rgba(15,20,25,0);--sidebar-resizer-hover:hsl(34,50%,33%);--sidebar-resizer-active:hsl(34,100%,66%);}:root[data-theme="ayu"] h1,:root[data-theme="ayu"] h2,:root[data-theme="ayu"] h3,:root[data-theme="ayu"] h4,:where(:root[data-theme="ayu"]) h1 a,:root[data-theme="ayu"] .sidebar h2 a,:root[data-theme="ayu"] .sidebar h3 a{color:#fff;}:root[data-theme="ayu"] .docblock code{color:#ffb454;}:root[data-theme="ayu"] .docblock a>code{color:#39AFD7 !important;}:root[data-theme="ayu"] .code-header,:root[data-theme="ayu"] .docblock pre>code,:root[data-theme="ayu"] pre,:root[data-theme="ayu"] pre>code,:root[data-theme="ayu"] .item-info code,:root[data-theme="ayu"] .rustdoc.source .example-wrap{color:#e6e1cf;}:root[data-theme="ayu"] .sidebar .current,:root[data-theme="ayu"] .sidebar .current a,:root[data-theme="ayu"] .sidebar a:hover,:root[data-theme="ayu"] #src-sidebar div.files>a:hover,:root[data-theme="ayu"] details.dir-entry summary:hover,:root[data-theme="ayu"] #src-sidebar div.files>a:focus,:root[data-theme="ayu"] details.dir-entry summary:focus,:root[data-theme="ayu"] #src-sidebar div.files>a.selected{color:#ffb44c;}:root[data-theme="ayu"] .sidebar-elems .location{color:#ff7733;}:root[data-theme="ayu"] .src-line-numbers .line-highlighted{color:#708090;padding-right:7px;border-right:1px solid #ffb44c;}:root[data-theme="ayu"] .search-results a:hover,:root[data-theme="ayu"] .search-results a:focus{color:#fff !important;background-color:#3c3c3c;}:root[data-theme="ayu"] .search-results a{color:#0096cf;}:root[data-theme="ayu"] .search-results a div.desc{color:#c5c5c5;}:root[data-theme="ayu"] .result-name .primitive>i,:root[data-theme="ayu"] .result-name .keyword>i{color:#788797;}:root[data-theme="ayu"] #search-tabs>button.selected{border-bottom:1px solid #ffb44c !important;border-top:none;}:root[data-theme="ayu"] #search-tabs>button:not(.selected){border:none;background-color:transparent !important;}:root[data-theme="ayu"] #search-tabs>button:hover{border-bottom:1px solid rgba(242,151,24,0.3);}:root[data-theme="ayu"] #settings-menu>a img,:root[data-theme="ayu"] #sidebar-button>a:before{filter:invert(100);} \ No newline at end of file diff --git a/static.files/rustdoc-dd39b87e5fcfba68.css b/static.files/rustdoc-dd39b87e5fcfba68.css deleted file mode 100644 index 77f898322..000000000 --- a/static.files/rustdoc-dd39b87e5fcfba68.css +++ /dev/null @@ -1,46 +0,0 @@ - :root{--nav-sub-mobile-padding:8px;--search-typename-width:6.75rem;--desktop-sidebar-width:200px;--src-sidebar-width:300px;--desktop-sidebar-z-index:100;}@font-face {font-family:'Fira Sans';font-style:normal;font-weight:400;src:local('Fira Sans'),url("FiraSans-Regular-018c141bf0843ffd.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Fira Sans';font-style:normal;font-weight:500;src:local('Fira Sans Medium'),url("FiraSans-Medium-8f9a781e4970d388.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:normal;font-weight:400;src:local('Source Serif 4'),url("SourceSerif4-Regular-46f98efaafac5295.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:italic;font-weight:400;src:local('Source Serif 4 Italic'),url("SourceSerif4-It-acdfaf1a8af734b1.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:normal;font-weight:700;src:local('Source Serif 4 Bold'),url("SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:400;src:url("SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:italic;font-weight:400;src:url("SourceCodePro-It-1cc31594bf4f1f79.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:600;src:url("SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'NanumBarunGothic';src:url("NanumBarunGothic-0f09457c7a19b7c6.ttf.woff2") format("woff2");font-display:swap;unicode-range:U+AC00-D7AF,U+1100-11FF,U+3130-318F,U+A960-A97F,U+D7B0-D7FF;}*{box-sizing:border-box;}body{font:1rem/1.5 "Source Serif 4",NanumBarunGothic,serif;margin:0;position:relative;overflow-wrap:break-word;overflow-wrap:anywhere;font-feature-settings:"kern","liga";background-color:var(--main-background-color);color:var(--main-color);}h1{font-size:1.5rem;}h2{font-size:1.375rem;}h3{font-size:1.25rem;}h1,h2,h3,h4,h5,h6{font-weight:500;}h1,h2,h3,h4{margin:25px 0 15px 0;padding-bottom:6px;}.docblock h3,.docblock h4,h5,h6{margin:15px 0 5px 0;}.docblock>h2:first-child,.docblock>h3:first-child,.docblock>h4:first-child,.docblock>h5:first-child,.docblock>h6:first-child{margin-top:0;}.main-heading h1{margin:0;padding:0;flex-grow:1;overflow-wrap:break-word;overflow-wrap:anywhere;}.main-heading{display:flex;flex-wrap:wrap;padding-bottom:6px;margin-bottom:15px;}.content h2,.top-doc .docblock>h3,.top-doc .docblock>h4{border-bottom:1px solid var(--headings-border-bottom-color);}h1,h2{line-height:1.25;padding-top:3px;padding-bottom:9px;}h3.code-header{font-size:1.125rem;}h4.code-header{font-size:1rem;}.code-header{font-weight:600;margin:0;padding:0;white-space:pre-wrap;}#crate-search,h1,h2,h3,h4,h5,h6,.sidebar,.mobile-topbar,.search-input,.search-results .result-name,.item-name>a,.out-of-band,span.since,a.src,#help-button>a,summary.hideme,.scraped-example-list,ul.all-items{font-family:"Fira Sans",Arial,NanumBarunGothic,sans-serif;}#toggle-all-docs,a.anchor,.section-header a,#src-sidebar a,.rust a,.sidebar h2 a,.sidebar h3 a,.mobile-topbar h2 a,h1 a,.search-results a,.stab,.result-name i{color:var(--main-color);}span.enum,a.enum,span.struct,a.struct,span.union,a.union,span.primitive,a.primitive,span.type,a.type,span.foreigntype,a.foreigntype{color:var(--type-link-color);}span.trait,a.trait,span.traitalias,a.traitalias{color:var(--trait-link-color);}span.associatedtype,a.associatedtype,span.constant,a.constant,span.static,a.static{color:var(--assoc-item-link-color);}span.fn,a.fn,span.method,a.method,span.tymethod,a.tymethod{color:var(--function-link-color);}span.attr,a.attr,span.derive,a.derive,span.macro,a.macro{color:var(--macro-link-color);}span.mod,a.mod{color:var(--mod-link-color);}span.keyword,a.keyword{color:var(--keyword-link-color);}a{color:var(--link-color);text-decoration:none;}ol,ul{padding-left:24px;}ul ul,ol ul,ul ol,ol ol{margin-bottom:.625em;}p,.docblock>.warning{margin:0 0 .75em 0;}p:last-child,.docblock>.warning:last-child{margin:0;}button{padding:1px 6px;cursor:pointer;}button#toggle-all-docs{padding:0;background:none;border:none;-webkit-appearance:none;opacity:1;}.rustdoc{display:flex;flex-direction:row;flex-wrap:nowrap;}main{position:relative;flex-grow:1;padding:10px 15px 40px 45px;min-width:0;}.src main{padding:15px;}.width-limiter{max-width:960px;margin-right:auto;}details:not(.toggle) summary{margin-bottom:.6em;}code,pre,a.test-arrow,.code-header{font-family:"Source Code Pro",monospace;}.docblock code,.docblock-short code{border-radius:3px;padding:0 0.125em;}.docblock pre code,.docblock-short pre code{padding:0;}pre{padding:14px;line-height:1.5;}pre.item-decl{overflow-x:auto;}.item-decl .type-contents-toggle{contain:initial;}.src .content pre{padding:20px;}.rustdoc.src .example-wrap pre.src-line-numbers{padding:20px 0 20px 4px;}img{max-width:100%;}.logo-container{line-height:0;display:block;}.rust-logo{filter:var(--rust-logo-filter);}.sidebar{font-size:0.875rem;flex:0 0 var(--desktop-sidebar-width);width:var(--desktop-sidebar-width);overflow-y:scroll;overscroll-behavior:contain;position:sticky;height:100vh;top:0;left:0;z-index:var(--desktop-sidebar-z-index);}.rustdoc.src .sidebar{flex-basis:50px;width:50px;border-right:1px solid;overflow-x:hidden;overflow-y:hidden;}.hide-sidebar .sidebar,.hide-sidebar .sidebar-resizer{display:none;}.sidebar-resizer{touch-action:none;width:9px;cursor:col-resize;z-index:calc(var(--desktop-sidebar-z-index) + 1);position:fixed;height:100%;left:calc(var(--desktop-sidebar-width) + 1px);}.rustdoc.src .sidebar-resizer{left:49px;}.src-sidebar-expanded .src .sidebar-resizer{left:var(--src-sidebar-width);}.sidebar-resizing{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;}.sidebar-resizing*{cursor:col-resize !important;}.sidebar-resizing .sidebar{position:fixed;}.sidebar-resizing>body{padding-left:var(--resizing-sidebar-width);}.sidebar-resizer:hover,.sidebar-resizer:active,.sidebar-resizer:focus,.sidebar-resizer.active{width:10px;margin:0;left:var(--desktop-sidebar-width);border-left:solid 1px var(--sidebar-resizer-hover);}.src-sidebar-expanded .rustdoc.src .sidebar-resizer:hover,.src-sidebar-expanded .rustdoc.src .sidebar-resizer:active,.src-sidebar-expanded .rustdoc.src .sidebar-resizer:focus,.src-sidebar-expanded .rustdoc.src .sidebar-resizer.active{left:calc(var(--src-sidebar-width) - 1px);}@media (pointer:coarse){.sidebar-resizer{display:none !important;}}.sidebar-resizer.active{padding:0 140px;width:2px;margin-left:-140px;border-left:none;}.sidebar-resizer.active:before{border-left:solid 2px var(--sidebar-resizer-active);display:block;height:100%;content:"";}.sidebar,.mobile-topbar,.sidebar-menu-toggle,#src-sidebar{background-color:var(--sidebar-background-color);}.src .sidebar>*{visibility:hidden;}.src-sidebar-expanded .src .sidebar{overflow-y:auto;flex-basis:var(--src-sidebar-width);width:var(--src-sidebar-width);}.src-sidebar-expanded .src .sidebar>*{visibility:visible;}#all-types{margin-top:1em;}*{scrollbar-width:initial;scrollbar-color:var(--scrollbar-color);}.sidebar{scrollbar-width:thin;scrollbar-color:var(--scrollbar-color);}::-webkit-scrollbar{width:12px;}.sidebar::-webkit-scrollbar{width:8px;}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0;background-color:var(--scrollbar-track-background-color);}.sidebar::-webkit-scrollbar-track{background-color:var(--scrollbar-track-background-color);}::-webkit-scrollbar-thumb,.sidebar::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-background-color);}.hidden{display:none !important;}.logo-container>img{height:48px;width:48px;}ul.block,.block li{padding:0;margin:0;list-style:none;}.sidebar-elems a,.sidebar>h2 a{display:block;padding:0.25rem;margin-left:-0.25rem;margin-right:0.25rem;}.sidebar h2{overflow-wrap:anywhere;padding:0;margin:0.7rem 0;}.sidebar h3{font-size:1.125rem;padding:0;margin:0;}.sidebar-elems,.sidebar>.version,.sidebar>h2{padding-left:24px;}.sidebar a{color:var(--sidebar-link-color);}.sidebar .current,.sidebar .current a,.sidebar-crate a.logo-container:hover+h2 a,.sidebar a:hover:not(.logo-container){background-color:var(--sidebar-current-link-background-color);}.sidebar-elems .block{margin-bottom:2em;}.sidebar-elems .block li a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}.sidebar-crate{display:flex;align-items:center;justify-content:center;margin:14px 32px 1rem;row-gap:10px;column-gap:32px;flex-wrap:wrap;}.sidebar-crate h2{flex-grow:1;margin:0 -8px;align-self:start;}.sidebar-crate .logo-container{margin:0 -16px 0 -16px;text-align:center;}.sidebar-crate h2 a{display:block;margin:0 calc(-24px + 0.25rem) 0 -0.2rem;padding:calc((16px - 0.57rem ) / 2 ) 0.25rem;padding-left:0.2rem;}.sidebar-crate h2 .version{display:block;font-weight:normal;font-size:1rem;overflow-wrap:break-word;}.sidebar-crate+.version{margin-top:-1rem;margin-bottom:1rem;}.mobile-topbar{display:none;}.rustdoc .example-wrap{display:flex;position:relative;margin-bottom:10px;}.rustdoc .example-wrap:last-child{margin-bottom:0px;}.rustdoc .example-wrap pre{margin:0;flex-grow:1;}.rustdoc:not(.src) .example-wrap pre{overflow:auto hidden;}.rustdoc .example-wrap pre.example-line-numbers,.rustdoc .example-wrap pre.src-line-numbers{flex-grow:0;min-width:fit-content;overflow:initial;text-align:right;-webkit-user-select:none;user-select:none;padding:14px 8px;color:var(--src-line-numbers-span-color);}.rustdoc .example-wrap pre.src-line-numbers{padding:14px 0;}.src-line-numbers a,.src-line-numbers span{color:var(--src-line-numbers-span-color);padding:0 8px;}.src-line-numbers :target{background-color:transparent;border-right:none;padding:0 8px;}.src-line-numbers .line-highlighted{background-color:var(--src-line-number-highlighted-background-color);}.search-loading{text-align:center;}.docblock-short{overflow-wrap:break-word;overflow-wrap:anywhere;}.docblock :not(pre)>code,.docblock-short code{white-space:pre-wrap;}.top-doc .docblock h2{font-size:1.375rem;}.top-doc .docblock h3{font-size:1.25rem;}.top-doc .docblock h4,.top-doc .docblock h5{font-size:1.125rem;}.top-doc .docblock h6{font-size:1rem;}.docblock h5{font-size:1rem;}.docblock h6{font-size:0.875rem;}.docblock{margin-left:24px;position:relative;}.docblock>:not(.more-examples-toggle):not(.example-wrap){max-width:100%;overflow-x:auto;}.out-of-band{flex-grow:0;font-size:1.125rem;}.docblock code,.docblock-short code,pre,.rustdoc.src .example-wrap{background-color:var(--code-block-background-color);}#main-content{position:relative;}.docblock table{margin:.5em 0;border-collapse:collapse;}.docblock table td,.docblock table th{padding:.5em;border:1px solid var(--border-color);}.docblock table tbody tr:nth-child(2n){background:var(--table-alt-row-background-color);}div.where{white-space:pre-wrap;font-size:0.875rem;}.item-info{display:block;margin-left:24px;}.item-info code{font-size:0.875rem;}#main-content>.item-info{margin-left:0;}nav.sub{flex-grow:1;flex-flow:row nowrap;margin:4px 0 25px 0;display:flex;align-items:center;}.search-form{position:relative;display:flex;height:34px;flex-grow:1;}.src nav.sub{margin:0 0 15px 0;}.section-header{display:block;position:relative;}.section-header:hover>.anchor,.impl:hover>.anchor,.trait-impl:hover>.anchor,.variant:hover>.anchor{display:initial;}.anchor{display:none;position:absolute;left:-0.5em;background:none !important;}.anchor.field{left:-5px;}.section-header>.anchor{left:-15px;padding-right:8px;}h2.section-header>.anchor{padding-right:6px;}a.doc-anchor{color:var(--main-color);display:none;position:absolute;left:-17px;padding-right:5px;padding-left:3px;}*:hover>.doc-anchor{display:block;}.top-doc>.docblock>*:first-child>.doc-anchor{display:none !important;}.main-heading a:hover,.example-wrap .rust a:hover,.all-items a:hover,.docblock a:not(.test-arrow):not(.scrape-help):not(.tooltip):hover:not(.doc-anchor),.docblock-short a:not(.test-arrow):not(.scrape-help):not(.tooltip):hover,.item-info a{text-decoration:underline;}.crate.block li.current a{font-weight:500;}table,.item-table{overflow-wrap:break-word;}.item-table{display:table;padding:0;margin:0;}.item-table>li{display:table-row;}.item-table>li>div{display:table-cell;}.item-table>li>.item-name{padding-right:1.25rem;}.search-results-title{margin-top:0;white-space:nowrap;display:flex;align-items:baseline;}#crate-search-div{position:relative;min-width:5em;}#crate-search{min-width:115px;padding:0 23px 0 4px;max-width:100%;text-overflow:ellipsis;border:1px solid var(--border-color);border-radius:4px;outline:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;text-indent:0.01px;background-color:var(--main-background-color);color:inherit;line-height:1.5;font-weight:500;}#crate-search:hover,#crate-search:focus{border-color:var(--crate-search-hover-border);}#crate-search-div::after{pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0;content:"";background-repeat:no-repeat;background-size:20px;background-position:calc(100% - 2px) 56%;background-image:url('data:image/svg+xml, \ - ');filter:var(--crate-search-div-filter);}#crate-search-div:hover::after,#crate-search-div:focus-within::after{filter:var(--crate-search-div-hover-filter);}#crate-search>option{font-size:1rem;}.search-input{-webkit-appearance:none;outline:none;border:1px solid var(--border-color);border-radius:2px;padding:8px;font-size:1rem;flex-grow:1;background-color:var(--button-background-color);color:var(--search-color);}.search-input:focus{border-color:var(--search-input-focused-border-color);}.search-results{display:none;}.search-results.active{display:block;}.search-results>a{display:flex;margin-left:2px;margin-right:2px;border-bottom:1px solid var(--search-result-border-color);gap:1em;}.search-results>a>div.desc{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:2;}.search-results a:hover,.search-results a:focus{background-color:var(--search-result-link-focus-background-color);}.search-results .result-name{display:flex;align-items:center;justify-content:start;flex:3;}.search-results .result-name .alias{color:var(--search-results-alias-color);}.search-results .result-name .grey{color:var(--search-results-grey-color);}.search-results .result-name .typename{color:var(--search-results-grey-color);font-size:0.875rem;width:var(--search-typename-width);}.search-results .result-name .path{word-break:break-all;max-width:calc(100% - var(--search-typename-width));display:inline-block;}.search-results .result-name .path>*{display:inline;}.popover{position:absolute;top:100%;right:0;z-index:calc(var(--desktop-sidebar-z-index) + 1);margin-top:7px;border-radius:3px;border:1px solid var(--border-color);background-color:var(--main-background-color);color:var(--main-color);--popover-arrow-offset:11px;}.popover::before{content:'';position:absolute;right:var(--popover-arrow-offset);border:solid var(--border-color);border-width:1px 1px 0 0;background-color:var(--main-background-color);padding:4px;transform:rotate(-45deg);top:-5px;}.setting-line{margin:1.2em 0.6em;}.setting-radio input,.setting-check input{margin-right:0.3em;height:1.2rem;width:1.2rem;border:2px solid var(--settings-input-border-color);outline:none;-webkit-appearance:none;cursor:pointer;}.setting-radio input{border-radius:50%;}.setting-radio span,.setting-check span{padding-bottom:1px;}.setting-radio{margin-top:0.1em;margin-bottom:0.1em;min-width:3.8em;padding:0.3em;display:inline-flex;align-items:center;cursor:pointer;}.setting-radio+.setting-radio{margin-left:0.5em;}.setting-check{margin-right:20px;display:flex;align-items:center;cursor:pointer;}.setting-radio input:checked{box-shadow:inset 0 0 0 3px var(--main-background-color);background-color:var(--settings-input-color);}.setting-check input:checked{background-color:var(--settings-input-color);border-width:1px;content:url('data:image/svg+xml,\ - \ - ');}.setting-radio input:focus,.setting-check input:focus{box-shadow:0 0 1px 1px var(--settings-input-color);}.setting-radio input:checked:focus{box-shadow:inset 0 0 0 3px var(--main-background-color),0 0 2px 2px var(--settings-input-color);}.setting-radio input:hover,.setting-check input:hover{border-color:var(--settings-input-color) !important;}#help.popover{max-width:600px;--popover-arrow-offset:48px;}#help dt{float:left;clear:left;margin-right:0.5rem;}#help span.top,#help span.bottom{text-align:center;display:block;font-size:1.125rem;}#help span.top{margin:10px 0;border-bottom:1px solid var(--border-color);padding-bottom:4px;margin-bottom:6px;}#help span.bottom{clear:both;border-top:1px solid var(--border-color);}.side-by-side>div{width:50%;float:left;padding:0 20px 20px 17px;}.item-info .stab{display:block;padding:3px;margin-bottom:5px;}.item-name .stab{margin-left:0.3125em;}.stab{padding:0 2px;font-size:0.875rem;font-weight:normal;color:var(--main-color);background-color:var(--stab-background-color);width:fit-content;white-space:pre-wrap;border-radius:3px;display:inline;vertical-align:baseline;}.stab.portability>code{background:none;color:var(--stab-code-color);}.stab .emoji,.item-info .stab::before{font-size:1.25rem;}.stab .emoji{margin-right:0.3rem;}.item-info .stab::before{content:"\0";width:0;display:inline-block;color:transparent;}.emoji{text-shadow:1px 0 0 black,-1px 0 0 black,0 1px 0 black,0 -1px 0 black;}.since{font-weight:normal;font-size:initial;}.rightside{padding-left:12px;float:right;}.rightside:not(a),.out-of-band{color:var(--right-side-color);}pre.rust{tab-size:4;-moz-tab-size:4;}pre.rust .kw{color:var(--code-highlight-kw-color);}pre.rust .kw-2{color:var(--code-highlight-kw-2-color);}pre.rust .lifetime{color:var(--code-highlight-lifetime-color);}pre.rust .prelude-ty{color:var(--code-highlight-prelude-color);}pre.rust .prelude-val{color:var(--code-highlight-prelude-val-color);}pre.rust .string{color:var(--code-highlight-string-color);}pre.rust .number{color:var(--code-highlight-number-color);}pre.rust .bool-val{color:var(--code-highlight-literal-color);}pre.rust .self{color:var(--code-highlight-self-color);}pre.rust .attr{color:var(--code-highlight-attribute-color);}pre.rust .macro,pre.rust .macro-nonterminal{color:var(--code-highlight-macro-color);}pre.rust .question-mark{font-weight:bold;color:var(--code-highlight-question-mark-color);}pre.rust .comment{color:var(--code-highlight-comment-color);}pre.rust .doccomment{color:var(--code-highlight-doc-comment-color);}.rustdoc.src .example-wrap pre.rust a{background:var(--codeblock-link-background);}.example-wrap.compile_fail,.example-wrap.should_panic{border-left:2px solid var(--codeblock-error-color);}.ignore.example-wrap{border-left:2px solid var(--codeblock-ignore-color);}.example-wrap.compile_fail:hover,.example-wrap.should_panic:hover{border-left:2px solid var(--codeblock-error-hover-color);}.example-wrap.ignore:hover{border-left:2px solid var(--codeblock-ignore-hover-color);}.example-wrap.compile_fail .tooltip,.example-wrap.should_panic .tooltip{color:var(--codeblock-error-color);}.example-wrap.ignore .tooltip{color:var(--codeblock-ignore-color);}.example-wrap.compile_fail:hover .tooltip,.example-wrap.should_panic:hover .tooltip{color:var(--codeblock-error-hover-color);}.example-wrap.ignore:hover .tooltip{color:var(--codeblock-ignore-hover-color);}.example-wrap .tooltip{position:absolute;display:block;left:-25px;top:5px;margin:0;line-height:1;}.example-wrap.compile_fail .tooltip,.example-wrap.should_panic .tooltip,.example-wrap.ignore .tooltip{font-weight:bold;font-size:1.25rem;}.content .docblock .warning{border-left:2px solid var(--warning-border-color);padding:14px;position:relative;overflow-x:visible !important;}.content .docblock .warning::before{color:var(--warning-border-color);content:"ⓘ";position:absolute;left:-25px;top:5px;font-weight:bold;font-size:1.25rem;}.top-doc>.docblock>.warning:first-child::before{top:20px;}a.test-arrow{visibility:hidden;position:absolute;padding:5px 10px 5px 10px;border-radius:5px;font-size:1.375rem;top:5px;right:5px;z-index:1;color:var(--test-arrow-color);background-color:var(--test-arrow-background-color);}a.test-arrow:hover{color:var(--test-arrow-hover-color);background-color:var(--test-arrow-hover-background-color);}.example-wrap:hover .test-arrow{visibility:visible;}.code-attribute{font-weight:300;color:var(--code-attribute-color);}.item-spacer{width:100%;height:12px;display:block;}.out-of-band>span.since{font-size:1.25rem;}.sub-variant h4{font-size:1rem;font-weight:400;margin-top:0;margin-bottom:0;}.sub-variant{margin-left:24px;margin-bottom:40px;}.sub-variant>.sub-variant-field{margin-left:24px;}:target{padding-right:3px;background-color:var(--target-background-color);border-right:3px solid var(--target-border-color);}.code-header a.tooltip{color:inherit;margin-right:15px;position:relative;}.code-header a.tooltip:hover{color:var(--link-color);}a.tooltip:hover::after{position:absolute;top:calc(100% - 10px);left:-15px;right:-15px;height:20px;content:"\00a0";}.fade-out{opacity:0;transition:opacity 0.45s cubic-bezier(0,0,0.1,1.0);}.popover.tooltip .content{margin:0.25em 0.5em;}.popover.tooltip .content pre,.popover.tooltip .content code{background:transparent;margin:0;padding:0;font-size:1.25rem;white-space:pre-wrap;}.popover.tooltip .content>h3:first-child{margin:0 0 5px 0;}.search-failed{text-align:center;margin-top:20px;display:none;}.search-failed.active{display:block;}.search-failed>ul{text-align:left;max-width:570px;margin-left:auto;margin-right:auto;}#search-tabs{display:flex;flex-direction:row;gap:1px;margin-bottom:4px;}#search-tabs button{text-align:center;font-size:1.125rem;border:0;border-top:2px solid;flex:1;line-height:1.5;color:inherit;}#search-tabs button:not(.selected){background-color:var(--search-tab-button-not-selected-background);border-top-color:var(--search-tab-button-not-selected-border-top-color);}#search-tabs button:hover,#search-tabs button.selected{background-color:var(--search-tab-button-selected-background);border-top-color:var(--search-tab-button-selected-border-top-color);}#search-tabs .count{font-size:1rem;font-variant-numeric:tabular-nums;color:var(--search-tab-title-count-color);}#search .error code{border-radius:3px;background-color:var(--search-error-code-background-color);}.search-corrections{font-weight:normal;}#src-sidebar{width:100%;overflow:auto;}#src-sidebar div.files>a:hover,details.dir-entry summary:hover,#src-sidebar div.files>a:focus,details.dir-entry summary:focus{background-color:var(--src-sidebar-background-hover);}#src-sidebar div.files>a.selected{background-color:var(--src-sidebar-background-selected);}.src-sidebar-title{position:sticky;top:0;display:flex;padding:8px 8px 0 48px;margin-bottom:7px;background:var(--sidebar-background-color);border-bottom:1px solid var(--border-color);}#settings-menu,#help-button{margin-left:4px;display:flex;}#sidebar-button{display:none;line-height:0;}.hide-sidebar #sidebar-button,.src #sidebar-button{display:flex;margin-right:4px;position:fixed;left:6px;height:34px;width:34px;background-color:var(--main-background-color);z-index:1;}.src #sidebar-button{left:8px;z-index:calc(var(--desktop-sidebar-z-index) + 1);}.hide-sidebar .src #sidebar-button{position:static;}#settings-menu>a,#help-button>a,#sidebar-button>a{display:flex;align-items:center;justify-content:center;background-color:var(--button-background-color);border:1px solid var(--border-color);border-radius:2px;color:var(--settings-button-color);font-size:20px;width:33px;}#settings-menu>a:hover,#settings-menu>a:focus,#help-button>a:hover,#help-button>a:focus,#sidebar-button>a:hover,#sidebar-button>a:focus{border-color:var(--settings-button-border-focus);}#settings-menu>a{line-height:0;font-size:0;}#settings-menu>a:before{content:url('data:image/svg+xml,\ - ');width:22px;height:22px;filter:var(--settings-menu-filter);}#sidebar-button>a:before{content:url('data:image/svg+xml,\ - \ - \ - ');width:22px;height:22px;}#copy-path{color:var(--copy-path-button-color);background:var(--main-background-color);height:34px;width:33px;margin-left:10px;padding:0;padding-left:2px;border:0;font-size:0;}#copy-path::before{filter:var(--copy-path-img-filter);content:url('data:image/svg+xml,\ -\ -\ -');width:19px;height:18px;}#copy-path:hover::before{filter:var(--copy-path-img-hover-filter);}#copy-path.clicked::before{content:url('data:image/svg+xml,\ - \ - ');}@keyframes rotating{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}#settings-menu.rotate>a img{animation:rotating 2s linear infinite;}kbd{display:inline-block;padding:3px 5px;font:15px monospace;line-height:10px;vertical-align:middle;border:solid 1px var(--border-color);border-radius:3px;color:var(--kbd-color);background-color:var(--kbd-background);box-shadow:inset 0 -1px 0 var(--kbd-box-shadow-color);}ul.all-items>li{list-style:none;}details.dir-entry{padding-left:4px;}details.dir-entry>summary{margin:0 0 0 -4px;padding:0 0 0 4px;cursor:pointer;}details.dir-entry div.folders,details.dir-entry div.files{padding-left:23px;}details.dir-entry a{display:block;}details.toggle{contain:layout;position:relative;}details.toggle>summary.hideme{cursor:pointer;font-size:1rem;}details.toggle>summary{list-style:none;outline:none;}details.toggle>summary::-webkit-details-marker,details.toggle>summary::marker{display:none;}details.toggle>summary.hideme>span{margin-left:9px;}details.toggle>summary::before{background:url('data:image/svg+xml,') no-repeat top left;content:"";cursor:pointer;width:16px;height:16px;display:inline-block;vertical-align:middle;opacity:.5;filter:var(--toggle-filter);}details.toggle>summary.hideme>span,.more-examples-toggle summary,.more-examples-toggle .hide-more{color:var(--toggles-color);}details.toggle>summary::after{content:"Expand";overflow:hidden;width:0;height:0;position:absolute;}details.toggle>summary.hideme::after{content:"";}details.toggle>summary:focus::before,details.toggle>summary:hover::before{opacity:1;}details.toggle>summary:focus-visible::before{outline:1px dotted #000;outline-offset:1px;}details.non-exhaustive{margin-bottom:8px;}details.toggle>summary.hideme::before{position:relative;}details.toggle>summary:not(.hideme)::before{position:absolute;left:-24px;top:4px;}.impl-items>details.toggle>summary:not(.hideme)::before{position:absolute;left:-24px;}details.toggle[open] >summary.hideme{position:absolute;}details.toggle[open] >summary.hideme>span{display:none;}details.toggle[open] >summary::before{background:url('data:image/svg+xml,') no-repeat top left;}details.toggle[open] >summary::after{content:"Collapse";}.docblock summary>*{display:inline-block;}.docblock>.example-wrap:first-child .tooltip{margin-top:16px;}.src #sidebar-button>a:before,.sidebar-menu-toggle:before{content:url('data:image/svg+xml,\ - ');opacity:0.75;}.sidebar-menu-toggle:hover:before,.sidebar-menu-toggle:active:before,.sidebar-menu-toggle:focus:before{opacity:1;}.src #sidebar-button>a:before{content:url('data:image/svg+xml,\ - \ - \ - ');opacity:0.75;}@media (max-width:850px){#search-tabs .count{display:block;}}@media (max-width:700px){*[id]{scroll-margin-top:45px;}.rustdoc{display:block;}main{padding-left:15px;padding-top:0px;}.main-heading{flex-direction:column;}.out-of-band{text-align:left;margin-left:initial;padding:initial;}.out-of-band .since::before{content:"Since ";}.sidebar .logo-container,.sidebar .location,.sidebar-resizer{display:none;}.sidebar{position:fixed;top:45px;left:-1000px;z-index:11;height:calc(100vh - 45px);width:200px;}.src main,.rustdoc.src .sidebar{top:0;padding:0;height:100vh;border:0;}.src .search-form{margin-left:40px;}.hide-sidebar .search-form{margin-left:32px;}.hide-sidebar .src .search-form{margin-left:0;}.sidebar.shown,.src-sidebar-expanded .src .sidebar,.rustdoc:not(.src) .sidebar:focus-within{left:0;}.mobile-topbar h2{padding-bottom:0;margin:auto 0.5em auto auto;overflow:hidden;font-size:24px;white-space:nowrap;text-overflow:ellipsis;}.mobile-topbar .logo-container>img{max-width:35px;max-height:35px;margin:5px 0 5px 20px;}.mobile-topbar{display:flex;flex-direction:row;position:sticky;z-index:10;font-size:2rem;height:45px;width:100%;left:0;top:0;}.hide-sidebar .mobile-topbar{display:none;}.sidebar-menu-toggle{width:45px;border:none;line-height:0;}.hide-sidebar .sidebar-menu-toggle{display:none;}.sidebar-elems{margin-top:1em;}.anchor{display:none !important;}#main-content>details.toggle>summary::before,#main-content>div>details.toggle>summary::before{left:-11px;}#copy-path,#help-button{display:none;}#sidebar-button>a:before{content:url('data:image/svg+xml,\ - \ - \ - ');width:22px;height:22px;}.sidebar-menu-toggle:before{filter:var(--mobile-sidebar-menu-filter);}.sidebar-menu-toggle:hover{background:var(--main-background-color);}.item-table,.item-row,.item-table>li,.item-table>li>div,.search-results>a,.search-results>a>div{display:block;}.search-results>a{padding:5px 0px;}.search-results>a>div.desc,.item-table>li>div.desc{padding-left:2em;}.search-results .result-name{display:block;}.search-results .result-name .typename{width:initial;margin-right:0;}.search-results .result-name .typename,.search-results .result-name .path{display:inline;}.src-sidebar-expanded .src .sidebar{position:fixed;max-width:100vw;width:100vw;}.src .src-sidebar-title{padding-top:0;}details.toggle:not(.top-doc)>summary{margin-left:10px;}.impl-items>details.toggle>summary:not(.hideme)::before,#main-content>details.toggle:not(.top-doc)>summary::before,#main-content>div>details.toggle>summary::before{left:-11px;}.impl-items>.item-info{margin-left:34px;}.src nav.sub{margin:0;padding:var(--nav-sub-mobile-padding);}}@media (min-width:701px){.scraped-example-title{position:absolute;z-index:10;background:var(--main-background-color);bottom:8px;right:5px;padding:2px 4px;box-shadow:0 0 4px var(--main-background-color);}}@media print{nav.sidebar,nav.sub,.out-of-band,a.src,#copy-path,details.toggle[open] >summary::before,details.toggle>summary::before,details.toggle.top-doc>summary{display:none;}.docblock{margin-left:0;}main{padding:10px;}}@media (max-width:464px){.docblock{margin-left:12px;}.docblock code{overflow-wrap:break-word;overflow-wrap:anywhere;}nav.sub{flex-direction:column;}.search-form{align-self:stretch;}}.variant,.implementors-toggle>summary,.impl,#implementors-list>.docblock,.impl-items>section,.impl-items>.toggle>summary,.methods>section,.methods>.toggle>summary{margin-bottom:0.75em;}.variants>.docblock,.implementors-toggle>.docblock,.impl-items>.toggle[open]:not(:last-child),.methods>.toggle[open]:not(:last-child),.implementors-toggle[open]:not(:last-child){margin-bottom:2em;}#trait-implementations-list .impl-items>.toggle:not(:last-child),#synthetic-implementations-list .impl-items>.toggle:not(:last-child),#blanket-implementations-list .impl-items>.toggle:not(:last-child){margin-bottom:1em;}.scraped-example-list .scrape-help{margin-left:10px;padding:0 4px;font-weight:normal;font-size:12px;position:relative;bottom:1px;border:1px solid var(--scrape-example-help-border-color);border-radius:50px;color:var(--scrape-example-help-color);}.scraped-example-list .scrape-help:hover{border-color:var(--scrape-example-help-hover-border-color);color:var(--scrape-example-help-hover-color);}.scraped-example{position:relative;}.scraped-example .code-wrapper{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;width:100%;}.scraped-example:not(.expanded) .code-wrapper{max-height:calc(1.5em * 5 + 10px);}.scraped-example:not(.expanded) .code-wrapper pre{overflow-y:hidden;padding-bottom:0;max-height:calc(1.5em * 5 + 10px);}.more-scraped-examples .scraped-example:not(.expanded) .code-wrapper,.more-scraped-examples .scraped-example:not(.expanded) .code-wrapper pre{max-height:calc(1.5em * 10 + 10px);}.scraped-example .code-wrapper .next,.scraped-example .code-wrapper .prev,.scraped-example .code-wrapper .expand{color:var(--main-color);position:absolute;top:0.25em;z-index:1;padding:0;background:none;border:none;-webkit-appearance:none;opacity:1;}.scraped-example .code-wrapper .prev{right:2.25em;}.scraped-example .code-wrapper .next{right:1.25em;}.scraped-example .code-wrapper .expand{right:0.25em;}.scraped-example:not(.expanded) .code-wrapper::before,.scraped-example:not(.expanded) .code-wrapper::after{content:" ";width:100%;height:5px;position:absolute;z-index:1;}.scraped-example:not(.expanded) .code-wrapper::before{top:0;background:linear-gradient(to bottom,var(--scrape-example-code-wrapper-background-start),var(--scrape-example-code-wrapper-background-end));}.scraped-example:not(.expanded) .code-wrapper::after{bottom:0;background:linear-gradient(to top,var(--scrape-example-code-wrapper-background-start),var(--scrape-example-code-wrapper-background-end));}.scraped-example .code-wrapper .example-wrap{width:100%;overflow-y:hidden;margin-bottom:0;}.scraped-example:not(.expanded) .code-wrapper .example-wrap{overflow-x:hidden;}.scraped-example .example-wrap .rust span.highlight{background:var(--scrape-example-code-line-highlight);}.scraped-example .example-wrap .rust span.highlight.focus{background:var(--scrape-example-code-line-highlight-focus);}.more-examples-toggle{max-width:calc(100% + 25px);margin-top:10px;margin-left:-25px;}.more-examples-toggle .hide-more{margin-left:25px;cursor:pointer;}.more-scraped-examples{margin-left:25px;position:relative;}.toggle-line{position:absolute;top:5px;bottom:0;right:calc(100% + 10px);padding:0 4px;cursor:pointer;}.toggle-line-inner{min-width:2px;height:100%;background:var(--scrape-example-toggle-line-background);}.toggle-line:hover .toggle-line-inner{background:var(--scrape-example-toggle-line-hover-background);}.more-scraped-examples .scraped-example,.example-links{margin-top:20px;}.more-scraped-examples .scraped-example:first-child{margin-top:5px;}.example-links ul{margin-bottom:0;}:root[data-theme="light"],:root:not([data-theme]){--main-background-color:white;--main-color:black;--settings-input-color:#2196f3;--settings-input-border-color:#717171;--settings-button-color:#000;--settings-button-border-focus:#717171;--sidebar-background-color:#f5f5f5;--sidebar-background-color-hover:#e0e0e0;--code-block-background-color:#f5f5f5;--scrollbar-track-background-color:#dcdcdc;--scrollbar-thumb-background-color:rgba(36,37,39,0.6);--scrollbar-color:rgba(36,37,39,0.6) #d9d9d9;--headings-border-bottom-color:#ddd;--border-color:#e0e0e0;--button-background-color:#fff;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:none;--mobile-sidebar-menu-filter:none;--search-input-focused-border-color:#66afe9;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(35%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#ad378a;--trait-link-color:#6e4fc9;--assoc-item-link-color:#3873ad;--function-link-color:#ad7c37;--macro-link-color:#068000;--keyword-link-color:#3873ad;--mod-link-color:#3873ad;--link-color:#3873ad;--sidebar-link-color:#356da4;--sidebar-current-link-background-color:#fff;--search-result-link-focus-background-color:#ccc;--search-result-border-color:#aaa3;--search-color:#000;--search-error-code-background-color:#d0cccc;--search-results-alias-color:#000;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#e6e6e6;--search-tab-button-not-selected-background:#e6e6e6;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#fff;--settings-menu-filter:none;--stab-background-color:#fff5d6;--stab-code-color:#000;--code-highlight-kw-color:#8959a8;--code-highlight-kw-2-color:#4271ae;--code-highlight-lifetime-color:#b76514;--code-highlight-prelude-color:#4271ae;--code-highlight-prelude-val-color:#c82829;--code-highlight-number-color:#718c00;--code-highlight-string-color:#718c00;--code-highlight-literal-color:#c82829;--code-highlight-attribute-color:#c82829;--code-highlight-self-color:#c82829;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8e908c;--code-highlight-doc-comment-color:#4d4d4c;--src-line-numbers-span-color:#c67e2d;--src-line-number-highlighted-background-color:#fdffd3;--test-arrow-color:#f5f5f5;--test-arrow-background-color:rgba(78,139,202,0.2);--test-arrow-hover-color:#f5f5f5;--test-arrow-hover-background-color:rgb(78,139,202);--target-background-color:#fdffd3;--target-border-color:#ad7c37;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:initial;--crate-search-div-filter:invert(100%) sepia(0%) saturate(4223%) hue-rotate(289deg) brightness(114%) contrast(76%);--crate-search-div-hover-filter:invert(44%) sepia(18%) saturate(23%) hue-rotate(317deg) brightness(96%) contrast(93%);--crate-search-hover-border:#717171;--src-sidebar-background-selected:#fff;--src-sidebar-background-hover:#e0e0e0;--table-alt-row-background-color:#f5f5f5;--codeblock-link-background:#eee;--scrape-example-toggle-line-background:#ccc;--scrape-example-toggle-line-hover-background:#999;--scrape-example-code-line-highlight:#fcffd6;--scrape-example-code-line-highlight-focus:#f6fdb0;--scrape-example-help-border-color:#555;--scrape-example-help-color:#333;--scrape-example-help-hover-border-color:#000;--scrape-example-help-hover-color:#000;--scrape-example-code-wrapper-background-start:rgba(255,255,255,1);--scrape-example-code-wrapper-background-end:rgba(255,255,255,0);--sidebar-resizer-hover:hsl(207,90%,66%);--sidebar-resizer-active:hsl(207,90%,54%);}:root[data-theme="dark"]{--main-background-color:#353535;--main-color:#ddd;--settings-input-color:#2196f3;--settings-input-border-color:#999;--settings-button-color:#000;--settings-button-border-focus:#ffb900;--sidebar-background-color:#505050;--sidebar-background-color-hover:#676767;--code-block-background-color:#2A2A2A;--scrollbar-track-background-color:#717171;--scrollbar-thumb-background-color:rgba(32,34,37,.6);--scrollbar-color:rgba(32,34,37,.6) #5a5a5a;--headings-border-bottom-color:#d2d2d2;--border-color:#e0e0e0;--button-background-color:#f0f0f0;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--mobile-sidebar-menu-filter:invert(100%);--search-input-focused-border-color:#008dfd;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(65%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#2dbfb8;--trait-link-color:#b78cf2;--assoc-item-link-color:#d2991d;--function-link-color:#2bab63;--macro-link-color:#09bd00;--keyword-link-color:#d2991d;--mod-link-color:#d2991d;--link-color:#d2991d;--sidebar-link-color:#fdbf35;--sidebar-current-link-background-color:#444;--search-result-link-focus-background-color:#616161;--search-result-border-color:#aaa3;--search-color:#111;--search-error-code-background-color:#484848;--search-results-alias-color:#fff;--search-results-grey-color:#ccc;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#252525;--search-tab-button-not-selected-background:#252525;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#353535;--settings-menu-filter:none;--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ab8ac1;--code-highlight-kw-2-color:#769acb;--code-highlight-lifetime-color:#d97f26;--code-highlight-prelude-color:#769acb;--code-highlight-prelude-val-color:#ee6868;--code-highlight-number-color:#83a300;--code-highlight-string-color:#83a300;--code-highlight-literal-color:#ee6868;--code-highlight-attribute-color:#ee6868;--code-highlight-self-color:#ee6868;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8d8d8b;--code-highlight-doc-comment-color:#8ca375;--src-line-numbers-span-color:#3b91e2;--src-line-number-highlighted-background-color:#0a042f;--test-arrow-color:#dedede;--test-arrow-background-color:rgba(78,139,202,0.2);--test-arrow-hover-color:#dedede;--test-arrow-hover-background-color:#4e8bca;--target-background-color:#494a3d;--target-border-color:#bb7410;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(94%) sepia(0%) saturate(721%) hue-rotate(255deg) brightness(90%) contrast(90%);--crate-search-div-hover-filter:invert(69%) sepia(60%) saturate(6613%) hue-rotate(184deg) brightness(100%) contrast(91%);--crate-search-hover-border:#2196f3;--src-sidebar-background-selected:#333;--src-sidebar-background-hover:#444;--table-alt-row-background-color:#2a2a2a;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:#5b3b01;--scrape-example-code-line-highlight-focus:#7c4b0f;--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(53,53,53,1);--scrape-example-code-wrapper-background-end:rgba(53,53,53,0);--sidebar-resizer-hover:hsl(207,30%,54%);--sidebar-resizer-active:hsl(207,90%,54%);}:root[data-theme="ayu"]{--main-background-color:#0f1419;--main-color:#c5c5c5;--settings-input-color:#ffb454;--settings-input-border-color:#999;--settings-button-color:#fff;--settings-button-border-focus:#e0e0e0;--sidebar-background-color:#14191f;--sidebar-background-color-hover:rgba(70,70,70,0.33);--code-block-background-color:#191f26;--scrollbar-track-background-color:transparent;--scrollbar-thumb-background-color:#5c6773;--scrollbar-color:#5c6773 #24292f;--headings-border-bottom-color:#5c6773;--border-color:#5c6773;--button-background-color:#141920;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--mobile-sidebar-menu-filter:invert(100%);--search-input-focused-border-color:#5c6773;--copy-path-button-color:#fff;--copy-path-img-filter:invert(70%);--copy-path-img-hover-filter:invert(100%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--warning-border-color:#ff8e00;--type-link-color:#ffa0a5;--trait-link-color:#39afd7;--assoc-item-link-color:#39afd7;--function-link-color:#fdd687;--macro-link-color:#a37acc;--keyword-link-color:#39afd7;--mod-link-color:#39afd7;--link-color:#39afd7;--sidebar-link-color:#53b1db;--sidebar-current-link-background-color:transparent;--search-result-link-focus-background-color:#3c3c3c;--search-result-border-color:#aaa3;--search-color:#fff;--search-error-code-background-color:#4f4c4c;--search-results-alias-color:#c5c5c5;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:none;--search-tab-button-not-selected-background:transparent !important;--search-tab-button-selected-border-top-color:none;--search-tab-button-selected-background:#141920 !important;--settings-menu-filter:invert(100%);--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ff7733;--code-highlight-kw-2-color:#ff7733;--code-highlight-lifetime-color:#ff7733;--code-highlight-prelude-color:#69f2df;--code-highlight-prelude-val-color:#ff7733;--code-highlight-number-color:#b8cc52;--code-highlight-string-color:#b8cc52;--code-highlight-literal-color:#ff7733;--code-highlight-attribute-color:#e6e1cf;--code-highlight-self-color:#36a3d9;--code-highlight-macro-color:#a37acc;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#788797;--code-highlight-doc-comment-color:#a1ac88;--src-line-numbers-span-color:#5c6773;--src-line-number-highlighted-background-color:rgba(255,236,164,0.06);--test-arrow-color:#788797;--test-arrow-background-color:rgba(57,175,215,0.09);--test-arrow-hover-color:#c5c5c5;--test-arrow-hover-background-color:rgba(57,175,215,0.368);--target-background-color:rgba(255,236,164,0.06);--target-border-color:rgba(255,180,76,0.85);--kbd-color:#c5c5c5;--kbd-background:#314559;--kbd-box-shadow-color:#5c6773;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(41%) sepia(12%) saturate(487%) hue-rotate(171deg) brightness(94%) contrast(94%);--crate-search-div-hover-filter:invert(98%) sepia(12%) saturate(81%) hue-rotate(343deg) brightness(113%) contrast(76%);--crate-search-hover-border:#e0e0e0;--src-sidebar-background-selected:#14191f;--src-sidebar-background-hover:#14191f;--table-alt-row-background-color:#191f26;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:#5b3b01;--scrape-example-code-line-highlight-focus:#7c4b0f;--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(15,20,25,1);--scrape-example-code-wrapper-background-end:rgba(15,20,25,0);--sidebar-resizer-hover:hsl(34,50%,33%);--sidebar-resizer-active:hsl(34,100%,66%);}:root[data-theme="ayu"] h1,:root[data-theme="ayu"] h2,:root[data-theme="ayu"] h3,:root[data-theme="ayu"] h4,:where(:root[data-theme="ayu"]) h1 a,:root[data-theme="ayu"] .sidebar h2 a,:root[data-theme="ayu"] .sidebar h3 a{color:#fff;}:root[data-theme="ayu"] .docblock code{color:#ffb454;}:root[data-theme="ayu"] .docblock a>code{color:#39AFD7 !important;}:root[data-theme="ayu"] .code-header,:root[data-theme="ayu"] .docblock pre>code,:root[data-theme="ayu"] pre,:root[data-theme="ayu"] pre>code,:root[data-theme="ayu"] .item-info code,:root[data-theme="ayu"] .rustdoc.source .example-wrap{color:#e6e1cf;}:root[data-theme="ayu"] .sidebar .current,:root[data-theme="ayu"] .sidebar .current a,:root[data-theme="ayu"] .sidebar a:hover,:root[data-theme="ayu"] #src-sidebar div.files>a:hover,:root[data-theme="ayu"] details.dir-entry summary:hover,:root[data-theme="ayu"] #src-sidebar div.files>a:focus,:root[data-theme="ayu"] details.dir-entry summary:focus,:root[data-theme="ayu"] #src-sidebar div.files>a.selected{color:#ffb44c;}:root[data-theme="ayu"] .sidebar-elems .location{color:#ff7733;}:root[data-theme="ayu"] .src-line-numbers .line-highlighted{color:#708090;padding-right:7px;border-right:1px solid #ffb44c;}:root[data-theme="ayu"] .search-results a:hover,:root[data-theme="ayu"] .search-results a:focus{color:#fff !important;background-color:#3c3c3c;}:root[data-theme="ayu"] .search-results a{color:#0096cf;}:root[data-theme="ayu"] .search-results a div.desc{color:#c5c5c5;}:root[data-theme="ayu"] .result-name .primitive>i,:root[data-theme="ayu"] .result-name .keyword>i{color:#788797;}:root[data-theme="ayu"] #search-tabs>button.selected{border-bottom:1px solid #ffb44c !important;border-top:none;}:root[data-theme="ayu"] #search-tabs>button:not(.selected){border:none;background-color:transparent !important;}:root[data-theme="ayu"] #search-tabs>button:hover{border-bottom:1px solid rgba(242,151,24,0.3);}:root[data-theme="ayu"] #settings-menu>a img,:root[data-theme="ayu"] #sidebar-button>a:before{filter:invert(100);} \ No newline at end of file diff --git a/static.files/search-0fe7219eb170c82e.js b/static.files/search-ef54e092fea9c776.js similarity index 76% rename from static.files/search-0fe7219eb170c82e.js rename to static.files/search-ef54e092fea9c776.js index da6b6b967..035d8e8cc 100644 --- a/static.files/search-0fe7219eb170c82e.js +++ b/static.files/search-ef54e092fea9c776.js @@ -2,4 +2,4 @@ ${item.alias} - see \
    `}resultName.insertAdjacentHTML("beforeend",`
    ${alias}\ ${item.displayPath}${name}\ -
    `);const description=document.createElement("div");description.className="desc";description.insertAdjacentHTML("beforeend",item.desc);link.appendChild(description);output.appendChild(link)}}else if(query.error===null){output.className="search-failed"+extraClass;output.innerHTML="No results :(
    "+"Try on DuckDuckGo?

    "+"Or try looking in one of these:"}return[output,array.length]}function makeTabHeader(tabNb,text,nbElems){const fmtNbElems=nbElems<10?`\u{2007}(${nbElems})\u{2007}\u{2007}`:nbElems<100?`\u{2007}(${nbElems})\u{2007}`:`\u{2007}(${nbElems})`;if(searchState.currentTab===tabNb){return""}return""}async function showResults(results,go_to_first,filterCrates){const search=searchState.outputElement();if(go_to_first||(results.others.length===1&&getSettingValue("go-to-only-result")==="true")){window.onunload=()=>{};searchState.removeQueryParameters();const elem=document.createElement("a");elem.href=results.others[0].href;removeClass(elem,"active");document.body.appendChild(elem);elem.click();return}if(results.query===undefined){results.query=parseQuery(searchState.input.value)}currentResults=results.query.userQuery;const[ret_others,ret_in_args,ret_returned]=await Promise.all([addTab(results.others,results.query,true),addTab(results.in_args,results.query,false),addTab(results.returned,results.query,false),]);let currentTab=searchState.currentTab;if((currentTab===0&&ret_others[1]===0)||(currentTab===1&&ret_in_args[1]===0)||(currentTab===2&&ret_returned[1]===0)){if(ret_others[1]!==0){currentTab=0}else if(ret_in_args[1]!==0){currentTab=1}else if(ret_returned[1]!==0){currentTab=2}}let crates="";if(rawSearchIndex.size>1){crates=" in 
    "}let output=`

    Results${crates}

    `;if(results.query.error!==null){const error=results.query.error;error.forEach((value,index)=>{value=value.split("<").join("<").split(">").join(">");if(index%2!==0){error[index]=`${value.replaceAll(" ", " ")}`}else{error[index]=value}});output+=`

    Query parser error: "${error.join("")}".

    `;output+="
    "+makeTabHeader(0,"In Names",ret_others[1])+"
    ";currentTab=0}else if(results.query.foundElems<=1&&results.query.returned.length===0){output+="
    "+makeTabHeader(0,"In Names",ret_others[1])+makeTabHeader(1,"In Parameters",ret_in_args[1])+makeTabHeader(2,"In Return Types",ret_returned[1])+"
    "}else{const signatureTabTitle=results.query.elems.length===0?"In Function Return Types":results.query.returned.length===0?"In Function Parameters":"In Function Signatures";output+="
    "+makeTabHeader(0,signatureTabTitle,ret_others[1])+"
    ";currentTab=0}if(results.query.correction!==null){const orig=results.query.returned.length>0?results.query.returned[0].name:results.query.elems[0].name;output+="

    "+`Type "${orig}" not found. `+"Showing results for closest type name "+`"${results.query.correction}" instead.

    `}if(results.query.proposeCorrectionFrom!==null){const orig=results.query.proposeCorrectionFrom;const targ=results.query.proposeCorrectionTo;output+="

    "+`Type "${orig}" not found and used as generic parameter. `+`Consider searching for "${targ}" instead.

    `}const resultsElem=document.createElement("div");resultsElem.id="results";resultsElem.appendChild(ret_others[0]);resultsElem.appendChild(ret_in_args[0]);resultsElem.appendChild(ret_returned[0]);search.innerHTML=output;const crateSearch=document.getElementById("crate-search");if(crateSearch){crateSearch.addEventListener("input",updateCrate)}search.appendChild(resultsElem);searchState.showResults(search);const elems=document.getElementById("search-tabs").childNodes;searchState.focusedByTab=[];let i=0;for(const elem of elems){const j=i;elem.onclick=()=>printTab(j);searchState.focusedByTab.push(null);i+=1}printTab(currentTab)}function updateSearchHistory(url){if(!browserSupportsHistoryApi()){return}const params=searchState.getQueryStringParams();if(!history.state&&!params.search){history.pushState(null,"",url)}else{history.replaceState(null,"",url)}}async function search(forced){const query=parseQuery(searchState.input.value.trim());let filterCrates=getFilterCrates();if(!forced&&query.userQuery===currentResults){if(query.userQuery.length>0){putBackSearch()}return}searchState.setLoadingSearch();const params=searchState.getQueryStringParams();if(filterCrates===null&¶ms["filter-crate"]!==undefined){filterCrates=params["filter-crate"]}searchState.title="Results for "+query.original+" - Rust";updateSearchHistory(buildUrl(query.original,filterCrates));await showResults(await execQuery(query,filterCrates,window.currentCrate),params.go_to_first,filterCrates)}function buildItemSearchTypeAll(types,lowercasePaths){return types.length>0?types.map(type=>buildItemSearchType(type,lowercasePaths)):EMPTY_GENERICS_ARRAY}const EMPTY_BINDINGS_MAP=new Map();const EMPTY_GENERICS_ARRAY=[];let TYPES_POOL=new Map();function buildItemSearchType(type,lowercasePaths,isAssocType){const PATH_INDEX_DATA=0;const GENERICS_DATA=1;const BINDINGS_DATA=2;let pathIndex,generics,bindings;if(typeof type==="number"){pathIndex=type;generics=EMPTY_GENERICS_ARRAY;bindings=EMPTY_BINDINGS_MAP}else{pathIndex=type[PATH_INDEX_DATA];generics=buildItemSearchTypeAll(type[GENERICS_DATA],lowercasePaths,);if(type.length>BINDINGS_DATA&&type[BINDINGS_DATA].length>0){bindings=new Map(type[BINDINGS_DATA].map(binding=>{const[assocType,constraints]=binding;return[buildItemSearchType(assocType,lowercasePaths,true).id,buildItemSearchTypeAll(constraints,lowercasePaths),]}))}else{bindings=EMPTY_BINDINGS_MAP}}let result;if(pathIndex<0){result={id:pathIndex,ty:TY_GENERIC,path:null,exactPath:null,generics,bindings,}}else if(pathIndex===0){result={id:null,ty:null,path:null,exactPath:null,generics,bindings,}}else{const item=lowercasePaths[pathIndex-1];result={id:buildTypeMapIndex(item.name,isAssocType),ty:item.ty,path:item.path,exactPath:item.exactPath,generics,bindings,}}const cr=TYPES_POOL.get(result.id);if(cr){if(cr.generics.length===result.generics.length&&cr.generics!==result.generics&&cr.generics.every((x,i)=>result.generics[i]===x)){result.generics=cr.generics}if(cr.bindings.size===result.bindings.size&&cr.bindings!==result.bindings){let ok=true;for(const[k,v]of cr.bindings.entries()){const v2=result.bindings.get(v);if(!v2){ok=false;break}if(v!==v2&&v.length===v2.length&&v.every((x,i)=>v2[i]===x)){result.bindings.set(k,v)}else if(v!==v2){ok=false;break}}if(ok){result.bindings=cr.bindings}}if(cr.ty===result.ty&&cr.path===result.path&&cr.bindings===result.bindings&&cr.generics===result.generics&&cr.ty===result.ty){return cr}}TYPES_POOL.set(result.id,result);return result}function buildFunctionSearchTypeCallback(lowercasePaths){return functionSearchType=>{if(functionSearchType===0){return null}const INPUTS_DATA=0;const OUTPUT_DATA=1;let inputs,output;if(typeof functionSearchType[INPUTS_DATA]==="number"){inputs=[buildItemSearchType(functionSearchType[INPUTS_DATA],lowercasePaths)]}else{inputs=buildItemSearchTypeAll(functionSearchType[INPUTS_DATA],lowercasePaths,)}if(functionSearchType.length>1){if(typeof functionSearchType[OUTPUT_DATA]==="number"){output=[buildItemSearchType(functionSearchType[OUTPUT_DATA],lowercasePaths)]}else{output=buildItemSearchTypeAll(functionSearchType[OUTPUT_DATA],lowercasePaths,)}}else{output=[]}const where_clause=[];const l=functionSearchType.length;for(let i=2;i{k=(~~k+0x7ed55d16)+(k<<12);k=(k ^ 0xc761c23c)^(k>>>19);k=(~~k+0x165667b1)+(k<<5);k=(~~k+0xd3a2646c)^(k<<9);k=(~~k+0xfd7046c5)+(k<<3);return(k ^ 0xb55a4f09)^(k>>>16)};const hashint2=k=>{k=~k+(k<<15);k ^=k>>>12;k+=k<<2;k ^=k>>>4;k=Math.imul(k,2057);return k ^(k>>16)};if(input!==null){const h0a=hashint1(input);const h0b=hashint2(input);const h1a=~~(h0a+Math.imul(h0b,2));const h1b=~~(h0a+Math.imul(h0b,3));const h2a=~~(h0a+Math.imul(h0b,4));const h2b=~~(h0a+Math.imul(h0b,5));output[0]|=(1<<(h0a%32))|(1<<(h1b%32));output[1]|=(1<<(h1a%32))|(1<<(h2b%32));output[2]|=(1<<(h2a%32))|(1<<(h0b%32));fps.add(input)}for(const g of type.generics){buildFunctionTypeFingerprint(g,output,fps)}const fb={id:null,ty:0,generics:EMPTY_GENERICS_ARRAY,bindings:EMPTY_BINDINGS_MAP,};for(const[k,v]of type.bindings.entries()){fb.id=k;fb.generics=v;buildFunctionTypeFingerprint(fb,output,fps)}output[3]=fps.size}function compareTypeFingerprints(fullId,queryFingerprint){const fh0=functionTypeFingerprint[fullId*4];const fh1=functionTypeFingerprint[(fullId*4)+1];const fh2=functionTypeFingerprint[(fullId*4)+2];const[qh0,qh1,qh2]=queryFingerprint;const[in0,in1,in2]=[fh0&qh0,fh1&qh1,fh2&qh2];if((in0 ^ qh0)||(in1 ^ qh1)||(in2 ^ qh2)){return null}return functionTypeFingerprint[(fullId*4)+3]}class VlqHexDecoder{constructor(string,cons){this.string=string;this.cons=cons;this.offset=0;this.backrefQueue=[]}decodeList(){const cb="}".charCodeAt(0);let c=this.string.charCodeAt(this.offset);const ret=[];while(c!==cb){ret.push(this.decode());c=this.string.charCodeAt(this.offset)}this.offset+=1;return ret}decode(){const[ob,la]=["{","`"].map(c=>c.charCodeAt(0));let n=0;let c=this.string.charCodeAt(this.offset);if(c===ob){this.offset+=1;return this.decodeList()}while(c>1];this.offset+=1;return sign?-value:value}next(){const c=this.string.charCodeAt(this.offset);const[zero,ua,la]=["0","@","`"].map(c=>c.charCodeAt(0));if(c>=zero&&c16){this.backrefQueue.pop()}return result}}class RoaringBitmap{constructor(str){const strdecoded=atob(str);const u8array=new Uint8Array(strdecoded.length);for(let j=0;j=4){offsets=[];for(let j=0;j>3]&(1<<(j&0x7))){const runcount=(u8array[i]|(u8array[i+1]<<8));i+=2;this.containers.push(new RoaringBitmapRun(runcount,u8array.slice(i,i+(runcount*4)),));i+=runcount*4}else if(this.cardinalities[j]>=4096){this.containers.push(new RoaringBitmapBits(u8array.slice(i,i+8192)));i+=8192}else{const end=this.cardinalities[j]*2;this.containers.push(new RoaringBitmapArray(this.cardinalities[j],u8array.slice(i,i+end),));i+=end}}}contains(keyvalue){const key=keyvalue>>16;const value=keyvalue&0xFFFF;for(let i=0;i=start&&value<=(start+lenm1)){return true}}return false}}class RoaringBitmapArray{constructor(cardinality,array){this.cardinality=cardinality;this.array=array}contains(value){const l=this.cardinality*2;for(let i=0;i>3]&(1<<(value&7)))}}function buildIndex(rawSearchIndex){searchIndex=[];searchIndexDeprecated=new Map();searchIndexEmptyDesc=new Map();const charA="A".charCodeAt(0);let currentIndex=0;let id=0;for(const crate of rawSearchIndex.values()){id+=crate.t.length+1}functionTypeFingerprint=new Uint32Array((id+1)*4);id=0;for(const[crate,crateCorpus]of rawSearchIndex){const itemDescShardDecoder=new VlqHexDecoder(crateCorpus.D,noop=>noop);let descShard={crate,shard:0,start:0,len:itemDescShardDecoder.next(),promise:null,resolve:null,};const descShardList=[descShard];searchIndexDeprecated.set(crate,new RoaringBitmap(crateCorpus.c));searchIndexEmptyDesc.set(crate,new RoaringBitmap(crateCorpus.e));let descIndex=0;const crateRow={crate,ty:3,name:crate,path:"",descShard,descIndex,exactPath:"",desc:crateCorpus.doc,parent:undefined,type:null,id,word:crate,normalizedName:crate.indexOf("_")===-1?crate:crate.replace(/_/g,""),bitIndex:0,implDisambiguator:null,};id+=1;searchIndex.push(crateRow);currentIndex+=1;if(!searchIndexEmptyDesc.get(crate).contains(0)){descIndex+=1}const itemTypes=crateCorpus.t;const itemNames=crateCorpus.n;const itemPaths=new Map(crateCorpus.q);const itemReexports=new Map(crateCorpus.r);const itemParentIdxs=crateCorpus.i;const implDisambiguator=new Map(crateCorpus.b);const paths=crateCorpus.p;const aliases=crateCorpus.a;const lowercasePaths=[];const itemFunctionDecoder=new VlqHexDecoder(crateCorpus.f,buildFunctionSearchTypeCallback(lowercasePaths),);let len=paths.length;let lastPath=itemPaths.get(0);for(let i=0;i2){path=itemPaths.has(elem[2])?itemPaths.get(elem[2]):lastPath;lastPath=path}const exactPath=elem.length>3?itemPaths.get(elem[3]):path;lowercasePaths.push({ty,name:name.toLowerCase(),path,exactPath});paths[i]={ty,name,path,exactPath}}lastPath="";len=itemTypes.length;for(let i=0;i=descShard.len&&!searchIndexEmptyDesc.get(crate).contains(bitIndex)){descShard={crate,shard:descShard.shard+1,start:descShard.start+descShard.len,len:itemDescShardDecoder.next(),promise:null,resolve:null,};descIndex=0;descShardList.push(descShard)}let word="";if(typeof itemNames[i]==="string"){word=itemNames[i].toLowerCase()}const path=itemPaths.has(i)?itemPaths.get(i):lastPath;const type=itemFunctionDecoder.next();if(type!==null){if(type){const fp=functionTypeFingerprint.subarray(id*4,(id+1)*4);const fps=new Set();for(const t of type.inputs){buildFunctionTypeFingerprint(t,fp,fps)}for(const t of type.output){buildFunctionTypeFingerprint(t,fp,fps)}for(const w of type.where_clause){for(const t of w){buildFunctionTypeFingerprint(t,fp,fps)}}}}const row={crate,ty:itemTypes.charCodeAt(i)-charA,name:itemNames[i],path,descShard,descIndex,exactPath:itemReexports.has(i)?itemPaths.get(itemReexports.get(i)):path,parent:itemParentIdxs[i]>0?paths[itemParentIdxs[i]-1]:undefined,type,id,word,normalizedName:word.indexOf("_")===-1?word:word.replace(/_/g,""),bitIndex,implDisambiguator:implDisambiguator.has(i)?implDisambiguator.get(i):null,};id+=1;searchIndex.push(row);lastPath=row.path;if(!searchIndexEmptyDesc.get(crate).contains(bitIndex)){descIndex+=1}}if(aliases){const currentCrateAliases=new Map();ALIASES.set(crate,currentCrateAliases);for(const alias_name in aliases){if(!Object.prototype.hasOwnProperty.call(aliases,alias_name)){continue}let currentNameAliases;if(currentCrateAliases.has(alias_name)){currentNameAliases=currentCrateAliases.get(alias_name)}else{currentNameAliases=[];currentCrateAliases.set(alias_name,currentNameAliases)}for(const local_alias of aliases[alias_name]){currentNameAliases.push(local_alias+currentIndex)}}}currentIndex+=itemTypes.length;searchState.descShards.set(crate,descShardList)}TYPES_POOL=new Map()}function onSearchSubmit(e){e.preventDefault();searchState.clearInputTimeout();search()}function putBackSearch(){const search_input=searchState.input;if(!searchState.input){return}if(search_input.value!==""&&!searchState.isDisplayed()){searchState.showResults();if(browserSupportsHistoryApi()){history.replaceState(null,"",buildUrl(search_input.value,getFilterCrates()))}document.title=searchState.title}}function registerSearchEvents(){const params=searchState.getQueryStringParams();if(searchState.input.value===""){searchState.input.value=params.search||""}const searchAfter500ms=()=>{searchState.clearInputTimeout();if(searchState.input.value.length===0){searchState.hideResults()}else{searchState.timeout=setTimeout(search,500)}};searchState.input.onkeyup=searchAfter500ms;searchState.input.oninput=searchAfter500ms;document.getElementsByClassName("search-form")[0].onsubmit=onSearchSubmit;searchState.input.onchange=e=>{if(e.target!==document.activeElement){return}searchState.clearInputTimeout();setTimeout(search,0)};searchState.input.onpaste=searchState.input.onchange;searchState.outputElement().addEventListener("keydown",e=>{if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey){return}if(e.which===38){const previous=document.activeElement.previousElementSibling;if(previous){previous.focus()}else{searchState.focus()}e.preventDefault()}else if(e.which===40){const next=document.activeElement.nextElementSibling;if(next){next.focus()}const rect=document.activeElement.getBoundingClientRect();if(window.innerHeight-rect.bottom{if(e.which===40){focusSearchResult();e.preventDefault()}});searchState.input.addEventListener("focus",()=>{putBackSearch()});searchState.input.addEventListener("blur",()=>{searchState.input.placeholder=searchState.input.origPlaceholder});if(browserSupportsHistoryApi()){const previousTitle=document.title;window.addEventListener("popstate",e=>{const params=searchState.getQueryStringParams();document.title=previousTitle;currentResults=null;if(params.search&¶ms.search.length>0){searchState.input.value=params.search;e.preventDefault();search()}else{searchState.input.value="";searchState.hideResults()}})}window.onpageshow=()=>{const qSearch=searchState.getQueryStringParams().search;if(searchState.input.value===""&&qSearch){searchState.input.value=qSearch}search()}}function updateCrate(ev){if(ev.target.value==="all crates"){const query=searchState.input.value.trim();updateSearchHistory(buildUrl(query,null))}currentResults=null;search(true)}buildIndex(rawSearchIndex);if(typeof window!=="undefined"){registerSearchEvents();if(window.searchState.getQueryStringParams().search){search()}}if(typeof exports!=="undefined"){exports.initSearch=initSearch;exports.execQuery=execQuery;exports.parseQuery=parseQuery}}if(typeof window!=="undefined"){window.initSearch=initSearch;if(window.searchIndex!==undefined){initSearch(window.searchIndex)}}else{initSearch(new Map())}})() \ No newline at end of file +
    `);const description=document.createElement("div");description.className="desc";description.insertAdjacentHTML("beforeend",item.desc);link.appendChild(description);output.appendChild(link)}}else if(query.error===null){output.className="search-failed"+extraClass;output.innerHTML="No results :(
    "+"Try on DuckDuckGo?

    "+"Or try looking in one of these:"}return[output,array.length]}function makeTabHeader(tabNb,text,nbElems){const fmtNbElems=nbElems<10?`\u{2007}(${nbElems})\u{2007}\u{2007}`:nbElems<100?`\u{2007}(${nbElems})\u{2007}`:`\u{2007}(${nbElems})`;if(searchState.currentTab===tabNb){return""}return""}async function showResults(results,go_to_first,filterCrates){const search=searchState.outputElement();if(go_to_first||(results.others.length===1&&getSettingValue("go-to-only-result")==="true")){window.onunload=()=>{};searchState.removeQueryParameters();const elem=document.createElement("a");elem.href=results.others[0].href;removeClass(elem,"active");document.body.appendChild(elem);elem.click();return}if(results.query===undefined){results.query=parseQuery(searchState.input.value)}currentResults=results.query.userQuery;const[ret_others,ret_in_args,ret_returned]=await Promise.all([addTab(results.others,results.query,true),addTab(results.in_args,results.query,false),addTab(results.returned,results.query,false),]);let currentTab=searchState.currentTab;if((currentTab===0&&ret_others[1]===0)||(currentTab===1&&ret_in_args[1]===0)||(currentTab===2&&ret_returned[1]===0)){if(ret_others[1]!==0){currentTab=0}else if(ret_in_args[1]!==0){currentTab=1}else if(ret_returned[1]!==0){currentTab=2}}let crates="";if(rawSearchIndex.size>1){crates=" in 
    "}let output=`

    Results${crates}

    `;if(results.query.error!==null){const error=results.query.error;error.forEach((value,index)=>{value=value.split("<").join("<").split(">").join(">");if(index%2!==0){error[index]=`${value.replaceAll(" ", " ")}`}else{error[index]=value}});output+=`

    Query parser error: "${error.join("")}".

    `;output+="
    "+makeTabHeader(0,"In Names",ret_others[1])+"
    ";currentTab=0}else if(results.query.foundElems<=1&&results.query.returned.length===0){output+="
    "+makeTabHeader(0,"In Names",ret_others[1])+makeTabHeader(1,"In Parameters",ret_in_args[1])+makeTabHeader(2,"In Return Types",ret_returned[1])+"
    "}else{const signatureTabTitle=results.query.elems.length===0?"In Function Return Types":results.query.returned.length===0?"In Function Parameters":"In Function Signatures";output+="
    "+makeTabHeader(0,signatureTabTitle,ret_others[1])+"
    ";currentTab=0}if(results.query.correction!==null){const orig=results.query.returned.length>0?results.query.returned[0].name:results.query.elems[0].name;output+="

    "+`Type "${orig}" not found. `+"Showing results for closest type name "+`"${results.query.correction}" instead.

    `}if(results.query.proposeCorrectionFrom!==null){const orig=results.query.proposeCorrectionFrom;const targ=results.query.proposeCorrectionTo;output+="

    "+`Type "${orig}" not found and used as generic parameter. `+`Consider searching for "${targ}" instead.

    `}const resultsElem=document.createElement("div");resultsElem.id="results";resultsElem.appendChild(ret_others[0]);resultsElem.appendChild(ret_in_args[0]);resultsElem.appendChild(ret_returned[0]);search.innerHTML=output;const crateSearch=document.getElementById("crate-search");if(crateSearch){crateSearch.addEventListener("input",updateCrate)}search.appendChild(resultsElem);searchState.showResults(search);const elems=document.getElementById("search-tabs").childNodes;searchState.focusedByTab=[];let i=0;for(const elem of elems){const j=i;elem.onclick=()=>printTab(j);searchState.focusedByTab.push(null);i+=1}printTab(currentTab)}function updateSearchHistory(url){if(!browserSupportsHistoryApi()){return}const params=searchState.getQueryStringParams();if(!history.state&&!params.search){history.pushState(null,"",url)}else{history.replaceState(null,"",url)}}async function search(forced){const query=parseQuery(searchState.input.value.trim());let filterCrates=getFilterCrates();if(!forced&&query.userQuery===currentResults){if(query.userQuery.length>0){putBackSearch()}return}searchState.setLoadingSearch();const params=searchState.getQueryStringParams();if(filterCrates===null&¶ms["filter-crate"]!==undefined){filterCrates=params["filter-crate"]}searchState.title="\""+query.original+"\" Search - Rust";updateSearchHistory(buildUrl(query.original,filterCrates));await showResults(await execQuery(query,filterCrates,window.currentCrate),params.go_to_first,filterCrates)}function buildItemSearchTypeAll(types,lowercasePaths){return types.length>0?types.map(type=>buildItemSearchType(type,lowercasePaths)):EMPTY_GENERICS_ARRAY}const EMPTY_BINDINGS_MAP=new Map();const EMPTY_GENERICS_ARRAY=[];let TYPES_POOL=new Map();function buildItemSearchType(type,lowercasePaths,isAssocType){const PATH_INDEX_DATA=0;const GENERICS_DATA=1;const BINDINGS_DATA=2;let pathIndex,generics,bindings;if(typeof type==="number"){pathIndex=type;generics=EMPTY_GENERICS_ARRAY;bindings=EMPTY_BINDINGS_MAP}else{pathIndex=type[PATH_INDEX_DATA];generics=buildItemSearchTypeAll(type[GENERICS_DATA],lowercasePaths,);if(type.length>BINDINGS_DATA&&type[BINDINGS_DATA].length>0){bindings=new Map(type[BINDINGS_DATA].map(binding=>{const[assocType,constraints]=binding;return[buildItemSearchType(assocType,lowercasePaths,true).id,buildItemSearchTypeAll(constraints,lowercasePaths),]}))}else{bindings=EMPTY_BINDINGS_MAP}}let result;if(pathIndex<0){result={id:pathIndex,ty:TY_GENERIC,path:null,exactPath:null,generics,bindings,}}else if(pathIndex===0){result={id:null,ty:null,path:null,exactPath:null,generics,bindings,}}else{const item=lowercasePaths[pathIndex-1];result={id:buildTypeMapIndex(item.name,isAssocType),ty:item.ty,path:item.path,exactPath:item.exactPath,generics,bindings,}}const cr=TYPES_POOL.get(result.id);if(cr){if(cr.generics.length===result.generics.length&&cr.generics!==result.generics&&cr.generics.every((x,i)=>result.generics[i]===x)){result.generics=cr.generics}if(cr.bindings.size===result.bindings.size&&cr.bindings!==result.bindings){let ok=true;for(const[k,v]of cr.bindings.entries()){const v2=result.bindings.get(v);if(!v2){ok=false;break}if(v!==v2&&v.length===v2.length&&v.every((x,i)=>v2[i]===x)){result.bindings.set(k,v)}else if(v!==v2){ok=false;break}}if(ok){result.bindings=cr.bindings}}if(cr.ty===result.ty&&cr.path===result.path&&cr.bindings===result.bindings&&cr.generics===result.generics&&cr.ty===result.ty){return cr}}TYPES_POOL.set(result.id,result);return result}function buildFunctionSearchTypeCallback(lowercasePaths){return functionSearchType=>{if(functionSearchType===0){return null}const INPUTS_DATA=0;const OUTPUT_DATA=1;let inputs,output;if(typeof functionSearchType[INPUTS_DATA]==="number"){inputs=[buildItemSearchType(functionSearchType[INPUTS_DATA],lowercasePaths)]}else{inputs=buildItemSearchTypeAll(functionSearchType[INPUTS_DATA],lowercasePaths,)}if(functionSearchType.length>1){if(typeof functionSearchType[OUTPUT_DATA]==="number"){output=[buildItemSearchType(functionSearchType[OUTPUT_DATA],lowercasePaths)]}else{output=buildItemSearchTypeAll(functionSearchType[OUTPUT_DATA],lowercasePaths,)}}else{output=[]}const where_clause=[];const l=functionSearchType.length;for(let i=2;i{k=(~~k+0x7ed55d16)+(k<<12);k=(k ^ 0xc761c23c)^(k>>>19);k=(~~k+0x165667b1)+(k<<5);k=(~~k+0xd3a2646c)^(k<<9);k=(~~k+0xfd7046c5)+(k<<3);return(k ^ 0xb55a4f09)^(k>>>16)};const hashint2=k=>{k=~k+(k<<15);k ^=k>>>12;k+=k<<2;k ^=k>>>4;k=Math.imul(k,2057);return k ^(k>>16)};if(input!==null){const h0a=hashint1(input);const h0b=hashint2(input);const h1a=~~(h0a+Math.imul(h0b,2));const h1b=~~(h0a+Math.imul(h0b,3));const h2a=~~(h0a+Math.imul(h0b,4));const h2b=~~(h0a+Math.imul(h0b,5));output[0]|=(1<<(h0a%32))|(1<<(h1b%32));output[1]|=(1<<(h1a%32))|(1<<(h2b%32));output[2]|=(1<<(h2a%32))|(1<<(h0b%32));fps.add(input)}for(const g of type.generics){buildFunctionTypeFingerprint(g,output,fps)}const fb={id:null,ty:0,generics:EMPTY_GENERICS_ARRAY,bindings:EMPTY_BINDINGS_MAP,};for(const[k,v]of type.bindings.entries()){fb.id=k;fb.generics=v;buildFunctionTypeFingerprint(fb,output,fps)}output[3]=fps.size}function compareTypeFingerprints(fullId,queryFingerprint){const fh0=functionTypeFingerprint[fullId*4];const fh1=functionTypeFingerprint[(fullId*4)+1];const fh2=functionTypeFingerprint[(fullId*4)+2];const[qh0,qh1,qh2]=queryFingerprint;const[in0,in1,in2]=[fh0&qh0,fh1&qh1,fh2&qh2];if((in0 ^ qh0)||(in1 ^ qh1)||(in2 ^ qh2)){return null}return functionTypeFingerprint[(fullId*4)+3]}class VlqHexDecoder{constructor(string,cons){this.string=string;this.cons=cons;this.offset=0;this.backrefQueue=[]}decodeList(){let c=this.string.charCodeAt(this.offset);const ret=[];while(c!==125){ret.push(this.decode());c=this.string.charCodeAt(this.offset)}this.offset+=1;return ret}decode(){let n=0;let c=this.string.charCodeAt(this.offset);if(c===123){this.offset+=1;return this.decodeList()}while(c<96){n=(n<<4)|(c&0xF);this.offset+=1;c=this.string.charCodeAt(this.offset)}n=(n<<4)|(c&0xF);const[sign,value]=[n&1,n>>1];this.offset+=1;return sign?-value:value}next(){const c=this.string.charCodeAt(this.offset);if(c>=48&&c<64){this.offset+=1;return this.backrefQueue[c-48]}if(c===96){this.offset+=1;return this.cons(0)}const result=this.cons(this.decode());this.backrefQueue.unshift(result);if(this.backrefQueue.length>16){this.backrefQueue.pop()}return result}}class RoaringBitmap{constructor(str){const strdecoded=atob(str);const u8array=new Uint8Array(strdecoded.length);for(let j=0;j=4){offsets=[];for(let j=0;j>3]&(1<<(j&0x7))){const runcount=(u8array[i]|(u8array[i+1]<<8));i+=2;this.containers.push(new RoaringBitmapRun(runcount,u8array.slice(i,i+(runcount*4)),));i+=runcount*4}else if(this.cardinalities[j]>=4096){this.containers.push(new RoaringBitmapBits(u8array.slice(i,i+8192)));i+=8192}else{const end=this.cardinalities[j]*2;this.containers.push(new RoaringBitmapArray(this.cardinalities[j],u8array.slice(i,i+end),));i+=end}}}contains(keyvalue){const key=keyvalue>>16;const value=keyvalue&0xFFFF;for(let i=0;i=start&&value<=(start+lenm1)){return true}}return false}}class RoaringBitmapArray{constructor(cardinality,array){this.cardinality=cardinality;this.array=array}contains(value){const l=this.cardinality*2;for(let i=0;i>3]&(1<<(value&7)))}}function buildIndex(rawSearchIndex){searchIndex=[];searchIndexDeprecated=new Map();searchIndexEmptyDesc=new Map();let currentIndex=0;let id=0;for(const crate of rawSearchIndex.values()){id+=crate.t.length+1}functionTypeFingerprint=new Uint32Array((id+1)*4);id=0;for(const[crate,crateCorpus]of rawSearchIndex){const itemDescShardDecoder=new VlqHexDecoder(crateCorpus.D,noop=>noop);let descShard={crate,shard:0,start:0,len:itemDescShardDecoder.next(),promise:null,resolve:null,};const descShardList=[descShard];searchIndexDeprecated.set(crate,new RoaringBitmap(crateCorpus.c));searchIndexEmptyDesc.set(crate,new RoaringBitmap(crateCorpus.e));let descIndex=0;const crateRow={crate,ty:3,name:crate,path:"",descShard,descIndex,exactPath:"",desc:crateCorpus.doc,parent:undefined,type:null,id,word:crate,normalizedName:crate.indexOf("_")===-1?crate:crate.replace(/_/g,""),bitIndex:0,implDisambiguator:null,};id+=1;searchIndex.push(crateRow);currentIndex+=1;if(!searchIndexEmptyDesc.get(crate).contains(0)){descIndex+=1}const itemTypes=crateCorpus.t;const itemNames=crateCorpus.n;const itemPaths=new Map(crateCorpus.q);const itemReexports=new Map(crateCorpus.r);const itemParentIdxs=crateCorpus.i;const implDisambiguator=new Map(crateCorpus.b);const paths=crateCorpus.p;const aliases=crateCorpus.a;const lowercasePaths=[];const itemFunctionDecoder=new VlqHexDecoder(crateCorpus.f,buildFunctionSearchTypeCallback(lowercasePaths),);let len=paths.length;let lastPath=itemPaths.get(0);for(let i=0;i2){path=itemPaths.has(elem[2])?itemPaths.get(elem[2]):lastPath;lastPath=path}const exactPath=elem.length>3?itemPaths.get(elem[3]):path;lowercasePaths.push({ty,name:name.toLowerCase(),path,exactPath});paths[i]={ty,name,path,exactPath}}lastPath="";len=itemTypes.length;for(let i=0;i=descShard.len&&!searchIndexEmptyDesc.get(crate).contains(bitIndex)){descShard={crate,shard:descShard.shard+1,start:descShard.start+descShard.len,len:itemDescShardDecoder.next(),promise:null,resolve:null,};descIndex=0;descShardList.push(descShard)}let word="";if(typeof itemNames[i]==="string"){word=itemNames[i].toLowerCase()}const path=itemPaths.has(i)?itemPaths.get(i):lastPath;const type=itemFunctionDecoder.next();if(type!==null){if(type){const fp=functionTypeFingerprint.subarray(id*4,(id+1)*4);const fps=new Set();for(const t of type.inputs){buildFunctionTypeFingerprint(t,fp,fps)}for(const t of type.output){buildFunctionTypeFingerprint(t,fp,fps)}for(const w of type.where_clause){for(const t of w){buildFunctionTypeFingerprint(t,fp,fps)}}}}const row={crate,ty:itemTypes.charCodeAt(i)-65,name:itemNames[i],path,descShard,descIndex,exactPath:itemReexports.has(i)?itemPaths.get(itemReexports.get(i)):path,parent:itemParentIdxs[i]>0?paths[itemParentIdxs[i]-1]:undefined,type,id,word,normalizedName:word.indexOf("_")===-1?word:word.replace(/_/g,""),bitIndex,implDisambiguator:implDisambiguator.has(i)?implDisambiguator.get(i):null,};id+=1;searchIndex.push(row);lastPath=row.path;if(!searchIndexEmptyDesc.get(crate).contains(bitIndex)){descIndex+=1}}if(aliases){const currentCrateAliases=new Map();ALIASES.set(crate,currentCrateAliases);for(const alias_name in aliases){if(!Object.prototype.hasOwnProperty.call(aliases,alias_name)){continue}let currentNameAliases;if(currentCrateAliases.has(alias_name)){currentNameAliases=currentCrateAliases.get(alias_name)}else{currentNameAliases=[];currentCrateAliases.set(alias_name,currentNameAliases)}for(const local_alias of aliases[alias_name]){currentNameAliases.push(local_alias+currentIndex)}}}currentIndex+=itemTypes.length;searchState.descShards.set(crate,descShardList)}TYPES_POOL=new Map()}function onSearchSubmit(e){e.preventDefault();searchState.clearInputTimeout();search()}function putBackSearch(){const search_input=searchState.input;if(!searchState.input){return}if(search_input.value!==""&&!searchState.isDisplayed()){searchState.showResults();if(browserSupportsHistoryApi()){history.replaceState(null,"",buildUrl(search_input.value,getFilterCrates()))}document.title=searchState.title}}function registerSearchEvents(){const params=searchState.getQueryStringParams();if(searchState.input.value===""){searchState.input.value=params.search||""}const searchAfter500ms=()=>{searchState.clearInputTimeout();if(searchState.input.value.length===0){searchState.hideResults()}else{searchState.timeout=setTimeout(search,500)}};searchState.input.onkeyup=searchAfter500ms;searchState.input.oninput=searchAfter500ms;document.getElementsByClassName("search-form")[0].onsubmit=onSearchSubmit;searchState.input.onchange=e=>{if(e.target!==document.activeElement){return}searchState.clearInputTimeout();setTimeout(search,0)};searchState.input.onpaste=searchState.input.onchange;searchState.outputElement().addEventListener("keydown",e=>{if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey){return}if(e.which===38){const previous=document.activeElement.previousElementSibling;if(previous){previous.focus()}else{searchState.focus()}e.preventDefault()}else if(e.which===40){const next=document.activeElement.nextElementSibling;if(next){next.focus()}const rect=document.activeElement.getBoundingClientRect();if(window.innerHeight-rect.bottom{if(e.which===40){focusSearchResult();e.preventDefault()}});searchState.input.addEventListener("focus",()=>{putBackSearch()});searchState.input.addEventListener("blur",()=>{searchState.input.placeholder=searchState.input.origPlaceholder});if(browserSupportsHistoryApi()){const previousTitle=document.title;window.addEventListener("popstate",e=>{const params=searchState.getQueryStringParams();document.title=previousTitle;currentResults=null;if(params.search&¶ms.search.length>0){searchState.input.value=params.search;e.preventDefault();search()}else{searchState.input.value="";searchState.hideResults()}})}window.onpageshow=()=>{const qSearch=searchState.getQueryStringParams().search;if(searchState.input.value===""&&qSearch){searchState.input.value=qSearch}search()}}function updateCrate(ev){if(ev.target.value==="all crates"){const query=searchState.input.value.trim();updateSearchHistory(buildUrl(query,null))}currentResults=null;search(true)}buildIndex(rawSearchIndex);if(typeof window!=="undefined"){registerSearchEvents();if(window.searchState.getQueryStringParams().search){search()}}if(typeof exports!=="undefined"){exports.initSearch=initSearch;exports.execQuery=execQuery;exports.parseQuery=parseQuery}}if(typeof window!=="undefined"){window.initSearch=initSearch;if(window.searchIndex!==undefined){initSearch(window.searchIndex)}}else{initSearch(new Map())}})() \ No newline at end of file diff --git a/trait.impl/actix_web/response/responder/trait.Responder.js b/trait.impl/actix_web/response/responder/trait.Responder.js index 7433f127d..9142381d7 100644 --- a/trait.impl/actix_web/response/responder/trait.Responder.js +++ b/trait.impl/actix_web/response/responder/trait.Responder.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"paperclip_core":[["impl Responder for HttpResponseWrapper"],["impl Responder for NoContent"],["impl<T> Responder for AcceptedJson<T>
    where\n T: Serialize + Apiv2Schema,
    "],["impl<T> Responder for CreatedJson<T>
    where\n T: Serialize + Apiv2Schema,
    "],["impl<T: Responder> Responder for ResponderWrapper<T>"],["impl<T: Responder, H> Responder for ResponseWrapper<T, H>"]] +"paperclip_core":[["impl Responder for HttpResponseWrapper"],["impl Responder for NoContent"],["impl<T> Responder for AcceptedJson<T>
    where\n T: Serialize + Apiv2Schema,
    "],["impl<T> Responder for CreatedJson<T>
    where\n T: Serialize + Apiv2Schema,
    "],["impl<T: Responder> Responder for ResponderWrapper<T>"],["impl<T: Responder, H> Responder for ResponseWrapper<T, H>"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/core/convert/trait.From.js b/trait.impl/core/convert/trait.From.js index ec63b65c0..71b1ac9c4 100644 --- a/trait.impl/core/convert/trait.From.js +++ b/trait.impl/core/convert/trait.From.js @@ -1,5 +1,5 @@ (function() {var implementors = { -"paperclip":[["impl From<ValidationError> for PaperClipError"],["impl From<Error> for PaperClipError"],["impl From<Error> for PaperClipError"],["impl From<Error> for PaperClipError"],["impl From<Error> for PaperClipError"],["impl<S> From<EmitterState> for DefaultEmitter<S>"]], +"paperclip":[["impl From<ValidationError> for PaperClipError"],["impl From<Error> for PaperClipError"],["impl From<Error> for PaperClipError"],["impl From<Error> for PaperClipError"],["impl From<Error> for PaperClipError"],["impl<S> From<EmitterState> for DefaultEmitter<S>"]], "paperclip_actix":[["impl<'a> From<&'a mut ServiceConfig> for ServiceConfig<'a>"]], "paperclip_core":[["impl From<&Method> for HttpMethod"],["impl From<DataTypeFormat> for DataType"],["impl From<Api<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>, DefaultSchemaRaw>> for OpenAPI"],["impl From<Contact> for Contact"],["impl From<DefaultSchemaRaw> for ReferenceOr<Box<Schema>>"],["impl From<DefaultSchemaRaw> for ReferenceOr<Schema>"],["impl From<ExternalDocs> for ExternalDocumentation"],["impl From<Header> for Header"],["impl From<Info> for Info"],["impl From<Items> for ReferenceOr<Box<Schema>>"],["impl From<License> for License"],["impl From<Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>> for Operation"],["impl From<Parameter<DefaultSchemaRaw>> for Either<Parameter, Either<RequestBody, Option<Schema>>>"],["impl From<PathItem<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>> for PathItem"],["impl From<Response<DefaultSchemaRaw>> for ReferenceOr<Response>"],["impl From<SecurityScheme> for SecurityScheme"],["impl From<Tag> for Tag"],["impl<S> From<S> for Resolvable<S>"],["impl<T> From<&Reference> for ReferenceOr<T>"],["impl<T> From<Reference> for ReferenceOr<T>"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/core/fmt/trait.Debug.js b/trait.impl/core/fmt/trait.Debug.js index be87954c5..56ecc18ee 100644 --- a/trait.impl/core/fmt/trait.Debug.js +++ b/trait.impl/core/fmt/trait.Debug.js @@ -1,4 +1,4 @@ (function() {var implementors = { "paperclip":[["impl Debug for PaperClipError"],["impl Debug for EmitMode"],["impl Debug for EmittedUnit"],["impl Debug for ObjectContainer"],["impl Debug for ApiObject"],["impl Debug for ObjectField"],["impl Debug for ObjectVariant"],["impl Debug for OpRequirement"],["impl Debug for Parameter"],["impl Debug for PathOps"],["impl Debug for CrateMeta"],["impl Debug for EmitterState"],["impl<S: Debug, H: Debug> Debug for Response<S, H>"]], -"paperclip_core":[["impl Debug for ValidationError"],["impl Debug for CollectionFormat"],["impl Debug for DataType"],["impl Debug for DataTypeFormat"],["impl Debug for HttpMethod"],["impl Debug for OperationProtocol"],["impl Debug for ParameterIn"],["impl Debug for SpecFormat"],["impl Debug for Version"],["impl Debug for Coder"],["impl Debug for Coders"],["impl Debug for Contact"],["impl Debug for DefaultSchema"],["impl Debug for DefaultSchemaRaw"],["impl Debug for ExternalDocs"],["impl Debug for Header"],["impl Debug for Info"],["impl Debug for Items"],["impl Debug for License"],["impl Debug for MediaRange"],["impl Debug for Reference"],["impl Debug for SecurityScheme"],["impl Debug for Tag"],["impl Debug for NoContent"],["impl<L: Debug, R: Debug> Debug for Either<L, R>"],["impl<P: Debug, R: Debug> Debug for Operation<P, R>"],["impl<P: Debug, R: Debug> Debug for PathItem<P, R>"],["impl<P: Debug, R: Debug, S: Debug> Debug for Api<P, R, S>"],["impl<S: Debug> Debug for Resolvable<S>"],["impl<S: Debug> Debug for Parameter<S>"],["impl<S: Debug> Debug for Response<S>"],["impl<T> Debug for AcceptedJson<T>
    where\n T: Debug + Serialize + Apiv2Schema,
    "],["impl<T> Debug for CreatedJson<T>
    where\n T: Debug + Serialize + Apiv2Schema,
    "]] +"paperclip_core":[["impl Debug for ValidationError"],["impl Debug for CollectionFormat"],["impl Debug for DataType"],["impl Debug for DataTypeFormat"],["impl Debug for HttpMethod"],["impl Debug for OperationProtocol"],["impl Debug for ParameterIn"],["impl Debug for SpecFormat"],["impl Debug for Version"],["impl Debug for Coder"],["impl Debug for Coders"],["impl Debug for Contact"],["impl Debug for DefaultSchema"],["impl Debug for DefaultSchemaRaw"],["impl Debug for ExternalDocs"],["impl Debug for Header"],["impl Debug for Info"],["impl Debug for Items"],["impl Debug for License"],["impl Debug for MediaRange"],["impl Debug for Reference"],["impl Debug for SecurityScheme"],["impl Debug for Tag"],["impl Debug for NoContent"],["impl<L: Debug, R: Debug> Debug for Either<L, R>"],["impl<P: Debug, R: Debug> Debug for Operation<P, R>"],["impl<P: Debug, R: Debug> Debug for PathItem<P, R>"],["impl<P: Debug, R: Debug, S: Debug> Debug for Api<P, R, S>"],["impl<S: Debug> Debug for Resolvable<S>"],["impl<S: Debug> Debug for Parameter<S>"],["impl<S: Debug> Debug for Response<S>"],["impl<T> Debug for AcceptedJson<T>
    where\n T: Debug + Serialize + Apiv2Schema,
    "],["impl<T> Debug for CreatedJson<T>
    where\n T: Debug + Serialize + Apiv2Schema,
    "]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/core/fmt/trait.Display.js b/trait.impl/core/fmt/trait.Display.js index 9d0905d0b..e90e690c7 100644 --- a/trait.impl/core/fmt/trait.Display.js +++ b/trait.impl/core/fmt/trait.Display.js @@ -1,4 +1,4 @@ (function() {var implementors = { "paperclip":[["impl Display for PaperClipError"],["impl Display for ApiObject"],["impl<'a> Display for ApiObjectImpl<'a>"],["impl<'a, 'b> Display for ApiObjectBuilderImpl<'a, 'b>"]], -"paperclip_core":[["impl Display for ValidationError"],["impl Display for HttpMethod"],["impl Display for NoContent"],["impl<T> Display for AcceptedJson<T>
    where\n T: Display + Serialize + Apiv2Schema,
    "],["impl<T> Display for CreatedJson<T>
    where\n T: Display + Serialize + Apiv2Schema,
    "]] +"paperclip_core":[["impl Display for ValidationError"],["impl Display for HttpMethod"],["impl Display for NoContent"],["impl<T> Display for AcceptedJson<T>
    where\n T: Display + Serialize + Apiv2Schema,
    "],["impl<T> Display for CreatedJson<T>
    where\n T: Display + Serialize + Apiv2Schema,
    "]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/serde/de/trait.Deserialize.js b/trait.impl/serde/de/trait.Deserialize.js index 6588155e0..23a9704b2 100644 --- a/trait.impl/serde/de/trait.Deserialize.js +++ b/trait.impl/serde/de/trait.Deserialize.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"paperclip_core":[["impl<'de> Deserialize<'de> for CollectionFormat"],["impl<'de> Deserialize<'de> for DataType"],["impl<'de> Deserialize<'de> for DataTypeFormat"],["impl<'de> Deserialize<'de> for HttpMethod"],["impl<'de> Deserialize<'de> for OperationProtocol"],["impl<'de> Deserialize<'de> for ParameterIn"],["impl<'de> Deserialize<'de> for Version"],["impl<'de> Deserialize<'de> for Coder"],["impl<'de> Deserialize<'de> for Coders"],["impl<'de> Deserialize<'de> for Contact"],["impl<'de> Deserialize<'de> for DefaultSchema"],["impl<'de> Deserialize<'de> for DefaultSchemaRaw"],["impl<'de> Deserialize<'de> for ExternalDocs"],["impl<'de> Deserialize<'de> for Header"],["impl<'de> Deserialize<'de> for Info"],["impl<'de> Deserialize<'de> for Items"],["impl<'de> Deserialize<'de> for License"],["impl<'de> Deserialize<'de> for MediaRange"],["impl<'de> Deserialize<'de> for Reference"],["impl<'de> Deserialize<'de> for SecurityScheme"],["impl<'de> Deserialize<'de> for Tag"],["impl<'de, L, R> Deserialize<'de> for Either<L, R>
    where\n L: Deserialize<'de>,\n R: Deserialize<'de>,
    "],["impl<'de, P, R> Deserialize<'de> for Operation<P, R>
    where\n P: Deserialize<'de>,\n R: Deserialize<'de>,
    "],["impl<'de, P, R> Deserialize<'de> for PathItem<P, R>
    where\n P: Deserialize<'de>,\n R: Deserialize<'de>,
    "],["impl<'de, P, R, S> Deserialize<'de> for Api<P, R, S>
    where\n P: Deserialize<'de>,\n R: Deserialize<'de>,\n S: Deserialize<'de>,
    "],["impl<'de, S> Deserialize<'de> for Resolvable<S>
    where\n S: Deserialize<'de>,
    "],["impl<'de, S> Deserialize<'de> for Parameter<S>
    where\n S: Deserialize<'de>,
    "],["impl<'de, S> Deserialize<'de> for Response<S>
    where\n S: Deserialize<'de>,
    "]] +"paperclip_core":[["impl<'de> Deserialize<'de> for CollectionFormat"],["impl<'de> Deserialize<'de> for DataType"],["impl<'de> Deserialize<'de> for DataTypeFormat"],["impl<'de> Deserialize<'de> for HttpMethod"],["impl<'de> Deserialize<'de> for OperationProtocol"],["impl<'de> Deserialize<'de> for ParameterIn"],["impl<'de> Deserialize<'de> for Version"],["impl<'de> Deserialize<'de> for Coder"],["impl<'de> Deserialize<'de> for Coders"],["impl<'de> Deserialize<'de> for Contact"],["impl<'de> Deserialize<'de> for DefaultSchema"],["impl<'de> Deserialize<'de> for DefaultSchemaRaw"],["impl<'de> Deserialize<'de> for ExternalDocs"],["impl<'de> Deserialize<'de> for Header"],["impl<'de> Deserialize<'de> for Info"],["impl<'de> Deserialize<'de> for Items"],["impl<'de> Deserialize<'de> for License"],["impl<'de> Deserialize<'de> for MediaRange"],["impl<'de> Deserialize<'de> for Reference"],["impl<'de> Deserialize<'de> for SecurityScheme"],["impl<'de> Deserialize<'de> for Tag"],["impl<'de, L, R> Deserialize<'de> for Either<L, R>
    where\n L: Deserialize<'de>,\n R: Deserialize<'de>,
    "],["impl<'de, P, R> Deserialize<'de> for Operation<P, R>
    where\n P: Deserialize<'de>,\n R: Deserialize<'de>,
    "],["impl<'de, P, R> Deserialize<'de> for PathItem<P, R>
    where\n P: Deserialize<'de>,\n R: Deserialize<'de>,
    "],["impl<'de, P, R, S> Deserialize<'de> for Api<P, R, S>
    where\n P: Deserialize<'de>,\n R: Deserialize<'de>,\n S: Deserialize<'de>,
    "],["impl<'de, S> Deserialize<'de> for Resolvable<S>
    where\n S: Deserialize<'de>,
    "],["impl<'de, S> Deserialize<'de> for Parameter<S>
    where\n S: Deserialize<'de>,
    "],["impl<'de, S> Deserialize<'de> for Response<S>
    where\n S: Deserialize<'de>,
    "]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/serde/ser/trait.Serialize.js b/trait.impl/serde/ser/trait.Serialize.js index 56037790f..c1631a653 100644 --- a/trait.impl/serde/ser/trait.Serialize.js +++ b/trait.impl/serde/ser/trait.Serialize.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"paperclip_core":[["impl Serialize for CollectionFormat"],["impl Serialize for DataType"],["impl Serialize for DataTypeFormat"],["impl Serialize for HttpMethod"],["impl Serialize for OperationProtocol"],["impl Serialize for ParameterIn"],["impl Serialize for Version"],["impl Serialize for Coder"],["impl Serialize for Coders"],["impl Serialize for Contact"],["impl Serialize for DefaultSchema"],["impl Serialize for DefaultSchemaRaw"],["impl Serialize for ExternalDocs"],["impl Serialize for Header"],["impl Serialize for Info"],["impl Serialize for Items"],["impl Serialize for License"],["impl Serialize for MediaRange"],["impl Serialize for Reference"],["impl Serialize for SecurityScheme"],["impl Serialize for Tag"],["impl<L, R> Serialize for Either<L, R>
    where\n L: Serialize,\n R: Serialize,
    "],["impl<P, R> Serialize for Operation<P, R>
    where\n P: Serialize,\n R: Serialize,
    "],["impl<P, R> Serialize for PathItem<P, R>
    where\n P: Serialize,\n R: Serialize,
    "],["impl<P, R, S> Serialize for Api<P, R, S>
    where\n P: Serialize,\n R: Serialize,\n S: Serialize,
    "],["impl<S> Serialize for Parameter<S>
    where\n S: Serialize,
    "],["impl<S> Serialize for Response<S>
    where\n S: Serialize,
    "],["impl<T> Serialize for Resolvable<T>
    where\n T: Serialize,
    "]] +"paperclip_core":[["impl Serialize for CollectionFormat"],["impl Serialize for DataType"],["impl Serialize for DataTypeFormat"],["impl Serialize for HttpMethod"],["impl Serialize for OperationProtocol"],["impl Serialize for ParameterIn"],["impl Serialize for Version"],["impl Serialize for Coder"],["impl Serialize for Coders"],["impl Serialize for Contact"],["impl Serialize for DefaultSchema"],["impl Serialize for DefaultSchemaRaw"],["impl Serialize for ExternalDocs"],["impl Serialize for Header"],["impl Serialize for Info"],["impl Serialize for Items"],["impl Serialize for License"],["impl Serialize for MediaRange"],["impl Serialize for Reference"],["impl Serialize for SecurityScheme"],["impl Serialize for Tag"],["impl<L, R> Serialize for Either<L, R>
    where\n L: Serialize,\n R: Serialize,
    "],["impl<P, R> Serialize for Operation<P, R>
    where\n P: Serialize,\n R: Serialize,
    "],["impl<P, R> Serialize for PathItem<P, R>
    where\n P: Serialize,\n R: Serialize,
    "],["impl<P, R, S> Serialize for Api<P, R, S>
    where\n P: Serialize,\n R: Serialize,\n S: Serialize,
    "],["impl<S> Serialize for Parameter<S>
    where\n S: Serialize,
    "],["impl<S> Serialize for Response<S>
    where\n S: Serialize,
    "],["impl<T> Serialize for Resolvable<T>
    where\n T: Serialize,
    "]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/type.impl/alloc/sync/struct.Arc.js b/type.impl/alloc/sync/struct.Arc.js index 6b8bed95a..102902430 100644 --- a/type.impl/alloc/sync/struct.Arc.js +++ b/type.impl/alloc/sync/struct.Arc.js @@ -1,4 +1,4 @@ (function() {var type_impls = { -"paperclip":[["
    source§

    impl<T> Arc<T>
    where\n T: ?Sized,

    1.17.0 · source

    pub unsafe fn from_raw(ptr: *const T) -> Arc<T>

    Constructs an Arc<T> from a raw pointer.

    \n

    The raw pointer must have been previously returned by a call to\nArc<U>::into_raw with the following requirements:

    \n
      \n
    • If U is sized, it must have the same size and alignment as T. This\nis trivially true if U is T.
    • \n
    • If U is unsized, its data pointer must have the same size and\nalignment as T. This is trivially true if Arc<U> was constructed\nthrough Arc<T> and then converted to Arc<U> through an unsized\ncoercion.
    • \n
    \n

    Note that if U or U’s data pointer is not T but has the same size\nand alignment, this is basically like transmuting references of\ndifferent types. See mem::transmute for more information\non what restrictions apply in this case.

    \n

    The user of from_raw has to make sure a specific value of T is only\ndropped once.

    \n

    This function is unsafe because improper use may lead to memory unsafety,\neven if the returned Arc<T> is never accessed.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet x_ptr = Arc::into_raw(x);\n\nunsafe {\n    // Convert back to an `Arc` to prevent leak.\n    let x = Arc::from_raw(x_ptr);\n    assert_eq!(&*x, \"hello\");\n\n    // Further calls to `Arc::from_raw(x_ptr)` would be memory-unsafe.\n}\n\n// The memory was freed when `x` went out of scope above, so `x_ptr` is now dangling!
    \n

    Convert a slice back into its original array:

    \n\n
    use std::sync::Arc;\n\nlet x: Arc<[u32]> = Arc::new([1, 2, 3]);\nlet x_ptr: *const [u32] = Arc::into_raw(x);\n\nunsafe {\n    let x: Arc<[u32; 3]> = Arc::from_raw(x_ptr.cast::<[u32; 3]>());\n    assert_eq!(&*x, &[1, 2, 3]);\n}
    \n
    1.51.0 · source

    pub unsafe fn increment_strong_count(ptr: *const T)

    Increments the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

    \n
    §Safety
    \n

    The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) for the duration of this method.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count(ptr);\n\n    // This assertion is deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw(ptr);\n    assert_eq!(2, Arc::strong_count(&five));\n}
    \n
    1.51.0 · source

    pub unsafe fn decrement_strong_count(ptr: *const T)

    Decrements the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

    \n
    §Safety
    \n

    The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) when invoking this method. This method can be used to release the final\nArc and backing storage, but should not be called after the final Arc has been\nreleased.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count(ptr);\n\n    // Those assertions are deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw(ptr);\n    assert_eq!(2, Arc::strong_count(&five));\n    Arc::decrement_strong_count(ptr);\n    assert_eq!(1, Arc::strong_count(&five));\n}
    \n
    ",0,"paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<T> Arc<T>

    1.0.0 · source

    pub fn new(data: T) -> Arc<T>

    Constructs a new Arc<T>.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);
    \n
    1.60.0 · source

    pub fn new_cyclic<F>(data_fn: F) -> Arc<T>
    where\n F: FnOnce(&Weak<T>) -> T,

    Constructs a new Arc<T> while giving you a Weak<T> to the allocation,\nto allow you to construct a T which holds a weak pointer to itself.

    \n

    Generally, a structure circularly referencing itself, either directly or\nindirectly, should not hold a strong reference to itself to prevent a memory leak.\nUsing this function, you get access to the weak pointer during the\ninitialization of T, before the Arc<T> is created, such that you can\nclone and store it inside the T.

    \n

    new_cyclic first allocates the managed allocation for the Arc<T>,\nthen calls your closure, giving it a Weak<T> to this allocation,\nand only afterwards completes the construction of the Arc<T> by placing\nthe T returned from your closure into the allocation.

    \n

    Since the new Arc<T> is not fully-constructed until Arc<T>::new_cyclic\nreturns, calling upgrade on the weak reference inside your closure will\nfail and result in a None value.

    \n
    §Panics
    \n

    If data_fn panics, the panic is propagated to the caller, and the\ntemporary Weak<T> is dropped normally.

    \n
    §Example
    \n
    use std::sync::{Arc, Weak};\n\nstruct Gadget {\n    me: Weak<Gadget>,\n}\n\nimpl Gadget {\n    /// Construct a reference counted Gadget.\n    fn new() -> Arc<Self> {\n        // `me` is a `Weak<Gadget>` pointing at the new allocation of the\n        // `Arc` we're constructing.\n        Arc::new_cyclic(|me| {\n            // Create the actual struct here.\n            Gadget { me: me.clone() }\n        })\n    }\n\n    /// Return a reference counted pointer to Self.\n    fn me(&self) -> Arc<Self> {\n        self.me.upgrade().unwrap()\n    }\n}
    \n
    source

    pub fn new_uninit() -> Arc<MaybeUninit<T>>

    🔬This is a nightly-only experimental API. (new_uninit)

    Constructs a new Arc with uninitialized contents.

    \n
    §Examples
    \n
    #![feature(new_uninit)]\n#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut five = Arc::<u32>::new_uninit();\n\n// Deferred initialization:\nArc::get_mut(&mut five).unwrap().write(5);\n\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5)
    \n
    source

    pub fn new_zeroed() -> Arc<MaybeUninit<T>>

    🔬This is a nightly-only experimental API. (new_uninit)

    Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes.

    \n

    See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

    \n
    §Examples
    \n
    #![feature(new_uninit)]\n\nuse std::sync::Arc;\n\nlet zero = Arc::<u32>::new_zeroed();\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
    \n
    1.33.0 · source

    pub fn pin(data: T) -> Pin<Arc<T>>

    Constructs a new Pin<Arc<T>>. If T does not implement Unpin, then\ndata will be pinned in memory and unable to be moved.

    \n
    source

    pub fn try_pin(data: T) -> Result<Pin<Arc<T>>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Pin<Arc<T>>, return an error if allocation fails.

    \n
    source

    pub fn try_new(data: T) -> Result<Arc<T>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc<T>, returning an error if allocation fails.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\nuse std::sync::Arc;\n\nlet five = Arc::try_new(5)?;
    \n
    source

    pub fn try_new_uninit() -> Result<Arc<MaybeUninit<T>>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc with uninitialized contents, returning an error\nif allocation fails.

    \n
    §Examples
    \n
    #![feature(new_uninit, allocator_api)]\n#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut five = Arc::<u32>::try_new_uninit()?;\n\n// Deferred initialization:\nArc::get_mut(&mut five).unwrap().write(5);\n\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5);
    \n
    source

    pub fn try_new_zeroed() -> Result<Arc<MaybeUninit<T>>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, returning an error if allocation fails.

    \n

    See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

    \n
    §Examples
    \n
    #![feature(new_uninit, allocator_api)]\n\nuse std::sync::Arc;\n\nlet zero = Arc::<u32>::try_new_zeroed()?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
    \n
    ",0,"paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    1.17.0 · source

    pub fn into_raw(this: Arc<T, A>) -> *const T

    Consumes the Arc, returning the wrapped pointer.

    \n

    To avoid a memory leak the pointer must be converted back to an Arc using\nArc::from_raw.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet x_ptr = Arc::into_raw(x);\nassert_eq!(unsafe { &*x_ptr }, \"hello\");
    \n
    source

    pub fn into_raw_with_allocator(this: Arc<T, A>) -> (*const T, A)

    🔬This is a nightly-only experimental API. (allocator_api)

    Consumes the Arc, returning the wrapped pointer and allocator.

    \n

    To avoid a memory leak the pointer must be converted back to an Arc using\nArc::from_raw_in.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x = Arc::new_in(\"hello\".to_owned(), System);\nlet (ptr, alloc) = Arc::into_raw_with_allocator(x);\nassert_eq!(unsafe { &*ptr }, \"hello\");\nlet x = unsafe { Arc::from_raw_in(ptr, alloc) };\nassert_eq!(&*x, \"hello\");
    \n
    1.45.0 · source

    pub fn as_ptr(this: &Arc<T, A>) -> *const T

    Provides a raw pointer to the data.

    \n

    The counts are not affected in any way and the Arc is not consumed. The pointer is valid for\nas long as there are strong counts in the Arc.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet y = Arc::clone(&x);\nlet x_ptr = Arc::as_ptr(&x);\nassert_eq!(x_ptr, Arc::as_ptr(&y));\nassert_eq!(unsafe { &*x_ptr }, \"hello\");
    \n
    source

    pub unsafe fn from_raw_in(ptr: *const T, alloc: A) -> Arc<T, A>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs an Arc<T, A> from a raw pointer.

    \n

    The raw pointer must have been previously returned by a call to Arc<U, A>::into_raw with the following requirements:

    \n
      \n
    • If U is sized, it must have the same size and alignment as T. This\nis trivially true if U is T.
    • \n
    • If U is unsized, its data pointer must have the same size and\nalignment as T. This is trivially true if Arc<U> was constructed\nthrough Arc<T> and then converted to Arc<U> through an unsized\ncoercion.
    • \n
    \n

    Note that if U or U’s data pointer is not T but has the same size\nand alignment, this is basically like transmuting references of\ndifferent types. See mem::transmute for more information\non what restrictions apply in this case.

    \n

    The raw pointer must point to a block of memory allocated by alloc

    \n

    The user of from_raw has to make sure a specific value of T is only\ndropped once.

    \n

    This function is unsafe because improper use may lead to memory unsafety,\neven if the returned Arc<T> is never accessed.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x = Arc::new_in(\"hello\".to_owned(), System);\nlet x_ptr = Arc::into_raw(x);\n\nunsafe {\n    // Convert back to an `Arc` to prevent leak.\n    let x = Arc::from_raw_in(x_ptr, System);\n    assert_eq!(&*x, \"hello\");\n\n    // Further calls to `Arc::from_raw(x_ptr)` would be memory-unsafe.\n}\n\n// The memory was freed when `x` went out of scope above, so `x_ptr` is now dangling!
    \n

    Convert a slice back into its original array:

    \n\n
    #![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x: Arc<[u32], _> = Arc::new_in([1, 2, 3], System);\nlet x_ptr: *const [u32] = Arc::into_raw(x);\n\nunsafe {\n    let x: Arc<[u32; 3], _> = Arc::from_raw_in(x_ptr.cast::<[u32; 3]>(), System);\n    assert_eq!(&*x, &[1, 2, 3]);\n}
    \n
    1.4.0 · source

    pub fn downgrade(this: &Arc<T, A>) -> Weak<T, A>
    where\n A: Clone,

    Creates a new Weak pointer to this allocation.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nlet weak_five = Arc::downgrade(&five);
    \n
    1.15.0 · source

    pub fn weak_count(this: &Arc<T, A>) -> usize

    Gets the number of Weak pointers to this allocation.

    \n
    §Safety
    \n

    This method by itself is safe, but using it correctly requires extra care.\nAnother thread can change the weak count at any time,\nincluding potentially between calling this method and acting on the result.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet _weak_five = Arc::downgrade(&five);\n\n// This assertion is deterministic because we haven't shared\n// the `Arc` or `Weak` between threads.\nassert_eq!(1, Arc::weak_count(&five));
    \n
    1.15.0 · source

    pub fn strong_count(this: &Arc<T, A>) -> usize

    Gets the number of strong (Arc) pointers to this allocation.

    \n
    §Safety
    \n

    This method by itself is safe, but using it correctly requires extra care.\nAnother thread can change the strong count at any time,\nincluding potentially between calling this method and acting on the result.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet _also_five = Arc::clone(&five);\n\n// This assertion is deterministic because we haven't shared\n// the `Arc` between threads.\nassert_eq!(2, Arc::strong_count(&five));
    \n
    source

    pub unsafe fn increment_strong_count_in(ptr: *const T, alloc: A)
    where\n A: Clone,

    🔬This is a nightly-only experimental API. (allocator_api)

    Increments the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

    \n
    §Safety
    \n

    The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) for the duration of this method,, and ptr must point to a block of memory\nallocated by alloc.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count_in(ptr, System);\n\n    // This assertion is deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw_in(ptr, System);\n    assert_eq!(2, Arc::strong_count(&five));\n}
    \n
    source

    pub unsafe fn decrement_strong_count_in(ptr: *const T, alloc: A)

    🔬This is a nightly-only experimental API. (allocator_api)

    Decrements the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

    \n
    §Safety
    \n

    The pointer must have been obtained through Arc::into_raw, the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) when invoking this method, and ptr must point to a block of memory\nallocated by alloc. This method can be used to release the final\nArc and backing storage, but should not be called after the final Arc has been\nreleased.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count_in(ptr, System);\n\n    // Those assertions are deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw_in(ptr, System);\n    assert_eq!(2, Arc::strong_count(&five));\n    Arc::decrement_strong_count_in(ptr, System);\n    assert_eq!(1, Arc::strong_count(&five));\n}
    \n
    1.17.0 · source

    pub fn ptr_eq(this: &Arc<T, A>, other: &Arc<T, A>) -> bool

    Returns true if the two Arcs point to the same allocation in a vein similar to\nptr::eq. This function ignores the metadata of dyn Trait pointers.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet same_five = Arc::clone(&five);\nlet other_five = Arc::new(5);\n\nassert!(Arc::ptr_eq(&five, &same_five));\nassert!(!Arc::ptr_eq(&five, &other_five));
    \n
    ",0,"paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> Arc<T, A>
    where\n T: CloneToUninit + ?Sized,\n A: Allocator + Clone,

    1.4.0 · source

    pub fn make_mut(this: &mut Arc<T, A>) -> &mut T

    Makes a mutable reference into the given Arc.

    \n

    If there are other Arc pointers to the same allocation, then make_mut will\nclone the inner value to a new allocation to ensure unique ownership. This is also\nreferred to as clone-on-write.

    \n

    However, if there are no other Arc pointers to this allocation, but some Weak\npointers, then the Weak pointers will be dissociated and the inner value will not\nbe cloned.

    \n

    See also get_mut, which will fail rather than cloning the inner value\nor dissociating Weak pointers.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet mut data = Arc::new(5);\n\n*Arc::make_mut(&mut data) += 1;         // Won't clone anything\nlet mut other_data = Arc::clone(&data); // Won't clone inner data\n*Arc::make_mut(&mut data) += 1;         // Clones inner data\n*Arc::make_mut(&mut data) += 1;         // Won't clone anything\n*Arc::make_mut(&mut other_data) *= 2;   // Won't clone anything\n\n// Now `data` and `other_data` point to different allocations.\nassert_eq!(*data, 8);\nassert_eq!(*other_data, 12);
    \n

    Weak pointers will be dissociated:

    \n\n
    use std::sync::Arc;\n\nlet mut data = Arc::new(75);\nlet weak = Arc::downgrade(&data);\n\nassert!(75 == *data);\nassert!(75 == *weak.upgrade().unwrap());\n\n*Arc::make_mut(&mut data) += 1;\n\nassert!(76 == *data);\nassert!(weak.upgrade().is_none());
    \n
    ",0,"paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> Arc<T, A>
    where\n T: Clone,\n A: Allocator,

    1.76.0 · source

    pub fn unwrap_or_clone(this: Arc<T, A>) -> T

    If we have the only reference to T then unwrap it. Otherwise, clone T and return the\nclone.

    \n

    Assuming arc_t is of type Arc<T>, this function is functionally equivalent to\n(*arc_t).clone(), but will avoid cloning the inner value where possible.

    \n
    §Examples
    \n
    let inner = String::from(\"test\");\nlet ptr = inner.as_ptr();\n\nlet arc = Arc::new(inner);\nlet inner = Arc::unwrap_or_clone(arc);\n// The inner value was not cloned\nassert!(ptr::eq(ptr, inner.as_ptr()));\n\nlet arc = Arc::new(inner);\nlet arc2 = arc.clone();\nlet inner = Arc::unwrap_or_clone(arc);\n// Because there were 2 references, we had to clone the inner value.\nassert!(!ptr::eq(ptr, inner.as_ptr()));\n// `arc2` is the last reference, so when we unwrap it we get back\n// the original `String`.\nlet inner = Arc::unwrap_or_clone(arc2);\nassert!(ptr::eq(ptr, inner.as_ptr()));
    \n
    ",0,"paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    1.4.0 · source

    pub fn get_mut(this: &mut Arc<T, A>) -> Option<&mut T>

    Returns a mutable reference into the given Arc, if there are\nno other Arc or Weak pointers to the same allocation.

    \n

    Returns None otherwise, because it is not safe to\nmutate a shared value.

    \n

    See also make_mut, which will clone\nthe inner value when there are other Arc pointers.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet mut x = Arc::new(3);\n*Arc::get_mut(&mut x).unwrap() = 4;\nassert_eq!(*x, 4);\n\nlet _y = Arc::clone(&x);\nassert!(Arc::get_mut(&mut x).is_none());
    \n
    source

    pub unsafe fn get_mut_unchecked(this: &mut Arc<T, A>) -> &mut T

    🔬This is a nightly-only experimental API. (get_mut_unchecked)

    Returns a mutable reference into the given Arc,\nwithout any check.

    \n

    See also get_mut, which is safe and does appropriate checks.

    \n
    §Safety
    \n

    If any other Arc or Weak pointers to the same allocation exist, then\nthey must not be dereferenced or have active borrows for the duration\nof the returned borrow, and their inner type must be exactly the same as the\ninner type of this Rc (including lifetimes). This is trivially the case if no\nsuch pointers exist, for example immediately after Arc::new.

    \n
    §Examples
    \n
    #![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut x = Arc::new(String::new());\nunsafe {\n    Arc::get_mut_unchecked(&mut x).push_str(\"foo\")\n}\nassert_eq!(*x, \"foo\");
    \n

    Other Arc pointers to the same allocation must be to the same type.

    \n\n
    #![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet x: Arc<str> = Arc::from(\"Hello, world!\");\nlet mut y: Arc<[u8]> = x.clone().into();\nunsafe {\n    // this is Undefined Behavior, because x's inner type is str, not [u8]\n    Arc::get_mut_unchecked(&mut y).fill(0xff); // 0xff is invalid in UTF-8\n}\nprintln!(\"{}\", &*x); // Invalid UTF-8 in a str
    \n

    Other Arc pointers to the same allocation must be to the exact same type, including lifetimes.

    \n\n
    #![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet x: Arc<&str> = Arc::new(\"Hello, world!\");\n{\n    let s = String::from(\"Oh, no!\");\n    let mut y: Arc<&str> = x.clone().into();\n    unsafe {\n        // this is Undefined Behavior, because x's inner type\n        // is &'long str, not &'short str\n        *Arc::get_mut_unchecked(&mut y) = &s;\n    }\n}\nprintln!(\"{}\", &*x); // Use-after-free
    \n
    ",0,"paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> Arc<T, A>
    where\n A: Allocator,

    source

    pub fn allocator(this: &Arc<T, A>) -> &A

    🔬This is a nightly-only experimental API. (allocator_api)

    Returns a reference to the underlying allocator.

    \n

    Note: this is an associated function, which means that you have\nto call it as Arc::allocator(&a) instead of a.allocator(). This\nis so that there is no conflict with a method on the inner type.

    \n
    source

    pub fn new_in(data: T, alloc: A) -> Arc<T, A>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc<T> in the provided allocator.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);
    \n
    source

    pub fn new_uninit_in(alloc: A) -> Arc<MaybeUninit<T>, A>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc with uninitialized contents in the provided allocator.

    \n
    §Examples
    \n
    #![feature(new_uninit)]\n#![feature(get_mut_unchecked)]\n#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet mut five = Arc::<u32, _>::new_uninit_in(System);\n\nlet five = unsafe {\n    // Deferred initialization:\n    Arc::get_mut_unchecked(&mut five).as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5)
    \n
    source

    pub fn new_zeroed_in(alloc: A) -> Arc<MaybeUninit<T>, A>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, in the provided allocator.

    \n

    See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

    \n
    §Examples
    \n
    #![feature(new_uninit)]\n#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet zero = Arc::<u32, _>::new_zeroed_in(System);\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
    \n
    source

    pub fn pin_in(data: T, alloc: A) -> Pin<Arc<T, A>>
    where\n A: 'static,

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Pin<Arc<T, A>> in the provided allocator. If T does not implement Unpin,\nthen data will be pinned in memory and unable to be moved.

    \n
    source

    pub fn try_pin_in(data: T, alloc: A) -> Result<Pin<Arc<T, A>>, AllocError>
    where\n A: 'static,

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Pin<Arc<T, A>> in the provided allocator, return an error if allocation\nfails.

    \n
    source

    pub fn try_new_in(data: T, alloc: A) -> Result<Arc<T, A>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc<T, A> in the provided allocator, returning an error if allocation fails.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::try_new_in(5, System)?;
    \n
    source

    pub fn try_new_uninit_in(alloc: A) -> Result<Arc<MaybeUninit<T>, A>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc with uninitialized contents, in the provided allocator, returning an\nerror if allocation fails.

    \n
    §Examples
    \n
    #![feature(new_uninit, allocator_api)]\n#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet mut five = Arc::<u32, _>::try_new_uninit_in(System)?;\n\nlet five = unsafe {\n    // Deferred initialization:\n    Arc::get_mut_unchecked(&mut five).as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5);
    \n
    source

    pub fn try_new_zeroed_in(alloc: A) -> Result<Arc<MaybeUninit<T>, A>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, in the provided allocator, returning an error if allocation\nfails.

    \n

    See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

    \n
    §Examples
    \n
    #![feature(new_uninit, allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet zero = Arc::<u32, _>::try_new_zeroed_in(System)?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
    \n
    1.4.0 · source

    pub fn try_unwrap(this: Arc<T, A>) -> Result<T, Arc<T, A>>

    Returns the inner value, if the Arc has exactly one strong reference.

    \n

    Otherwise, an Err is returned with the same Arc that was\npassed in.

    \n

    This will succeed even if there are outstanding weak references.

    \n

    It is strongly recommended to use Arc::into_inner instead if you don’t\nkeep the Arc in the Err case.\nImmediately dropping the Err-value, as the expression\nArc::try_unwrap(this).ok() does, can cause the strong count to\ndrop to zero and the inner value of the Arc to be dropped.\nFor instance, if two threads execute such an expression in parallel,\nthere is a race condition without the possibility of unsafety:\nThe threads could first both check whether they own the last instance\nin Arc::try_unwrap, determine that they both do not, and then both\ndiscard and drop their instance in the call to ok.\nIn this scenario, the value inside the Arc is safely destroyed\nby exactly one of the threads, but neither thread will ever be able\nto use the value.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet x = Arc::new(3);\nassert_eq!(Arc::try_unwrap(x), Ok(3));\n\nlet x = Arc::new(4);\nlet _y = Arc::clone(&x);\nassert_eq!(*Arc::try_unwrap(x).unwrap_err(), 4);
    \n
    1.70.0 · source

    pub fn into_inner(this: Arc<T, A>) -> Option<T>

    Returns the inner value, if the Arc has exactly one strong reference.

    \n

    Otherwise, None is returned and the Arc is dropped.

    \n

    This will succeed even if there are outstanding weak references.

    \n

    If Arc::into_inner is called on every clone of this Arc,\nit is guaranteed that exactly one of the calls returns the inner value.\nThis means in particular that the inner value is not dropped.

    \n

    Arc::try_unwrap is conceptually similar to Arc::into_inner, but it\nis meant for different use-cases. If used as a direct replacement\nfor Arc::into_inner anyway, such as with the expression\nArc::try_unwrap(this).ok(), then it does\nnot give the same guarantee as described in the previous paragraph.\nFor more information, see the examples below and read the documentation\nof Arc::try_unwrap.

    \n
    §Examples
    \n

    Minimal example demonstrating the guarantee that Arc::into_inner gives.

    \n\n
    use std::sync::Arc;\n\nlet x = Arc::new(3);\nlet y = Arc::clone(&x);\n\n// Two threads calling `Arc::into_inner` on both clones of an `Arc`:\nlet x_thread = std::thread::spawn(|| Arc::into_inner(x));\nlet y_thread = std::thread::spawn(|| Arc::into_inner(y));\n\nlet x_inner_value = x_thread.join().unwrap();\nlet y_inner_value = y_thread.join().unwrap();\n\n// One of the threads is guaranteed to receive the inner value:\nassert!(matches!(\n    (x_inner_value, y_inner_value),\n    (None, Some(3)) | (Some(3), None)\n));\n// The result could also be `(None, None)` if the threads called\n// `Arc::try_unwrap(x).ok()` and `Arc::try_unwrap(y).ok()` instead.
    \n

    A more practical example demonstrating the need for Arc::into_inner:

    \n\n
    use std::sync::Arc;\n\n// Definition of a simple singly linked list using `Arc`:\n#[derive(Clone)]\nstruct LinkedList<T>(Option<Arc<Node<T>>>);\nstruct Node<T>(T, Option<Arc<Node<T>>>);\n\n// Dropping a long `LinkedList<T>` relying on the destructor of `Arc`\n// can cause a stack overflow. To prevent this, we can provide a\n// manual `Drop` implementation that does the destruction in a loop:\nimpl<T> Drop for LinkedList<T> {\n    fn drop(&mut self) {\n        let mut link = self.0.take();\n        while let Some(arc_node) = link.take() {\n            if let Some(Node(_value, next)) = Arc::into_inner(arc_node) {\n                link = next;\n            }\n        }\n    }\n}\n\n// Implementation of `new` and `push` omitted\nimpl<T> LinkedList<T> {\n    /* ... */\n}\n\n// The following code could have still caused a stack overflow\n// despite the manual `Drop` impl if that `Drop` impl had used\n// `Arc::try_unwrap(arc).ok()` instead of `Arc::into_inner(arc)`.\n\n// Create a long list and clone it\nlet mut x = LinkedList::new();\nlet size = 100000;\nfor i in 0..size {\n    x.push(i); // Adds i to the front of x\n}\nlet y = x.clone();\n\n// Drop the clones in parallel\nlet x_thread = std::thread::spawn(|| drop(x));\nlet y_thread = std::thread::spawn(|| drop(y));\nx_thread.join().unwrap();\ny_thread.join().unwrap();
    \n
    ",0,"paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.64.0 · source§

    impl<T> AsFd for Arc<T>
    where\n T: AsFd + ?Sized,

    This impl allows implementing traits that require AsFd on Arc.

    \n\n
    use std::net::UdpSocket;\nuse std::sync::Arc;\n\ntrait MyTrait: AsFd {}\nimpl MyTrait for Arc<UdpSocket> {}\nimpl MyTrait for Box<UdpSocket> {}
    \n
    source§

    fn as_fd(&self) -> BorrowedFd<'_>

    Borrows the file descriptor. Read more
    ","AsFd","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.63.0 · source§

    impl<T> AsRawFd for Arc<T>
    where\n T: AsRawFd,

    This impl allows implementing traits that require AsRawFd on Arc.

    \n\n
    use std::net::UdpSocket;\nuse std::sync::Arc;\ntrait MyTrait: AsRawFd {\n}\nimpl MyTrait for Arc<UdpSocket> {}\nimpl MyTrait for Box<UdpSocket> {}
    \n
    source§

    fn as_raw_fd(&self) -> i32

    Extracts the raw file descriptor. Read more
    ","AsRawFd","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.5.0 · source§

    impl<T, A> AsRef<T> for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    source§

    fn as_ref(&self) -> &T

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Borrow<T> for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    ","Borrow","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Clone for Arc<T, A>
    where\n A: Allocator + Clone,\n T: ?Sized,

    source§

    fn clone(&self) -> Arc<T, A>

    Makes a clone of the Arc pointer.

    \n

    This creates another pointer to the same allocation, increasing the\nstrong reference count.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nlet _ = Arc::clone(&five);
    \n
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Debug for Arc<T, A>
    where\n T: Debug + ?Sized,\n A: Allocator,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T> Default for Arc<T>
    where\n T: Default,

    source§

    fn default() -> Arc<T>

    Creates a new Arc<T>, with the Default value for T.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet x: Arc<i32> = Default::default();\nassert_eq!(*x, 0);
    \n
    ","Default","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Deref for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    §

    type Target = T

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &T

    Dereferences the value.
    ","Deref","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<'de, T> Deserialize<'de> for Arc<T>
    where\n Box<T>: Deserialize<'de>,\n T: ?Sized,

    This impl requires the "rc" Cargo feature of Serde.

    \n

    Deserializing a data structure containing Arc will not attempt to\ndeduplicate Arc references to the same data. Every deserialized Arc\nwill end up with a strong count of 1.

    \n
    source§

    fn deserialize<D>(\n deserializer: D,\n) -> Result<Arc<T>, <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Display for Arc<T, A>
    where\n T: Display + ?Sized,\n A: Allocator,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Display","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Drop for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    source§

    fn drop(&mut self)

    Drops the Arc.

    \n

    This will decrement the strong reference count. If the strong reference\ncount reaches zero then the only other references (if any) are\nWeak, so we drop the inner value.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nstruct Foo;\n\nimpl Drop for Foo {\n    fn drop(&mut self) {\n        println!(\"dropped!\");\n    }\n}\n\nlet foo  = Arc::new(Foo);\nlet foo2 = Arc::clone(&foo);\n\ndrop(foo);    // Doesn't print anything\ndrop(foo2);   // Prints \"dropped!\"
    \n
    ","Drop","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.52.0 · source§

    impl<T> Error for Arc<T>
    where\n T: Error + ?Sized,

    source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    source§

    fn provide<'a>(&'a self, req: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more
    ","Error","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.21.0 · source§

    impl<T, A> From<Box<T, A>> for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    source§

    fn from(v: Box<T, A>) -> Arc<T, A>

    Move a boxed object to a new, reference-counted allocation.

    \n
    §Example
    \n
    let unique: Box<str> = Box::from(\"eggplant\");\nlet shared: Arc<str> = Arc::from(unique);\nassert_eq!(\"eggplant\", &shared[..]);
    \n
    ","From>","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.45.0 · source§

    impl<'a, B> From<Cow<'a, B>> for Arc<B>
    where\n B: ToOwned + ?Sized,\n Arc<B>: From<&'a B> + From<<B as ToOwned>::Owned>,

    source§

    fn from(cow: Cow<'a, B>) -> Arc<B>

    Create an atomically reference-counted pointer from\na clone-on-write pointer by copying its content.

    \n
    §Example
    \n
    let cow: Cow<'_, str> = Cow::Borrowed(\"eggplant\");\nlet shared: Arc<str> = Arc::from(cow);\nassert_eq!(\"eggplant\", &shared[..]);
    \n
    ","From>","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.6.0 · source§

    impl<T> From<T> for Arc<T>

    source§

    fn from(t: T) -> Arc<T>

    Converts a T into an Arc<T>

    \n

    The conversion moves the value into a\nnewly allocated Arc. It is equivalent to\ncalling Arc::new(t).

    \n
    §Example
    \n
    let x = 5;\nlet arc = Arc::new(5);\n\nassert_eq!(Arc::from(x), arc);
    \n
    ","From","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Hash for Arc<T, A>
    where\n T: Hash + ?Sized,\n A: Allocator,

    source§

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    §

    impl<Sp> LocalSpawn for Arc<Sp>
    where\n Sp: LocalSpawn + ?Sized,

    §

    fn spawn_local_obj(\n &self,\n future: LocalFutureObj<'static, ()>,\n) -> Result<(), SpawnError>

    Spawns a future that will be run to completion. Read more
    §

    fn status_local(&self) -> Result<(), SpawnError>

    Determines whether the executor is able to spawn new tasks. Read more
    ","LocalSpawn","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<T> Log for Arc<T>
    where\n T: Log + ?Sized,

    source§

    fn enabled(&self, metadata: &Metadata<'_>) -> bool

    Determines if a log message with the specified metadata would be\nlogged. Read more
    source§

    fn log(&self, record: &Record<'_>)

    Logs the Record. Read more
    source§

    fn flush(&self)

    Flushes any buffered records. Read more
    ","Log","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Ord for Arc<T, A>
    where\n T: Ord + ?Sized,\n A: Allocator,

    source§

    fn cmp(&self, other: &Arc<T, A>) -> Ordering

    Comparison for two Arcs.

    \n

    The two are compared by calling cmp() on their inner values.

    \n
    §Examples
    \n
    use std::sync::Arc;\nuse std::cmp::Ordering;\n\nlet five = Arc::new(5);\n\nassert_eq!(Ordering::Less, five.cmp(&Arc::new(6)));
    \n
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> PartialEq for Arc<T, A>
    where\n T: PartialEq + ?Sized,\n A: Allocator,

    source§

    fn eq(&self, other: &Arc<T, A>) -> bool

    Equality for two Arcs.

    \n

    Two Arcs are equal if their inner values are equal, even if they are\nstored in different allocation.

    \n

    If T also implements Eq (implying reflexivity of equality),\ntwo Arcs that point to the same allocation are always equal.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five == Arc::new(5));
    \n
    source§

    fn ne(&self, other: &Arc<T, A>) -> bool

    Inequality for two Arcs.

    \n

    Two Arcs are not equal if their inner values are not equal.

    \n

    If T also implements Eq (implying reflexivity of equality),\ntwo Arcs that point to the same value are always equal.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five != Arc::new(6));
    \n
    ","PartialEq","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> PartialOrd for Arc<T, A>
    where\n T: PartialOrd + ?Sized,\n A: Allocator,

    source§

    fn partial_cmp(&self, other: &Arc<T, A>) -> Option<Ordering>

    Partial comparison for two Arcs.

    \n

    The two are compared by calling partial_cmp() on their inner values.

    \n
    §Examples
    \n
    use std::sync::Arc;\nuse std::cmp::Ordering;\n\nlet five = Arc::new(5);\n\nassert_eq!(Some(Ordering::Less), five.partial_cmp(&Arc::new(6)));
    \n
    source§

    fn lt(&self, other: &Arc<T, A>) -> bool

    Less-than comparison for two Arcs.

    \n

    The two are compared by calling < on their inner values.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five < Arc::new(6));
    \n
    source§

    fn le(&self, other: &Arc<T, A>) -> bool

    ‘Less than or equal to’ comparison for two Arcs.

    \n

    The two are compared by calling <= on their inner values.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five <= Arc::new(5));
    \n
    source§

    fn gt(&self, other: &Arc<T, A>) -> bool

    Greater-than comparison for two Arcs.

    \n

    The two are compared by calling > on their inner values.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five > Arc::new(4));
    \n
    source§

    fn ge(&self, other: &Arc<T, A>) -> bool

    ‘Greater than or equal to’ comparison for two Arcs.

    \n

    The two are compared by calling >= on their inner values.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five >= Arc::new(5));
    \n
    ","PartialOrd","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Pointer for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Pointer","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<T> Serialize for Arc<T>
    where\n T: Serialize + ?Sized,

    This impl requires the "rc" Cargo feature of Serde.

    \n

    Serializing a data structure containing Arc will serialize a copy of\nthe contents of the Arc each time the Arc is referenced within the\ndata structure. Serialization will not attempt to deduplicate these\nrepeated data.

    \n
    source§

    fn serialize<S>(\n &self,\n serializer: S,\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    §

    impl<S, Req> ServiceFactory<Req> for Arc<S>
    where\n S: ServiceFactory<Req>,

    §

    type Response = <S as ServiceFactory<Req>>::Response

    Responses given by the created services.
    §

    type Error = <S as ServiceFactory<Req>>::Error

    Errors produced by the created services.
    §

    type Config = <S as ServiceFactory<Req>>::Config

    Service factory configuration.
    §

    type Service = <S as ServiceFactory<Req>>::Service

    The kind of Service created by this factory.
    §

    type InitError = <S as ServiceFactory<Req>>::InitError

    Errors potentially raised while building a service.
    §

    type Future = <S as ServiceFactory<Req>>::Future

    The future of the Service instance.g
    §

    fn new_service(\n &self,\n cfg: <S as ServiceFactory<Req>>::Config,\n) -> <S as ServiceFactory<Req>>::Future

    Create and return a new service asynchronously.
    ","ServiceFactory","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<S> Source for Arc<S>
    where\n S: Source + ?Sized,

    source§

    fn visit<'kvs>(\n &'kvs self,\n visitor: &mut dyn VisitSource<'kvs>,\n) -> Result<(), Error>

    Visit key-values. Read more
    source§

    fn get(&self, key: Key<'_>) -> Option<Value<'_>>

    Get the value for a given key. Read more
    source§

    fn count(&self) -> usize

    Count the number of key-values that can be visited. Read more
    ","Source","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    §

    impl<Sp> Spawn for Arc<Sp>
    where\n Sp: Spawn + ?Sized,

    §

    fn spawn_obj(&self, future: FutureObj<'static, ()>) -> Result<(), SpawnError>

    Spawns a future that will be run to completion. Read more
    §

    fn status(&self) -> Result<(), SpawnError>

    Determines whether the executor is able to spawn new tasks. Read more
    ","Spawn","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    §

    impl<S> Subscriber for Arc<S>
    where\n S: Subscriber + ?Sized,

    §

    fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest

    Registers a new callsite with this subscriber, returning whether or not\nthe subscriber is interested in being notified about the callsite. Read more
    §

    fn enabled(&self, metadata: &Metadata<'_>) -> bool

    Returns true if a span or event with the specified metadata would be\nrecorded. Read more
    §

    fn max_level_hint(&self) -> Option<LevelFilter>

    Returns the highest verbosity level that this Subscriber will\nenable, or None, if the subscriber does not implement level-based\nfiltering or chooses not to implement this method. Read more
    §

    fn new_span(&self, span: &Attributes<'_>) -> Id

    Visit the construction of a new span, returning a new span ID for the\nspan being constructed. Read more
    §

    fn record(&self, span: &Id, values: &Record<'_>)

    Record a set of values on a span. Read more
    §

    fn record_follows_from(&self, span: &Id, follows: &Id)

    Adds an indication that span follows from the span with the id\nfollows. Read more
    §

    fn event_enabled(&self, event: &Event<'_>) -> bool

    Determine if an [Event] should be recorded. Read more
    §

    fn event(&self, event: &Event<'_>)

    Records that an Event has occurred. Read more
    §

    fn enter(&self, span: &Id)

    Records that a span has been entered. Read more
    §

    fn exit(&self, span: &Id)

    Records that a span has been exited. Read more
    §

    fn clone_span(&self, id: &Id) -> Id

    Notifies the subscriber that a span ID has been cloned. Read more
    §

    fn try_close(&self, id: Id) -> bool

    Notifies the subscriber that a span ID has been dropped, and returns\ntrue if there are now 0 IDs that refer to that span. Read more
    §

    fn drop_span(&self, id: Id)

    👎Deprecated since 0.1.2: use Subscriber::try_close instead
    This method is deprecated. Read more
    §

    fn current_span(&self) -> Current

    Returns a type representing this subscriber’s view of the current span. Read more
    §

    unsafe fn downcast_raw(&self, id: TypeId) -> Option<*const ()>

    If self is the same type as the provided TypeId, returns an untyped\n*const pointer to that type. Otherwise, returns None. Read more
    §

    fn on_register_dispatch(&self, subscriber: &Dispatch)

    Invoked when this subscriber becomes a [Dispatch]. Read more
    ","Subscriber","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    §

    impl<T, S, Req> Transform<S, Req> for Arc<T>
    where\n T: Transform<S, Req>,

    §

    type Response = <T as Transform<S, Req>>::Response

    Responses produced by the service.
    §

    type Error = <T as Transform<S, Req>>::Error

    Errors produced by the service.
    §

    type Transform = <T as Transform<S, Req>>::Transform

    The TransformService value created by this factory
    §

    type InitError = <T as Transform<S, Req>>::InitError

    Errors produced while building a transform service.
    §

    type Future = <T as Transform<S, Req>>::Future

    The future response value.
    §

    fn new_transform(&self, service: S) -> <T as Transform<S, Req>>::Future

    Creates and returns a new Transform component, asynchronously
    ","Transform","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<T, U, A> CoerceUnsized<Arc<U, A>> for Arc<T, A>
    where\n T: Unsize<U> + ?Sized,\n A: Allocator,\n U: ?Sized,

    ","CoerceUnsized>","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> DerefPure for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    ","DerefPure","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<T, U> DispatchFromDyn<Arc<U>> for Arc<T>
    where\n T: Unsize<U> + ?Sized,\n U: ?Sized,

    ","DispatchFromDyn>","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Eq for Arc<T, A>
    where\n T: Eq + ?Sized,\n A: Allocator,

    ","Eq","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Send for Arc<T, A>
    where\n T: Sync + Send + ?Sized,\n A: Allocator + Send,

    ","Send","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Sync for Arc<T, A>
    where\n T: Sync + Send + ?Sized,\n A: Allocator + Sync,

    ","Sync","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.33.0 · source§

    impl<T, A> Unpin for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    ","Unpin","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.9.0 · source§

    impl<T, A> UnwindSafe for Arc<T, A>
    where\n T: RefUnwindSafe + ?Sized,\n A: Allocator + UnwindSafe,

    ","UnwindSafe","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"]], -"paperclip_core":[["
    source§

    impl<T> Arc<T>
    where\n T: ?Sized,

    1.17.0 · source

    pub unsafe fn from_raw(ptr: *const T) -> Arc<T>

    Constructs an Arc<T> from a raw pointer.

    \n

    The raw pointer must have been previously returned by a call to\nArc<U>::into_raw with the following requirements:

    \n
      \n
    • If U is sized, it must have the same size and alignment as T. This\nis trivially true if U is T.
    • \n
    • If U is unsized, its data pointer must have the same size and\nalignment as T. This is trivially true if Arc<U> was constructed\nthrough Arc<T> and then converted to Arc<U> through an unsized\ncoercion.
    • \n
    \n

    Note that if U or U’s data pointer is not T but has the same size\nand alignment, this is basically like transmuting references of\ndifferent types. See mem::transmute for more information\non what restrictions apply in this case.

    \n

    The user of from_raw has to make sure a specific value of T is only\ndropped once.

    \n

    This function is unsafe because improper use may lead to memory unsafety,\neven if the returned Arc<T> is never accessed.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet x_ptr = Arc::into_raw(x);\n\nunsafe {\n    // Convert back to an `Arc` to prevent leak.\n    let x = Arc::from_raw(x_ptr);\n    assert_eq!(&*x, \"hello\");\n\n    // Further calls to `Arc::from_raw(x_ptr)` would be memory-unsafe.\n}\n\n// The memory was freed when `x` went out of scope above, so `x_ptr` is now dangling!
    \n

    Convert a slice back into its original array:

    \n\n
    use std::sync::Arc;\n\nlet x: Arc<[u32]> = Arc::new([1, 2, 3]);\nlet x_ptr: *const [u32] = Arc::into_raw(x);\n\nunsafe {\n    let x: Arc<[u32; 3]> = Arc::from_raw(x_ptr.cast::<[u32; 3]>());\n    assert_eq!(&*x, &[1, 2, 3]);\n}
    \n
    1.51.0 · source

    pub unsafe fn increment_strong_count(ptr: *const T)

    Increments the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

    \n
    §Safety
    \n

    The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) for the duration of this method.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count(ptr);\n\n    // This assertion is deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw(ptr);\n    assert_eq!(2, Arc::strong_count(&five));\n}
    \n
    1.51.0 · source

    pub unsafe fn decrement_strong_count(ptr: *const T)

    Decrements the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

    \n
    §Safety
    \n

    The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) when invoking this method. This method can be used to release the final\nArc and backing storage, but should not be called after the final Arc has been\nreleased.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count(ptr);\n\n    // Those assertions are deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw(ptr);\n    assert_eq!(2, Arc::strong_count(&five));\n    Arc::decrement_strong_count(ptr);\n    assert_eq!(1, Arc::strong_count(&five));\n}
    \n
    ",0,"paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<T> Arc<T>

    1.0.0 · source

    pub fn new(data: T) -> Arc<T>

    Constructs a new Arc<T>.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);
    \n
    1.60.0 · source

    pub fn new_cyclic<F>(data_fn: F) -> Arc<T>
    where\n F: FnOnce(&Weak<T>) -> T,

    Constructs a new Arc<T> while giving you a Weak<T> to the allocation,\nto allow you to construct a T which holds a weak pointer to itself.

    \n

    Generally, a structure circularly referencing itself, either directly or\nindirectly, should not hold a strong reference to itself to prevent a memory leak.\nUsing this function, you get access to the weak pointer during the\ninitialization of T, before the Arc<T> is created, such that you can\nclone and store it inside the T.

    \n

    new_cyclic first allocates the managed allocation for the Arc<T>,\nthen calls your closure, giving it a Weak<T> to this allocation,\nand only afterwards completes the construction of the Arc<T> by placing\nthe T returned from your closure into the allocation.

    \n

    Since the new Arc<T> is not fully-constructed until Arc<T>::new_cyclic\nreturns, calling upgrade on the weak reference inside your closure will\nfail and result in a None value.

    \n
    §Panics
    \n

    If data_fn panics, the panic is propagated to the caller, and the\ntemporary Weak<T> is dropped normally.

    \n
    §Example
    \n
    use std::sync::{Arc, Weak};\n\nstruct Gadget {\n    me: Weak<Gadget>,\n}\n\nimpl Gadget {\n    /// Construct a reference counted Gadget.\n    fn new() -> Arc<Self> {\n        // `me` is a `Weak<Gadget>` pointing at the new allocation of the\n        // `Arc` we're constructing.\n        Arc::new_cyclic(|me| {\n            // Create the actual struct here.\n            Gadget { me: me.clone() }\n        })\n    }\n\n    /// Return a reference counted pointer to Self.\n    fn me(&self) -> Arc<Self> {\n        self.me.upgrade().unwrap()\n    }\n}
    \n
    source

    pub fn new_uninit() -> Arc<MaybeUninit<T>>

    🔬This is a nightly-only experimental API. (new_uninit)

    Constructs a new Arc with uninitialized contents.

    \n
    §Examples
    \n
    #![feature(new_uninit)]\n#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut five = Arc::<u32>::new_uninit();\n\n// Deferred initialization:\nArc::get_mut(&mut five).unwrap().write(5);\n\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5)
    \n
    source

    pub fn new_zeroed() -> Arc<MaybeUninit<T>>

    🔬This is a nightly-only experimental API. (new_uninit)

    Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes.

    \n

    See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

    \n
    §Examples
    \n
    #![feature(new_uninit)]\n\nuse std::sync::Arc;\n\nlet zero = Arc::<u32>::new_zeroed();\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
    \n
    1.33.0 · source

    pub fn pin(data: T) -> Pin<Arc<T>>

    Constructs a new Pin<Arc<T>>. If T does not implement Unpin, then\ndata will be pinned in memory and unable to be moved.

    \n
    source

    pub fn try_pin(data: T) -> Result<Pin<Arc<T>>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Pin<Arc<T>>, return an error if allocation fails.

    \n
    source

    pub fn try_new(data: T) -> Result<Arc<T>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc<T>, returning an error if allocation fails.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\nuse std::sync::Arc;\n\nlet five = Arc::try_new(5)?;
    \n
    source

    pub fn try_new_uninit() -> Result<Arc<MaybeUninit<T>>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc with uninitialized contents, returning an error\nif allocation fails.

    \n
    §Examples
    \n
    #![feature(new_uninit, allocator_api)]\n#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut five = Arc::<u32>::try_new_uninit()?;\n\n// Deferred initialization:\nArc::get_mut(&mut five).unwrap().write(5);\n\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5);
    \n
    source

    pub fn try_new_zeroed() -> Result<Arc<MaybeUninit<T>>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, returning an error if allocation fails.

    \n

    See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

    \n
    §Examples
    \n
    #![feature(new_uninit, allocator_api)]\n\nuse std::sync::Arc;\n\nlet zero = Arc::<u32>::try_new_zeroed()?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
    \n
    ",0,"paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    1.17.0 · source

    pub fn into_raw(this: Arc<T, A>) -> *const T

    Consumes the Arc, returning the wrapped pointer.

    \n

    To avoid a memory leak the pointer must be converted back to an Arc using\nArc::from_raw.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet x_ptr = Arc::into_raw(x);\nassert_eq!(unsafe { &*x_ptr }, \"hello\");
    \n
    source

    pub fn into_raw_with_allocator(this: Arc<T, A>) -> (*const T, A)

    🔬This is a nightly-only experimental API. (allocator_api)

    Consumes the Arc, returning the wrapped pointer and allocator.

    \n

    To avoid a memory leak the pointer must be converted back to an Arc using\nArc::from_raw_in.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x = Arc::new_in(\"hello\".to_owned(), System);\nlet (ptr, alloc) = Arc::into_raw_with_allocator(x);\nassert_eq!(unsafe { &*ptr }, \"hello\");\nlet x = unsafe { Arc::from_raw_in(ptr, alloc) };\nassert_eq!(&*x, \"hello\");
    \n
    1.45.0 · source

    pub fn as_ptr(this: &Arc<T, A>) -> *const T

    Provides a raw pointer to the data.

    \n

    The counts are not affected in any way and the Arc is not consumed. The pointer is valid for\nas long as there are strong counts in the Arc.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet y = Arc::clone(&x);\nlet x_ptr = Arc::as_ptr(&x);\nassert_eq!(x_ptr, Arc::as_ptr(&y));\nassert_eq!(unsafe { &*x_ptr }, \"hello\");
    \n
    source

    pub unsafe fn from_raw_in(ptr: *const T, alloc: A) -> Arc<T, A>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs an Arc<T, A> from a raw pointer.

    \n

    The raw pointer must have been previously returned by a call to Arc<U, A>::into_raw with the following requirements:

    \n
      \n
    • If U is sized, it must have the same size and alignment as T. This\nis trivially true if U is T.
    • \n
    • If U is unsized, its data pointer must have the same size and\nalignment as T. This is trivially true if Arc<U> was constructed\nthrough Arc<T> and then converted to Arc<U> through an unsized\ncoercion.
    • \n
    \n

    Note that if U or U’s data pointer is not T but has the same size\nand alignment, this is basically like transmuting references of\ndifferent types. See mem::transmute for more information\non what restrictions apply in this case.

    \n

    The raw pointer must point to a block of memory allocated by alloc

    \n

    The user of from_raw has to make sure a specific value of T is only\ndropped once.

    \n

    This function is unsafe because improper use may lead to memory unsafety,\neven if the returned Arc<T> is never accessed.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x = Arc::new_in(\"hello\".to_owned(), System);\nlet x_ptr = Arc::into_raw(x);\n\nunsafe {\n    // Convert back to an `Arc` to prevent leak.\n    let x = Arc::from_raw_in(x_ptr, System);\n    assert_eq!(&*x, \"hello\");\n\n    // Further calls to `Arc::from_raw(x_ptr)` would be memory-unsafe.\n}\n\n// The memory was freed when `x` went out of scope above, so `x_ptr` is now dangling!
    \n

    Convert a slice back into its original array:

    \n\n
    #![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x: Arc<[u32], _> = Arc::new_in([1, 2, 3], System);\nlet x_ptr: *const [u32] = Arc::into_raw(x);\n\nunsafe {\n    let x: Arc<[u32; 3], _> = Arc::from_raw_in(x_ptr.cast::<[u32; 3]>(), System);\n    assert_eq!(&*x, &[1, 2, 3]);\n}
    \n
    1.4.0 · source

    pub fn downgrade(this: &Arc<T, A>) -> Weak<T, A>
    where\n A: Clone,

    Creates a new Weak pointer to this allocation.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nlet weak_five = Arc::downgrade(&five);
    \n
    1.15.0 · source

    pub fn weak_count(this: &Arc<T, A>) -> usize

    Gets the number of Weak pointers to this allocation.

    \n
    §Safety
    \n

    This method by itself is safe, but using it correctly requires extra care.\nAnother thread can change the weak count at any time,\nincluding potentially between calling this method and acting on the result.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet _weak_five = Arc::downgrade(&five);\n\n// This assertion is deterministic because we haven't shared\n// the `Arc` or `Weak` between threads.\nassert_eq!(1, Arc::weak_count(&five));
    \n
    1.15.0 · source

    pub fn strong_count(this: &Arc<T, A>) -> usize

    Gets the number of strong (Arc) pointers to this allocation.

    \n
    §Safety
    \n

    This method by itself is safe, but using it correctly requires extra care.\nAnother thread can change the strong count at any time,\nincluding potentially between calling this method and acting on the result.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet _also_five = Arc::clone(&five);\n\n// This assertion is deterministic because we haven't shared\n// the `Arc` between threads.\nassert_eq!(2, Arc::strong_count(&five));
    \n
    source

    pub unsafe fn increment_strong_count_in(ptr: *const T, alloc: A)
    where\n A: Clone,

    🔬This is a nightly-only experimental API. (allocator_api)

    Increments the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

    \n
    §Safety
    \n

    The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) for the duration of this method,, and ptr must point to a block of memory\nallocated by alloc.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count_in(ptr, System);\n\n    // This assertion is deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw_in(ptr, System);\n    assert_eq!(2, Arc::strong_count(&five));\n}
    \n
    source

    pub unsafe fn decrement_strong_count_in(ptr: *const T, alloc: A)

    🔬This is a nightly-only experimental API. (allocator_api)

    Decrements the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

    \n
    §Safety
    \n

    The pointer must have been obtained through Arc::into_raw, the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) when invoking this method, and ptr must point to a block of memory\nallocated by alloc. This method can be used to release the final\nArc and backing storage, but should not be called after the final Arc has been\nreleased.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count_in(ptr, System);\n\n    // Those assertions are deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw_in(ptr, System);\n    assert_eq!(2, Arc::strong_count(&five));\n    Arc::decrement_strong_count_in(ptr, System);\n    assert_eq!(1, Arc::strong_count(&five));\n}
    \n
    1.17.0 · source

    pub fn ptr_eq(this: &Arc<T, A>, other: &Arc<T, A>) -> bool

    Returns true if the two Arcs point to the same allocation in a vein similar to\nptr::eq. This function ignores the metadata of dyn Trait pointers.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet same_five = Arc::clone(&five);\nlet other_five = Arc::new(5);\n\nassert!(Arc::ptr_eq(&five, &same_five));\nassert!(!Arc::ptr_eq(&five, &other_five));
    \n
    ",0,"paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> Arc<T, A>
    where\n T: CloneToUninit + ?Sized,\n A: Allocator + Clone,

    1.4.0 · source

    pub fn make_mut(this: &mut Arc<T, A>) -> &mut T

    Makes a mutable reference into the given Arc.

    \n

    If there are other Arc pointers to the same allocation, then make_mut will\nclone the inner value to a new allocation to ensure unique ownership. This is also\nreferred to as clone-on-write.

    \n

    However, if there are no other Arc pointers to this allocation, but some Weak\npointers, then the Weak pointers will be dissociated and the inner value will not\nbe cloned.

    \n

    See also get_mut, which will fail rather than cloning the inner value\nor dissociating Weak pointers.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet mut data = Arc::new(5);\n\n*Arc::make_mut(&mut data) += 1;         // Won't clone anything\nlet mut other_data = Arc::clone(&data); // Won't clone inner data\n*Arc::make_mut(&mut data) += 1;         // Clones inner data\n*Arc::make_mut(&mut data) += 1;         // Won't clone anything\n*Arc::make_mut(&mut other_data) *= 2;   // Won't clone anything\n\n// Now `data` and `other_data` point to different allocations.\nassert_eq!(*data, 8);\nassert_eq!(*other_data, 12);
    \n

    Weak pointers will be dissociated:

    \n\n
    use std::sync::Arc;\n\nlet mut data = Arc::new(75);\nlet weak = Arc::downgrade(&data);\n\nassert!(75 == *data);\nassert!(75 == *weak.upgrade().unwrap());\n\n*Arc::make_mut(&mut data) += 1;\n\nassert!(76 == *data);\nassert!(weak.upgrade().is_none());
    \n
    ",0,"paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> Arc<T, A>
    where\n T: Clone,\n A: Allocator,

    1.76.0 · source

    pub fn unwrap_or_clone(this: Arc<T, A>) -> T

    If we have the only reference to T then unwrap it. Otherwise, clone T and return the\nclone.

    \n

    Assuming arc_t is of type Arc<T>, this function is functionally equivalent to\n(*arc_t).clone(), but will avoid cloning the inner value where possible.

    \n
    §Examples
    \n
    let inner = String::from(\"test\");\nlet ptr = inner.as_ptr();\n\nlet arc = Arc::new(inner);\nlet inner = Arc::unwrap_or_clone(arc);\n// The inner value was not cloned\nassert!(ptr::eq(ptr, inner.as_ptr()));\n\nlet arc = Arc::new(inner);\nlet arc2 = arc.clone();\nlet inner = Arc::unwrap_or_clone(arc);\n// Because there were 2 references, we had to clone the inner value.\nassert!(!ptr::eq(ptr, inner.as_ptr()));\n// `arc2` is the last reference, so when we unwrap it we get back\n// the original `String`.\nlet inner = Arc::unwrap_or_clone(arc2);\nassert!(ptr::eq(ptr, inner.as_ptr()));
    \n
    ",0,"paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    1.4.0 · source

    pub fn get_mut(this: &mut Arc<T, A>) -> Option<&mut T>

    Returns a mutable reference into the given Arc, if there are\nno other Arc or Weak pointers to the same allocation.

    \n

    Returns None otherwise, because it is not safe to\nmutate a shared value.

    \n

    See also make_mut, which will clone\nthe inner value when there are other Arc pointers.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet mut x = Arc::new(3);\n*Arc::get_mut(&mut x).unwrap() = 4;\nassert_eq!(*x, 4);\n\nlet _y = Arc::clone(&x);\nassert!(Arc::get_mut(&mut x).is_none());
    \n
    source

    pub unsafe fn get_mut_unchecked(this: &mut Arc<T, A>) -> &mut T

    🔬This is a nightly-only experimental API. (get_mut_unchecked)

    Returns a mutable reference into the given Arc,\nwithout any check.

    \n

    See also get_mut, which is safe and does appropriate checks.

    \n
    §Safety
    \n

    If any other Arc or Weak pointers to the same allocation exist, then\nthey must not be dereferenced or have active borrows for the duration\nof the returned borrow, and their inner type must be exactly the same as the\ninner type of this Rc (including lifetimes). This is trivially the case if no\nsuch pointers exist, for example immediately after Arc::new.

    \n
    §Examples
    \n
    #![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut x = Arc::new(String::new());\nunsafe {\n    Arc::get_mut_unchecked(&mut x).push_str(\"foo\")\n}\nassert_eq!(*x, \"foo\");
    \n

    Other Arc pointers to the same allocation must be to the same type.

    \n\n
    #![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet x: Arc<str> = Arc::from(\"Hello, world!\");\nlet mut y: Arc<[u8]> = x.clone().into();\nunsafe {\n    // this is Undefined Behavior, because x's inner type is str, not [u8]\n    Arc::get_mut_unchecked(&mut y).fill(0xff); // 0xff is invalid in UTF-8\n}\nprintln!(\"{}\", &*x); // Invalid UTF-8 in a str
    \n

    Other Arc pointers to the same allocation must be to the exact same type, including lifetimes.

    \n\n
    #![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet x: Arc<&str> = Arc::new(\"Hello, world!\");\n{\n    let s = String::from(\"Oh, no!\");\n    let mut y: Arc<&str> = x.clone().into();\n    unsafe {\n        // this is Undefined Behavior, because x's inner type\n        // is &'long str, not &'short str\n        *Arc::get_mut_unchecked(&mut y) = &s;\n    }\n}\nprintln!(\"{}\", &*x); // Use-after-free
    \n
    ",0,"paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> Arc<T, A>
    where\n A: Allocator,

    source

    pub fn allocator(this: &Arc<T, A>) -> &A

    🔬This is a nightly-only experimental API. (allocator_api)

    Returns a reference to the underlying allocator.

    \n

    Note: this is an associated function, which means that you have\nto call it as Arc::allocator(&a) instead of a.allocator(). This\nis so that there is no conflict with a method on the inner type.

    \n
    source

    pub fn new_in(data: T, alloc: A) -> Arc<T, A>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc<T> in the provided allocator.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);
    \n
    source

    pub fn new_uninit_in(alloc: A) -> Arc<MaybeUninit<T>, A>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc with uninitialized contents in the provided allocator.

    \n
    §Examples
    \n
    #![feature(new_uninit)]\n#![feature(get_mut_unchecked)]\n#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet mut five = Arc::<u32, _>::new_uninit_in(System);\n\nlet five = unsafe {\n    // Deferred initialization:\n    Arc::get_mut_unchecked(&mut five).as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5)
    \n
    source

    pub fn new_zeroed_in(alloc: A) -> Arc<MaybeUninit<T>, A>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, in the provided allocator.

    \n

    See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

    \n
    §Examples
    \n
    #![feature(new_uninit)]\n#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet zero = Arc::<u32, _>::new_zeroed_in(System);\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
    \n
    source

    pub fn pin_in(data: T, alloc: A) -> Pin<Arc<T, A>>
    where\n A: 'static,

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Pin<Arc<T, A>> in the provided allocator. If T does not implement Unpin,\nthen data will be pinned in memory and unable to be moved.

    \n
    source

    pub fn try_pin_in(data: T, alloc: A) -> Result<Pin<Arc<T, A>>, AllocError>
    where\n A: 'static,

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Pin<Arc<T, A>> in the provided allocator, return an error if allocation\nfails.

    \n
    source

    pub fn try_new_in(data: T, alloc: A) -> Result<Arc<T, A>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc<T, A> in the provided allocator, returning an error if allocation fails.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::try_new_in(5, System)?;
    \n
    source

    pub fn try_new_uninit_in(alloc: A) -> Result<Arc<MaybeUninit<T>, A>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc with uninitialized contents, in the provided allocator, returning an\nerror if allocation fails.

    \n
    §Examples
    \n
    #![feature(new_uninit, allocator_api)]\n#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet mut five = Arc::<u32, _>::try_new_uninit_in(System)?;\n\nlet five = unsafe {\n    // Deferred initialization:\n    Arc::get_mut_unchecked(&mut five).as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5);
    \n
    source

    pub fn try_new_zeroed_in(alloc: A) -> Result<Arc<MaybeUninit<T>, A>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, in the provided allocator, returning an error if allocation\nfails.

    \n

    See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

    \n
    §Examples
    \n
    #![feature(new_uninit, allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet zero = Arc::<u32, _>::try_new_zeroed_in(System)?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
    \n
    1.4.0 · source

    pub fn try_unwrap(this: Arc<T, A>) -> Result<T, Arc<T, A>>

    Returns the inner value, if the Arc has exactly one strong reference.

    \n

    Otherwise, an Err is returned with the same Arc that was\npassed in.

    \n

    This will succeed even if there are outstanding weak references.

    \n

    It is strongly recommended to use Arc::into_inner instead if you don’t\nkeep the Arc in the Err case.\nImmediately dropping the Err-value, as the expression\nArc::try_unwrap(this).ok() does, can cause the strong count to\ndrop to zero and the inner value of the Arc to be dropped.\nFor instance, if two threads execute such an expression in parallel,\nthere is a race condition without the possibility of unsafety:\nThe threads could first both check whether they own the last instance\nin Arc::try_unwrap, determine that they both do not, and then both\ndiscard and drop their instance in the call to ok.\nIn this scenario, the value inside the Arc is safely destroyed\nby exactly one of the threads, but neither thread will ever be able\nto use the value.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet x = Arc::new(3);\nassert_eq!(Arc::try_unwrap(x), Ok(3));\n\nlet x = Arc::new(4);\nlet _y = Arc::clone(&x);\nassert_eq!(*Arc::try_unwrap(x).unwrap_err(), 4);
    \n
    1.70.0 · source

    pub fn into_inner(this: Arc<T, A>) -> Option<T>

    Returns the inner value, if the Arc has exactly one strong reference.

    \n

    Otherwise, None is returned and the Arc is dropped.

    \n

    This will succeed even if there are outstanding weak references.

    \n

    If Arc::into_inner is called on every clone of this Arc,\nit is guaranteed that exactly one of the calls returns the inner value.\nThis means in particular that the inner value is not dropped.

    \n

    Arc::try_unwrap is conceptually similar to Arc::into_inner, but it\nis meant for different use-cases. If used as a direct replacement\nfor Arc::into_inner anyway, such as with the expression\nArc::try_unwrap(this).ok(), then it does\nnot give the same guarantee as described in the previous paragraph.\nFor more information, see the examples below and read the documentation\nof Arc::try_unwrap.

    \n
    §Examples
    \n

    Minimal example demonstrating the guarantee that Arc::into_inner gives.

    \n\n
    use std::sync::Arc;\n\nlet x = Arc::new(3);\nlet y = Arc::clone(&x);\n\n// Two threads calling `Arc::into_inner` on both clones of an `Arc`:\nlet x_thread = std::thread::spawn(|| Arc::into_inner(x));\nlet y_thread = std::thread::spawn(|| Arc::into_inner(y));\n\nlet x_inner_value = x_thread.join().unwrap();\nlet y_inner_value = y_thread.join().unwrap();\n\n// One of the threads is guaranteed to receive the inner value:\nassert!(matches!(\n    (x_inner_value, y_inner_value),\n    (None, Some(3)) | (Some(3), None)\n));\n// The result could also be `(None, None)` if the threads called\n// `Arc::try_unwrap(x).ok()` and `Arc::try_unwrap(y).ok()` instead.
    \n

    A more practical example demonstrating the need for Arc::into_inner:

    \n\n
    use std::sync::Arc;\n\n// Definition of a simple singly linked list using `Arc`:\n#[derive(Clone)]\nstruct LinkedList<T>(Option<Arc<Node<T>>>);\nstruct Node<T>(T, Option<Arc<Node<T>>>);\n\n// Dropping a long `LinkedList<T>` relying on the destructor of `Arc`\n// can cause a stack overflow. To prevent this, we can provide a\n// manual `Drop` implementation that does the destruction in a loop:\nimpl<T> Drop for LinkedList<T> {\n    fn drop(&mut self) {\n        let mut link = self.0.take();\n        while let Some(arc_node) = link.take() {\n            if let Some(Node(_value, next)) = Arc::into_inner(arc_node) {\n                link = next;\n            }\n        }\n    }\n}\n\n// Implementation of `new` and `push` omitted\nimpl<T> LinkedList<T> {\n    /* ... */\n}\n\n// The following code could have still caused a stack overflow\n// despite the manual `Drop` impl if that `Drop` impl had used\n// `Arc::try_unwrap(arc).ok()` instead of `Arc::into_inner(arc)`.\n\n// Create a long list and clone it\nlet mut x = LinkedList::new();\nlet size = 100000;\nfor i in 0..size {\n    x.push(i); // Adds i to the front of x\n}\nlet y = x.clone();\n\n// Drop the clones in parallel\nlet x_thread = std::thread::spawn(|| drop(x));\nlet y_thread = std::thread::spawn(|| drop(y));\nx_thread.join().unwrap();\ny_thread.join().unwrap();
    \n
    ",0,"paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.64.0 · source§

    impl<T> AsFd for Arc<T>
    where\n T: AsFd + ?Sized,

    This impl allows implementing traits that require AsFd on Arc.

    \n\n
    use std::net::UdpSocket;\nuse std::sync::Arc;\n\ntrait MyTrait: AsFd {}\nimpl MyTrait for Arc<UdpSocket> {}\nimpl MyTrait for Box<UdpSocket> {}
    \n
    source§

    fn as_fd(&self) -> BorrowedFd<'_>

    Borrows the file descriptor. Read more
    ","AsFd","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.63.0 · source§

    impl<T> AsRawFd for Arc<T>
    where\n T: AsRawFd,

    This impl allows implementing traits that require AsRawFd on Arc.

    \n\n
    use std::net::UdpSocket;\nuse std::sync::Arc;\ntrait MyTrait: AsRawFd {\n}\nimpl MyTrait for Arc<UdpSocket> {}\nimpl MyTrait for Box<UdpSocket> {}
    \n
    source§

    fn as_raw_fd(&self) -> i32

    Extracts the raw file descriptor. Read more
    ","AsRawFd","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.5.0 · source§

    impl<T, A> AsRef<T> for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    source§

    fn as_ref(&self) -> &T

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Borrow<T> for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    ","Borrow","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Clone for Arc<T, A>
    where\n A: Allocator + Clone,\n T: ?Sized,

    source§

    fn clone(&self) -> Arc<T, A>

    Makes a clone of the Arc pointer.

    \n

    This creates another pointer to the same allocation, increasing the\nstrong reference count.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nlet _ = Arc::clone(&five);
    \n
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Debug for Arc<T, A>
    where\n T: Debug + ?Sized,\n A: Allocator,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T> Default for Arc<T>
    where\n T: Default,

    source§

    fn default() -> Arc<T>

    Creates a new Arc<T>, with the Default value for T.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet x: Arc<i32> = Default::default();\nassert_eq!(*x, 0);
    \n
    ","Default","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Deref for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    §

    type Target = T

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &T

    Dereferences the value.
    ","Deref","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<'de, T> Deserialize<'de> for Arc<T>
    where\n Box<T>: Deserialize<'de>,\n T: ?Sized,

    This impl requires the "rc" Cargo feature of Serde.

    \n

    Deserializing a data structure containing Arc will not attempt to\ndeduplicate Arc references to the same data. Every deserialized Arc\nwill end up with a strong count of 1.

    \n
    source§

    fn deserialize<D>(\n deserializer: D,\n) -> Result<Arc<T>, <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Display for Arc<T, A>
    where\n T: Display + ?Sized,\n A: Allocator,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Display","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Drop for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    source§

    fn drop(&mut self)

    Drops the Arc.

    \n

    This will decrement the strong reference count. If the strong reference\ncount reaches zero then the only other references (if any) are\nWeak, so we drop the inner value.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nstruct Foo;\n\nimpl Drop for Foo {\n    fn drop(&mut self) {\n        println!(\"dropped!\");\n    }\n}\n\nlet foo  = Arc::new(Foo);\nlet foo2 = Arc::clone(&foo);\n\ndrop(foo);    // Doesn't print anything\ndrop(foo2);   // Prints \"dropped!\"
    \n
    ","Drop","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.52.0 · source§

    impl<T> Error for Arc<T>
    where\n T: Error + ?Sized,

    source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    source§

    fn provide<'a>(&'a self, req: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more
    ","Error","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.21.0 · source§

    impl<T, A> From<Box<T, A>> for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    source§

    fn from(v: Box<T, A>) -> Arc<T, A>

    Move a boxed object to a new, reference-counted allocation.

    \n
    §Example
    \n
    let unique: Box<str> = Box::from(\"eggplant\");\nlet shared: Arc<str> = Arc::from(unique);\nassert_eq!(\"eggplant\", &shared[..]);
    \n
    ","From>","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.45.0 · source§

    impl<'a, B> From<Cow<'a, B>> for Arc<B>
    where\n B: ToOwned + ?Sized,\n Arc<B>: From<&'a B> + From<<B as ToOwned>::Owned>,

    source§

    fn from(cow: Cow<'a, B>) -> Arc<B>

    Create an atomically reference-counted pointer from\na clone-on-write pointer by copying its content.

    \n
    §Example
    \n
    let cow: Cow<'_, str> = Cow::Borrowed(\"eggplant\");\nlet shared: Arc<str> = Arc::from(cow);\nassert_eq!(\"eggplant\", &shared[..]);
    \n
    ","From>","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.6.0 · source§

    impl<T> From<T> for Arc<T>

    source§

    fn from(t: T) -> Arc<T>

    Converts a T into an Arc<T>

    \n

    The conversion moves the value into a\nnewly allocated Arc. It is equivalent to\ncalling Arc::new(t).

    \n
    §Example
    \n
    let x = 5;\nlet arc = Arc::new(5);\n\nassert_eq!(Arc::from(x), arc);
    \n
    ","From","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Hash for Arc<T, A>
    where\n T: Hash + ?Sized,\n A: Allocator,

    source§

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    §

    impl<Sp> LocalSpawn for Arc<Sp>
    where\n Sp: LocalSpawn + ?Sized,

    §

    fn spawn_local_obj(\n &self,\n future: LocalFutureObj<'static, ()>,\n) -> Result<(), SpawnError>

    Spawns a future that will be run to completion. Read more
    §

    fn status_local(&self) -> Result<(), SpawnError>

    Determines whether the executor is able to spawn new tasks. Read more
    ","LocalSpawn","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<T> Log for Arc<T>
    where\n T: Log + ?Sized,

    source§

    fn enabled(&self, metadata: &Metadata<'_>) -> bool

    Determines if a log message with the specified metadata would be\nlogged. Read more
    source§

    fn log(&self, record: &Record<'_>)

    Logs the Record. Read more
    source§

    fn flush(&self)

    Flushes any buffered records. Read more
    ","Log","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Ord for Arc<T, A>
    where\n T: Ord + ?Sized,\n A: Allocator,

    source§

    fn cmp(&self, other: &Arc<T, A>) -> Ordering

    Comparison for two Arcs.

    \n

    The two are compared by calling cmp() on their inner values.

    \n
    §Examples
    \n
    use std::sync::Arc;\nuse std::cmp::Ordering;\n\nlet five = Arc::new(5);\n\nassert_eq!(Ordering::Less, five.cmp(&Arc::new(6)));
    \n
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> PartialEq for Arc<T, A>
    where\n T: PartialEq + ?Sized,\n A: Allocator,

    source§

    fn eq(&self, other: &Arc<T, A>) -> bool

    Equality for two Arcs.

    \n

    Two Arcs are equal if their inner values are equal, even if they are\nstored in different allocation.

    \n

    If T also implements Eq (implying reflexivity of equality),\ntwo Arcs that point to the same allocation are always equal.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five == Arc::new(5));
    \n
    source§

    fn ne(&self, other: &Arc<T, A>) -> bool

    Inequality for two Arcs.

    \n

    Two Arcs are not equal if their inner values are not equal.

    \n

    If T also implements Eq (implying reflexivity of equality),\ntwo Arcs that point to the same value are always equal.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five != Arc::new(6));
    \n
    ","PartialEq","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> PartialOrd for Arc<T, A>
    where\n T: PartialOrd + ?Sized,\n A: Allocator,

    source§

    fn partial_cmp(&self, other: &Arc<T, A>) -> Option<Ordering>

    Partial comparison for two Arcs.

    \n

    The two are compared by calling partial_cmp() on their inner values.

    \n
    §Examples
    \n
    use std::sync::Arc;\nuse std::cmp::Ordering;\n\nlet five = Arc::new(5);\n\nassert_eq!(Some(Ordering::Less), five.partial_cmp(&Arc::new(6)));
    \n
    source§

    fn lt(&self, other: &Arc<T, A>) -> bool

    Less-than comparison for two Arcs.

    \n

    The two are compared by calling < on their inner values.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five < Arc::new(6));
    \n
    source§

    fn le(&self, other: &Arc<T, A>) -> bool

    ‘Less than or equal to’ comparison for two Arcs.

    \n

    The two are compared by calling <= on their inner values.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five <= Arc::new(5));
    \n
    source§

    fn gt(&self, other: &Arc<T, A>) -> bool

    Greater-than comparison for two Arcs.

    \n

    The two are compared by calling > on their inner values.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five > Arc::new(4));
    \n
    source§

    fn ge(&self, other: &Arc<T, A>) -> bool

    ‘Greater than or equal to’ comparison for two Arcs.

    \n

    The two are compared by calling >= on their inner values.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five >= Arc::new(5));
    \n
    ","PartialOrd","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Pointer for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Pointer","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<T> Serialize for Arc<T>
    where\n T: Serialize + ?Sized,

    This impl requires the "rc" Cargo feature of Serde.

    \n

    Serializing a data structure containing Arc will serialize a copy of\nthe contents of the Arc each time the Arc is referenced within the\ndata structure. Serialization will not attempt to deduplicate these\nrepeated data.

    \n
    source§

    fn serialize<S>(\n &self,\n serializer: S,\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    §

    impl<S, Req> ServiceFactory<Req> for Arc<S>
    where\n S: ServiceFactory<Req>,

    §

    type Response = <S as ServiceFactory<Req>>::Response

    Responses given by the created services.
    §

    type Error = <S as ServiceFactory<Req>>::Error

    Errors produced by the created services.
    §

    type Config = <S as ServiceFactory<Req>>::Config

    Service factory configuration.
    §

    type Service = <S as ServiceFactory<Req>>::Service

    The kind of Service created by this factory.
    §

    type InitError = <S as ServiceFactory<Req>>::InitError

    Errors potentially raised while building a service.
    §

    type Future = <S as ServiceFactory<Req>>::Future

    The future of the Service instance.g
    §

    fn new_service(\n &self,\n cfg: <S as ServiceFactory<Req>>::Config,\n) -> <S as ServiceFactory<Req>>::Future

    Create and return a new service asynchronously.
    ","ServiceFactory","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<S> Source for Arc<S>
    where\n S: Source + ?Sized,

    source§

    fn visit<'kvs>(\n &'kvs self,\n visitor: &mut dyn VisitSource<'kvs>,\n) -> Result<(), Error>

    Visit key-values. Read more
    source§

    fn get(&self, key: Key<'_>) -> Option<Value<'_>>

    Get the value for a given key. Read more
    source§

    fn count(&self) -> usize

    Count the number of key-values that can be visited. Read more
    ","Source","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    §

    impl<Sp> Spawn for Arc<Sp>
    where\n Sp: Spawn + ?Sized,

    §

    fn spawn_obj(&self, future: FutureObj<'static, ()>) -> Result<(), SpawnError>

    Spawns a future that will be run to completion. Read more
    §

    fn status(&self) -> Result<(), SpawnError>

    Determines whether the executor is able to spawn new tasks. Read more
    ","Spawn","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    §

    impl<S> Subscriber for Arc<S>
    where\n S: Subscriber + ?Sized,

    §

    fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest

    Registers a new callsite with this subscriber, returning whether or not\nthe subscriber is interested in being notified about the callsite. Read more
    §

    fn enabled(&self, metadata: &Metadata<'_>) -> bool

    Returns true if a span or event with the specified metadata would be\nrecorded. Read more
    §

    fn max_level_hint(&self) -> Option<LevelFilter>

    Returns the highest verbosity level that this Subscriber will\nenable, or None, if the subscriber does not implement level-based\nfiltering or chooses not to implement this method. Read more
    §

    fn new_span(&self, span: &Attributes<'_>) -> Id

    Visit the construction of a new span, returning a new span ID for the\nspan being constructed. Read more
    §

    fn record(&self, span: &Id, values: &Record<'_>)

    Record a set of values on a span. Read more
    §

    fn record_follows_from(&self, span: &Id, follows: &Id)

    Adds an indication that span follows from the span with the id\nfollows. Read more
    §

    fn event_enabled(&self, event: &Event<'_>) -> bool

    Determine if an [Event] should be recorded. Read more
    §

    fn event(&self, event: &Event<'_>)

    Records that an Event has occurred. Read more
    §

    fn enter(&self, span: &Id)

    Records that a span has been entered. Read more
    §

    fn exit(&self, span: &Id)

    Records that a span has been exited. Read more
    §

    fn clone_span(&self, id: &Id) -> Id

    Notifies the subscriber that a span ID has been cloned. Read more
    §

    fn try_close(&self, id: Id) -> bool

    Notifies the subscriber that a span ID has been dropped, and returns\ntrue if there are now 0 IDs that refer to that span. Read more
    §

    fn drop_span(&self, id: Id)

    👎Deprecated since 0.1.2: use Subscriber::try_close instead
    This method is deprecated. Read more
    §

    fn current_span(&self) -> Current

    Returns a type representing this subscriber’s view of the current span. Read more
    §

    unsafe fn downcast_raw(&self, id: TypeId) -> Option<*const ()>

    If self is the same type as the provided TypeId, returns an untyped\n*const pointer to that type. Otherwise, returns None. Read more
    §

    fn on_register_dispatch(&self, subscriber: &Dispatch)

    Invoked when this subscriber becomes a [Dispatch]. Read more
    ","Subscriber","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    §

    impl<T, S, Req> Transform<S, Req> for Arc<T>
    where\n T: Transform<S, Req>,

    §

    type Response = <T as Transform<S, Req>>::Response

    Responses produced by the service.
    §

    type Error = <T as Transform<S, Req>>::Error

    Errors produced by the service.
    §

    type Transform = <T as Transform<S, Req>>::Transform

    The TransformService value created by this factory
    §

    type InitError = <T as Transform<S, Req>>::InitError

    Errors produced while building a transform service.
    §

    type Future = <T as Transform<S, Req>>::Future

    The future response value.
    §

    fn new_transform(&self, service: S) -> <T as Transform<S, Req>>::Future

    Creates and returns a new Transform component, asynchronously
    ","Transform","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<T, U, A> CoerceUnsized<Arc<U, A>> for Arc<T, A>
    where\n T: Unsize<U> + ?Sized,\n A: Allocator,\n U: ?Sized,

    ","CoerceUnsized>","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> DerefPure for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    ","DerefPure","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<T, U> DispatchFromDyn<Arc<U>> for Arc<T>
    where\n T: Unsize<U> + ?Sized,\n U: ?Sized,

    ","DispatchFromDyn>","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Eq for Arc<T, A>
    where\n T: Eq + ?Sized,\n A: Allocator,

    ","Eq","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Send for Arc<T, A>
    where\n T: Sync + Send + ?Sized,\n A: Allocator + Send,

    ","Send","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Sync for Arc<T, A>
    where\n T: Sync + Send + ?Sized,\n A: Allocator + Sync,

    ","Sync","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.33.0 · source§

    impl<T, A> Unpin for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    ","Unpin","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.9.0 · source§

    impl<T, A> UnwindSafe for Arc<T, A>
    where\n T: RefUnwindSafe + ?Sized,\n A: Allocator + UnwindSafe,

    ","UnwindSafe","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"]] +"paperclip":[["
    source§

    impl<T> Arc<T>
    where\n T: ?Sized,

    1.17.0 · source

    pub unsafe fn from_raw(ptr: *const T) -> Arc<T>

    Constructs an Arc<T> from a raw pointer.

    \n

    The raw pointer must have been previously returned by a call to\nArc<U>::into_raw with the following requirements:

    \n
      \n
    • If U is sized, it must have the same size and alignment as T. This\nis trivially true if U is T.
    • \n
    • If U is unsized, its data pointer must have the same size and\nalignment as T. This is trivially true if Arc<U> was constructed\nthrough Arc<T> and then converted to Arc<U> through an unsized\ncoercion.
    • \n
    \n

    Note that if U or U’s data pointer is not T but has the same size\nand alignment, this is basically like transmuting references of\ndifferent types. See mem::transmute for more information\non what restrictions apply in this case.

    \n

    The user of from_raw has to make sure a specific value of T is only\ndropped once.

    \n

    This function is unsafe because improper use may lead to memory unsafety,\neven if the returned Arc<T> is never accessed.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet x_ptr = Arc::into_raw(x);\n\nunsafe {\n    // Convert back to an `Arc` to prevent leak.\n    let x = Arc::from_raw(x_ptr);\n    assert_eq!(&*x, \"hello\");\n\n    // Further calls to `Arc::from_raw(x_ptr)` would be memory-unsafe.\n}\n\n// The memory was freed when `x` went out of scope above, so `x_ptr` is now dangling!
    \n

    Convert a slice back into its original array:

    \n\n
    use std::sync::Arc;\n\nlet x: Arc<[u32]> = Arc::new([1, 2, 3]);\nlet x_ptr: *const [u32] = Arc::into_raw(x);\n\nunsafe {\n    let x: Arc<[u32; 3]> = Arc::from_raw(x_ptr.cast::<[u32; 3]>());\n    assert_eq!(&*x, &[1, 2, 3]);\n}
    \n
    1.51.0 · source

    pub unsafe fn increment_strong_count(ptr: *const T)

    Increments the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

    \n
    §Safety
    \n

    The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) for the duration of this method.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count(ptr);\n\n    // This assertion is deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw(ptr);\n    assert_eq!(2, Arc::strong_count(&five));\n}
    \n
    1.51.0 · source

    pub unsafe fn decrement_strong_count(ptr: *const T)

    Decrements the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

    \n
    §Safety
    \n

    The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) when invoking this method. This method can be used to release the final\nArc and backing storage, but should not be called after the final Arc has been\nreleased.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count(ptr);\n\n    // Those assertions are deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw(ptr);\n    assert_eq!(2, Arc::strong_count(&five));\n    Arc::decrement_strong_count(ptr);\n    assert_eq!(1, Arc::strong_count(&five));\n}
    \n
    ",0,"paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<T> Arc<T>

    1.0.0 · source

    pub fn new(data: T) -> Arc<T>

    Constructs a new Arc<T>.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);
    \n
    1.60.0 · source

    pub fn new_cyclic<F>(data_fn: F) -> Arc<T>
    where\n F: FnOnce(&Weak<T>) -> T,

    Constructs a new Arc<T> while giving you a Weak<T> to the allocation,\nto allow you to construct a T which holds a weak pointer to itself.

    \n

    Generally, a structure circularly referencing itself, either directly or\nindirectly, should not hold a strong reference to itself to prevent a memory leak.\nUsing this function, you get access to the weak pointer during the\ninitialization of T, before the Arc<T> is created, such that you can\nclone and store it inside the T.

    \n

    new_cyclic first allocates the managed allocation for the Arc<T>,\nthen calls your closure, giving it a Weak<T> to this allocation,\nand only afterwards completes the construction of the Arc<T> by placing\nthe T returned from your closure into the allocation.

    \n

    Since the new Arc<T> is not fully-constructed until Arc<T>::new_cyclic\nreturns, calling upgrade on the weak reference inside your closure will\nfail and result in a None value.

    \n
    §Panics
    \n

    If data_fn panics, the panic is propagated to the caller, and the\ntemporary Weak<T> is dropped normally.

    \n
    §Example
    \n
    use std::sync::{Arc, Weak};\n\nstruct Gadget {\n    me: Weak<Gadget>,\n}\n\nimpl Gadget {\n    /// Constructs a reference counted Gadget.\n    fn new() -> Arc<Self> {\n        // `me` is a `Weak<Gadget>` pointing at the new allocation of the\n        // `Arc` we're constructing.\n        Arc::new_cyclic(|me| {\n            // Create the actual struct here.\n            Gadget { me: me.clone() }\n        })\n    }\n\n    /// Returns a reference counted pointer to Self.\n    fn me(&self) -> Arc<Self> {\n        self.me.upgrade().unwrap()\n    }\n}
    \n
    source

    pub fn new_uninit() -> Arc<MaybeUninit<T>>

    🔬This is a nightly-only experimental API. (new_uninit)

    Constructs a new Arc with uninitialized contents.

    \n
    §Examples
    \n
    #![feature(new_uninit)]\n#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut five = Arc::<u32>::new_uninit();\n\n// Deferred initialization:\nArc::get_mut(&mut five).unwrap().write(5);\n\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5)
    \n
    source

    pub fn new_zeroed() -> Arc<MaybeUninit<T>>

    🔬This is a nightly-only experimental API. (new_uninit)

    Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes.

    \n

    See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

    \n
    §Examples
    \n
    #![feature(new_uninit)]\n\nuse std::sync::Arc;\n\nlet zero = Arc::<u32>::new_zeroed();\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
    \n
    1.33.0 · source

    pub fn pin(data: T) -> Pin<Arc<T>>

    Constructs a new Pin<Arc<T>>. If T does not implement Unpin, then\ndata will be pinned in memory and unable to be moved.

    \n
    source

    pub fn try_pin(data: T) -> Result<Pin<Arc<T>>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Pin<Arc<T>>, return an error if allocation fails.

    \n
    source

    pub fn try_new(data: T) -> Result<Arc<T>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc<T>, returning an error if allocation fails.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\nuse std::sync::Arc;\n\nlet five = Arc::try_new(5)?;
    \n
    source

    pub fn try_new_uninit() -> Result<Arc<MaybeUninit<T>>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc with uninitialized contents, returning an error\nif allocation fails.

    \n
    §Examples
    \n
    #![feature(new_uninit, allocator_api)]\n#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut five = Arc::<u32>::try_new_uninit()?;\n\n// Deferred initialization:\nArc::get_mut(&mut five).unwrap().write(5);\n\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5);
    \n
    source

    pub fn try_new_zeroed() -> Result<Arc<MaybeUninit<T>>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, returning an error if allocation fails.

    \n

    See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

    \n
    §Examples
    \n
    #![feature(new_uninit, allocator_api)]\n\nuse std::sync::Arc;\n\nlet zero = Arc::<u32>::try_new_zeroed()?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
    \n
    ",0,"paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    source

    pub fn allocator(this: &Arc<T, A>) -> &A

    🔬This is a nightly-only experimental API. (allocator_api)

    Returns a reference to the underlying allocator.

    \n

    Note: this is an associated function, which means that you have\nto call it as Arc::allocator(&a) instead of a.allocator(). This\nis so that there is no conflict with a method on the inner type.

    \n
    1.17.0 · source

    pub fn into_raw(this: Arc<T, A>) -> *const T

    Consumes the Arc, returning the wrapped pointer.

    \n

    To avoid a memory leak the pointer must be converted back to an Arc using\nArc::from_raw.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet x_ptr = Arc::into_raw(x);\nassert_eq!(unsafe { &*x_ptr }, \"hello\");
    \n
    source

    pub fn into_raw_with_allocator(this: Arc<T, A>) -> (*const T, A)

    🔬This is a nightly-only experimental API. (allocator_api)

    Consumes the Arc, returning the wrapped pointer and allocator.

    \n

    To avoid a memory leak the pointer must be converted back to an Arc using\nArc::from_raw_in.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x = Arc::new_in(\"hello\".to_owned(), System);\nlet (ptr, alloc) = Arc::into_raw_with_allocator(x);\nassert_eq!(unsafe { &*ptr }, \"hello\");\nlet x = unsafe { Arc::from_raw_in(ptr, alloc) };\nassert_eq!(&*x, \"hello\");
    \n
    1.45.0 · source

    pub fn as_ptr(this: &Arc<T, A>) -> *const T

    Provides a raw pointer to the data.

    \n

    The counts are not affected in any way and the Arc is not consumed. The pointer is valid for\nas long as there are strong counts in the Arc.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet y = Arc::clone(&x);\nlet x_ptr = Arc::as_ptr(&x);\nassert_eq!(x_ptr, Arc::as_ptr(&y));\nassert_eq!(unsafe { &*x_ptr }, \"hello\");
    \n
    source

    pub unsafe fn from_raw_in(ptr: *const T, alloc: A) -> Arc<T, A>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs an Arc<T, A> from a raw pointer.

    \n

    The raw pointer must have been previously returned by a call to Arc<U, A>::into_raw with the following requirements:

    \n
      \n
    • If U is sized, it must have the same size and alignment as T. This\nis trivially true if U is T.
    • \n
    • If U is unsized, its data pointer must have the same size and\nalignment as T. This is trivially true if Arc<U> was constructed\nthrough Arc<T> and then converted to Arc<U> through an unsized\ncoercion.
    • \n
    \n

    Note that if U or U’s data pointer is not T but has the same size\nand alignment, this is basically like transmuting references of\ndifferent types. See mem::transmute for more information\non what restrictions apply in this case.

    \n

    The raw pointer must point to a block of memory allocated by alloc

    \n

    The user of from_raw has to make sure a specific value of T is only\ndropped once.

    \n

    This function is unsafe because improper use may lead to memory unsafety,\neven if the returned Arc<T> is never accessed.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x = Arc::new_in(\"hello\".to_owned(), System);\nlet x_ptr = Arc::into_raw(x);\n\nunsafe {\n    // Convert back to an `Arc` to prevent leak.\n    let x = Arc::from_raw_in(x_ptr, System);\n    assert_eq!(&*x, \"hello\");\n\n    // Further calls to `Arc::from_raw(x_ptr)` would be memory-unsafe.\n}\n\n// The memory was freed when `x` went out of scope above, so `x_ptr` is now dangling!
    \n

    Convert a slice back into its original array:

    \n\n
    #![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x: Arc<[u32], _> = Arc::new_in([1, 2, 3], System);\nlet x_ptr: *const [u32] = Arc::into_raw(x);\n\nunsafe {\n    let x: Arc<[u32; 3], _> = Arc::from_raw_in(x_ptr.cast::<[u32; 3]>(), System);\n    assert_eq!(&*x, &[1, 2, 3]);\n}
    \n
    1.4.0 · source

    pub fn downgrade(this: &Arc<T, A>) -> Weak<T, A>
    where\n A: Clone,

    Creates a new Weak pointer to this allocation.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nlet weak_five = Arc::downgrade(&five);
    \n
    1.15.0 · source

    pub fn weak_count(this: &Arc<T, A>) -> usize

    Gets the number of Weak pointers to this allocation.

    \n
    §Safety
    \n

    This method by itself is safe, but using it correctly requires extra care.\nAnother thread can change the weak count at any time,\nincluding potentially between calling this method and acting on the result.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet _weak_five = Arc::downgrade(&five);\n\n// This assertion is deterministic because we haven't shared\n// the `Arc` or `Weak` between threads.\nassert_eq!(1, Arc::weak_count(&five));
    \n
    1.15.0 · source

    pub fn strong_count(this: &Arc<T, A>) -> usize

    Gets the number of strong (Arc) pointers to this allocation.

    \n
    §Safety
    \n

    This method by itself is safe, but using it correctly requires extra care.\nAnother thread can change the strong count at any time,\nincluding potentially between calling this method and acting on the result.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet _also_five = Arc::clone(&five);\n\n// This assertion is deterministic because we haven't shared\n// the `Arc` between threads.\nassert_eq!(2, Arc::strong_count(&five));
    \n
    source

    pub unsafe fn increment_strong_count_in(ptr: *const T, alloc: A)
    where\n A: Clone,

    🔬This is a nightly-only experimental API. (allocator_api)

    Increments the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

    \n
    §Safety
    \n

    The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) for the duration of this method,, and ptr must point to a block of memory\nallocated by alloc.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count_in(ptr, System);\n\n    // This assertion is deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw_in(ptr, System);\n    assert_eq!(2, Arc::strong_count(&five));\n}
    \n
    source

    pub unsafe fn decrement_strong_count_in(ptr: *const T, alloc: A)

    🔬This is a nightly-only experimental API. (allocator_api)

    Decrements the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

    \n
    §Safety
    \n

    The pointer must have been obtained through Arc::into_raw, the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) when invoking this method, and ptr must point to a block of memory\nallocated by alloc. This method can be used to release the final\nArc and backing storage, but should not be called after the final Arc has been\nreleased.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count_in(ptr, System);\n\n    // Those assertions are deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw_in(ptr, System);\n    assert_eq!(2, Arc::strong_count(&five));\n    Arc::decrement_strong_count_in(ptr, System);\n    assert_eq!(1, Arc::strong_count(&five));\n}
    \n
    1.17.0 · source

    pub fn ptr_eq(this: &Arc<T, A>, other: &Arc<T, A>) -> bool

    Returns true if the two Arcs point to the same allocation in a vein similar to\nptr::eq. This function ignores the metadata of dyn Trait pointers.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet same_five = Arc::clone(&five);\nlet other_five = Arc::new(5);\n\nassert!(Arc::ptr_eq(&five, &same_five));\nassert!(!Arc::ptr_eq(&five, &other_five));
    \n
    ",0,"paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> Arc<T, A>
    where\n T: CloneToUninit + ?Sized,\n A: Allocator + Clone,

    1.4.0 · source

    pub fn make_mut(this: &mut Arc<T, A>) -> &mut T

    Makes a mutable reference into the given Arc.

    \n

    If there are other Arc pointers to the same allocation, then make_mut will\nclone the inner value to a new allocation to ensure unique ownership. This is also\nreferred to as clone-on-write.

    \n

    However, if there are no other Arc pointers to this allocation, but some Weak\npointers, then the Weak pointers will be dissociated and the inner value will not\nbe cloned.

    \n

    See also get_mut, which will fail rather than cloning the inner value\nor dissociating Weak pointers.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet mut data = Arc::new(5);\n\n*Arc::make_mut(&mut data) += 1;         // Won't clone anything\nlet mut other_data = Arc::clone(&data); // Won't clone inner data\n*Arc::make_mut(&mut data) += 1;         // Clones inner data\n*Arc::make_mut(&mut data) += 1;         // Won't clone anything\n*Arc::make_mut(&mut other_data) *= 2;   // Won't clone anything\n\n// Now `data` and `other_data` point to different allocations.\nassert_eq!(*data, 8);\nassert_eq!(*other_data, 12);
    \n

    Weak pointers will be dissociated:

    \n\n
    use std::sync::Arc;\n\nlet mut data = Arc::new(75);\nlet weak = Arc::downgrade(&data);\n\nassert!(75 == *data);\nassert!(75 == *weak.upgrade().unwrap());\n\n*Arc::make_mut(&mut data) += 1;\n\nassert!(76 == *data);\nassert!(weak.upgrade().is_none());
    \n
    ",0,"paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> Arc<T, A>
    where\n T: Clone,\n A: Allocator,

    1.76.0 · source

    pub fn unwrap_or_clone(this: Arc<T, A>) -> T

    If we have the only reference to T then unwrap it. Otherwise, clone T and return the\nclone.

    \n

    Assuming arc_t is of type Arc<T>, this function is functionally equivalent to\n(*arc_t).clone(), but will avoid cloning the inner value where possible.

    \n
    §Examples
    \n
    let inner = String::from(\"test\");\nlet ptr = inner.as_ptr();\n\nlet arc = Arc::new(inner);\nlet inner = Arc::unwrap_or_clone(arc);\n// The inner value was not cloned\nassert!(ptr::eq(ptr, inner.as_ptr()));\n\nlet arc = Arc::new(inner);\nlet arc2 = arc.clone();\nlet inner = Arc::unwrap_or_clone(arc);\n// Because there were 2 references, we had to clone the inner value.\nassert!(!ptr::eq(ptr, inner.as_ptr()));\n// `arc2` is the last reference, so when we unwrap it we get back\n// the original `String`.\nlet inner = Arc::unwrap_or_clone(arc2);\nassert!(ptr::eq(ptr, inner.as_ptr()));
    \n
    ",0,"paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    1.4.0 · source

    pub fn get_mut(this: &mut Arc<T, A>) -> Option<&mut T>

    Returns a mutable reference into the given Arc, if there are\nno other Arc or Weak pointers to the same allocation.

    \n

    Returns None otherwise, because it is not safe to\nmutate a shared value.

    \n

    See also make_mut, which will clone\nthe inner value when there are other Arc pointers.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet mut x = Arc::new(3);\n*Arc::get_mut(&mut x).unwrap() = 4;\nassert_eq!(*x, 4);\n\nlet _y = Arc::clone(&x);\nassert!(Arc::get_mut(&mut x).is_none());
    \n
    source

    pub unsafe fn get_mut_unchecked(this: &mut Arc<T, A>) -> &mut T

    🔬This is a nightly-only experimental API. (get_mut_unchecked)

    Returns a mutable reference into the given Arc,\nwithout any check.

    \n

    See also get_mut, which is safe and does appropriate checks.

    \n
    §Safety
    \n

    If any other Arc or Weak pointers to the same allocation exist, then\nthey must not be dereferenced or have active borrows for the duration\nof the returned borrow, and their inner type must be exactly the same as the\ninner type of this Rc (including lifetimes). This is trivially the case if no\nsuch pointers exist, for example immediately after Arc::new.

    \n
    §Examples
    \n
    #![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut x = Arc::new(String::new());\nunsafe {\n    Arc::get_mut_unchecked(&mut x).push_str(\"foo\")\n}\nassert_eq!(*x, \"foo\");
    \n

    Other Arc pointers to the same allocation must be to the same type.

    \n\n
    #![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet x: Arc<str> = Arc::from(\"Hello, world!\");\nlet mut y: Arc<[u8]> = x.clone().into();\nunsafe {\n    // this is Undefined Behavior, because x's inner type is str, not [u8]\n    Arc::get_mut_unchecked(&mut y).fill(0xff); // 0xff is invalid in UTF-8\n}\nprintln!(\"{}\", &*x); // Invalid UTF-8 in a str
    \n

    Other Arc pointers to the same allocation must be to the exact same type, including lifetimes.

    \n\n
    #![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet x: Arc<&str> = Arc::new(\"Hello, world!\");\n{\n    let s = String::from(\"Oh, no!\");\n    let mut y: Arc<&str> = x.clone().into();\n    unsafe {\n        // this is Undefined Behavior, because x's inner type\n        // is &'long str, not &'short str\n        *Arc::get_mut_unchecked(&mut y) = &s;\n    }\n}\nprintln!(\"{}\", &*x); // Use-after-free
    \n
    ",0,"paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> Arc<T, A>
    where\n A: Allocator,

    source

    pub fn new_in(data: T, alloc: A) -> Arc<T, A>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc<T> in the provided allocator.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);
    \n
    source

    pub fn new_uninit_in(alloc: A) -> Arc<MaybeUninit<T>, A>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc with uninitialized contents in the provided allocator.

    \n
    §Examples
    \n
    #![feature(new_uninit)]\n#![feature(get_mut_unchecked)]\n#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet mut five = Arc::<u32, _>::new_uninit_in(System);\n\nlet five = unsafe {\n    // Deferred initialization:\n    Arc::get_mut_unchecked(&mut five).as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5)
    \n
    source

    pub fn new_zeroed_in(alloc: A) -> Arc<MaybeUninit<T>, A>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, in the provided allocator.

    \n

    See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

    \n
    §Examples
    \n
    #![feature(new_uninit)]\n#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet zero = Arc::<u32, _>::new_zeroed_in(System);\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
    \n
    source

    pub fn pin_in(data: T, alloc: A) -> Pin<Arc<T, A>>
    where\n A: 'static,

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Pin<Arc<T, A>> in the provided allocator. If T does not implement Unpin,\nthen data will be pinned in memory and unable to be moved.

    \n
    source

    pub fn try_pin_in(data: T, alloc: A) -> Result<Pin<Arc<T, A>>, AllocError>
    where\n A: 'static,

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Pin<Arc<T, A>> in the provided allocator, return an error if allocation\nfails.

    \n
    source

    pub fn try_new_in(data: T, alloc: A) -> Result<Arc<T, A>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc<T, A> in the provided allocator, returning an error if allocation fails.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::try_new_in(5, System)?;
    \n
    source

    pub fn try_new_uninit_in(alloc: A) -> Result<Arc<MaybeUninit<T>, A>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc with uninitialized contents, in the provided allocator, returning an\nerror if allocation fails.

    \n
    §Examples
    \n
    #![feature(new_uninit, allocator_api)]\n#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet mut five = Arc::<u32, _>::try_new_uninit_in(System)?;\n\nlet five = unsafe {\n    // Deferred initialization:\n    Arc::get_mut_unchecked(&mut five).as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5);
    \n
    source

    pub fn try_new_zeroed_in(alloc: A) -> Result<Arc<MaybeUninit<T>, A>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, in the provided allocator, returning an error if allocation\nfails.

    \n

    See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

    \n
    §Examples
    \n
    #![feature(new_uninit, allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet zero = Arc::<u32, _>::try_new_zeroed_in(System)?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
    \n
    1.4.0 · source

    pub fn try_unwrap(this: Arc<T, A>) -> Result<T, Arc<T, A>>

    Returns the inner value, if the Arc has exactly one strong reference.

    \n

    Otherwise, an Err is returned with the same Arc that was\npassed in.

    \n

    This will succeed even if there are outstanding weak references.

    \n

    It is strongly recommended to use Arc::into_inner instead if you don’t\nkeep the Arc in the Err case.\nImmediately dropping the Err-value, as the expression\nArc::try_unwrap(this).ok() does, can cause the strong count to\ndrop to zero and the inner value of the Arc to be dropped.\nFor instance, if two threads execute such an expression in parallel,\nthere is a race condition without the possibility of unsafety:\nThe threads could first both check whether they own the last instance\nin Arc::try_unwrap, determine that they both do not, and then both\ndiscard and drop their instance in the call to ok.\nIn this scenario, the value inside the Arc is safely destroyed\nby exactly one of the threads, but neither thread will ever be able\nto use the value.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet x = Arc::new(3);\nassert_eq!(Arc::try_unwrap(x), Ok(3));\n\nlet x = Arc::new(4);\nlet _y = Arc::clone(&x);\nassert_eq!(*Arc::try_unwrap(x).unwrap_err(), 4);
    \n
    1.70.0 · source

    pub fn into_inner(this: Arc<T, A>) -> Option<T>

    Returns the inner value, if the Arc has exactly one strong reference.

    \n

    Otherwise, None is returned and the Arc is dropped.

    \n

    This will succeed even if there are outstanding weak references.

    \n

    If Arc::into_inner is called on every clone of this Arc,\nit is guaranteed that exactly one of the calls returns the inner value.\nThis means in particular that the inner value is not dropped.

    \n

    Arc::try_unwrap is conceptually similar to Arc::into_inner, but it\nis meant for different use-cases. If used as a direct replacement\nfor Arc::into_inner anyway, such as with the expression\nArc::try_unwrap(this).ok(), then it does\nnot give the same guarantee as described in the previous paragraph.\nFor more information, see the examples below and read the documentation\nof Arc::try_unwrap.

    \n
    §Examples
    \n

    Minimal example demonstrating the guarantee that Arc::into_inner gives.

    \n\n
    use std::sync::Arc;\n\nlet x = Arc::new(3);\nlet y = Arc::clone(&x);\n\n// Two threads calling `Arc::into_inner` on both clones of an `Arc`:\nlet x_thread = std::thread::spawn(|| Arc::into_inner(x));\nlet y_thread = std::thread::spawn(|| Arc::into_inner(y));\n\nlet x_inner_value = x_thread.join().unwrap();\nlet y_inner_value = y_thread.join().unwrap();\n\n// One of the threads is guaranteed to receive the inner value:\nassert!(matches!(\n    (x_inner_value, y_inner_value),\n    (None, Some(3)) | (Some(3), None)\n));\n// The result could also be `(None, None)` if the threads called\n// `Arc::try_unwrap(x).ok()` and `Arc::try_unwrap(y).ok()` instead.
    \n

    A more practical example demonstrating the need for Arc::into_inner:

    \n\n
    use std::sync::Arc;\n\n// Definition of a simple singly linked list using `Arc`:\n#[derive(Clone)]\nstruct LinkedList<T>(Option<Arc<Node<T>>>);\nstruct Node<T>(T, Option<Arc<Node<T>>>);\n\n// Dropping a long `LinkedList<T>` relying on the destructor of `Arc`\n// can cause a stack overflow. To prevent this, we can provide a\n// manual `Drop` implementation that does the destruction in a loop:\nimpl<T> Drop for LinkedList<T> {\n    fn drop(&mut self) {\n        let mut link = self.0.take();\n        while let Some(arc_node) = link.take() {\n            if let Some(Node(_value, next)) = Arc::into_inner(arc_node) {\n                link = next;\n            }\n        }\n    }\n}\n\n// Implementation of `new` and `push` omitted\nimpl<T> LinkedList<T> {\n    /* ... */\n}\n\n// The following code could have still caused a stack overflow\n// despite the manual `Drop` impl if that `Drop` impl had used\n// `Arc::try_unwrap(arc).ok()` instead of `Arc::into_inner(arc)`.\n\n// Create a long list and clone it\nlet mut x = LinkedList::new();\nlet size = 100000;\nfor i in 0..size {\n    x.push(i); // Adds i to the front of x\n}\nlet y = x.clone();\n\n// Drop the clones in parallel\nlet x_thread = std::thread::spawn(|| drop(x));\nlet y_thread = std::thread::spawn(|| drop(y));\nx_thread.join().unwrap();\ny_thread.join().unwrap();
    \n
    ",0,"paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.64.0 · source§

    impl<T> AsFd for Arc<T>
    where\n T: AsFd + ?Sized,

    This impl allows implementing traits that require AsFd on Arc.

    \n\n
    use std::net::UdpSocket;\nuse std::sync::Arc;\n\ntrait MyTrait: AsFd {}\nimpl MyTrait for Arc<UdpSocket> {}\nimpl MyTrait for Box<UdpSocket> {}
    \n
    source§

    fn as_fd(&self) -> BorrowedFd<'_>

    Borrows the file descriptor. Read more
    ","AsFd","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.63.0 · source§

    impl<T> AsRawFd for Arc<T>
    where\n T: AsRawFd,

    This impl allows implementing traits that require AsRawFd on Arc.

    \n\n
    use std::net::UdpSocket;\nuse std::sync::Arc;\ntrait MyTrait: AsRawFd {\n}\nimpl MyTrait for Arc<UdpSocket> {}\nimpl MyTrait for Box<UdpSocket> {}
    \n
    source§

    fn as_raw_fd(&self) -> i32

    Extracts the raw file descriptor. Read more
    ","AsRawFd","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.5.0 · source§

    impl<T, A> AsRef<T> for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    source§

    fn as_ref(&self) -> &T

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Borrow<T> for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    ","Borrow","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Clone for Arc<T, A>
    where\n A: Allocator + Clone,\n T: ?Sized,

    source§

    fn clone(&self) -> Arc<T, A>

    Makes a clone of the Arc pointer.

    \n

    This creates another pointer to the same allocation, increasing the\nstrong reference count.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nlet _ = Arc::clone(&five);
    \n
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Debug for Arc<T, A>
    where\n T: Debug + ?Sized,\n A: Allocator,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T> Default for Arc<T>
    where\n T: Default,

    source§

    fn default() -> Arc<T>

    Creates a new Arc<T>, with the Default value for T.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet x: Arc<i32> = Default::default();\nassert_eq!(*x, 0);
    \n
    ","Default","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Deref for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    §

    type Target = T

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &T

    Dereferences the value.
    ","Deref","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<'de, T> Deserialize<'de> for Arc<T>
    where\n Box<T>: Deserialize<'de>,\n T: ?Sized,

    This impl requires the \"rc\" Cargo feature of Serde.

    \n

    Deserializing a data structure containing Arc will not attempt to\ndeduplicate Arc references to the same data. Every deserialized Arc\nwill end up with a strong count of 1.

    \n
    source§

    fn deserialize<D>(\n deserializer: D,\n) -> Result<Arc<T>, <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Display for Arc<T, A>
    where\n T: Display + ?Sized,\n A: Allocator,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Display","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Drop for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    source§

    fn drop(&mut self)

    Drops the Arc.

    \n

    This will decrement the strong reference count. If the strong reference\ncount reaches zero then the only other references (if any) are\nWeak, so we drop the inner value.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nstruct Foo;\n\nimpl Drop for Foo {\n    fn drop(&mut self) {\n        println!(\"dropped!\");\n    }\n}\n\nlet foo  = Arc::new(Foo);\nlet foo2 = Arc::clone(&foo);\n\ndrop(foo);    // Doesn't print anything\ndrop(foo2);   // Prints \"dropped!\"
    \n
    ","Drop","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.52.0 · source§

    impl<T> Error for Arc<T>
    where\n T: Error + ?Sized,

    source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    source§

    fn provide<'a>(&'a self, req: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    ","Error","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.21.0 · source§

    impl<T, A> From<Box<T, A>> for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    source§

    fn from(v: Box<T, A>) -> Arc<T, A>

    Move a boxed object to a new, reference-counted allocation.

    \n
    §Example
    \n
    let unique: Box<str> = Box::from(\"eggplant\");\nlet shared: Arc<str> = Arc::from(unique);\nassert_eq!(\"eggplant\", &shared[..]);
    \n
    ","From>","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.45.0 · source§

    impl<'a, B> From<Cow<'a, B>> for Arc<B>
    where\n B: ToOwned + ?Sized,\n Arc<B>: From<&'a B> + From<<B as ToOwned>::Owned>,

    source§

    fn from(cow: Cow<'a, B>) -> Arc<B>

    Creates an atomically reference-counted pointer from a clone-on-write\npointer by copying its content.

    \n
    §Example
    \n
    let cow: Cow<'_, str> = Cow::Borrowed(\"eggplant\");\nlet shared: Arc<str> = Arc::from(cow);\nassert_eq!(\"eggplant\", &shared[..]);
    \n
    ","From>","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.6.0 · source§

    impl<T> From<T> for Arc<T>

    source§

    fn from(t: T) -> Arc<T>

    Converts a T into an Arc<T>

    \n

    The conversion moves the value into a\nnewly allocated Arc. It is equivalent to\ncalling Arc::new(t).

    \n
    §Example
    \n
    let x = 5;\nlet arc = Arc::new(5);\n\nassert_eq!(Arc::from(x), arc);
    \n
    ","From","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Hash for Arc<T, A>
    where\n T: Hash + ?Sized,\n A: Allocator,

    source§

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    §

    impl<Sp> LocalSpawn for Arc<Sp>
    where\n Sp: LocalSpawn + ?Sized,

    §

    fn spawn_local_obj(\n &self,\n future: LocalFutureObj<'static, ()>,\n) -> Result<(), SpawnError>

    Spawns a future that will be run to completion. Read more
    §

    fn status_local(&self) -> Result<(), SpawnError>

    Determines whether the executor is able to spawn new tasks. Read more
    ","LocalSpawn","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<T> Log for Arc<T>
    where\n T: Log + ?Sized,

    source§

    fn enabled(&self, metadata: &Metadata<'_>) -> bool

    Determines if a log message with the specified metadata would be\nlogged. Read more
    source§

    fn log(&self, record: &Record<'_>)

    Logs the Record. Read more
    source§

    fn flush(&self)

    Flushes any buffered records. Read more
    ","Log","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Ord for Arc<T, A>
    where\n T: Ord + ?Sized,\n A: Allocator,

    source§

    fn cmp(&self, other: &Arc<T, A>) -> Ordering

    Comparison for two Arcs.

    \n

    The two are compared by calling cmp() on their inner values.

    \n
    §Examples
    \n
    use std::sync::Arc;\nuse std::cmp::Ordering;\n\nlet five = Arc::new(5);\n\nassert_eq!(Ordering::Less, five.cmp(&Arc::new(6)));
    \n
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> PartialEq for Arc<T, A>
    where\n T: PartialEq + ?Sized,\n A: Allocator,

    source§

    fn eq(&self, other: &Arc<T, A>) -> bool

    Equality for two Arcs.

    \n

    Two Arcs are equal if their inner values are equal, even if they are\nstored in different allocation.

    \n

    If T also implements Eq (implying reflexivity of equality),\ntwo Arcs that point to the same allocation are always equal.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five == Arc::new(5));
    \n
    source§

    fn ne(&self, other: &Arc<T, A>) -> bool

    Inequality for two Arcs.

    \n

    Two Arcs are not equal if their inner values are not equal.

    \n

    If T also implements Eq (implying reflexivity of equality),\ntwo Arcs that point to the same value are always equal.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five != Arc::new(6));
    \n
    ","PartialEq","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> PartialOrd for Arc<T, A>
    where\n T: PartialOrd + ?Sized,\n A: Allocator,

    source§

    fn partial_cmp(&self, other: &Arc<T, A>) -> Option<Ordering>

    Partial comparison for two Arcs.

    \n

    The two are compared by calling partial_cmp() on their inner values.

    \n
    §Examples
    \n
    use std::sync::Arc;\nuse std::cmp::Ordering;\n\nlet five = Arc::new(5);\n\nassert_eq!(Some(Ordering::Less), five.partial_cmp(&Arc::new(6)));
    \n
    source§

    fn lt(&self, other: &Arc<T, A>) -> bool

    Less-than comparison for two Arcs.

    \n

    The two are compared by calling < on their inner values.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five < Arc::new(6));
    \n
    source§

    fn le(&self, other: &Arc<T, A>) -> bool

    ‘Less than or equal to’ comparison for two Arcs.

    \n

    The two are compared by calling <= on their inner values.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five <= Arc::new(5));
    \n
    source§

    fn gt(&self, other: &Arc<T, A>) -> bool

    Greater-than comparison for two Arcs.

    \n

    The two are compared by calling > on their inner values.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five > Arc::new(4));
    \n
    source§

    fn ge(&self, other: &Arc<T, A>) -> bool

    ‘Greater than or equal to’ comparison for two Arcs.

    \n

    The two are compared by calling >= on their inner values.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five >= Arc::new(5));
    \n
    ","PartialOrd","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Pointer for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Pointer","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<T> Serialize for Arc<T>
    where\n T: Serialize + ?Sized,

    This impl requires the \"rc\" Cargo feature of Serde.

    \n

    Serializing a data structure containing Arc will serialize a copy of\nthe contents of the Arc each time the Arc is referenced within the\ndata structure. Serialization will not attempt to deduplicate these\nrepeated data.

    \n
    source§

    fn serialize<S>(\n &self,\n serializer: S,\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    §

    impl<S, Req> ServiceFactory<Req> for Arc<S>
    where\n S: ServiceFactory<Req>,

    §

    type Response = <S as ServiceFactory<Req>>::Response

    Responses given by the created services.
    §

    type Error = <S as ServiceFactory<Req>>::Error

    Errors produced by the created services.
    §

    type Config = <S as ServiceFactory<Req>>::Config

    Service factory configuration.
    §

    type Service = <S as ServiceFactory<Req>>::Service

    The kind of Service created by this factory.
    §

    type InitError = <S as ServiceFactory<Req>>::InitError

    Errors potentially raised while building a service.
    §

    type Future = <S as ServiceFactory<Req>>::Future

    The future of the Service instance.g
    §

    fn new_service(\n &self,\n cfg: <S as ServiceFactory<Req>>::Config,\n) -> <S as ServiceFactory<Req>>::Future

    Create and return a new service asynchronously.
    ","ServiceFactory","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<S> Source for Arc<S>
    where\n S: Source + ?Sized,

    source§

    fn visit<'kvs>(\n &'kvs self,\n visitor: &mut dyn VisitSource<'kvs>,\n) -> Result<(), Error>

    Visit key-values. Read more
    source§

    fn get(&self, key: Key<'_>) -> Option<Value<'_>>

    Get the value for a given key. Read more
    source§

    fn count(&self) -> usize

    Count the number of key-values that can be visited. Read more
    ","Source","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    §

    impl<Sp> Spawn for Arc<Sp>
    where\n Sp: Spawn + ?Sized,

    §

    fn spawn_obj(&self, future: FutureObj<'static, ()>) -> Result<(), SpawnError>

    Spawns a future that will be run to completion. Read more
    §

    fn status(&self) -> Result<(), SpawnError>

    Determines whether the executor is able to spawn new tasks. Read more
    ","Spawn","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    §

    impl<S> Subscriber for Arc<S>
    where\n S: Subscriber + ?Sized,

    §

    fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest

    Registers a new callsite with this subscriber, returning whether or not\nthe subscriber is interested in being notified about the callsite. Read more
    §

    fn enabled(&self, metadata: &Metadata<'_>) -> bool

    Returns true if a span or event with the specified metadata would be\nrecorded. Read more
    §

    fn max_level_hint(&self) -> Option<LevelFilter>

    Returns the highest verbosity level that this Subscriber will\nenable, or None, if the subscriber does not implement level-based\nfiltering or chooses not to implement this method. Read more
    §

    fn new_span(&self, span: &Attributes<'_>) -> Id

    Visit the construction of a new span, returning a new span ID for the\nspan being constructed. Read more
    §

    fn record(&self, span: &Id, values: &Record<'_>)

    Record a set of values on a span. Read more
    §

    fn record_follows_from(&self, span: &Id, follows: &Id)

    Adds an indication that span follows from the span with the id\nfollows. Read more
    §

    fn event_enabled(&self, event: &Event<'_>) -> bool

    Determine if an [Event] should be recorded. Read more
    §

    fn event(&self, event: &Event<'_>)

    Records that an Event has occurred. Read more
    §

    fn enter(&self, span: &Id)

    Records that a span has been entered. Read more
    §

    fn exit(&self, span: &Id)

    Records that a span has been exited. Read more
    §

    fn clone_span(&self, id: &Id) -> Id

    Notifies the subscriber that a span ID has been cloned. Read more
    §

    fn try_close(&self, id: Id) -> bool

    Notifies the subscriber that a span ID has been dropped, and returns\ntrue if there are now 0 IDs that refer to that span. Read more
    §

    fn drop_span(&self, id: Id)

    👎Deprecated since 0.1.2: use Subscriber::try_close instead
    This method is deprecated. Read more
    §

    fn current_span(&self) -> Current

    Returns a type representing this subscriber’s view of the current span. Read more
    §

    unsafe fn downcast_raw(&self, id: TypeId) -> Option<*const ()>

    If self is the same type as the provided TypeId, returns an untyped\n*const pointer to that type. Otherwise, returns None. Read more
    §

    fn on_register_dispatch(&self, subscriber: &Dispatch)

    Invoked when this subscriber becomes a [Dispatch]. Read more
    ","Subscriber","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    §

    impl<T, S, Req> Transform<S, Req> for Arc<T>
    where\n T: Transform<S, Req>,

    §

    type Response = <T as Transform<S, Req>>::Response

    Responses produced by the service.
    §

    type Error = <T as Transform<S, Req>>::Error

    Errors produced by the service.
    §

    type Transform = <T as Transform<S, Req>>::Transform

    The TransformService value created by this factory
    §

    type InitError = <T as Transform<S, Req>>::InitError

    Errors produced while building a transform service.
    §

    type Future = <T as Transform<S, Req>>::Future

    The future response value.
    §

    fn new_transform(&self, service: S) -> <T as Transform<S, Req>>::Future

    Creates and returns a new Transform component, asynchronously
    ","Transform","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<T, U, A> CoerceUnsized<Arc<U, A>> for Arc<T, A>
    where\n T: Unsize<U> + ?Sized,\n A: Allocator,\n U: ?Sized,

    ","CoerceUnsized>","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> DerefPure for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    ","DerefPure","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<T, U> DispatchFromDyn<Arc<U>> for Arc<T>
    where\n T: Unsize<U> + ?Sized,\n U: ?Sized,

    ","DispatchFromDyn>","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Eq for Arc<T, A>
    where\n T: Eq + ?Sized,\n A: Allocator,

    ","Eq","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> PinCoerceUnsized for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    ","PinCoerceUnsized","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Send for Arc<T, A>
    where\n T: Sync + Send + ?Sized,\n A: Allocator + Send,

    ","Send","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Sync for Arc<T, A>
    where\n T: Sync + Send + ?Sized,\n A: Allocator + Sync,

    ","Sync","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.33.0 · source§

    impl<T, A> Unpin for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    ","Unpin","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"],["
    1.9.0 · source§

    impl<T, A> UnwindSafe for Arc<T, A>
    where\n T: RefUnwindSafe + ?Sized,\n A: Allocator + UnwindSafe,

    ","UnwindSafe","paperclip::v2::models::ResolvableParameter","paperclip::v2::models::ResolvableResponse"]], +"paperclip_core":[["
    source§

    impl<T> Arc<T>
    where\n T: ?Sized,

    1.17.0 · source

    pub unsafe fn from_raw(ptr: *const T) -> Arc<T>

    Constructs an Arc<T> from a raw pointer.

    \n

    The raw pointer must have been previously returned by a call to\nArc<U>::into_raw with the following requirements:

    \n
      \n
    • If U is sized, it must have the same size and alignment as T. This\nis trivially true if U is T.
    • \n
    • If U is unsized, its data pointer must have the same size and\nalignment as T. This is trivially true if Arc<U> was constructed\nthrough Arc<T> and then converted to Arc<U> through an unsized\ncoercion.
    • \n
    \n

    Note that if U or U’s data pointer is not T but has the same size\nand alignment, this is basically like transmuting references of\ndifferent types. See mem::transmute for more information\non what restrictions apply in this case.

    \n

    The user of from_raw has to make sure a specific value of T is only\ndropped once.

    \n

    This function is unsafe because improper use may lead to memory unsafety,\neven if the returned Arc<T> is never accessed.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet x_ptr = Arc::into_raw(x);\n\nunsafe {\n    // Convert back to an `Arc` to prevent leak.\n    let x = Arc::from_raw(x_ptr);\n    assert_eq!(&*x, \"hello\");\n\n    // Further calls to `Arc::from_raw(x_ptr)` would be memory-unsafe.\n}\n\n// The memory was freed when `x` went out of scope above, so `x_ptr` is now dangling!
    \n

    Convert a slice back into its original array:

    \n\n
    use std::sync::Arc;\n\nlet x: Arc<[u32]> = Arc::new([1, 2, 3]);\nlet x_ptr: *const [u32] = Arc::into_raw(x);\n\nunsafe {\n    let x: Arc<[u32; 3]> = Arc::from_raw(x_ptr.cast::<[u32; 3]>());\n    assert_eq!(&*x, &[1, 2, 3]);\n}
    \n
    1.51.0 · source

    pub unsafe fn increment_strong_count(ptr: *const T)

    Increments the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

    \n
    §Safety
    \n

    The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) for the duration of this method.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count(ptr);\n\n    // This assertion is deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw(ptr);\n    assert_eq!(2, Arc::strong_count(&five));\n}
    \n
    1.51.0 · source

    pub unsafe fn decrement_strong_count(ptr: *const T)

    Decrements the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

    \n
    §Safety
    \n

    The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) when invoking this method. This method can be used to release the final\nArc and backing storage, but should not be called after the final Arc has been\nreleased.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count(ptr);\n\n    // Those assertions are deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw(ptr);\n    assert_eq!(2, Arc::strong_count(&five));\n    Arc::decrement_strong_count(ptr);\n    assert_eq!(1, Arc::strong_count(&five));\n}
    \n
    ",0,"paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<T> Arc<T>

    1.0.0 · source

    pub fn new(data: T) -> Arc<T>

    Constructs a new Arc<T>.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);
    \n
    1.60.0 · source

    pub fn new_cyclic<F>(data_fn: F) -> Arc<T>
    where\n F: FnOnce(&Weak<T>) -> T,

    Constructs a new Arc<T> while giving you a Weak<T> to the allocation,\nto allow you to construct a T which holds a weak pointer to itself.

    \n

    Generally, a structure circularly referencing itself, either directly or\nindirectly, should not hold a strong reference to itself to prevent a memory leak.\nUsing this function, you get access to the weak pointer during the\ninitialization of T, before the Arc<T> is created, such that you can\nclone and store it inside the T.

    \n

    new_cyclic first allocates the managed allocation for the Arc<T>,\nthen calls your closure, giving it a Weak<T> to this allocation,\nand only afterwards completes the construction of the Arc<T> by placing\nthe T returned from your closure into the allocation.

    \n

    Since the new Arc<T> is not fully-constructed until Arc<T>::new_cyclic\nreturns, calling upgrade on the weak reference inside your closure will\nfail and result in a None value.

    \n
    §Panics
    \n

    If data_fn panics, the panic is propagated to the caller, and the\ntemporary Weak<T> is dropped normally.

    \n
    §Example
    \n
    use std::sync::{Arc, Weak};\n\nstruct Gadget {\n    me: Weak<Gadget>,\n}\n\nimpl Gadget {\n    /// Constructs a reference counted Gadget.\n    fn new() -> Arc<Self> {\n        // `me` is a `Weak<Gadget>` pointing at the new allocation of the\n        // `Arc` we're constructing.\n        Arc::new_cyclic(|me| {\n            // Create the actual struct here.\n            Gadget { me: me.clone() }\n        })\n    }\n\n    /// Returns a reference counted pointer to Self.\n    fn me(&self) -> Arc<Self> {\n        self.me.upgrade().unwrap()\n    }\n}
    \n
    source

    pub fn new_uninit() -> Arc<MaybeUninit<T>>

    🔬This is a nightly-only experimental API. (new_uninit)

    Constructs a new Arc with uninitialized contents.

    \n
    §Examples
    \n
    #![feature(new_uninit)]\n#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut five = Arc::<u32>::new_uninit();\n\n// Deferred initialization:\nArc::get_mut(&mut five).unwrap().write(5);\n\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5)
    \n
    source

    pub fn new_zeroed() -> Arc<MaybeUninit<T>>

    🔬This is a nightly-only experimental API. (new_uninit)

    Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes.

    \n

    See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

    \n
    §Examples
    \n
    #![feature(new_uninit)]\n\nuse std::sync::Arc;\n\nlet zero = Arc::<u32>::new_zeroed();\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
    \n
    1.33.0 · source

    pub fn pin(data: T) -> Pin<Arc<T>>

    Constructs a new Pin<Arc<T>>. If T does not implement Unpin, then\ndata will be pinned in memory and unable to be moved.

    \n
    source

    pub fn try_pin(data: T) -> Result<Pin<Arc<T>>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Pin<Arc<T>>, return an error if allocation fails.

    \n
    source

    pub fn try_new(data: T) -> Result<Arc<T>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc<T>, returning an error if allocation fails.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\nuse std::sync::Arc;\n\nlet five = Arc::try_new(5)?;
    \n
    source

    pub fn try_new_uninit() -> Result<Arc<MaybeUninit<T>>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc with uninitialized contents, returning an error\nif allocation fails.

    \n
    §Examples
    \n
    #![feature(new_uninit, allocator_api)]\n#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut five = Arc::<u32>::try_new_uninit()?;\n\n// Deferred initialization:\nArc::get_mut(&mut five).unwrap().write(5);\n\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5);
    \n
    source

    pub fn try_new_zeroed() -> Result<Arc<MaybeUninit<T>>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, returning an error if allocation fails.

    \n

    See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

    \n
    §Examples
    \n
    #![feature(new_uninit, allocator_api)]\n\nuse std::sync::Arc;\n\nlet zero = Arc::<u32>::try_new_zeroed()?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
    \n
    ",0,"paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    source

    pub fn allocator(this: &Arc<T, A>) -> &A

    🔬This is a nightly-only experimental API. (allocator_api)

    Returns a reference to the underlying allocator.

    \n

    Note: this is an associated function, which means that you have\nto call it as Arc::allocator(&a) instead of a.allocator(). This\nis so that there is no conflict with a method on the inner type.

    \n
    1.17.0 · source

    pub fn into_raw(this: Arc<T, A>) -> *const T

    Consumes the Arc, returning the wrapped pointer.

    \n

    To avoid a memory leak the pointer must be converted back to an Arc using\nArc::from_raw.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet x_ptr = Arc::into_raw(x);\nassert_eq!(unsafe { &*x_ptr }, \"hello\");
    \n
    source

    pub fn into_raw_with_allocator(this: Arc<T, A>) -> (*const T, A)

    🔬This is a nightly-only experimental API. (allocator_api)

    Consumes the Arc, returning the wrapped pointer and allocator.

    \n

    To avoid a memory leak the pointer must be converted back to an Arc using\nArc::from_raw_in.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x = Arc::new_in(\"hello\".to_owned(), System);\nlet (ptr, alloc) = Arc::into_raw_with_allocator(x);\nassert_eq!(unsafe { &*ptr }, \"hello\");\nlet x = unsafe { Arc::from_raw_in(ptr, alloc) };\nassert_eq!(&*x, \"hello\");
    \n
    1.45.0 · source

    pub fn as_ptr(this: &Arc<T, A>) -> *const T

    Provides a raw pointer to the data.

    \n

    The counts are not affected in any way and the Arc is not consumed. The pointer is valid for\nas long as there are strong counts in the Arc.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet y = Arc::clone(&x);\nlet x_ptr = Arc::as_ptr(&x);\nassert_eq!(x_ptr, Arc::as_ptr(&y));\nassert_eq!(unsafe { &*x_ptr }, \"hello\");
    \n
    source

    pub unsafe fn from_raw_in(ptr: *const T, alloc: A) -> Arc<T, A>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs an Arc<T, A> from a raw pointer.

    \n

    The raw pointer must have been previously returned by a call to Arc<U, A>::into_raw with the following requirements:

    \n
      \n
    • If U is sized, it must have the same size and alignment as T. This\nis trivially true if U is T.
    • \n
    • If U is unsized, its data pointer must have the same size and\nalignment as T. This is trivially true if Arc<U> was constructed\nthrough Arc<T> and then converted to Arc<U> through an unsized\ncoercion.
    • \n
    \n

    Note that if U or U’s data pointer is not T but has the same size\nand alignment, this is basically like transmuting references of\ndifferent types. See mem::transmute for more information\non what restrictions apply in this case.

    \n

    The raw pointer must point to a block of memory allocated by alloc

    \n

    The user of from_raw has to make sure a specific value of T is only\ndropped once.

    \n

    This function is unsafe because improper use may lead to memory unsafety,\neven if the returned Arc<T> is never accessed.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x = Arc::new_in(\"hello\".to_owned(), System);\nlet x_ptr = Arc::into_raw(x);\n\nunsafe {\n    // Convert back to an `Arc` to prevent leak.\n    let x = Arc::from_raw_in(x_ptr, System);\n    assert_eq!(&*x, \"hello\");\n\n    // Further calls to `Arc::from_raw(x_ptr)` would be memory-unsafe.\n}\n\n// The memory was freed when `x` went out of scope above, so `x_ptr` is now dangling!
    \n

    Convert a slice back into its original array:

    \n\n
    #![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x: Arc<[u32], _> = Arc::new_in([1, 2, 3], System);\nlet x_ptr: *const [u32] = Arc::into_raw(x);\n\nunsafe {\n    let x: Arc<[u32; 3], _> = Arc::from_raw_in(x_ptr.cast::<[u32; 3]>(), System);\n    assert_eq!(&*x, &[1, 2, 3]);\n}
    \n
    1.4.0 · source

    pub fn downgrade(this: &Arc<T, A>) -> Weak<T, A>
    where\n A: Clone,

    Creates a new Weak pointer to this allocation.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nlet weak_five = Arc::downgrade(&five);
    \n
    1.15.0 · source

    pub fn weak_count(this: &Arc<T, A>) -> usize

    Gets the number of Weak pointers to this allocation.

    \n
    §Safety
    \n

    This method by itself is safe, but using it correctly requires extra care.\nAnother thread can change the weak count at any time,\nincluding potentially between calling this method and acting on the result.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet _weak_five = Arc::downgrade(&five);\n\n// This assertion is deterministic because we haven't shared\n// the `Arc` or `Weak` between threads.\nassert_eq!(1, Arc::weak_count(&five));
    \n
    1.15.0 · source

    pub fn strong_count(this: &Arc<T, A>) -> usize

    Gets the number of strong (Arc) pointers to this allocation.

    \n
    §Safety
    \n

    This method by itself is safe, but using it correctly requires extra care.\nAnother thread can change the strong count at any time,\nincluding potentially between calling this method and acting on the result.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet _also_five = Arc::clone(&five);\n\n// This assertion is deterministic because we haven't shared\n// the `Arc` between threads.\nassert_eq!(2, Arc::strong_count(&five));
    \n
    source

    pub unsafe fn increment_strong_count_in(ptr: *const T, alloc: A)
    where\n A: Clone,

    🔬This is a nightly-only experimental API. (allocator_api)

    Increments the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

    \n
    §Safety
    \n

    The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) for the duration of this method,, and ptr must point to a block of memory\nallocated by alloc.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count_in(ptr, System);\n\n    // This assertion is deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw_in(ptr, System);\n    assert_eq!(2, Arc::strong_count(&five));\n}
    \n
    source

    pub unsafe fn decrement_strong_count_in(ptr: *const T, alloc: A)

    🔬This is a nightly-only experimental API. (allocator_api)

    Decrements the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

    \n
    §Safety
    \n

    The pointer must have been obtained through Arc::into_raw, the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) when invoking this method, and ptr must point to a block of memory\nallocated by alloc. This method can be used to release the final\nArc and backing storage, but should not be called after the final Arc has been\nreleased.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count_in(ptr, System);\n\n    // Those assertions are deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw_in(ptr, System);\n    assert_eq!(2, Arc::strong_count(&five));\n    Arc::decrement_strong_count_in(ptr, System);\n    assert_eq!(1, Arc::strong_count(&five));\n}
    \n
    1.17.0 · source

    pub fn ptr_eq(this: &Arc<T, A>, other: &Arc<T, A>) -> bool

    Returns true if the two Arcs point to the same allocation in a vein similar to\nptr::eq. This function ignores the metadata of dyn Trait pointers.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet same_five = Arc::clone(&five);\nlet other_five = Arc::new(5);\n\nassert!(Arc::ptr_eq(&five, &same_five));\nassert!(!Arc::ptr_eq(&five, &other_five));
    \n
    ",0,"paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> Arc<T, A>
    where\n T: CloneToUninit + ?Sized,\n A: Allocator + Clone,

    1.4.0 · source

    pub fn make_mut(this: &mut Arc<T, A>) -> &mut T

    Makes a mutable reference into the given Arc.

    \n

    If there are other Arc pointers to the same allocation, then make_mut will\nclone the inner value to a new allocation to ensure unique ownership. This is also\nreferred to as clone-on-write.

    \n

    However, if there are no other Arc pointers to this allocation, but some Weak\npointers, then the Weak pointers will be dissociated and the inner value will not\nbe cloned.

    \n

    See also get_mut, which will fail rather than cloning the inner value\nor dissociating Weak pointers.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet mut data = Arc::new(5);\n\n*Arc::make_mut(&mut data) += 1;         // Won't clone anything\nlet mut other_data = Arc::clone(&data); // Won't clone inner data\n*Arc::make_mut(&mut data) += 1;         // Clones inner data\n*Arc::make_mut(&mut data) += 1;         // Won't clone anything\n*Arc::make_mut(&mut other_data) *= 2;   // Won't clone anything\n\n// Now `data` and `other_data` point to different allocations.\nassert_eq!(*data, 8);\nassert_eq!(*other_data, 12);
    \n

    Weak pointers will be dissociated:

    \n\n
    use std::sync::Arc;\n\nlet mut data = Arc::new(75);\nlet weak = Arc::downgrade(&data);\n\nassert!(75 == *data);\nassert!(75 == *weak.upgrade().unwrap());\n\n*Arc::make_mut(&mut data) += 1;\n\nassert!(76 == *data);\nassert!(weak.upgrade().is_none());
    \n
    ",0,"paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> Arc<T, A>
    where\n T: Clone,\n A: Allocator,

    1.76.0 · source

    pub fn unwrap_or_clone(this: Arc<T, A>) -> T

    If we have the only reference to T then unwrap it. Otherwise, clone T and return the\nclone.

    \n

    Assuming arc_t is of type Arc<T>, this function is functionally equivalent to\n(*arc_t).clone(), but will avoid cloning the inner value where possible.

    \n
    §Examples
    \n
    let inner = String::from(\"test\");\nlet ptr = inner.as_ptr();\n\nlet arc = Arc::new(inner);\nlet inner = Arc::unwrap_or_clone(arc);\n// The inner value was not cloned\nassert!(ptr::eq(ptr, inner.as_ptr()));\n\nlet arc = Arc::new(inner);\nlet arc2 = arc.clone();\nlet inner = Arc::unwrap_or_clone(arc);\n// Because there were 2 references, we had to clone the inner value.\nassert!(!ptr::eq(ptr, inner.as_ptr()));\n// `arc2` is the last reference, so when we unwrap it we get back\n// the original `String`.\nlet inner = Arc::unwrap_or_clone(arc2);\nassert!(ptr::eq(ptr, inner.as_ptr()));
    \n
    ",0,"paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    1.4.0 · source

    pub fn get_mut(this: &mut Arc<T, A>) -> Option<&mut T>

    Returns a mutable reference into the given Arc, if there are\nno other Arc or Weak pointers to the same allocation.

    \n

    Returns None otherwise, because it is not safe to\nmutate a shared value.

    \n

    See also make_mut, which will clone\nthe inner value when there are other Arc pointers.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet mut x = Arc::new(3);\n*Arc::get_mut(&mut x).unwrap() = 4;\nassert_eq!(*x, 4);\n\nlet _y = Arc::clone(&x);\nassert!(Arc::get_mut(&mut x).is_none());
    \n
    source

    pub unsafe fn get_mut_unchecked(this: &mut Arc<T, A>) -> &mut T

    🔬This is a nightly-only experimental API. (get_mut_unchecked)

    Returns a mutable reference into the given Arc,\nwithout any check.

    \n

    See also get_mut, which is safe and does appropriate checks.

    \n
    §Safety
    \n

    If any other Arc or Weak pointers to the same allocation exist, then\nthey must not be dereferenced or have active borrows for the duration\nof the returned borrow, and their inner type must be exactly the same as the\ninner type of this Rc (including lifetimes). This is trivially the case if no\nsuch pointers exist, for example immediately after Arc::new.

    \n
    §Examples
    \n
    #![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut x = Arc::new(String::new());\nunsafe {\n    Arc::get_mut_unchecked(&mut x).push_str(\"foo\")\n}\nassert_eq!(*x, \"foo\");
    \n

    Other Arc pointers to the same allocation must be to the same type.

    \n\n
    #![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet x: Arc<str> = Arc::from(\"Hello, world!\");\nlet mut y: Arc<[u8]> = x.clone().into();\nunsafe {\n    // this is Undefined Behavior, because x's inner type is str, not [u8]\n    Arc::get_mut_unchecked(&mut y).fill(0xff); // 0xff is invalid in UTF-8\n}\nprintln!(\"{}\", &*x); // Invalid UTF-8 in a str
    \n

    Other Arc pointers to the same allocation must be to the exact same type, including lifetimes.

    \n\n
    #![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet x: Arc<&str> = Arc::new(\"Hello, world!\");\n{\n    let s = String::from(\"Oh, no!\");\n    let mut y: Arc<&str> = x.clone().into();\n    unsafe {\n        // this is Undefined Behavior, because x's inner type\n        // is &'long str, not &'short str\n        *Arc::get_mut_unchecked(&mut y) = &s;\n    }\n}\nprintln!(\"{}\", &*x); // Use-after-free
    \n
    ",0,"paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> Arc<T, A>
    where\n A: Allocator,

    source

    pub fn new_in(data: T, alloc: A) -> Arc<T, A>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc<T> in the provided allocator.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);
    \n
    source

    pub fn new_uninit_in(alloc: A) -> Arc<MaybeUninit<T>, A>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc with uninitialized contents in the provided allocator.

    \n
    §Examples
    \n
    #![feature(new_uninit)]\n#![feature(get_mut_unchecked)]\n#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet mut five = Arc::<u32, _>::new_uninit_in(System);\n\nlet five = unsafe {\n    // Deferred initialization:\n    Arc::get_mut_unchecked(&mut five).as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5)
    \n
    source

    pub fn new_zeroed_in(alloc: A) -> Arc<MaybeUninit<T>, A>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, in the provided allocator.

    \n

    See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

    \n
    §Examples
    \n
    #![feature(new_uninit)]\n#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet zero = Arc::<u32, _>::new_zeroed_in(System);\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
    \n
    source

    pub fn pin_in(data: T, alloc: A) -> Pin<Arc<T, A>>
    where\n A: 'static,

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Pin<Arc<T, A>> in the provided allocator. If T does not implement Unpin,\nthen data will be pinned in memory and unable to be moved.

    \n
    source

    pub fn try_pin_in(data: T, alloc: A) -> Result<Pin<Arc<T, A>>, AllocError>
    where\n A: 'static,

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Pin<Arc<T, A>> in the provided allocator, return an error if allocation\nfails.

    \n
    source

    pub fn try_new_in(data: T, alloc: A) -> Result<Arc<T, A>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc<T, A> in the provided allocator, returning an error if allocation fails.

    \n
    §Examples
    \n
    #![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::try_new_in(5, System)?;
    \n
    source

    pub fn try_new_uninit_in(alloc: A) -> Result<Arc<MaybeUninit<T>, A>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc with uninitialized contents, in the provided allocator, returning an\nerror if allocation fails.

    \n
    §Examples
    \n
    #![feature(new_uninit, allocator_api)]\n#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet mut five = Arc::<u32, _>::try_new_uninit_in(System)?;\n\nlet five = unsafe {\n    // Deferred initialization:\n    Arc::get_mut_unchecked(&mut five).as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5);
    \n
    source

    pub fn try_new_zeroed_in(alloc: A) -> Result<Arc<MaybeUninit<T>, A>, AllocError>

    🔬This is a nightly-only experimental API. (allocator_api)

    Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, in the provided allocator, returning an error if allocation\nfails.

    \n

    See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

    \n
    §Examples
    \n
    #![feature(new_uninit, allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet zero = Arc::<u32, _>::try_new_zeroed_in(System)?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
    \n
    1.4.0 · source

    pub fn try_unwrap(this: Arc<T, A>) -> Result<T, Arc<T, A>>

    Returns the inner value, if the Arc has exactly one strong reference.

    \n

    Otherwise, an Err is returned with the same Arc that was\npassed in.

    \n

    This will succeed even if there are outstanding weak references.

    \n

    It is strongly recommended to use Arc::into_inner instead if you don’t\nkeep the Arc in the Err case.\nImmediately dropping the Err-value, as the expression\nArc::try_unwrap(this).ok() does, can cause the strong count to\ndrop to zero and the inner value of the Arc to be dropped.\nFor instance, if two threads execute such an expression in parallel,\nthere is a race condition without the possibility of unsafety:\nThe threads could first both check whether they own the last instance\nin Arc::try_unwrap, determine that they both do not, and then both\ndiscard and drop their instance in the call to ok.\nIn this scenario, the value inside the Arc is safely destroyed\nby exactly one of the threads, but neither thread will ever be able\nto use the value.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet x = Arc::new(3);\nassert_eq!(Arc::try_unwrap(x), Ok(3));\n\nlet x = Arc::new(4);\nlet _y = Arc::clone(&x);\nassert_eq!(*Arc::try_unwrap(x).unwrap_err(), 4);
    \n
    1.70.0 · source

    pub fn into_inner(this: Arc<T, A>) -> Option<T>

    Returns the inner value, if the Arc has exactly one strong reference.

    \n

    Otherwise, None is returned and the Arc is dropped.

    \n

    This will succeed even if there are outstanding weak references.

    \n

    If Arc::into_inner is called on every clone of this Arc,\nit is guaranteed that exactly one of the calls returns the inner value.\nThis means in particular that the inner value is not dropped.

    \n

    Arc::try_unwrap is conceptually similar to Arc::into_inner, but it\nis meant for different use-cases. If used as a direct replacement\nfor Arc::into_inner anyway, such as with the expression\nArc::try_unwrap(this).ok(), then it does\nnot give the same guarantee as described in the previous paragraph.\nFor more information, see the examples below and read the documentation\nof Arc::try_unwrap.

    \n
    §Examples
    \n

    Minimal example demonstrating the guarantee that Arc::into_inner gives.

    \n\n
    use std::sync::Arc;\n\nlet x = Arc::new(3);\nlet y = Arc::clone(&x);\n\n// Two threads calling `Arc::into_inner` on both clones of an `Arc`:\nlet x_thread = std::thread::spawn(|| Arc::into_inner(x));\nlet y_thread = std::thread::spawn(|| Arc::into_inner(y));\n\nlet x_inner_value = x_thread.join().unwrap();\nlet y_inner_value = y_thread.join().unwrap();\n\n// One of the threads is guaranteed to receive the inner value:\nassert!(matches!(\n    (x_inner_value, y_inner_value),\n    (None, Some(3)) | (Some(3), None)\n));\n// The result could also be `(None, None)` if the threads called\n// `Arc::try_unwrap(x).ok()` and `Arc::try_unwrap(y).ok()` instead.
    \n

    A more practical example demonstrating the need for Arc::into_inner:

    \n\n
    use std::sync::Arc;\n\n// Definition of a simple singly linked list using `Arc`:\n#[derive(Clone)]\nstruct LinkedList<T>(Option<Arc<Node<T>>>);\nstruct Node<T>(T, Option<Arc<Node<T>>>);\n\n// Dropping a long `LinkedList<T>` relying on the destructor of `Arc`\n// can cause a stack overflow. To prevent this, we can provide a\n// manual `Drop` implementation that does the destruction in a loop:\nimpl<T> Drop for LinkedList<T> {\n    fn drop(&mut self) {\n        let mut link = self.0.take();\n        while let Some(arc_node) = link.take() {\n            if let Some(Node(_value, next)) = Arc::into_inner(arc_node) {\n                link = next;\n            }\n        }\n    }\n}\n\n// Implementation of `new` and `push` omitted\nimpl<T> LinkedList<T> {\n    /* ... */\n}\n\n// The following code could have still caused a stack overflow\n// despite the manual `Drop` impl if that `Drop` impl had used\n// `Arc::try_unwrap(arc).ok()` instead of `Arc::into_inner(arc)`.\n\n// Create a long list and clone it\nlet mut x = LinkedList::new();\nlet size = 100000;\nfor i in 0..size {\n    x.push(i); // Adds i to the front of x\n}\nlet y = x.clone();\n\n// Drop the clones in parallel\nlet x_thread = std::thread::spawn(|| drop(x));\nlet y_thread = std::thread::spawn(|| drop(y));\nx_thread.join().unwrap();\ny_thread.join().unwrap();
    \n
    ",0,"paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.64.0 · source§

    impl<T> AsFd for Arc<T>
    where\n T: AsFd + ?Sized,

    This impl allows implementing traits that require AsFd on Arc.

    \n\n
    use std::net::UdpSocket;\nuse std::sync::Arc;\n\ntrait MyTrait: AsFd {}\nimpl MyTrait for Arc<UdpSocket> {}\nimpl MyTrait for Box<UdpSocket> {}
    \n
    source§

    fn as_fd(&self) -> BorrowedFd<'_>

    Borrows the file descriptor. Read more
    ","AsFd","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.63.0 · source§

    impl<T> AsRawFd for Arc<T>
    where\n T: AsRawFd,

    This impl allows implementing traits that require AsRawFd on Arc.

    \n\n
    use std::net::UdpSocket;\nuse std::sync::Arc;\ntrait MyTrait: AsRawFd {\n}\nimpl MyTrait for Arc<UdpSocket> {}\nimpl MyTrait for Box<UdpSocket> {}
    \n
    source§

    fn as_raw_fd(&self) -> i32

    Extracts the raw file descriptor. Read more
    ","AsRawFd","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.5.0 · source§

    impl<T, A> AsRef<T> for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    source§

    fn as_ref(&self) -> &T

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Borrow<T> for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    ","Borrow","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Clone for Arc<T, A>
    where\n A: Allocator + Clone,\n T: ?Sized,

    source§

    fn clone(&self) -> Arc<T, A>

    Makes a clone of the Arc pointer.

    \n

    This creates another pointer to the same allocation, increasing the\nstrong reference count.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nlet _ = Arc::clone(&five);
    \n
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Debug for Arc<T, A>
    where\n T: Debug + ?Sized,\n A: Allocator,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T> Default for Arc<T>
    where\n T: Default,

    source§

    fn default() -> Arc<T>

    Creates a new Arc<T>, with the Default value for T.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet x: Arc<i32> = Default::default();\nassert_eq!(*x, 0);
    \n
    ","Default","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Deref for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    §

    type Target = T

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &T

    Dereferences the value.
    ","Deref","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<'de, T> Deserialize<'de> for Arc<T>
    where\n Box<T>: Deserialize<'de>,\n T: ?Sized,

    This impl requires the \"rc\" Cargo feature of Serde.

    \n

    Deserializing a data structure containing Arc will not attempt to\ndeduplicate Arc references to the same data. Every deserialized Arc\nwill end up with a strong count of 1.

    \n
    source§

    fn deserialize<D>(\n deserializer: D,\n) -> Result<Arc<T>, <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Display for Arc<T, A>
    where\n T: Display + ?Sized,\n A: Allocator,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Display","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Drop for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    source§

    fn drop(&mut self)

    Drops the Arc.

    \n

    This will decrement the strong reference count. If the strong reference\ncount reaches zero then the only other references (if any) are\nWeak, so we drop the inner value.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nstruct Foo;\n\nimpl Drop for Foo {\n    fn drop(&mut self) {\n        println!(\"dropped!\");\n    }\n}\n\nlet foo  = Arc::new(Foo);\nlet foo2 = Arc::clone(&foo);\n\ndrop(foo);    // Doesn't print anything\ndrop(foo2);   // Prints \"dropped!\"
    \n
    ","Drop","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.52.0 · source§

    impl<T> Error for Arc<T>
    where\n T: Error + ?Sized,

    source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    source§

    fn provide<'a>(&'a self, req: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    ","Error","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.21.0 · source§

    impl<T, A> From<Box<T, A>> for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    source§

    fn from(v: Box<T, A>) -> Arc<T, A>

    Move a boxed object to a new, reference-counted allocation.

    \n
    §Example
    \n
    let unique: Box<str> = Box::from(\"eggplant\");\nlet shared: Arc<str> = Arc::from(unique);\nassert_eq!(\"eggplant\", &shared[..]);
    \n
    ","From>","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.45.0 · source§

    impl<'a, B> From<Cow<'a, B>> for Arc<B>
    where\n B: ToOwned + ?Sized,\n Arc<B>: From<&'a B> + From<<B as ToOwned>::Owned>,

    source§

    fn from(cow: Cow<'a, B>) -> Arc<B>

    Creates an atomically reference-counted pointer from a clone-on-write\npointer by copying its content.

    \n
    §Example
    \n
    let cow: Cow<'_, str> = Cow::Borrowed(\"eggplant\");\nlet shared: Arc<str> = Arc::from(cow);\nassert_eq!(\"eggplant\", &shared[..]);
    \n
    ","From>","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.6.0 · source§

    impl<T> From<T> for Arc<T>

    source§

    fn from(t: T) -> Arc<T>

    Converts a T into an Arc<T>

    \n

    The conversion moves the value into a\nnewly allocated Arc. It is equivalent to\ncalling Arc::new(t).

    \n
    §Example
    \n
    let x = 5;\nlet arc = Arc::new(5);\n\nassert_eq!(Arc::from(x), arc);
    \n
    ","From","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Hash for Arc<T, A>
    where\n T: Hash + ?Sized,\n A: Allocator,

    source§

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    §

    impl<Sp> LocalSpawn for Arc<Sp>
    where\n Sp: LocalSpawn + ?Sized,

    §

    fn spawn_local_obj(\n &self,\n future: LocalFutureObj<'static, ()>,\n) -> Result<(), SpawnError>

    Spawns a future that will be run to completion. Read more
    §

    fn status_local(&self) -> Result<(), SpawnError>

    Determines whether the executor is able to spawn new tasks. Read more
    ","LocalSpawn","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<T> Log for Arc<T>
    where\n T: Log + ?Sized,

    source§

    fn enabled(&self, metadata: &Metadata<'_>) -> bool

    Determines if a log message with the specified metadata would be\nlogged. Read more
    source§

    fn log(&self, record: &Record<'_>)

    Logs the Record. Read more
    source§

    fn flush(&self)

    Flushes any buffered records. Read more
    ","Log","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Ord for Arc<T, A>
    where\n T: Ord + ?Sized,\n A: Allocator,

    source§

    fn cmp(&self, other: &Arc<T, A>) -> Ordering

    Comparison for two Arcs.

    \n

    The two are compared by calling cmp() on their inner values.

    \n
    §Examples
    \n
    use std::sync::Arc;\nuse std::cmp::Ordering;\n\nlet five = Arc::new(5);\n\nassert_eq!(Ordering::Less, five.cmp(&Arc::new(6)));
    \n
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> PartialEq for Arc<T, A>
    where\n T: PartialEq + ?Sized,\n A: Allocator,

    source§

    fn eq(&self, other: &Arc<T, A>) -> bool

    Equality for two Arcs.

    \n

    Two Arcs are equal if their inner values are equal, even if they are\nstored in different allocation.

    \n

    If T also implements Eq (implying reflexivity of equality),\ntwo Arcs that point to the same allocation are always equal.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five == Arc::new(5));
    \n
    source§

    fn ne(&self, other: &Arc<T, A>) -> bool

    Inequality for two Arcs.

    \n

    Two Arcs are not equal if their inner values are not equal.

    \n

    If T also implements Eq (implying reflexivity of equality),\ntwo Arcs that point to the same value are always equal.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five != Arc::new(6));
    \n
    ","PartialEq","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> PartialOrd for Arc<T, A>
    where\n T: PartialOrd + ?Sized,\n A: Allocator,

    source§

    fn partial_cmp(&self, other: &Arc<T, A>) -> Option<Ordering>

    Partial comparison for two Arcs.

    \n

    The two are compared by calling partial_cmp() on their inner values.

    \n
    §Examples
    \n
    use std::sync::Arc;\nuse std::cmp::Ordering;\n\nlet five = Arc::new(5);\n\nassert_eq!(Some(Ordering::Less), five.partial_cmp(&Arc::new(6)));
    \n
    source§

    fn lt(&self, other: &Arc<T, A>) -> bool

    Less-than comparison for two Arcs.

    \n

    The two are compared by calling < on their inner values.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five < Arc::new(6));
    \n
    source§

    fn le(&self, other: &Arc<T, A>) -> bool

    ‘Less than or equal to’ comparison for two Arcs.

    \n

    The two are compared by calling <= on their inner values.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five <= Arc::new(5));
    \n
    source§

    fn gt(&self, other: &Arc<T, A>) -> bool

    Greater-than comparison for two Arcs.

    \n

    The two are compared by calling > on their inner values.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five > Arc::new(4));
    \n
    source§

    fn ge(&self, other: &Arc<T, A>) -> bool

    ‘Greater than or equal to’ comparison for two Arcs.

    \n

    The two are compared by calling >= on their inner values.

    \n
    §Examples
    \n
    use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five >= Arc::new(5));
    \n
    ","PartialOrd","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Pointer for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Pointer","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<T> Serialize for Arc<T>
    where\n T: Serialize + ?Sized,

    This impl requires the \"rc\" Cargo feature of Serde.

    \n

    Serializing a data structure containing Arc will serialize a copy of\nthe contents of the Arc each time the Arc is referenced within the\ndata structure. Serialization will not attempt to deduplicate these\nrepeated data.

    \n
    source§

    fn serialize<S>(\n &self,\n serializer: S,\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    §

    impl<S, Req> ServiceFactory<Req> for Arc<S>
    where\n S: ServiceFactory<Req>,

    §

    type Response = <S as ServiceFactory<Req>>::Response

    Responses given by the created services.
    §

    type Error = <S as ServiceFactory<Req>>::Error

    Errors produced by the created services.
    §

    type Config = <S as ServiceFactory<Req>>::Config

    Service factory configuration.
    §

    type Service = <S as ServiceFactory<Req>>::Service

    The kind of Service created by this factory.
    §

    type InitError = <S as ServiceFactory<Req>>::InitError

    Errors potentially raised while building a service.
    §

    type Future = <S as ServiceFactory<Req>>::Future

    The future of the Service instance.g
    §

    fn new_service(\n &self,\n cfg: <S as ServiceFactory<Req>>::Config,\n) -> <S as ServiceFactory<Req>>::Future

    Create and return a new service asynchronously.
    ","ServiceFactory","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<S> Source for Arc<S>
    where\n S: Source + ?Sized,

    source§

    fn visit<'kvs>(\n &'kvs self,\n visitor: &mut dyn VisitSource<'kvs>,\n) -> Result<(), Error>

    Visit key-values. Read more
    source§

    fn get(&self, key: Key<'_>) -> Option<Value<'_>>

    Get the value for a given key. Read more
    source§

    fn count(&self) -> usize

    Count the number of key-values that can be visited. Read more
    ","Source","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    §

    impl<Sp> Spawn for Arc<Sp>
    where\n Sp: Spawn + ?Sized,

    §

    fn spawn_obj(&self, future: FutureObj<'static, ()>) -> Result<(), SpawnError>

    Spawns a future that will be run to completion. Read more
    §

    fn status(&self) -> Result<(), SpawnError>

    Determines whether the executor is able to spawn new tasks. Read more
    ","Spawn","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    §

    impl<S> Subscriber for Arc<S>
    where\n S: Subscriber + ?Sized,

    §

    fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest

    Registers a new callsite with this subscriber, returning whether or not\nthe subscriber is interested in being notified about the callsite. Read more
    §

    fn enabled(&self, metadata: &Metadata<'_>) -> bool

    Returns true if a span or event with the specified metadata would be\nrecorded. Read more
    §

    fn max_level_hint(&self) -> Option<LevelFilter>

    Returns the highest verbosity level that this Subscriber will\nenable, or None, if the subscriber does not implement level-based\nfiltering or chooses not to implement this method. Read more
    §

    fn new_span(&self, span: &Attributes<'_>) -> Id

    Visit the construction of a new span, returning a new span ID for the\nspan being constructed. Read more
    §

    fn record(&self, span: &Id, values: &Record<'_>)

    Record a set of values on a span. Read more
    §

    fn record_follows_from(&self, span: &Id, follows: &Id)

    Adds an indication that span follows from the span with the id\nfollows. Read more
    §

    fn event_enabled(&self, event: &Event<'_>) -> bool

    Determine if an [Event] should be recorded. Read more
    §

    fn event(&self, event: &Event<'_>)

    Records that an Event has occurred. Read more
    §

    fn enter(&self, span: &Id)

    Records that a span has been entered. Read more
    §

    fn exit(&self, span: &Id)

    Records that a span has been exited. Read more
    §

    fn clone_span(&self, id: &Id) -> Id

    Notifies the subscriber that a span ID has been cloned. Read more
    §

    fn try_close(&self, id: Id) -> bool

    Notifies the subscriber that a span ID has been dropped, and returns\ntrue if there are now 0 IDs that refer to that span. Read more
    §

    fn drop_span(&self, id: Id)

    👎Deprecated since 0.1.2: use Subscriber::try_close instead
    This method is deprecated. Read more
    §

    fn current_span(&self) -> Current

    Returns a type representing this subscriber’s view of the current span. Read more
    §

    unsafe fn downcast_raw(&self, id: TypeId) -> Option<*const ()>

    If self is the same type as the provided TypeId, returns an untyped\n*const pointer to that type. Otherwise, returns None. Read more
    §

    fn on_register_dispatch(&self, subscriber: &Dispatch)

    Invoked when this subscriber becomes a [Dispatch]. Read more
    ","Subscriber","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    §

    impl<T, S, Req> Transform<S, Req> for Arc<T>
    where\n T: Transform<S, Req>,

    §

    type Response = <T as Transform<S, Req>>::Response

    Responses produced by the service.
    §

    type Error = <T as Transform<S, Req>>::Error

    Errors produced by the service.
    §

    type Transform = <T as Transform<S, Req>>::Transform

    The TransformService value created by this factory
    §

    type InitError = <T as Transform<S, Req>>::InitError

    Errors produced while building a transform service.
    §

    type Future = <T as Transform<S, Req>>::Future

    The future response value.
    §

    fn new_transform(&self, service: S) -> <T as Transform<S, Req>>::Future

    Creates and returns a new Transform component, asynchronously
    ","Transform","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<T, U, A> CoerceUnsized<Arc<U, A>> for Arc<T, A>
    where\n T: Unsize<U> + ?Sized,\n A: Allocator,\n U: ?Sized,

    ","CoerceUnsized>","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> DerefPure for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    ","DerefPure","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<T, U> DispatchFromDyn<Arc<U>> for Arc<T>
    where\n T: Unsize<U> + ?Sized,\n U: ?Sized,

    ","DispatchFromDyn>","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Eq for Arc<T, A>
    where\n T: Eq + ?Sized,\n A: Allocator,

    ","Eq","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    source§

    impl<T, A> PinCoerceUnsized for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    ","PinCoerceUnsized","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Send for Arc<T, A>
    where\n T: Sync + Send + ?Sized,\n A: Allocator + Send,

    ","Send","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.0.0 · source§

    impl<T, A> Sync for Arc<T, A>
    where\n T: Sync + Send + ?Sized,\n A: Allocator + Sync,

    ","Sync","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.33.0 · source§

    impl<T, A> Unpin for Arc<T, A>
    where\n A: Allocator,\n T: ?Sized,

    ","Unpin","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"],["
    1.9.0 · source§

    impl<T, A> UnwindSafe for Arc<T, A>
    where\n T: RefUnwindSafe + ?Sized,\n A: Allocator + UnwindSafe,

    ","UnwindSafe","paperclip_core::v2::models::ResolvableParameter","paperclip_core::v2::models::ResolvableResponse"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/type.impl/core/result/enum.Result.js b/type.impl/core/result/enum.Result.js index edc205631..bf54993cb 100644 --- a/type.impl/core/result/enum.Result.js +++ b/type.impl/core/result/enum.Result.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"paperclip":[["
    source§

    impl<T, E> Apiv2Schema for Result<T, E>
    where\n T: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    ","Apiv2Schema","paperclip::error::PaperClipResult"],["
    1.0.0 · source§

    impl<T, E> Clone for Result<T, E>
    where\n T: Clone,\n E: Clone,

    source§

    fn clone(&self) -> Result<T, E>

    Returns a copy of the value. Read more
    source§

    fn clone_from(&mut self, source: &Result<T, E>)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip::error::PaperClipResult"],["
    source§

    impl<T, E> Context<T, E> for Result<T, E>
    where\n E: StdError + Send + Sync + 'static,

    source§

    fn context<C>(self, context: C) -> Result<T, Error>
    where\n C: Display + Send + Sync + 'static,

    Wrap the error value with additional context.
    source§

    fn with_context<C, F>(self, context: F) -> Result<T, Error>
    where\n C: Display + Send + Sync + 'static,\n F: FnOnce() -> C,

    Wrap the error value with additional context that is evaluated lazily\nonly once an error does occur.
    ","Context","paperclip::error::PaperClipResult"],["
    1.0.0 · source§

    impl<T, E> Debug for Result<T, E>
    where\n T: Debug,\n E: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","paperclip::error::PaperClipResult"],["
    source§

    impl<'de, T, E> Deserialize<'de> for Result<T, E>
    where\n T: Deserialize<'de>,\n E: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D,\n) -> Result<Result<T, E>, <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip::error::PaperClipResult"],["
    1.0.0 · source§

    impl<A, E, V> FromIterator<Result<A, E>> for Result<V, E>
    where\n V: FromIterator<A>,

    source§

    fn from_iter<I>(iter: I) -> Result<V, E>
    where\n I: IntoIterator<Item = Result<A, E>>,

    Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err occur, a\ncontainer with the values of each Result is returned.

    \n

    Here is an example which increments every integer in a vector,\nchecking for overflow:

    \n\n
    let v = vec![1, 2];\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32|\n    x.checked_add(1).ok_or(\"Overflow!\")\n).collect();\nassert_eq!(res, Ok(vec![2, 3]));
    \n

    Here is another example that tries to subtract one from another list\nof integers, this time checking for underflow:

    \n\n
    let v = vec![1, 2, 0];\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32|\n    x.checked_sub(1).ok_or(\"Underflow!\")\n).collect();\nassert_eq!(res, Err(\"Underflow!\"));
    \n

    Here is a variation on the previous example, showing that no\nfurther elements are taken from iter after the first Err.

    \n\n
    let v = vec![3, 2, 1, 10];\nlet mut shared = 0;\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32| {\n    shared += x;\n    x.checked_sub(2).ok_or(\"Underflow!\")\n}).collect();\nassert_eq!(res, Err(\"Underflow!\"));\nassert_eq!(shared, 6);
    \n

    Since the third element caused an underflow, no further elements were taken,\nso the final value of shared is 6 (= 3 + 2 + 1), not 16.

    \n
    ","FromIterator>","paperclip::error::PaperClipResult"],["
    §

    impl<T, E> FromRequest for Result<T, E>
    where\n T: FromRequest,\n <T as FromRequest>::Error: Into<E>,

    Extract from the request, passing error type through to handler.

    \n

    If the inner T::from_request returns an error, allow handler to receive the error rather than\nimmediately returning an error response.

    \n

    §Examples

    \n
    use actix_web::{web, dev, App, Result, Error, HttpRequest, FromRequest};\nuse actix_web::error::ErrorBadRequest;\nuse futures_util::future::{ok, err, Ready};\nuse serde::Deserialize;\nuse rand;\n\n#[derive(Debug, Deserialize)]\nstruct Thing {\n    name: String\n}\n\nimpl FromRequest for Thing {\n    type Error = Error;\n    type Future = Ready<Result<Thing, Error>>;\n\n    fn from_request(req: &HttpRequest, payload: &mut dev::Payload) -> Self::Future {\n        if rand::random() {\n            ok(Thing { name: \"thingy\".into() })\n        } else {\n            err(ErrorBadRequest(\"no luck\"))\n        }\n    }\n}\n\n/// extract `Thing` from request\nasync fn index(supplied_thing: Result<Thing>) -> String {\n    match supplied_thing {\n        Ok(thing) => format!(\"Got thing: {thing:?}\"),\n        Err(err) => format!(\"Error extracting thing: {err}\"),\n    }\n}\n\nlet app = App::new().service(\n    web::resource(\"/users/:first\").route(web::post().to(index))\n);
    \n
    §

    type Error = Infallible

    The associated error which can be returned.
    §

    type Future = FromRequestResFuture<<T as FromRequest>::Future, E>

    Future that resolves to a Self. Read more
    §

    fn from_request(\n req: &HttpRequest,\n payload: &mut Payload,\n) -> <Result<T, E> as FromRequest>::Future

    Create a Self from request parts asynchronously.
    §

    fn extract(req: &HttpRequest) -> Self::Future

    Create a Self from request head asynchronously. Read more
    ","FromRequest","paperclip::error::PaperClipResult"],["
    source§

    impl<T, E, F> FromResidual<Result<Infallible, E>> for Result<T, F>
    where\n F: From<E>,

    source§

    fn from_residual(residual: Result<Infallible, E>) -> Result<T, F>

    🔬This is a nightly-only experimental API. (try_trait_v2)
    Constructs the type from a compatible Residual type. Read more
    ","FromResidual>","paperclip::error::PaperClipResult"],["
    source§

    impl<T, E, F> FromResidual<Yeet<E>> for Result<T, F>
    where\n F: From<E>,

    source§

    fn from_residual(_: Yeet<E>) -> Result<T, F>

    🔬This is a nightly-only experimental API. (try_trait_v2)
    Constructs the type from a compatible Residual type. Read more
    ","FromResidual>","paperclip::error::PaperClipResult"],["
    1.0.0 · source§

    impl<T, E> Hash for Result<T, E>
    where\n T: Hash,\n E: Hash,

    source§

    fn hash<__H>(&self, state: &mut __H)
    where\n __H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","paperclip::error::PaperClipResult"],["
    1.0.0 · source§

    impl<T, E> IntoIterator for Result<T, E>

    source§

    fn into_iter(self) -> IntoIter<T>

    Returns a consuming iterator over the possibly contained value.

    \n

    The iterator yields one value if the result is Result::Ok, otherwise none.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Ok(5);\nlet v: Vec<u32> = x.into_iter().collect();\nassert_eq!(v, [5]);\n\nlet x: Result<u32, &str> = Err(\"nothing!\");\nlet v: Vec<u32> = x.into_iter().collect();\nassert_eq!(v, []);
    \n
    §

    type Item = T

    The type of the elements being iterated over.
    §

    type IntoIter = IntoIter<T>

    Which kind of iterator are we turning this into?
    ","IntoIterator","paperclip::error::PaperClipResult"],["
    source§

    impl<T, E> OperationModifier for Result<T, E>
    where\n T: OperationModifier,\n E: Apiv2Errors,

    source§

    fn update_parameter(\n op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,\n)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response(\n op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,\n)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    fn update_security(\n op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,\n)

    Update the security map in the given operation (if needed).
    ","OperationModifier","paperclip::error::PaperClipResult"],["
    1.0.0 · source§

    impl<T, E> Ord for Result<T, E>
    where\n T: Ord,\n E: Ord,

    source§

    fn cmp(&self, other: &Result<T, E>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","paperclip::error::PaperClipResult"],["
    1.0.0 · source§

    impl<T, E> PartialEq for Result<T, E>
    where\n T: PartialEq,\n E: PartialEq,

    source§

    fn eq(&self, other: &Result<T, E>) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","paperclip::error::PaperClipResult"],["
    1.0.0 · source§

    impl<T, E> PartialOrd for Result<T, E>
    where\n T: PartialOrd,\n E: PartialOrd,

    source§

    fn partial_cmp(&self, other: &Result<T, E>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    ","PartialOrd","paperclip::error::PaperClipResult"],["
    1.16.0 · source§

    impl<T, U, E> Product<Result<U, E>> for Result<T, E>
    where\n T: Product<U>,

    source§

    fn product<I>(iter: I) -> Result<T, E>
    where\n I: Iterator<Item = Result<U, E>>,

    Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err\noccur, the product of all elements is returned.

    \n
    §Examples
    \n

    This multiplies each number in a vector of strings,\nif a string could not be parsed the operation returns Err:

    \n\n
    let nums = vec![\"5\", \"10\", \"1\", \"2\"];\nlet total: Result<usize, _> = nums.iter().map(|w| w.parse::<usize>()).product();\nassert_eq!(total, Ok(100));\nlet nums = vec![\"5\", \"10\", \"one\", \"2\"];\nlet total: Result<usize, _> = nums.iter().map(|w| w.parse::<usize>()).product();\nassert!(total.is_err());
    \n
    ","Product>","paperclip::error::PaperClipResult"],["
    source§

    impl<T, E> Residual<T> for Result<Infallible, E>

    §

    type TryType = Result<T, E>

    🔬This is a nightly-only experimental API. (try_trait_v2_residual)
    The “return” type of this meta-function.
    ","Residual","paperclip::error::PaperClipResult"],["
    §

    impl<R, E> Responder for Result<R, E>
    where\n R: Responder,\n E: Into<Error>,

    §

    type Body = EitherBody<<R as Responder>::Body>

    §

    fn respond_to(\n self,\n req: &HttpRequest,\n) -> HttpResponse<<Result<R, E> as Responder>::Body>

    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>
    where\n Self: Sized,

    Wraps responder to allow alteration of its response. Read more
    ","Responder","paperclip::error::PaperClipResult"],["
    source§

    impl<T, E> Result<&T, E>

    1.59.0 · source

    pub fn copied(self) -> Result<T, E>
    where\n T: Copy,

    Maps a Result<&T, E> to a Result<T, E> by copying the contents of the\nOk part.

    \n
    §Examples
    \n
    let val = 12;\nlet x: Result<&i32, i32> = Ok(&val);\nassert_eq!(x, Ok(&12));\nlet copied = x.copied();\nassert_eq!(copied, Ok(12));
    \n
    1.59.0 · source

    pub fn cloned(self) -> Result<T, E>
    where\n T: Clone,

    Maps a Result<&T, E> to a Result<T, E> by cloning the contents of the\nOk part.

    \n
    §Examples
    \n
    let val = 12;\nlet x: Result<&i32, i32> = Ok(&val);\nassert_eq!(x, Ok(&12));\nlet cloned = x.cloned();\nassert_eq!(cloned, Ok(12));
    \n
    ",0,"paperclip::error::PaperClipResult"],["
    source§

    impl<T, E> Result<&mut T, E>

    1.59.0 · source

    pub fn copied(self) -> Result<T, E>
    where\n T: Copy,

    Maps a Result<&mut T, E> to a Result<T, E> by copying the contents of the\nOk part.

    \n
    §Examples
    \n
    let mut val = 12;\nlet x: Result<&mut i32, i32> = Ok(&mut val);\nassert_eq!(x, Ok(&mut 12));\nlet copied = x.copied();\nassert_eq!(copied, Ok(12));
    \n
    1.59.0 · source

    pub fn cloned(self) -> Result<T, E>
    where\n T: Clone,

    Maps a Result<&mut T, E> to a Result<T, E> by cloning the contents of the\nOk part.

    \n
    §Examples
    \n
    let mut val = 12;\nlet x: Result<&mut i32, i32> = Ok(&mut val);\nassert_eq!(x, Ok(&mut 12));\nlet cloned = x.cloned();\nassert_eq!(cloned, Ok(12));
    \n
    ",0,"paperclip::error::PaperClipResult"],["
    source§

    impl<T, E> Result<Option<T>, E>

    1.33.0 (const: unstable) · source

    pub fn transpose(self) -> Option<Result<T, E>>

    Transposes a Result of an Option into an Option of a Result.

    \n

    Ok(None) will be mapped to None.\nOk(Some(_)) and Err(_) will be mapped to Some(Ok(_)) and Some(Err(_)).

    \n
    §Examples
    \n
    #[derive(Debug, Eq, PartialEq)]\nstruct SomeErr;\n\nlet x: Result<Option<i32>, SomeErr> = Ok(Some(5));\nlet y: Option<Result<i32, SomeErr>> = Some(Ok(5));\nassert_eq!(x.transpose(), y);
    \n
    ",0,"paperclip::error::PaperClipResult"],["
    source§

    impl<T, E> Result<Result<T, E>, E>

    source

    pub fn flatten(self) -> Result<T, E>

    🔬This is a nightly-only experimental API. (result_flattening)

    Converts from Result<Result<T, E>, E> to Result<T, E>

    \n
    §Examples
    \n
    #![feature(result_flattening)]\nlet x: Result<Result<&'static str, u32>, u32> = Ok(Ok(\"hello\"));\nassert_eq!(Ok(\"hello\"), x.flatten());\n\nlet x: Result<Result<&'static str, u32>, u32> = Ok(Err(6));\nassert_eq!(Err(6), x.flatten());\n\nlet x: Result<Result<&'static str, u32>, u32> = Err(6);\nassert_eq!(Err(6), x.flatten());
    \n

    Flattening only removes one level of nesting at a time:

    \n\n
    #![feature(result_flattening)]\nlet x: Result<Result<Result<&'static str, u32>, u32>, u32> = Ok(Ok(Ok(\"hello\")));\nassert_eq!(Ok(Ok(\"hello\")), x.flatten());\nassert_eq!(Ok(\"hello\"), x.flatten().flatten());
    \n
    ",0,"paperclip::error::PaperClipResult"],["
    source§

    impl<T, E> Result<T, E>

    1.0.0 (const: 1.48.0) · source

    pub const fn is_ok(&self) -> bool

    Returns true if the result is Ok.

    \n
    §Examples
    \n
    let x: Result<i32, &str> = Ok(-3);\nassert_eq!(x.is_ok(), true);\n\nlet x: Result<i32, &str> = Err(\"Some error message\");\nassert_eq!(x.is_ok(), false);
    \n
    1.70.0 · source

    pub fn is_ok_and(self, f: impl FnOnce(T) -> bool) -> bool

    Returns true if the result is Ok and the value inside of it matches a predicate.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.is_ok_and(|x| x > 1), true);\n\nlet x: Result<u32, &str> = Ok(0);\nassert_eq!(x.is_ok_and(|x| x > 1), false);\n\nlet x: Result<u32, &str> = Err(\"hey\");\nassert_eq!(x.is_ok_and(|x| x > 1), false);
    \n
    1.0.0 (const: 1.48.0) · source

    pub const fn is_err(&self) -> bool

    Returns true if the result is Err.

    \n
    §Examples
    \n
    let x: Result<i32, &str> = Ok(-3);\nassert_eq!(x.is_err(), false);\n\nlet x: Result<i32, &str> = Err(\"Some error message\");\nassert_eq!(x.is_err(), true);
    \n
    1.70.0 · source

    pub fn is_err_and(self, f: impl FnOnce(E) -> bool) -> bool

    Returns true if the result is Err and the value inside of it matches a predicate.

    \n
    §Examples
    \n
    use std::io::{Error, ErrorKind};\n\nlet x: Result<u32, Error> = Err(Error::new(ErrorKind::NotFound, \"!\"));\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), true);\n\nlet x: Result<u32, Error> = Err(Error::new(ErrorKind::PermissionDenied, \"!\"));\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), false);\n\nlet x: Result<u32, Error> = Ok(123);\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), false);
    \n
    1.0.0 · source

    pub fn ok(self) -> Option<T>

    Converts from Result<T, E> to Option<T>.

    \n

    Converts self into an Option<T>, consuming self,\nand discarding the error, if any.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.ok(), Some(2));\n\nlet x: Result<u32, &str> = Err(\"Nothing here\");\nassert_eq!(x.ok(), None);
    \n
    1.0.0 · source

    pub fn err(self) -> Option<E>

    Converts from Result<T, E> to Option<E>.

    \n

    Converts self into an Option<E>, consuming self,\nand discarding the success value, if any.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.err(), None);\n\nlet x: Result<u32, &str> = Err(\"Nothing here\");\nassert_eq!(x.err(), Some(\"Nothing here\"));
    \n
    1.0.0 (const: 1.48.0) · source

    pub const fn as_ref(&self) -> Result<&T, &E>

    Converts from &Result<T, E> to Result<&T, &E>.

    \n

    Produces a new Result, containing a reference\ninto the original, leaving the original in place.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.as_ref(), Ok(&2));\n\nlet x: Result<u32, &str> = Err(\"Error\");\nassert_eq!(x.as_ref(), Err(&\"Error\"));
    \n
    1.0.0 (const: unstable) · source

    pub fn as_mut(&mut self) -> Result<&mut T, &mut E>

    Converts from &mut Result<T, E> to Result<&mut T, &mut E>.

    \n
    §Examples
    \n
    fn mutate(r: &mut Result<i32, i32>) {\n    match r.as_mut() {\n        Ok(v) => *v = 42,\n        Err(e) => *e = 0,\n    }\n}\n\nlet mut x: Result<i32, i32> = Ok(2);\nmutate(&mut x);\nassert_eq!(x.unwrap(), 42);\n\nlet mut x: Result<i32, i32> = Err(13);\nmutate(&mut x);\nassert_eq!(x.unwrap_err(), 0);
    \n
    1.0.0 · source

    pub fn map<U, F>(self, op: F) -> Result<U, E>
    where\n F: FnOnce(T) -> U,

    Maps a Result<T, E> to Result<U, E> by applying a function to a\ncontained Ok value, leaving an Err value untouched.

    \n

    This function can be used to compose the results of two functions.

    \n
    §Examples
    \n

    Print the numbers on each line of a string multiplied by two.

    \n\n
    let line = \"1\\n2\\n3\\n4\\n\";\n\nfor num in line.lines() {\n    match num.parse::<i32>().map(|i| i * 2) {\n        Ok(n) => println!(\"{n}\"),\n        Err(..) => {}\n    }\n}
    \n
    1.41.0 · source

    pub fn map_or<U, F>(self, default: U, f: F) -> U
    where\n F: FnOnce(T) -> U,

    Returns the provided default (if Err), or\napplies a function to the contained value (if Ok).

    \n

    Arguments passed to map_or are eagerly evaluated; if you are passing\nthe result of a function call, it is recommended to use map_or_else,\nwhich is lazily evaluated.

    \n
    §Examples
    \n
    let x: Result<_, &str> = Ok(\"foo\");\nassert_eq!(x.map_or(42, |v| v.len()), 3);\n\nlet x: Result<&str, _> = Err(\"bar\");\nassert_eq!(x.map_or(42, |v| v.len()), 42);
    \n
    1.41.0 · source

    pub fn map_or_else<U, D, F>(self, default: D, f: F) -> U
    where\n D: FnOnce(E) -> U,\n F: FnOnce(T) -> U,

    Maps a Result<T, E> to U by applying fallback function default to\na contained Err value, or function f to a contained Ok value.

    \n

    This function can be used to unpack a successful result\nwhile handling an error.

    \n
    §Examples
    \n
    let k = 21;\n\nlet x : Result<_, &str> = Ok(\"foo\");\nassert_eq!(x.map_or_else(|e| k * 2, |v| v.len()), 3);\n\nlet x : Result<&str, _> = Err(\"bar\");\nassert_eq!(x.map_or_else(|e| k * 2, |v| v.len()), 42);
    \n
    1.0.0 · source

    pub fn map_err<F, O>(self, op: O) -> Result<T, F>
    where\n O: FnOnce(E) -> F,

    Maps a Result<T, E> to Result<T, F> by applying a function to a\ncontained Err value, leaving an Ok value untouched.

    \n

    This function can be used to pass through a successful result while handling\nan error.

    \n
    §Examples
    \n
    fn stringify(x: u32) -> String { format!(\"error code: {x}\") }\n\nlet x: Result<u32, u32> = Ok(2);\nassert_eq!(x.map_err(stringify), Ok(2));\n\nlet x: Result<u32, u32> = Err(13);\nassert_eq!(x.map_err(stringify), Err(\"error code: 13\".to_string()));
    \n
    1.76.0 · source

    pub fn inspect<F>(self, f: F) -> Result<T, E>
    where\n F: FnOnce(&T),

    Calls a function with a reference to the contained value if Ok.

    \n

    Returns the original result.

    \n
    §Examples
    \n
    let x: u8 = \"4\"\n    .parse::<u8>()\n    .inspect(|x| println!(\"original: {x}\"))\n    .map(|x| x.pow(3))\n    .expect(\"failed to parse number\");
    \n
    1.76.0 · source

    pub fn inspect_err<F>(self, f: F) -> Result<T, E>
    where\n F: FnOnce(&E),

    Calls a function with a reference to the contained value if Err.

    \n

    Returns the original result.

    \n
    §Examples
    \n
    use std::{fs, io};\n\nfn read() -> io::Result<String> {\n    fs::read_to_string(\"address.txt\")\n        .inspect_err(|e| eprintln!(\"failed to read file: {e}\"))\n}
    \n
    1.47.0 · source

    pub fn as_deref(&self) -> Result<&<T as Deref>::Target, &E>
    where\n T: Deref,

    Converts from Result<T, E> (or &Result<T, E>) to Result<&<T as Deref>::Target, &E>.

    \n

    Coerces the Ok variant of the original Result via Deref\nand returns the new Result.

    \n
    §Examples
    \n
    let x: Result<String, u32> = Ok(\"hello\".to_string());\nlet y: Result<&str, &u32> = Ok(\"hello\");\nassert_eq!(x.as_deref(), y);\n\nlet x: Result<String, u32> = Err(42);\nlet y: Result<&str, &u32> = Err(&42);\nassert_eq!(x.as_deref(), y);
    \n
    1.47.0 · source

    pub fn as_deref_mut(&mut self) -> Result<&mut <T as Deref>::Target, &mut E>
    where\n T: DerefMut,

    Converts from Result<T, E> (or &mut Result<T, E>) to Result<&mut <T as DerefMut>::Target, &mut E>.

    \n

    Coerces the Ok variant of the original Result via DerefMut\nand returns the new Result.

    \n
    §Examples
    \n
    let mut s = \"HELLO\".to_string();\nlet mut x: Result<String, u32> = Ok(\"hello\".to_string());\nlet y: Result<&mut str, &mut u32> = Ok(&mut s);\nassert_eq!(x.as_deref_mut().map(|x| { x.make_ascii_uppercase(); x }), y);\n\nlet mut i = 42;\nlet mut x: Result<String, u32> = Err(42);\nlet y: Result<&mut str, &mut u32> = Err(&mut i);\nassert_eq!(x.as_deref_mut().map(|x| { x.make_ascii_uppercase(); x }), y);
    \n
    1.0.0 · source

    pub fn iter(&self) -> Iter<'_, T>

    Returns an iterator over the possibly contained value.

    \n

    The iterator yields one value if the result is Result::Ok, otherwise none.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Ok(7);\nassert_eq!(x.iter().next(), Some(&7));\n\nlet x: Result<u32, &str> = Err(\"nothing!\");\nassert_eq!(x.iter().next(), None);
    \n
    1.0.0 · source

    pub fn iter_mut(&mut self) -> IterMut<'_, T>

    Returns a mutable iterator over the possibly contained value.

    \n

    The iterator yields one value if the result is Result::Ok, otherwise none.

    \n
    §Examples
    \n
    let mut x: Result<u32, &str> = Ok(7);\nmatch x.iter_mut().next() {\n    Some(v) => *v = 40,\n    None => {},\n}\nassert_eq!(x, Ok(40));\n\nlet mut x: Result<u32, &str> = Err(\"nothing!\");\nassert_eq!(x.iter_mut().next(), None);
    \n
    1.4.0 · source

    pub fn expect(self, msg: &str) -> T
    where\n E: Debug,

    Returns the contained Ok value, consuming the self value.

    \n

    Because this function may panic, its use is generally discouraged.\nInstead, prefer to use pattern matching and handle the Err\ncase explicitly, or call unwrap_or, unwrap_or_else, or\nunwrap_or_default.

    \n
    §Panics
    \n

    Panics if the value is an Err, with a panic message including the\npassed message, and the content of the Err.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Err(\"emergency failure\");\nx.expect(\"Testing expect\"); // panics with `Testing expect: emergency failure`
    \n
    §Recommended Message Style
    \n

    We recommend that expect messages are used to describe the reason you\nexpect the Result should be Ok.

    \n\n
    let path = std::env::var(\"IMPORTANT_PATH\")\n    .expect(\"env variable `IMPORTANT_PATH` should be set by `wrapper_script.sh`\");
    \n

    Hint: If you’re having trouble remembering how to phrase expect\nerror messages remember to focus on the word “should” as in “env\nvariable should be set by blah” or “the given binary should be available\nand executable by the current user”.

    \n

    For more detail on expect message styles and the reasoning behind our recommendation please\nrefer to the section on “Common Message\nStyles” in the\nstd::error module docs.

    \n
    1.0.0 · source

    pub fn unwrap(self) -> T
    where\n E: Debug,

    Returns the contained Ok value, consuming the self value.

    \n

    Because this function may panic, its use is generally discouraged.\nInstead, prefer to use pattern matching and handle the Err\ncase explicitly, or call unwrap_or, unwrap_or_else, or\nunwrap_or_default.

    \n
    §Panics
    \n

    Panics if the value is an Err, with a panic message provided by the\nErr’s value.

    \n
    §Examples
    \n

    Basic usage:

    \n\n
    let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.unwrap(), 2);
    \n\n
    let x: Result<u32, &str> = Err(\"emergency failure\");\nx.unwrap(); // panics with `emergency failure`
    \n
    1.16.0 · source

    pub fn unwrap_or_default(self) -> T
    where\n T: Default,

    Returns the contained Ok value or a default

    \n

    Consumes the self argument then, if Ok, returns the contained\nvalue, otherwise if Err, returns the default value for that\ntype.

    \n
    §Examples
    \n

    Converts a string to an integer, turning poorly-formed strings\ninto 0 (the default value for integers). parse converts\na string to any other type that implements FromStr, returning an\nErr on error.

    \n\n
    let good_year_from_input = \"1909\";\nlet bad_year_from_input = \"190blarg\";\nlet good_year = good_year_from_input.parse().unwrap_or_default();\nlet bad_year = bad_year_from_input.parse().unwrap_or_default();\n\nassert_eq!(1909, good_year);\nassert_eq!(0, bad_year);
    \n
    1.17.0 · source

    pub fn expect_err(self, msg: &str) -> E
    where\n T: Debug,

    Returns the contained Err value, consuming the self value.

    \n
    §Panics
    \n

    Panics if the value is an Ok, with a panic message including the\npassed message, and the content of the Ok.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Ok(10);\nx.expect_err(\"Testing expect_err\"); // panics with `Testing expect_err: 10`
    \n
    1.0.0 · source

    pub fn unwrap_err(self) -> E
    where\n T: Debug,

    Returns the contained Err value, consuming the self value.

    \n
    §Panics
    \n

    Panics if the value is an Ok, with a custom panic message provided\nby the Ok’s value.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Ok(2);\nx.unwrap_err(); // panics with `2`
    \n\n
    let x: Result<u32, &str> = Err(\"emergency failure\");\nassert_eq!(x.unwrap_err(), \"emergency failure\");
    \n
    source

    pub fn into_ok(self) -> T
    where\n E: Into<!>,

    🔬This is a nightly-only experimental API. (unwrap_infallible)

    Returns the contained Ok value, but never panics.

    \n

    Unlike unwrap, this method is known to never panic on the\nresult types it is implemented for. Therefore, it can be used\ninstead of unwrap as a maintainability safeguard that will fail\nto compile if the error type of the Result is later changed\nto an error that can actually occur.

    \n
    §Examples
    \n
    \nfn only_good_news() -> Result<String, !> {\n    Ok(\"this is fine\".into())\n}\n\nlet s: String = only_good_news().into_ok();\nprintln!(\"{s}\");
    \n
    source

    pub fn into_err(self) -> E
    where\n T: Into<!>,

    🔬This is a nightly-only experimental API. (unwrap_infallible)

    Returns the contained Err value, but never panics.

    \n

    Unlike unwrap_err, this method is known to never panic on the\nresult types it is implemented for. Therefore, it can be used\ninstead of unwrap_err as a maintainability safeguard that will fail\nto compile if the ok type of the Result is later changed\nto a type that can actually occur.

    \n
    §Examples
    \n
    \nfn only_bad_news() -> Result<!, String> {\n    Err(\"Oops, it failed\".into())\n}\n\nlet error: String = only_bad_news().into_err();\nprintln!(\"{error}\");
    \n
    1.0.0 · source

    pub fn and<U>(self, res: Result<U, E>) -> Result<U, E>

    Returns res if the result is Ok, otherwise returns the Err value of self.

    \n

    Arguments passed to and are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use and_then, which is\nlazily evaluated.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Ok(2);\nlet y: Result<&str, &str> = Err(\"late error\");\nassert_eq!(x.and(y), Err(\"late error\"));\n\nlet x: Result<u32, &str> = Err(\"early error\");\nlet y: Result<&str, &str> = Ok(\"foo\");\nassert_eq!(x.and(y), Err(\"early error\"));\n\nlet x: Result<u32, &str> = Err(\"not a 2\");\nlet y: Result<&str, &str> = Err(\"late error\");\nassert_eq!(x.and(y), Err(\"not a 2\"));\n\nlet x: Result<u32, &str> = Ok(2);\nlet y: Result<&str, &str> = Ok(\"different result type\");\nassert_eq!(x.and(y), Ok(\"different result type\"));
    \n
    1.0.0 · source

    pub fn and_then<U, F>(self, op: F) -> Result<U, E>
    where\n F: FnOnce(T) -> Result<U, E>,

    Calls op if the result is Ok, otherwise returns the Err value of self.

    \n

    This function can be used for control flow based on Result values.

    \n
    §Examples
    \n
    fn sq_then_to_string(x: u32) -> Result<String, &'static str> {\n    x.checked_mul(x).map(|sq| sq.to_string()).ok_or(\"overflowed\")\n}\n\nassert_eq!(Ok(2).and_then(sq_then_to_string), Ok(4.to_string()));\nassert_eq!(Ok(1_000_000).and_then(sq_then_to_string), Err(\"overflowed\"));\nassert_eq!(Err(\"not a number\").and_then(sq_then_to_string), Err(\"not a number\"));
    \n

    Often used to chain fallible operations that may return Err.

    \n\n
    use std::{io::ErrorKind, path::Path};\n\n// Note: on Windows \"/\" maps to \"C:\\\"\nlet root_modified_time = Path::new(\"/\").metadata().and_then(|md| md.modified());\nassert!(root_modified_time.is_ok());\n\nlet should_fail = Path::new(\"/bad/path\").metadata().and_then(|md| md.modified());\nassert!(should_fail.is_err());\nassert_eq!(should_fail.unwrap_err().kind(), ErrorKind::NotFound);
    \n
    1.0.0 · source

    pub fn or<F>(self, res: Result<T, F>) -> Result<T, F>

    Returns res if the result is Err, otherwise returns the Ok value of self.

    \n

    Arguments passed to or are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use or_else, which is\nlazily evaluated.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Ok(2);\nlet y: Result<u32, &str> = Err(\"late error\");\nassert_eq!(x.or(y), Ok(2));\n\nlet x: Result<u32, &str> = Err(\"early error\");\nlet y: Result<u32, &str> = Ok(2);\nassert_eq!(x.or(y), Ok(2));\n\nlet x: Result<u32, &str> = Err(\"not a 2\");\nlet y: Result<u32, &str> = Err(\"late error\");\nassert_eq!(x.or(y), Err(\"late error\"));\n\nlet x: Result<u32, &str> = Ok(2);\nlet y: Result<u32, &str> = Ok(100);\nassert_eq!(x.or(y), Ok(2));
    \n
    1.0.0 · source

    pub fn or_else<F, O>(self, op: O) -> Result<T, F>
    where\n O: FnOnce(E) -> Result<T, F>,

    Calls op if the result is Err, otherwise returns the Ok value of self.

    \n

    This function can be used for control flow based on result values.

    \n
    §Examples
    \n
    fn sq(x: u32) -> Result<u32, u32> { Ok(x * x) }\nfn err(x: u32) -> Result<u32, u32> { Err(x) }\n\nassert_eq!(Ok(2).or_else(sq).or_else(sq), Ok(2));\nassert_eq!(Ok(2).or_else(err).or_else(sq), Ok(2));\nassert_eq!(Err(3).or_else(sq).or_else(err), Ok(9));\nassert_eq!(Err(3).or_else(err).or_else(err), Err(3));
    \n
    1.0.0 · source

    pub fn unwrap_or(self, default: T) -> T

    Returns the contained Ok value or a provided default.

    \n

    Arguments passed to unwrap_or are eagerly evaluated; if you are passing\nthe result of a function call, it is recommended to use unwrap_or_else,\nwhich is lazily evaluated.

    \n
    §Examples
    \n
    let default = 2;\nlet x: Result<u32, &str> = Ok(9);\nassert_eq!(x.unwrap_or(default), 9);\n\nlet x: Result<u32, &str> = Err(\"error\");\nassert_eq!(x.unwrap_or(default), default);
    \n
    1.0.0 · source

    pub fn unwrap_or_else<F>(self, op: F) -> T
    where\n F: FnOnce(E) -> T,

    Returns the contained Ok value or computes it from a closure.

    \n
    §Examples
    \n
    fn count(x: &str) -> usize { x.len() }\n\nassert_eq!(Ok(2).unwrap_or_else(count), 2);\nassert_eq!(Err(\"foo\").unwrap_or_else(count), 3);
    \n
    1.58.0 · source

    pub unsafe fn unwrap_unchecked(self) -> T

    Returns the contained Ok value, consuming the self value,\nwithout checking that the value is not an Err.

    \n
    §Safety
    \n

    Calling this method on an Err is undefined behavior.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Ok(2);\nassert_eq!(unsafe { x.unwrap_unchecked() }, 2);
    \n\n
    let x: Result<u32, &str> = Err(\"emergency failure\");\nunsafe { x.unwrap_unchecked(); } // Undefined behavior!
    \n
    1.58.0 · source

    pub unsafe fn unwrap_err_unchecked(self) -> E

    Returns the contained Err value, consuming the self value,\nwithout checking that the value is not an Ok.

    \n
    §Safety
    \n

    Calling this method on an Ok is undefined behavior.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Ok(2);\nunsafe { x.unwrap_err_unchecked() }; // Undefined behavior!
    \n\n
    let x: Result<u32, &str> = Err(\"emergency failure\");\nassert_eq!(unsafe { x.unwrap_err_unchecked() }, \"emergency failure\");
    \n
    ",0,"paperclip::error::PaperClipResult"],["
    source§

    impl<T, E> Serialize for Result<T, E>
    where\n T: Serialize,\n E: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S,\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip::error::PaperClipResult"],["
    1.16.0 · source§

    impl<T, U, E> Sum<Result<U, E>> for Result<T, E>
    where\n T: Sum<U>,

    source§

    fn sum<I>(iter: I) -> Result<T, E>
    where\n I: Iterator<Item = Result<U, E>>,

    Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err\noccur, the sum of all elements is returned.

    \n
    §Examples
    \n

    This sums up every integer in a vector, rejecting the sum if a negative\nelement is encountered:

    \n\n
    let f = |&x: &i32| if x < 0 { Err(\"Negative element found\") } else { Ok(x) };\nlet v = vec![1, 2];\nlet res: Result<i32, _> = v.iter().map(f).sum();\nassert_eq!(res, Ok(3));\nlet v = vec![1, -2];\nlet res: Result<i32, _> = v.iter().map(f).sum();\nassert_eq!(res, Err(\"Negative element found\"));
    \n
    ","Sum>","paperclip::error::PaperClipResult"],["
    1.61.0 · source§

    impl<T, E> Termination for Result<T, E>
    where\n T: Termination,\n E: Debug,

    source§

    fn report(self) -> ExitCode

    Is called to get the representation of the value as status code.\nThis status code is returned to the operating system.
    ","Termination","paperclip::error::PaperClipResult"],["
    source§

    impl<T, E> Try for Result<T, E>

    §

    type Output = T

    🔬This is a nightly-only experimental API. (try_trait_v2)
    The type of the value produced by ? when not short-circuiting.
    §

    type Residual = Result<Infallible, E>

    🔬This is a nightly-only experimental API. (try_trait_v2)
    The type of the value passed to FromResidual::from_residual\nas part of ? when short-circuiting. Read more
    source§

    fn from_output(output: <Result<T, E> as Try>::Output) -> Result<T, E>

    🔬This is a nightly-only experimental API. (try_trait_v2)
    Constructs the type from its Output type. Read more
    source§

    fn branch(\n self,\n) -> ControlFlow<<Result<T, E> as Try>::Residual, <Result<T, E> as Try>::Output>

    🔬This is a nightly-only experimental API. (try_trait_v2)
    Used in ? to decide whether the operator should produce a value\n(because this returned ControlFlow::Continue)\nor propagate a value back to the caller\n(because this returned ControlFlow::Break). Read more
    ","Try","paperclip::error::PaperClipResult"],["
    1.0.0 · source§

    impl<T, E> Copy for Result<T, E>
    where\n T: Copy,\n E: Copy,

    ","Copy","paperclip::error::PaperClipResult"],["
    1.0.0 · source§

    impl<T, E> Eq for Result<T, E>
    where\n T: Eq,\n E: Eq,

    ","Eq","paperclip::error::PaperClipResult"],["
    1.0.0 · source§

    impl<T, E> StructuralPartialEq for Result<T, E>

    ","StructuralPartialEq","paperclip::error::PaperClipResult"]] +"paperclip":[["
    source§

    impl<T, E> Apiv2Schema for Result<T, E>
    where\n T: Apiv2Schema,

    source§

    fn name() -> Option<String>

    Name of this schema. This is the name to which the definition of the object is mapped.
    source§

    fn raw_schema() -> DefaultSchemaRaw

    Returns the raw schema for this object.
    source§

    fn security_scheme() -> Option<SecurityScheme>

    Returns the security scheme for this object.
    source§

    fn header_parameter_schema() -> Vec<Parameter<DefaultSchemaRaw>>

    source§

    fn description() -> &'static str

    Description of this schema. In case the trait is derived, uses the documentation on the type.
    source§

    fn required() -> bool

    Indicates the requirement of this schema.
    source§

    fn schema_with_ref() -> DefaultSchemaRaw

    Returns the schema with a reference (if this is an object). Read more
    ","Apiv2Schema","paperclip::error::PaperClipResult"],["
    1.0.0 · source§

    impl<T, E> Clone for Result<T, E>
    where\n T: Clone,\n E: Clone,

    source§

    fn clone(&self) -> Result<T, E>

    Returns a copy of the value. Read more
    source§

    fn clone_from(&mut self, source: &Result<T, E>)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip::error::PaperClipResult"],["
    source§

    impl<T, E> Context<T, E> for Result<T, E>
    where\n E: StdError + Send + Sync + 'static,

    source§

    fn context<C>(self, context: C) -> Result<T, Error>
    where\n C: Display + Send + Sync + 'static,

    Wrap the error value with additional context.
    source§

    fn with_context<C, F>(self, context: F) -> Result<T, Error>
    where\n C: Display + Send + Sync + 'static,\n F: FnOnce() -> C,

    Wrap the error value with additional context that is evaluated lazily\nonly once an error does occur.
    ","Context","paperclip::error::PaperClipResult"],["
    1.0.0 · source§

    impl<T, E> Debug for Result<T, E>
    where\n T: Debug,\n E: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","paperclip::error::PaperClipResult"],["
    source§

    impl<'de, T, E> Deserialize<'de> for Result<T, E>
    where\n T: Deserialize<'de>,\n E: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D,\n) -> Result<Result<T, E>, <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip::error::PaperClipResult"],["
    1.0.0 · source§

    impl<A, E, V> FromIterator<Result<A, E>> for Result<V, E>
    where\n V: FromIterator<A>,

    source§

    fn from_iter<I>(iter: I) -> Result<V, E>
    where\n I: IntoIterator<Item = Result<A, E>>,

    Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err occur, a\ncontainer with the values of each Result is returned.

    \n

    Here is an example which increments every integer in a vector,\nchecking for overflow:

    \n\n
    let v = vec![1, 2];\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32|\n    x.checked_add(1).ok_or(\"Overflow!\")\n).collect();\nassert_eq!(res, Ok(vec![2, 3]));
    \n

    Here is another example that tries to subtract one from another list\nof integers, this time checking for underflow:

    \n\n
    let v = vec![1, 2, 0];\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32|\n    x.checked_sub(1).ok_or(\"Underflow!\")\n).collect();\nassert_eq!(res, Err(\"Underflow!\"));
    \n

    Here is a variation on the previous example, showing that no\nfurther elements are taken from iter after the first Err.

    \n\n
    let v = vec![3, 2, 1, 10];\nlet mut shared = 0;\nlet res: Result<Vec<u32>, &'static str> = v.iter().map(|x: &u32| {\n    shared += x;\n    x.checked_sub(2).ok_or(\"Underflow!\")\n}).collect();\nassert_eq!(res, Err(\"Underflow!\"));\nassert_eq!(shared, 6);
    \n

    Since the third element caused an underflow, no further elements were taken,\nso the final value of shared is 6 (= 3 + 2 + 1), not 16.

    \n
    ","FromIterator>","paperclip::error::PaperClipResult"],["
    §

    impl<T, E> FromRequest for Result<T, E>
    where\n T: FromRequest,\n <T as FromRequest>::Error: Into<E>,

    Extract from the request, passing error type through to handler.

    \n

    If the inner T::from_request returns an error, allow handler to receive the error rather than\nimmediately returning an error response.

    \n

    §Examples

    \n
    use actix_web::{web, dev, App, Result, Error, HttpRequest, FromRequest};\nuse actix_web::error::ErrorBadRequest;\nuse futures_util::future::{ok, err, Ready};\nuse serde::Deserialize;\nuse rand;\n\n#[derive(Debug, Deserialize)]\nstruct Thing {\n    name: String\n}\n\nimpl FromRequest for Thing {\n    type Error = Error;\n    type Future = Ready<Result<Thing, Error>>;\n\n    fn from_request(req: &HttpRequest, payload: &mut dev::Payload) -> Self::Future {\n        if rand::random() {\n            ok(Thing { name: \"thingy\".into() })\n        } else {\n            err(ErrorBadRequest(\"no luck\"))\n        }\n    }\n}\n\n/// extract `Thing` from request\nasync fn index(supplied_thing: Result<Thing>) -> String {\n    match supplied_thing {\n        Ok(thing) => format!(\"Got thing: {thing:?}\"),\n        Err(err) => format!(\"Error extracting thing: {err}\"),\n    }\n}\n\nlet app = App::new().service(\n    web::resource(\"/users/:first\").route(web::post().to(index))\n);
    \n
    §

    type Error = Infallible

    The associated error which can be returned.
    §

    type Future = FromRequestResFuture<<T as FromRequest>::Future, E>

    Future that resolves to a Self. Read more
    §

    fn from_request(\n req: &HttpRequest,\n payload: &mut Payload,\n) -> <Result<T, E> as FromRequest>::Future

    Create a Self from request parts asynchronously.
    §

    fn extract(req: &HttpRequest) -> Self::Future

    Create a Self from request head asynchronously. Read more
    ","FromRequest","paperclip::error::PaperClipResult"],["
    source§

    impl<T, E, F> FromResidual<Result<Infallible, E>> for Result<T, F>
    where\n F: From<E>,

    source§

    fn from_residual(residual: Result<Infallible, E>) -> Result<T, F>

    🔬This is a nightly-only experimental API. (try_trait_v2)
    Constructs the type from a compatible Residual type. Read more
    ","FromResidual>","paperclip::error::PaperClipResult"],["
    source§

    impl<T, E, F> FromResidual<Yeet<E>> for Result<T, F>
    where\n F: From<E>,

    source§

    fn from_residual(_: Yeet<E>) -> Result<T, F>

    🔬This is a nightly-only experimental API. (try_trait_v2)
    Constructs the type from a compatible Residual type. Read more
    ","FromResidual>","paperclip::error::PaperClipResult"],["
    1.0.0 · source§

    impl<T, E> Hash for Result<T, E>
    where\n T: Hash,\n E: Hash,

    source§

    fn hash<__H>(&self, state: &mut __H)
    where\n __H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","paperclip::error::PaperClipResult"],["
    1.0.0 · source§

    impl<T, E> IntoIterator for Result<T, E>

    source§

    fn into_iter(self) -> IntoIter<T>

    Returns a consuming iterator over the possibly contained value.

    \n

    The iterator yields one value if the result is Result::Ok, otherwise none.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Ok(5);\nlet v: Vec<u32> = x.into_iter().collect();\nassert_eq!(v, [5]);\n\nlet x: Result<u32, &str> = Err(\"nothing!\");\nlet v: Vec<u32> = x.into_iter().collect();\nassert_eq!(v, []);
    \n
    §

    type Item = T

    The type of the elements being iterated over.
    §

    type IntoIter = IntoIter<T>

    Which kind of iterator are we turning this into?
    ","IntoIterator","paperclip::error::PaperClipResult"],["
    source§

    impl<T, E> OperationModifier for Result<T, E>
    where\n T: OperationModifier,\n E: Apiv2Errors,

    source§

    fn update_parameter(\n op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,\n)

    Update the parameters list in the given operation (if needed).
    source§

    fn update_response(\n op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,\n)

    Update the responses map in the given operation (if needed).
    source§

    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

    Update the definitions map (if needed).
    source§

    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

    Update the security definition map (if needed).
    source§

    fn update_security(\n op: &mut Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>,\n)

    Update the security map in the given operation (if needed).
    ","OperationModifier","paperclip::error::PaperClipResult"],["
    1.0.0 · source§

    impl<T, E> Ord for Result<T, E>
    where\n T: Ord,\n E: Ord,

    source§

    fn cmp(&self, other: &Result<T, E>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","paperclip::error::PaperClipResult"],["
    1.0.0 · source§

    impl<T, E> PartialEq for Result<T, E>
    where\n T: PartialEq,\n E: PartialEq,

    source§

    fn eq(&self, other: &Result<T, E>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
    ","PartialEq","paperclip::error::PaperClipResult"],["
    1.0.0 · source§

    impl<T, E> PartialOrd for Result<T, E>
    where\n T: PartialOrd,\n E: PartialOrd,

    source§

    fn partial_cmp(&self, other: &Result<T, E>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the\n<= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the >\noperator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by\nthe >= operator. Read more
    ","PartialOrd","paperclip::error::PaperClipResult"],["
    1.16.0 · source§

    impl<T, U, E> Product<Result<U, E>> for Result<T, E>
    where\n T: Product<U>,

    source§

    fn product<I>(iter: I) -> Result<T, E>
    where\n I: Iterator<Item = Result<U, E>>,

    Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err\noccur, the product of all elements is returned.

    \n
    §Examples
    \n

    This multiplies each number in a vector of strings,\nif a string could not be parsed the operation returns Err:

    \n\n
    let nums = vec![\"5\", \"10\", \"1\", \"2\"];\nlet total: Result<usize, _> = nums.iter().map(|w| w.parse::<usize>()).product();\nassert_eq!(total, Ok(100));\nlet nums = vec![\"5\", \"10\", \"one\", \"2\"];\nlet total: Result<usize, _> = nums.iter().map(|w| w.parse::<usize>()).product();\nassert!(total.is_err());
    \n
    ","Product>","paperclip::error::PaperClipResult"],["
    source§

    impl<T, E> Residual<T> for Result<Infallible, E>

    §

    type TryType = Result<T, E>

    🔬This is a nightly-only experimental API. (try_trait_v2_residual)
    The “return” type of this meta-function.
    ","Residual","paperclip::error::PaperClipResult"],["
    §

    impl<R, E> Responder for Result<R, E>
    where\n R: Responder,\n E: Into<Error>,

    §

    type Body = EitherBody<<R as Responder>::Body>

    §

    fn respond_to(\n self,\n req: &HttpRequest,\n) -> HttpResponse<<Result<R, E> as Responder>::Body>

    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>
    where\n Self: Sized,

    Wraps responder to allow alteration of its response. Read more
    ","Responder","paperclip::error::PaperClipResult"],["
    source§

    impl<T, E> Result<&T, E>

    1.59.0 · source

    pub fn copied(self) -> Result<T, E>
    where\n T: Copy,

    Maps a Result<&T, E> to a Result<T, E> by copying the contents of the\nOk part.

    \n
    §Examples
    \n
    let val = 12;\nlet x: Result<&i32, i32> = Ok(&val);\nassert_eq!(x, Ok(&12));\nlet copied = x.copied();\nassert_eq!(copied, Ok(12));
    \n
    1.59.0 · source

    pub fn cloned(self) -> Result<T, E>
    where\n T: Clone,

    Maps a Result<&T, E> to a Result<T, E> by cloning the contents of the\nOk part.

    \n
    §Examples
    \n
    let val = 12;\nlet x: Result<&i32, i32> = Ok(&val);\nassert_eq!(x, Ok(&12));\nlet cloned = x.cloned();\nassert_eq!(cloned, Ok(12));
    \n
    ",0,"paperclip::error::PaperClipResult"],["
    source§

    impl<T, E> Result<&mut T, E>

    1.59.0 · source

    pub fn copied(self) -> Result<T, E>
    where\n T: Copy,

    Maps a Result<&mut T, E> to a Result<T, E> by copying the contents of the\nOk part.

    \n
    §Examples
    \n
    let mut val = 12;\nlet x: Result<&mut i32, i32> = Ok(&mut val);\nassert_eq!(x, Ok(&mut 12));\nlet copied = x.copied();\nassert_eq!(copied, Ok(12));
    \n
    1.59.0 · source

    pub fn cloned(self) -> Result<T, E>
    where\n T: Clone,

    Maps a Result<&mut T, E> to a Result<T, E> by cloning the contents of the\nOk part.

    \n
    §Examples
    \n
    let mut val = 12;\nlet x: Result<&mut i32, i32> = Ok(&mut val);\nassert_eq!(x, Ok(&mut 12));\nlet cloned = x.cloned();\nassert_eq!(cloned, Ok(12));
    \n
    ",0,"paperclip::error::PaperClipResult"],["
    source§

    impl<T, E> Result<Option<T>, E>

    1.33.0 (const: unstable) · source

    pub fn transpose(self) -> Option<Result<T, E>>

    Transposes a Result of an Option into an Option of a Result.

    \n

    Ok(None) will be mapped to None.\nOk(Some(_)) and Err(_) will be mapped to Some(Ok(_)) and Some(Err(_)).

    \n
    §Examples
    \n
    #[derive(Debug, Eq, PartialEq)]\nstruct SomeErr;\n\nlet x: Result<Option<i32>, SomeErr> = Ok(Some(5));\nlet y: Option<Result<i32, SomeErr>> = Some(Ok(5));\nassert_eq!(x.transpose(), y);
    \n
    ",0,"paperclip::error::PaperClipResult"],["
    source§

    impl<T, E> Result<Result<T, E>, E>

    source

    pub fn flatten(self) -> Result<T, E>

    🔬This is a nightly-only experimental API. (result_flattening)

    Converts from Result<Result<T, E>, E> to Result<T, E>

    \n
    §Examples
    \n
    #![feature(result_flattening)]\nlet x: Result<Result<&'static str, u32>, u32> = Ok(Ok(\"hello\"));\nassert_eq!(Ok(\"hello\"), x.flatten());\n\nlet x: Result<Result<&'static str, u32>, u32> = Ok(Err(6));\nassert_eq!(Err(6), x.flatten());\n\nlet x: Result<Result<&'static str, u32>, u32> = Err(6);\nassert_eq!(Err(6), x.flatten());
    \n

    Flattening only removes one level of nesting at a time:

    \n\n
    #![feature(result_flattening)]\nlet x: Result<Result<Result<&'static str, u32>, u32>, u32> = Ok(Ok(Ok(\"hello\")));\nassert_eq!(Ok(Ok(\"hello\")), x.flatten());\nassert_eq!(Ok(\"hello\"), x.flatten().flatten());
    \n
    ",0,"paperclip::error::PaperClipResult"],["
    source§

    impl<T, E> Result<T, E>

    1.0.0 (const: 1.48.0) · source

    pub const fn is_ok(&self) -> bool

    Returns true if the result is Ok.

    \n
    §Examples
    \n
    let x: Result<i32, &str> = Ok(-3);\nassert_eq!(x.is_ok(), true);\n\nlet x: Result<i32, &str> = Err(\"Some error message\");\nassert_eq!(x.is_ok(), false);
    \n
    1.70.0 · source

    pub fn is_ok_and(self, f: impl FnOnce(T) -> bool) -> bool

    Returns true if the result is Ok and the value inside of it matches a predicate.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.is_ok_and(|x| x > 1), true);\n\nlet x: Result<u32, &str> = Ok(0);\nassert_eq!(x.is_ok_and(|x| x > 1), false);\n\nlet x: Result<u32, &str> = Err(\"hey\");\nassert_eq!(x.is_ok_and(|x| x > 1), false);
    \n
    1.0.0 (const: 1.48.0) · source

    pub const fn is_err(&self) -> bool

    Returns true if the result is Err.

    \n
    §Examples
    \n
    let x: Result<i32, &str> = Ok(-3);\nassert_eq!(x.is_err(), false);\n\nlet x: Result<i32, &str> = Err(\"Some error message\");\nassert_eq!(x.is_err(), true);
    \n
    1.70.0 · source

    pub fn is_err_and(self, f: impl FnOnce(E) -> bool) -> bool

    Returns true if the result is Err and the value inside of it matches a predicate.

    \n
    §Examples
    \n
    use std::io::{Error, ErrorKind};\n\nlet x: Result<u32, Error> = Err(Error::new(ErrorKind::NotFound, \"!\"));\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), true);\n\nlet x: Result<u32, Error> = Err(Error::new(ErrorKind::PermissionDenied, \"!\"));\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), false);\n\nlet x: Result<u32, Error> = Ok(123);\nassert_eq!(x.is_err_and(|x| x.kind() == ErrorKind::NotFound), false);
    \n
    1.0.0 · source

    pub fn ok(self) -> Option<T>

    Converts from Result<T, E> to Option<T>.

    \n

    Converts self into an Option<T>, consuming self,\nand discarding the error, if any.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.ok(), Some(2));\n\nlet x: Result<u32, &str> = Err(\"Nothing here\");\nassert_eq!(x.ok(), None);
    \n
    1.0.0 · source

    pub fn err(self) -> Option<E>

    Converts from Result<T, E> to Option<E>.

    \n

    Converts self into an Option<E>, consuming self,\nand discarding the success value, if any.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.err(), None);\n\nlet x: Result<u32, &str> = Err(\"Nothing here\");\nassert_eq!(x.err(), Some(\"Nothing here\"));
    \n
    1.0.0 (const: 1.48.0) · source

    pub const fn as_ref(&self) -> Result<&T, &E>

    Converts from &Result<T, E> to Result<&T, &E>.

    \n

    Produces a new Result, containing a reference\ninto the original, leaving the original in place.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.as_ref(), Ok(&2));\n\nlet x: Result<u32, &str> = Err(\"Error\");\nassert_eq!(x.as_ref(), Err(&\"Error\"));
    \n
    1.0.0 (const: unstable) · source

    pub fn as_mut(&mut self) -> Result<&mut T, &mut E>

    Converts from &mut Result<T, E> to Result<&mut T, &mut E>.

    \n
    §Examples
    \n
    fn mutate(r: &mut Result<i32, i32>) {\n    match r.as_mut() {\n        Ok(v) => *v = 42,\n        Err(e) => *e = 0,\n    }\n}\n\nlet mut x: Result<i32, i32> = Ok(2);\nmutate(&mut x);\nassert_eq!(x.unwrap(), 42);\n\nlet mut x: Result<i32, i32> = Err(13);\nmutate(&mut x);\nassert_eq!(x.unwrap_err(), 0);
    \n
    1.0.0 · source

    pub fn map<U, F>(self, op: F) -> Result<U, E>
    where\n F: FnOnce(T) -> U,

    Maps a Result<T, E> to Result<U, E> by applying a function to a\ncontained Ok value, leaving an Err value untouched.

    \n

    This function can be used to compose the results of two functions.

    \n
    §Examples
    \n

    Print the numbers on each line of a string multiplied by two.

    \n\n
    let line = \"1\\n2\\n3\\n4\\n\";\n\nfor num in line.lines() {\n    match num.parse::<i32>().map(|i| i * 2) {\n        Ok(n) => println!(\"{n}\"),\n        Err(..) => {}\n    }\n}
    \n
    1.41.0 · source

    pub fn map_or<U, F>(self, default: U, f: F) -> U
    where\n F: FnOnce(T) -> U,

    Returns the provided default (if Err), or\napplies a function to the contained value (if Ok).

    \n

    Arguments passed to map_or are eagerly evaluated; if you are passing\nthe result of a function call, it is recommended to use map_or_else,\nwhich is lazily evaluated.

    \n
    §Examples
    \n
    let x: Result<_, &str> = Ok(\"foo\");\nassert_eq!(x.map_or(42, |v| v.len()), 3);\n\nlet x: Result<&str, _> = Err(\"bar\");\nassert_eq!(x.map_or(42, |v| v.len()), 42);
    \n
    1.41.0 · source

    pub fn map_or_else<U, D, F>(self, default: D, f: F) -> U
    where\n D: FnOnce(E) -> U,\n F: FnOnce(T) -> U,

    Maps a Result<T, E> to U by applying fallback function default to\na contained Err value, or function f to a contained Ok value.

    \n

    This function can be used to unpack a successful result\nwhile handling an error.

    \n
    §Examples
    \n
    let k = 21;\n\nlet x : Result<_, &str> = Ok(\"foo\");\nassert_eq!(x.map_or_else(|e| k * 2, |v| v.len()), 3);\n\nlet x : Result<&str, _> = Err(\"bar\");\nassert_eq!(x.map_or_else(|e| k * 2, |v| v.len()), 42);
    \n
    1.0.0 · source

    pub fn map_err<F, O>(self, op: O) -> Result<T, F>
    where\n O: FnOnce(E) -> F,

    Maps a Result<T, E> to Result<T, F> by applying a function to a\ncontained Err value, leaving an Ok value untouched.

    \n

    This function can be used to pass through a successful result while handling\nan error.

    \n
    §Examples
    \n
    fn stringify(x: u32) -> String { format!(\"error code: {x}\") }\n\nlet x: Result<u32, u32> = Ok(2);\nassert_eq!(x.map_err(stringify), Ok(2));\n\nlet x: Result<u32, u32> = Err(13);\nassert_eq!(x.map_err(stringify), Err(\"error code: 13\".to_string()));
    \n
    1.76.0 · source

    pub fn inspect<F>(self, f: F) -> Result<T, E>
    where\n F: FnOnce(&T),

    Calls a function with a reference to the contained value if Ok.

    \n

    Returns the original result.

    \n
    §Examples
    \n
    let x: u8 = \"4\"\n    .parse::<u8>()\n    .inspect(|x| println!(\"original: {x}\"))\n    .map(|x| x.pow(3))\n    .expect(\"failed to parse number\");
    \n
    1.76.0 · source

    pub fn inspect_err<F>(self, f: F) -> Result<T, E>
    where\n F: FnOnce(&E),

    Calls a function with a reference to the contained value if Err.

    \n

    Returns the original result.

    \n
    §Examples
    \n
    use std::{fs, io};\n\nfn read() -> io::Result<String> {\n    fs::read_to_string(\"address.txt\")\n        .inspect_err(|e| eprintln!(\"failed to read file: {e}\"))\n}
    \n
    1.47.0 · source

    pub fn as_deref(&self) -> Result<&<T as Deref>::Target, &E>
    where\n T: Deref,

    Converts from Result<T, E> (or &Result<T, E>) to Result<&<T as Deref>::Target, &E>.

    \n

    Coerces the Ok variant of the original Result via Deref\nand returns the new Result.

    \n
    §Examples
    \n
    let x: Result<String, u32> = Ok(\"hello\".to_string());\nlet y: Result<&str, &u32> = Ok(\"hello\");\nassert_eq!(x.as_deref(), y);\n\nlet x: Result<String, u32> = Err(42);\nlet y: Result<&str, &u32> = Err(&42);\nassert_eq!(x.as_deref(), y);
    \n
    1.47.0 · source

    pub fn as_deref_mut(&mut self) -> Result<&mut <T as Deref>::Target, &mut E>
    where\n T: DerefMut,

    Converts from Result<T, E> (or &mut Result<T, E>) to Result<&mut <T as DerefMut>::Target, &mut E>.

    \n

    Coerces the Ok variant of the original Result via DerefMut\nand returns the new Result.

    \n
    §Examples
    \n
    let mut s = \"HELLO\".to_string();\nlet mut x: Result<String, u32> = Ok(\"hello\".to_string());\nlet y: Result<&mut str, &mut u32> = Ok(&mut s);\nassert_eq!(x.as_deref_mut().map(|x| { x.make_ascii_uppercase(); x }), y);\n\nlet mut i = 42;\nlet mut x: Result<String, u32> = Err(42);\nlet y: Result<&mut str, &mut u32> = Err(&mut i);\nassert_eq!(x.as_deref_mut().map(|x| { x.make_ascii_uppercase(); x }), y);
    \n
    1.0.0 · source

    pub fn iter(&self) -> Iter<'_, T>

    Returns an iterator over the possibly contained value.

    \n

    The iterator yields one value if the result is Result::Ok, otherwise none.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Ok(7);\nassert_eq!(x.iter().next(), Some(&7));\n\nlet x: Result<u32, &str> = Err(\"nothing!\");\nassert_eq!(x.iter().next(), None);
    \n
    1.0.0 · source

    pub fn iter_mut(&mut self) -> IterMut<'_, T>

    Returns a mutable iterator over the possibly contained value.

    \n

    The iterator yields one value if the result is Result::Ok, otherwise none.

    \n
    §Examples
    \n
    let mut x: Result<u32, &str> = Ok(7);\nmatch x.iter_mut().next() {\n    Some(v) => *v = 40,\n    None => {},\n}\nassert_eq!(x, Ok(40));\n\nlet mut x: Result<u32, &str> = Err(\"nothing!\");\nassert_eq!(x.iter_mut().next(), None);
    \n
    1.4.0 · source

    pub fn expect(self, msg: &str) -> T
    where\n E: Debug,

    Returns the contained Ok value, consuming the self value.

    \n

    Because this function may panic, its use is generally discouraged.\nInstead, prefer to use pattern matching and handle the Err\ncase explicitly, or call unwrap_or, unwrap_or_else, or\nunwrap_or_default.

    \n
    §Panics
    \n

    Panics if the value is an Err, with a panic message including the\npassed message, and the content of the Err.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Err(\"emergency failure\");\nx.expect(\"Testing expect\"); // panics with `Testing expect: emergency failure`
    \n
    §Recommended Message Style
    \n

    We recommend that expect messages are used to describe the reason you\nexpect the Result should be Ok.

    \n\n
    let path = std::env::var(\"IMPORTANT_PATH\")\n    .expect(\"env variable `IMPORTANT_PATH` should be set by `wrapper_script.sh`\");
    \n

    Hint: If you’re having trouble remembering how to phrase expect\nerror messages remember to focus on the word “should” as in “env\nvariable should be set by blah” or “the given binary should be available\nand executable by the current user”.

    \n

    For more detail on expect message styles and the reasoning behind our recommendation please\nrefer to the section on “Common Message\nStyles” in the\nstd::error module docs.

    \n
    1.0.0 · source

    pub fn unwrap(self) -> T
    where\n E: Debug,

    Returns the contained Ok value, consuming the self value.

    \n

    Because this function may panic, its use is generally discouraged.\nInstead, prefer to use pattern matching and handle the Err\ncase explicitly, or call unwrap_or, unwrap_or_else, or\nunwrap_or_default.

    \n
    §Panics
    \n

    Panics if the value is an Err, with a panic message provided by the\nErr’s value.

    \n
    §Examples
    \n

    Basic usage:

    \n\n
    let x: Result<u32, &str> = Ok(2);\nassert_eq!(x.unwrap(), 2);
    \n\n
    let x: Result<u32, &str> = Err(\"emergency failure\");\nx.unwrap(); // panics with `emergency failure`
    \n
    1.16.0 · source

    pub fn unwrap_or_default(self) -> T
    where\n T: Default,

    Returns the contained Ok value or a default

    \n

    Consumes the self argument then, if Ok, returns the contained\nvalue, otherwise if Err, returns the default value for that\ntype.

    \n
    §Examples
    \n

    Converts a string to an integer, turning poorly-formed strings\ninto 0 (the default value for integers). parse converts\na string to any other type that implements FromStr, returning an\nErr on error.

    \n\n
    let good_year_from_input = \"1909\";\nlet bad_year_from_input = \"190blarg\";\nlet good_year = good_year_from_input.parse().unwrap_or_default();\nlet bad_year = bad_year_from_input.parse().unwrap_or_default();\n\nassert_eq!(1909, good_year);\nassert_eq!(0, bad_year);
    \n
    1.17.0 · source

    pub fn expect_err(self, msg: &str) -> E
    where\n T: Debug,

    Returns the contained Err value, consuming the self value.

    \n
    §Panics
    \n

    Panics if the value is an Ok, with a panic message including the\npassed message, and the content of the Ok.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Ok(10);\nx.expect_err(\"Testing expect_err\"); // panics with `Testing expect_err: 10`
    \n
    1.0.0 · source

    pub fn unwrap_err(self) -> E
    where\n T: Debug,

    Returns the contained Err value, consuming the self value.

    \n
    §Panics
    \n

    Panics if the value is an Ok, with a custom panic message provided\nby the Ok’s value.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Ok(2);\nx.unwrap_err(); // panics with `2`
    \n\n
    let x: Result<u32, &str> = Err(\"emergency failure\");\nassert_eq!(x.unwrap_err(), \"emergency failure\");
    \n
    source

    pub fn into_ok(self) -> T
    where\n E: Into<!>,

    🔬This is a nightly-only experimental API. (unwrap_infallible)

    Returns the contained Ok value, but never panics.

    \n

    Unlike unwrap, this method is known to never panic on the\nresult types it is implemented for. Therefore, it can be used\ninstead of unwrap as a maintainability safeguard that will fail\nto compile if the error type of the Result is later changed\nto an error that can actually occur.

    \n
    §Examples
    \n
    \nfn only_good_news() -> Result<String, !> {\n    Ok(\"this is fine\".into())\n}\n\nlet s: String = only_good_news().into_ok();\nprintln!(\"{s}\");
    \n
    source

    pub fn into_err(self) -> E
    where\n T: Into<!>,

    🔬This is a nightly-only experimental API. (unwrap_infallible)

    Returns the contained Err value, but never panics.

    \n

    Unlike unwrap_err, this method is known to never panic on the\nresult types it is implemented for. Therefore, it can be used\ninstead of unwrap_err as a maintainability safeguard that will fail\nto compile if the ok type of the Result is later changed\nto a type that can actually occur.

    \n
    §Examples
    \n
    \nfn only_bad_news() -> Result<!, String> {\n    Err(\"Oops, it failed\".into())\n}\n\nlet error: String = only_bad_news().into_err();\nprintln!(\"{error}\");
    \n
    1.0.0 · source

    pub fn and<U>(self, res: Result<U, E>) -> Result<U, E>

    Returns res if the result is Ok, otherwise returns the Err value of self.

    \n

    Arguments passed to and are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use and_then, which is\nlazily evaluated.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Ok(2);\nlet y: Result<&str, &str> = Err(\"late error\");\nassert_eq!(x.and(y), Err(\"late error\"));\n\nlet x: Result<u32, &str> = Err(\"early error\");\nlet y: Result<&str, &str> = Ok(\"foo\");\nassert_eq!(x.and(y), Err(\"early error\"));\n\nlet x: Result<u32, &str> = Err(\"not a 2\");\nlet y: Result<&str, &str> = Err(\"late error\");\nassert_eq!(x.and(y), Err(\"not a 2\"));\n\nlet x: Result<u32, &str> = Ok(2);\nlet y: Result<&str, &str> = Ok(\"different result type\");\nassert_eq!(x.and(y), Ok(\"different result type\"));
    \n
    1.0.0 · source

    pub fn and_then<U, F>(self, op: F) -> Result<U, E>
    where\n F: FnOnce(T) -> Result<U, E>,

    Calls op if the result is Ok, otherwise returns the Err value of self.

    \n

    This function can be used for control flow based on Result values.

    \n
    §Examples
    \n
    fn sq_then_to_string(x: u32) -> Result<String, &'static str> {\n    x.checked_mul(x).map(|sq| sq.to_string()).ok_or(\"overflowed\")\n}\n\nassert_eq!(Ok(2).and_then(sq_then_to_string), Ok(4.to_string()));\nassert_eq!(Ok(1_000_000).and_then(sq_then_to_string), Err(\"overflowed\"));\nassert_eq!(Err(\"not a number\").and_then(sq_then_to_string), Err(\"not a number\"));
    \n

    Often used to chain fallible operations that may return Err.

    \n\n
    use std::{io::ErrorKind, path::Path};\n\n// Note: on Windows \"/\" maps to \"C:\\\"\nlet root_modified_time = Path::new(\"/\").metadata().and_then(|md| md.modified());\nassert!(root_modified_time.is_ok());\n\nlet should_fail = Path::new(\"/bad/path\").metadata().and_then(|md| md.modified());\nassert!(should_fail.is_err());\nassert_eq!(should_fail.unwrap_err().kind(), ErrorKind::NotFound);
    \n
    1.0.0 · source

    pub fn or<F>(self, res: Result<T, F>) -> Result<T, F>

    Returns res if the result is Err, otherwise returns the Ok value of self.

    \n

    Arguments passed to or are eagerly evaluated; if you are passing the\nresult of a function call, it is recommended to use or_else, which is\nlazily evaluated.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Ok(2);\nlet y: Result<u32, &str> = Err(\"late error\");\nassert_eq!(x.or(y), Ok(2));\n\nlet x: Result<u32, &str> = Err(\"early error\");\nlet y: Result<u32, &str> = Ok(2);\nassert_eq!(x.or(y), Ok(2));\n\nlet x: Result<u32, &str> = Err(\"not a 2\");\nlet y: Result<u32, &str> = Err(\"late error\");\nassert_eq!(x.or(y), Err(\"late error\"));\n\nlet x: Result<u32, &str> = Ok(2);\nlet y: Result<u32, &str> = Ok(100);\nassert_eq!(x.or(y), Ok(2));
    \n
    1.0.0 · source

    pub fn or_else<F, O>(self, op: O) -> Result<T, F>
    where\n O: FnOnce(E) -> Result<T, F>,

    Calls op if the result is Err, otherwise returns the Ok value of self.

    \n

    This function can be used for control flow based on result values.

    \n
    §Examples
    \n
    fn sq(x: u32) -> Result<u32, u32> { Ok(x * x) }\nfn err(x: u32) -> Result<u32, u32> { Err(x) }\n\nassert_eq!(Ok(2).or_else(sq).or_else(sq), Ok(2));\nassert_eq!(Ok(2).or_else(err).or_else(sq), Ok(2));\nassert_eq!(Err(3).or_else(sq).or_else(err), Ok(9));\nassert_eq!(Err(3).or_else(err).or_else(err), Err(3));
    \n
    1.0.0 · source

    pub fn unwrap_or(self, default: T) -> T

    Returns the contained Ok value or a provided default.

    \n

    Arguments passed to unwrap_or are eagerly evaluated; if you are passing\nthe result of a function call, it is recommended to use unwrap_or_else,\nwhich is lazily evaluated.

    \n
    §Examples
    \n
    let default = 2;\nlet x: Result<u32, &str> = Ok(9);\nassert_eq!(x.unwrap_or(default), 9);\n\nlet x: Result<u32, &str> = Err(\"error\");\nassert_eq!(x.unwrap_or(default), default);
    \n
    1.0.0 · source

    pub fn unwrap_or_else<F>(self, op: F) -> T
    where\n F: FnOnce(E) -> T,

    Returns the contained Ok value or computes it from a closure.

    \n
    §Examples
    \n
    fn count(x: &str) -> usize { x.len() }\n\nassert_eq!(Ok(2).unwrap_or_else(count), 2);\nassert_eq!(Err(\"foo\").unwrap_or_else(count), 3);
    \n
    1.58.0 · source

    pub unsafe fn unwrap_unchecked(self) -> T

    Returns the contained Ok value, consuming the self value,\nwithout checking that the value is not an Err.

    \n
    §Safety
    \n

    Calling this method on an Err is undefined behavior.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Ok(2);\nassert_eq!(unsafe { x.unwrap_unchecked() }, 2);
    \n\n
    let x: Result<u32, &str> = Err(\"emergency failure\");\nunsafe { x.unwrap_unchecked(); } // Undefined behavior!
    \n
    1.58.0 · source

    pub unsafe fn unwrap_err_unchecked(self) -> E

    Returns the contained Err value, consuming the self value,\nwithout checking that the value is not an Ok.

    \n
    §Safety
    \n

    Calling this method on an Ok is undefined behavior.

    \n
    §Examples
    \n
    let x: Result<u32, &str> = Ok(2);\nunsafe { x.unwrap_err_unchecked() }; // Undefined behavior!
    \n\n
    let x: Result<u32, &str> = Err(\"emergency failure\");\nassert_eq!(unsafe { x.unwrap_err_unchecked() }, \"emergency failure\");
    \n
    ",0,"paperclip::error::PaperClipResult"],["
    source§

    impl<T, E> Serialize for Result<T, E>
    where\n T: Serialize,\n E: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S,\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip::error::PaperClipResult"],["
    1.16.0 · source§

    impl<T, U, E> Sum<Result<U, E>> for Result<T, E>
    where\n T: Sum<U>,

    source§

    fn sum<I>(iter: I) -> Result<T, E>
    where\n I: Iterator<Item = Result<U, E>>,

    Takes each element in the Iterator: if it is an Err, no further\nelements are taken, and the Err is returned. Should no Err\noccur, the sum of all elements is returned.

    \n
    §Examples
    \n

    This sums up every integer in a vector, rejecting the sum if a negative\nelement is encountered:

    \n\n
    let f = |&x: &i32| if x < 0 { Err(\"Negative element found\") } else { Ok(x) };\nlet v = vec![1, 2];\nlet res: Result<i32, _> = v.iter().map(f).sum();\nassert_eq!(res, Ok(3));\nlet v = vec![1, -2];\nlet res: Result<i32, _> = v.iter().map(f).sum();\nassert_eq!(res, Err(\"Negative element found\"));
    \n
    ","Sum>","paperclip::error::PaperClipResult"],["
    1.61.0 · source§

    impl<T, E> Termination for Result<T, E>
    where\n T: Termination,\n E: Debug,

    source§

    fn report(self) -> ExitCode

    Is called to get the representation of the value as status code.\nThis status code is returned to the operating system.
    ","Termination","paperclip::error::PaperClipResult"],["
    source§

    impl<T, E> Try for Result<T, E>

    §

    type Output = T

    🔬This is a nightly-only experimental API. (try_trait_v2)
    The type of the value produced by ? when not short-circuiting.
    §

    type Residual = Result<Infallible, E>

    🔬This is a nightly-only experimental API. (try_trait_v2)
    The type of the value passed to FromResidual::from_residual\nas part of ? when short-circuiting. Read more
    source§

    fn from_output(output: <Result<T, E> as Try>::Output) -> Result<T, E>

    🔬This is a nightly-only experimental API. (try_trait_v2)
    Constructs the type from its Output type. Read more
    source§

    fn branch(\n self,\n) -> ControlFlow<<Result<T, E> as Try>::Residual, <Result<T, E> as Try>::Output>

    🔬This is a nightly-only experimental API. (try_trait_v2)
    Used in ? to decide whether the operator should produce a value\n(because this returned ControlFlow::Continue)\nor propagate a value back to the caller\n(because this returned ControlFlow::Break). Read more
    ","Try","paperclip::error::PaperClipResult"],["
    1.0.0 · source§

    impl<T, E> Copy for Result<T, E>
    where\n T: Copy,\n E: Copy,

    ","Copy","paperclip::error::PaperClipResult"],["
    1.0.0 · source§

    impl<T, E> Eq for Result<T, E>
    where\n T: Eq,\n E: Eq,

    ","Eq","paperclip::error::PaperClipResult"],["
    1.0.0 · source§

    impl<T, E> StructuralPartialEq for Result<T, E>

    ","StructuralPartialEq","paperclip::error::PaperClipResult"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/type.impl/paperclip/v2/models/struct.Api.js b/type.impl/paperclip/v2/models/struct.Api.js index db2784ca3..1bd49cd91 100644 --- a/type.impl/paperclip/v2/models/struct.Api.js +++ b/type.impl/paperclip/v2/models/struct.Api.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"paperclip":[["
    source§

    impl<S> Api<Arc<RwLock<Parameter<Resolvable<S>>>>, Arc<RwLock<Response<Resolvable<S>>>>, Resolvable<S>>
    where\n S: Schema + Default,

    source

    pub fn resolve(\n self,\n) -> Result<Api<Arc<RwLock<Parameter<Resolvable<S>>>>, Arc<RwLock<Response<Resolvable<S>>>>, Resolvable<S>>, ValidationError>

    Consumes this API schema, resolves the references and returns\nthe resolved schema.

    \n

    This walks recursively, collects the referenced schema objects,\nsubstitutes the referenced IDs with the pointer to schema objects\nand returns the resolved object or an error if it encountered one.

    \n
    ",0,"paperclip::v2::ResolvableApi"],["
    source§

    impl<P, R, S> Api<P, R, S>

    source

    pub fn path_parameters_map(\n path: &str,\n f: impl FnMut(&str) -> Cow<'static, str>,\n) -> Cow<'_, str>

    Gets the parameters from the given path template and calls\nthe given function with the parameter names.

    \n
    ",0,"paperclip::v2::ResolvableApi","paperclip::v2::models::DefaultApiRaw"],["
    source§

    impl<P, R, S> Clone for Api<P, R, S>
    where\n P: Clone,\n R: Clone,\n S: Clone,

    source§

    fn clone(&self) -> Api<P, R, S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip::v2::ResolvableApi","paperclip::v2::models::DefaultApiRaw"],["
    source§

    impl<P, R, S> Debug for Api<P, R, S>
    where\n P: Debug,\n R: Debug,\n S: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","paperclip::v2::ResolvableApi","paperclip::v2::models::DefaultApiRaw"],["
    source§

    impl<P, R, S> Default for Api<P, R, S>
    where\n P: Default,\n R: Default,\n S: Default,

    source§

    fn default() -> Api<P, R, S>

    Returns the “default value” for a type. Read more
    ","Default","paperclip::v2::ResolvableApi","paperclip::v2::models::DefaultApiRaw"],["
    source§

    impl<'de, P, R, S> Deserialize<'de> for Api<P, R, S>
    where\n P: Deserialize<'de>,\n R: Deserialize<'de>,\n S: Deserialize<'de>,

    source§

    fn deserialize<__D>(\n __deserializer: __D,\n) -> Result<Api<P, R, S>, <__D as Deserializer<'de>>::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip::v2::ResolvableApi","paperclip::v2::models::DefaultApiRaw"],["
    source§

    impl<P, R, S> Serialize for Api<P, R, S>
    where\n P: Serialize,\n R: Serialize,\n S: Serialize,

    source§

    fn serialize<__S>(\n &self,\n __serializer: __S,\n) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip::v2::ResolvableApi","paperclip::v2::models::DefaultApiRaw"]] +"paperclip":[["
    source§

    impl<S> Api<Arc<RwLock<Parameter<Resolvable<S>>>>, Arc<RwLock<Response<Resolvable<S>>>>, Resolvable<S>>
    where\n S: Schema + Default,

    source

    pub fn resolve(\n self,\n) -> Result<Api<Arc<RwLock<Parameter<Resolvable<S>>>>, Arc<RwLock<Response<Resolvable<S>>>>, Resolvable<S>>, ValidationError>

    Consumes this API schema, resolves the references and returns\nthe resolved schema.

    \n

    This walks recursively, collects the referenced schema objects,\nsubstitutes the referenced IDs with the pointer to schema objects\nand returns the resolved object or an error if it encountered one.

    \n
    ",0,"paperclip::v2::ResolvableApi"],["
    source§

    impl<P, R, S> Api<P, R, S>

    source

    pub fn path_parameters_map(\n path: &str,\n f: impl FnMut(&str) -> Cow<'static, str>,\n) -> Cow<'_, str>

    Gets the parameters from the given path template and calls\nthe given function with the parameter names.

    \n
    ",0,"paperclip::v2::ResolvableApi","paperclip::v2::models::DefaultApiRaw"],["
    source§

    impl<P, R, S> Clone for Api<P, R, S>
    where\n P: Clone,\n R: Clone,\n S: Clone,

    source§

    fn clone(&self) -> Api<P, R, S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip::v2::ResolvableApi","paperclip::v2::models::DefaultApiRaw"],["
    source§

    impl<P, R, S> Debug for Api<P, R, S>
    where\n P: Debug,\n R: Debug,\n S: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","paperclip::v2::ResolvableApi","paperclip::v2::models::DefaultApiRaw"],["
    source§

    impl<P, R, S> Default for Api<P, R, S>
    where\n P: Default,\n R: Default,\n S: Default,

    source§

    fn default() -> Api<P, R, S>

    Returns the “default value” for a type. Read more
    ","Default","paperclip::v2::ResolvableApi","paperclip::v2::models::DefaultApiRaw"],["
    source§

    impl<'de, P, R, S> Deserialize<'de> for Api<P, R, S>
    where\n P: Deserialize<'de>,\n R: Deserialize<'de>,\n S: Deserialize<'de>,

    source§

    fn deserialize<__D>(\n __deserializer: __D,\n) -> Result<Api<P, R, S>, <__D as Deserializer<'de>>::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip::v2::ResolvableApi","paperclip::v2::models::DefaultApiRaw"],["
    source§

    impl<P, R, S> Serialize for Api<P, R, S>
    where\n P: Serialize,\n R: Serialize,\n S: Serialize,

    source§

    fn serialize<__S>(\n &self,\n __serializer: __S,\n) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip::v2::ResolvableApi","paperclip::v2::models::DefaultApiRaw"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/type.impl/paperclip/v2/models/struct.Operation.js b/type.impl/paperclip/v2/models/struct.Operation.js index 32776cdf9..159a467d2 100644 --- a/type.impl/paperclip/v2/models/struct.Operation.js +++ b/type.impl/paperclip/v2/models/struct.Operation.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"paperclip":[["
    source§

    impl<P, R> Clone for Operation<P, R>
    where\n P: Clone,\n R: Clone,

    source§

    fn clone(&self) -> Operation<P, R>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip::v2::models::ResolvableOperation","paperclip::v2::models::DefaultOperationRaw"],["
    source§

    impl<P, R> Debug for Operation<P, R>
    where\n P: Debug,\n R: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","paperclip::v2::models::ResolvableOperation","paperclip::v2::models::DefaultOperationRaw"],["
    source§

    impl<P, R> Default for Operation<P, R>
    where\n P: Default,\n R: Default,

    source§

    fn default() -> Operation<P, R>

    Returns the “default value” for a type. Read more
    ","Default","paperclip::v2::models::ResolvableOperation","paperclip::v2::models::DefaultOperationRaw"],["
    source§

    impl<'de, P, R> Deserialize<'de> for Operation<P, R>
    where\n P: Deserialize<'de>,\n R: Deserialize<'de>,

    source§

    fn deserialize<__D>(\n __deserializer: __D,\n) -> Result<Operation<P, R>, <__D as Deserializer<'de>>::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip::v2::models::ResolvableOperation","paperclip::v2::models::DefaultOperationRaw"],["
    source§

    impl<S> Operation<Parameter<S>, Response<S>>

    source

    pub fn set_parameter_names_from_path_template(&mut self, path: &str)

    Overwrites the names of parameters in this operation using the\ngiven path template.

    \n
    ",0,"paperclip::v2::models::DefaultOperationRaw"],["
    source§

    impl<P, R> Serialize for Operation<P, R>
    where\n P: Serialize,\n R: Serialize,

    source§

    fn serialize<__S>(\n &self,\n __serializer: __S,\n) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip::v2::models::ResolvableOperation","paperclip::v2::models::DefaultOperationRaw"]] +"paperclip":[["
    source§

    impl<P, R> Clone for Operation<P, R>
    where\n P: Clone,\n R: Clone,

    source§

    fn clone(&self) -> Operation<P, R>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip::v2::models::ResolvableOperation","paperclip::v2::models::DefaultOperationRaw"],["
    source§

    impl<P, R> Debug for Operation<P, R>
    where\n P: Debug,\n R: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","paperclip::v2::models::ResolvableOperation","paperclip::v2::models::DefaultOperationRaw"],["
    source§

    impl<P, R> Default for Operation<P, R>
    where\n P: Default,\n R: Default,

    source§

    fn default() -> Operation<P, R>

    Returns the “default value” for a type. Read more
    ","Default","paperclip::v2::models::ResolvableOperation","paperclip::v2::models::DefaultOperationRaw"],["
    source§

    impl<'de, P, R> Deserialize<'de> for Operation<P, R>
    where\n P: Deserialize<'de>,\n R: Deserialize<'de>,

    source§

    fn deserialize<__D>(\n __deserializer: __D,\n) -> Result<Operation<P, R>, <__D as Deserializer<'de>>::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip::v2::models::ResolvableOperation","paperclip::v2::models::DefaultOperationRaw"],["
    source§

    impl<S> Operation<Parameter<S>, Response<S>>

    source

    pub fn set_parameter_names_from_path_template(&mut self, path: &str)

    Overwrites the names of parameters in this operation using the\ngiven path template.

    \n
    ",0,"paperclip::v2::models::DefaultOperationRaw"],["
    source§

    impl<P, R> Serialize for Operation<P, R>
    where\n P: Serialize,\n R: Serialize,

    source§

    fn serialize<__S>(\n &self,\n __serializer: __S,\n) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip::v2::models::ResolvableOperation","paperclip::v2::models::DefaultOperationRaw"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/type.impl/paperclip/v2/models/struct.Parameter.js b/type.impl/paperclip/v2/models/struct.Parameter.js index 83c1ad8ec..85f3b1d2e 100644 --- a/type.impl/paperclip/v2/models/struct.Parameter.js +++ b/type.impl/paperclip/v2/models/struct.Parameter.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"paperclip":[["
    source§

    impl<S> Clone for Parameter<S>
    where\n S: Clone,

    source§

    fn clone(&self) -> Parameter<S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip::v2::models::DefaultParameterRaw"],["
    source§

    impl<S> Debug for Parameter<S>
    where\n S: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","paperclip::v2::models::DefaultParameterRaw"],["
    source§

    impl<S> Default for Parameter<S>
    where\n S: Default,

    source§

    fn default() -> Parameter<S>

    Returns the “default value” for a type. Read more
    ","Default","paperclip::v2::models::DefaultParameterRaw"],["
    source§

    impl<'de, S> Deserialize<'de> for Parameter<S>
    where\n S: Deserialize<'de>,

    source§

    fn deserialize<__D>(\n __deserializer: __D,\n) -> Result<Parameter<S>, <__D as Deserializer<'de>>::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip::v2::models::DefaultParameterRaw"],["
    source§

    impl<S> PartialEq for Parameter<S>
    where\n S: PartialEq,

    source§

    fn eq(&self, other: &Parameter<S>) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","paperclip::v2::models::DefaultParameterRaw"],["
    source§

    impl<S> Serialize for Parameter<S>
    where\n S: Serialize,

    source§

    fn serialize<__S>(\n &self,\n __serializer: __S,\n) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip::v2::models::DefaultParameterRaw"],["
    source§

    impl<S> StructuralPartialEq for Parameter<S>

    ","StructuralPartialEq","paperclip::v2::models::DefaultParameterRaw"]] +"paperclip":[["
    source§

    impl<S> Clone for Parameter<S>
    where\n S: Clone,

    source§

    fn clone(&self) -> Parameter<S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip::v2::models::DefaultParameterRaw"],["
    source§

    impl<S> Debug for Parameter<S>
    where\n S: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","paperclip::v2::models::DefaultParameterRaw"],["
    source§

    impl<S> Default for Parameter<S>
    where\n S: Default,

    source§

    fn default() -> Parameter<S>

    Returns the “default value” for a type. Read more
    ","Default","paperclip::v2::models::DefaultParameterRaw"],["
    source§

    impl<'de, S> Deserialize<'de> for Parameter<S>
    where\n S: Deserialize<'de>,

    source§

    fn deserialize<__D>(\n __deserializer: __D,\n) -> Result<Parameter<S>, <__D as Deserializer<'de>>::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip::v2::models::DefaultParameterRaw"],["
    source§

    impl<S> PartialEq for Parameter<S>
    where\n S: PartialEq,

    source§

    fn eq(&self, other: &Parameter<S>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
    ","PartialEq","paperclip::v2::models::DefaultParameterRaw"],["
    source§

    impl<S> Serialize for Parameter<S>
    where\n S: Serialize,

    source§

    fn serialize<__S>(\n &self,\n __serializer: __S,\n) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip::v2::models::DefaultParameterRaw"],["
    source§

    impl<S> StructuralPartialEq for Parameter<S>

    ","StructuralPartialEq","paperclip::v2::models::DefaultParameterRaw"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/type.impl/paperclip/v2/models/struct.PathItem.js b/type.impl/paperclip/v2/models/struct.PathItem.js index d28c120b7..be2188f98 100644 --- a/type.impl/paperclip/v2/models/struct.PathItem.js +++ b/type.impl/paperclip/v2/models/struct.PathItem.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"paperclip":[["
    source§

    impl<P, R> Clone for PathItem<P, R>
    where\n P: Clone,\n R: Clone,

    source§

    fn clone(&self) -> PathItem<P, R>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip::v2::models::ResolvablePathItem","paperclip::v2::models::DefaultPathItemRaw"],["
    source§

    impl<P, R> Debug for PathItem<P, R>
    where\n P: Debug,\n R: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","paperclip::v2::models::ResolvablePathItem","paperclip::v2::models::DefaultPathItemRaw"],["
    source§

    impl<P, R> Default for PathItem<P, R>
    where\n P: Default,\n R: Default,

    source§

    fn default() -> PathItem<P, R>

    Returns the “default value” for a type. Read more
    ","Default","paperclip::v2::models::ResolvablePathItem","paperclip::v2::models::DefaultPathItemRaw"],["
    source§

    impl<'de, P, R> Deserialize<'de> for PathItem<P, R>
    where\n P: Deserialize<'de>,\n R: Deserialize<'de>,

    source§

    fn deserialize<__D>(\n __deserializer: __D,\n) -> Result<PathItem<P, R>, <__D as Deserializer<'de>>::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip::v2::models::ResolvablePathItem","paperclip::v2::models::DefaultPathItemRaw"],["
    source§

    impl<S> PathItem<Parameter<S>, Response<S>>

    source

    pub fn normalize(&mut self)

    Normalizes this operation map.

    \n
      \n
    • Collects and removes parameters shared across operations\nand adds them to the list global to this map.
    • \n
    \n
    ",0,"paperclip::v2::models::DefaultPathItemRaw"],["
    source§

    impl<P, R> Serialize for PathItem<P, R>
    where\n P: Serialize,\n R: Serialize,

    source§

    fn serialize<__S>(\n &self,\n __serializer: __S,\n) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip::v2::models::ResolvablePathItem","paperclip::v2::models::DefaultPathItemRaw"]] +"paperclip":[["
    source§

    impl<P, R> Clone for PathItem<P, R>
    where\n P: Clone,\n R: Clone,

    source§

    fn clone(&self) -> PathItem<P, R>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip::v2::models::ResolvablePathItem","paperclip::v2::models::DefaultPathItemRaw"],["
    source§

    impl<P, R> Debug for PathItem<P, R>
    where\n P: Debug,\n R: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","paperclip::v2::models::ResolvablePathItem","paperclip::v2::models::DefaultPathItemRaw"],["
    source§

    impl<P, R> Default for PathItem<P, R>
    where\n P: Default,\n R: Default,

    source§

    fn default() -> PathItem<P, R>

    Returns the “default value” for a type. Read more
    ","Default","paperclip::v2::models::ResolvablePathItem","paperclip::v2::models::DefaultPathItemRaw"],["
    source§

    impl<'de, P, R> Deserialize<'de> for PathItem<P, R>
    where\n P: Deserialize<'de>,\n R: Deserialize<'de>,

    source§

    fn deserialize<__D>(\n __deserializer: __D,\n) -> Result<PathItem<P, R>, <__D as Deserializer<'de>>::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip::v2::models::ResolvablePathItem","paperclip::v2::models::DefaultPathItemRaw"],["
    source§

    impl<S> PathItem<Parameter<S>, Response<S>>

    source

    pub fn normalize(&mut self)

    Normalizes this operation map.

    \n
      \n
    • Collects and removes parameters shared across operations\nand adds them to the list global to this map.
    • \n
    \n
    ",0,"paperclip::v2::models::DefaultPathItemRaw"],["
    source§

    impl<P, R> Serialize for PathItem<P, R>
    where\n P: Serialize,\n R: Serialize,

    source§

    fn serialize<__S>(\n &self,\n __serializer: __S,\n) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip::v2::models::ResolvablePathItem","paperclip::v2::models::DefaultPathItemRaw"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/type.impl/paperclip/v2/models/struct.Response.js b/type.impl/paperclip/v2/models/struct.Response.js index af140e25f..f403cc8b8 100644 --- a/type.impl/paperclip/v2/models/struct.Response.js +++ b/type.impl/paperclip/v2/models/struct.Response.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"paperclip":[["
    source§

    impl<S> Clone for Response<S>
    where\n S: Clone,

    source§

    fn clone(&self) -> Response<S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip::v2::models::DefaultResponseRaw"],["
    source§

    impl<S> Debug for Response<S>
    where\n S: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","paperclip::v2::models::DefaultResponseRaw"],["
    source§

    impl<S> Default for Response<S>
    where\n S: Default,

    source§

    fn default() -> Response<S>

    Returns the “default value” for a type. Read more
    ","Default","paperclip::v2::models::DefaultResponseRaw"],["
    source§

    impl<'de, S> Deserialize<'de> for Response<S>
    where\n S: Deserialize<'de>,

    source§

    fn deserialize<__D>(\n __deserializer: __D,\n) -> Result<Response<S>, <__D as Deserializer<'de>>::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip::v2::models::DefaultResponseRaw"],["
    source§

    impl<S> Serialize for Response<S>
    where\n S: Serialize,

    source§

    fn serialize<__S>(\n &self,\n __serializer: __S,\n) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip::v2::models::DefaultResponseRaw"]] +"paperclip":[["
    source§

    impl<S> Clone for Response<S>
    where\n S: Clone,

    source§

    fn clone(&self) -> Response<S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip::v2::models::DefaultResponseRaw"],["
    source§

    impl<S> Debug for Response<S>
    where\n S: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","paperclip::v2::models::DefaultResponseRaw"],["
    source§

    impl<S> Default for Response<S>
    where\n S: Default,

    source§

    fn default() -> Response<S>

    Returns the “default value” for a type. Read more
    ","Default","paperclip::v2::models::DefaultResponseRaw"],["
    source§

    impl<'de, S> Deserialize<'de> for Response<S>
    where\n S: Deserialize<'de>,

    source§

    fn deserialize<__D>(\n __deserializer: __D,\n) -> Result<Response<S>, <__D as Deserializer<'de>>::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip::v2::models::DefaultResponseRaw"],["
    source§

    impl<S> Serialize for Response<S>
    where\n S: Serialize,

    source§

    fn serialize<__S>(\n &self,\n __serializer: __S,\n) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip::v2::models::DefaultResponseRaw"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/type.impl/paperclip_core/v2/models/struct.Api.js b/type.impl/paperclip_core/v2/models/struct.Api.js index 38e553de5..da2e64464 100644 --- a/type.impl/paperclip_core/v2/models/struct.Api.js +++ b/type.impl/paperclip_core/v2/models/struct.Api.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"paperclip_core":[["
    source§

    impl<P, R, S> Api<P, R, S>

    source

    pub fn path_parameters_map(\n path: &str,\n f: impl FnMut(&str) -> Cow<'static, str>,\n) -> Cow<'_, str>

    Gets the parameters from the given path template and calls\nthe given function with the parameter names.

    \n
    ",0,"paperclip_core::v2::models::ResolvableApi","paperclip_core::v2::models::DefaultApiRaw"],["
    source§

    impl<P: Clone, R: Clone, S: Clone> Clone for Api<P, R, S>

    source§

    fn clone(&self) -> Api<P, R, S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip_core::v2::models::ResolvableApi","paperclip_core::v2::models::DefaultApiRaw"],["
    source§

    impl<P: Debug, R: Debug, S: Debug> Debug for Api<P, R, S>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","paperclip_core::v2::models::ResolvableApi","paperclip_core::v2::models::DefaultApiRaw"],["
    source§

    impl<P: Default, R: Default, S: Default> Default for Api<P, R, S>

    source§

    fn default() -> Api<P, R, S>

    Returns the “default value” for a type. Read more
    ","Default","paperclip_core::v2::models::ResolvableApi","paperclip_core::v2::models::DefaultApiRaw"],["
    source§

    impl<'de, P, R, S> Deserialize<'de> for Api<P, R, S>
    where\n P: Deserialize<'de>,\n R: Deserialize<'de>,\n S: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip_core::v2::models::ResolvableApi","paperclip_core::v2::models::DefaultApiRaw"],["
    source§

    impl<P, R, S> Serialize for Api<P, R, S>
    where\n P: Serialize,\n R: Serialize,\n S: Serialize,

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip_core::v2::models::ResolvableApi","paperclip_core::v2::models::DefaultApiRaw"]] +"paperclip_core":[["
    source§

    impl<P, R, S> Api<P, R, S>

    source

    pub fn path_parameters_map(\n path: &str,\n f: impl FnMut(&str) -> Cow<'static, str>,\n) -> Cow<'_, str>

    Gets the parameters from the given path template and calls\nthe given function with the parameter names.

    \n
    ",0,"paperclip_core::v2::models::ResolvableApi","paperclip_core::v2::models::DefaultApiRaw"],["
    source§

    impl<P: Clone, R: Clone, S: Clone> Clone for Api<P, R, S>

    source§

    fn clone(&self) -> Api<P, R, S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip_core::v2::models::ResolvableApi","paperclip_core::v2::models::DefaultApiRaw"],["
    source§

    impl<P: Debug, R: Debug, S: Debug> Debug for Api<P, R, S>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","paperclip_core::v2::models::ResolvableApi","paperclip_core::v2::models::DefaultApiRaw"],["
    source§

    impl<P: Default, R: Default, S: Default> Default for Api<P, R, S>

    source§

    fn default() -> Api<P, R, S>

    Returns the “default value” for a type. Read more
    ","Default","paperclip_core::v2::models::ResolvableApi","paperclip_core::v2::models::DefaultApiRaw"],["
    source§

    impl<'de, P, R, S> Deserialize<'de> for Api<P, R, S>
    where\n P: Deserialize<'de>,\n R: Deserialize<'de>,\n S: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip_core::v2::models::ResolvableApi","paperclip_core::v2::models::DefaultApiRaw"],["
    source§

    impl<P, R, S> Serialize for Api<P, R, S>
    where\n P: Serialize,\n R: Serialize,\n S: Serialize,

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip_core::v2::models::ResolvableApi","paperclip_core::v2::models::DefaultApiRaw"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/type.impl/paperclip_core/v2/models/struct.Operation.js b/type.impl/paperclip_core/v2/models/struct.Operation.js index f1e6a4be5..ab2b98b44 100644 --- a/type.impl/paperclip_core/v2/models/struct.Operation.js +++ b/type.impl/paperclip_core/v2/models/struct.Operation.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"paperclip_core":[["
    source§

    impl<P: Clone, R: Clone> Clone for Operation<P, R>

    source§

    fn clone(&self) -> Operation<P, R>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip_core::v2::models::ResolvableOperation","paperclip_core::v2::models::DefaultOperationRaw"],["
    source§

    impl<P: Debug, R: Debug> Debug for Operation<P, R>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","paperclip_core::v2::models::ResolvableOperation","paperclip_core::v2::models::DefaultOperationRaw"],["
    source§

    impl<P: Default, R: Default> Default for Operation<P, R>

    source§

    fn default() -> Operation<P, R>

    Returns the “default value” for a type. Read more
    ","Default","paperclip_core::v2::models::ResolvableOperation","paperclip_core::v2::models::DefaultOperationRaw"],["
    source§

    impl<'de, P, R> Deserialize<'de> for Operation<P, R>
    where\n P: Deserialize<'de>,\n R: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip_core::v2::models::ResolvableOperation","paperclip_core::v2::models::DefaultOperationRaw"],["
    source§

    impl<S> Operation<Parameter<S>, Response<S>>

    source

    pub fn set_parameter_names_from_path_template(&mut self, path: &str)

    Overwrites the names of parameters in this operation using the\ngiven path template.

    \n
    ",0,"paperclip_core::v2::models::DefaultOperationRaw"],["
    source§

    impl<P, R> Serialize for Operation<P, R>
    where\n P: Serialize,\n R: Serialize,

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip_core::v2::models::ResolvableOperation","paperclip_core::v2::models::DefaultOperationRaw"]] +"paperclip_core":[["
    source§

    impl<P: Clone, R: Clone> Clone for Operation<P, R>

    source§

    fn clone(&self) -> Operation<P, R>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip_core::v2::models::ResolvableOperation","paperclip_core::v2::models::DefaultOperationRaw"],["
    source§

    impl<P: Debug, R: Debug> Debug for Operation<P, R>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","paperclip_core::v2::models::ResolvableOperation","paperclip_core::v2::models::DefaultOperationRaw"],["
    source§

    impl<P: Default, R: Default> Default for Operation<P, R>

    source§

    fn default() -> Operation<P, R>

    Returns the “default value” for a type. Read more
    ","Default","paperclip_core::v2::models::ResolvableOperation","paperclip_core::v2::models::DefaultOperationRaw"],["
    source§

    impl<'de, P, R> Deserialize<'de> for Operation<P, R>
    where\n P: Deserialize<'de>,\n R: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip_core::v2::models::ResolvableOperation","paperclip_core::v2::models::DefaultOperationRaw"],["
    source§

    impl<S> Operation<Parameter<S>, Response<S>>

    source

    pub fn set_parameter_names_from_path_template(&mut self, path: &str)

    Overwrites the names of parameters in this operation using the\ngiven path template.

    \n
    ",0,"paperclip_core::v2::models::DefaultOperationRaw"],["
    source§

    impl<P, R> Serialize for Operation<P, R>
    where\n P: Serialize,\n R: Serialize,

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip_core::v2::models::ResolvableOperation","paperclip_core::v2::models::DefaultOperationRaw"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/type.impl/paperclip_core/v2/models/struct.Parameter.js b/type.impl/paperclip_core/v2/models/struct.Parameter.js index c4d802682..b1fe2d132 100644 --- a/type.impl/paperclip_core/v2/models/struct.Parameter.js +++ b/type.impl/paperclip_core/v2/models/struct.Parameter.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"paperclip_core":[["
    source§

    impl<S: Clone> Clone for Parameter<S>

    source§

    fn clone(&self) -> Parameter<S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip_core::v2::models::DefaultParameterRaw"],["
    source§

    impl<S: Debug> Debug for Parameter<S>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","paperclip_core::v2::models::DefaultParameterRaw"],["
    source§

    impl<S: Default> Default for Parameter<S>

    source§

    fn default() -> Parameter<S>

    Returns the “default value” for a type. Read more
    ","Default","paperclip_core::v2::models::DefaultParameterRaw"],["
    source§

    impl<'de, S> Deserialize<'de> for Parameter<S>
    where\n S: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip_core::v2::models::DefaultParameterRaw"],["
    source§

    impl<S: PartialEq> PartialEq for Parameter<S>

    source§

    fn eq(&self, other: &Parameter<S>) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","paperclip_core::v2::models::DefaultParameterRaw"],["
    source§

    impl<S> Serialize for Parameter<S>
    where\n S: Serialize,

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip_core::v2::models::DefaultParameterRaw"],["
    source§

    impl<S> StructuralPartialEq for Parameter<S>

    ","StructuralPartialEq","paperclip_core::v2::models::DefaultParameterRaw"]] +"paperclip_core":[["
    source§

    impl<S: Clone> Clone for Parameter<S>

    source§

    fn clone(&self) -> Parameter<S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip_core::v2::models::DefaultParameterRaw"],["
    source§

    impl<S: Debug> Debug for Parameter<S>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","paperclip_core::v2::models::DefaultParameterRaw"],["
    source§

    impl<S: Default> Default for Parameter<S>

    source§

    fn default() -> Parameter<S>

    Returns the “default value” for a type. Read more
    ","Default","paperclip_core::v2::models::DefaultParameterRaw"],["
    source§

    impl<'de, S> Deserialize<'de> for Parameter<S>
    where\n S: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip_core::v2::models::DefaultParameterRaw"],["
    source§

    impl<S: PartialEq> PartialEq for Parameter<S>

    source§

    fn eq(&self, other: &Parameter<S>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient,\nand should not be overridden without very good reason.
    ","PartialEq","paperclip_core::v2::models::DefaultParameterRaw"],["
    source§

    impl<S> Serialize for Parameter<S>
    where\n S: Serialize,

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip_core::v2::models::DefaultParameterRaw"],["
    source§

    impl<S> StructuralPartialEq for Parameter<S>

    ","StructuralPartialEq","paperclip_core::v2::models::DefaultParameterRaw"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/type.impl/paperclip_core/v2/models/struct.PathItem.js b/type.impl/paperclip_core/v2/models/struct.PathItem.js index d42d4234c..01a2ab7ba 100644 --- a/type.impl/paperclip_core/v2/models/struct.PathItem.js +++ b/type.impl/paperclip_core/v2/models/struct.PathItem.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"paperclip_core":[["
    source§

    impl<P: Clone, R: Clone> Clone for PathItem<P, R>

    source§

    fn clone(&self) -> PathItem<P, R>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip_core::v2::models::ResolvablePathItem","paperclip_core::v2::models::DefaultPathItemRaw"],["
    source§

    impl<P: Debug, R: Debug> Debug for PathItem<P, R>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","paperclip_core::v2::models::ResolvablePathItem","paperclip_core::v2::models::DefaultPathItemRaw"],["
    source§

    impl<P: Default, R: Default> Default for PathItem<P, R>

    source§

    fn default() -> PathItem<P, R>

    Returns the “default value” for a type. Read more
    ","Default","paperclip_core::v2::models::ResolvablePathItem","paperclip_core::v2::models::DefaultPathItemRaw"],["
    source§

    impl<'de, P, R> Deserialize<'de> for PathItem<P, R>
    where\n P: Deserialize<'de>,\n R: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip_core::v2::models::ResolvablePathItem","paperclip_core::v2::models::DefaultPathItemRaw"],["
    source§

    impl<S> PathItem<Parameter<S>, Response<S>>

    source

    pub fn normalize(&mut self)

    Normalizes this operation map.

    \n
      \n
    • Collects and removes parameters shared across operations\nand adds them to the list global to this map.
    • \n
    \n
    ",0,"paperclip_core::v2::models::DefaultPathItemRaw"],["
    source§

    impl<P, R> Serialize for PathItem<P, R>
    where\n P: Serialize,\n R: Serialize,

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip_core::v2::models::ResolvablePathItem","paperclip_core::v2::models::DefaultPathItemRaw"]] +"paperclip_core":[["
    source§

    impl<P: Clone, R: Clone> Clone for PathItem<P, R>

    source§

    fn clone(&self) -> PathItem<P, R>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip_core::v2::models::ResolvablePathItem","paperclip_core::v2::models::DefaultPathItemRaw"],["
    source§

    impl<P: Debug, R: Debug> Debug for PathItem<P, R>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","paperclip_core::v2::models::ResolvablePathItem","paperclip_core::v2::models::DefaultPathItemRaw"],["
    source§

    impl<P: Default, R: Default> Default for PathItem<P, R>

    source§

    fn default() -> PathItem<P, R>

    Returns the “default value” for a type. Read more
    ","Default","paperclip_core::v2::models::ResolvablePathItem","paperclip_core::v2::models::DefaultPathItemRaw"],["
    source§

    impl<'de, P, R> Deserialize<'de> for PathItem<P, R>
    where\n P: Deserialize<'de>,\n R: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip_core::v2::models::ResolvablePathItem","paperclip_core::v2::models::DefaultPathItemRaw"],["
    source§

    impl<S> PathItem<Parameter<S>, Response<S>>

    source

    pub fn normalize(&mut self)

    Normalizes this operation map.

    \n
      \n
    • Collects and removes parameters shared across operations\nand adds them to the list global to this map.
    • \n
    \n
    ",0,"paperclip_core::v2::models::DefaultPathItemRaw"],["
    source§

    impl<P, R> Serialize for PathItem<P, R>
    where\n P: Serialize,\n R: Serialize,

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip_core::v2::models::ResolvablePathItem","paperclip_core::v2::models::DefaultPathItemRaw"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/type.impl/paperclip_core/v2/models/struct.Response.js b/type.impl/paperclip_core/v2/models/struct.Response.js index ede0e73b4..d38b69b58 100644 --- a/type.impl/paperclip_core/v2/models/struct.Response.js +++ b/type.impl/paperclip_core/v2/models/struct.Response.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"paperclip_core":[["
    source§

    impl<S: Clone> Clone for Response<S>

    source§

    fn clone(&self) -> Response<S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip_core::v2::models::DefaultResponseRaw"],["
    source§

    impl<S: Debug> Debug for Response<S>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","paperclip_core::v2::models::DefaultResponseRaw"],["
    source§

    impl<S: Default> Default for Response<S>

    source§

    fn default() -> Response<S>

    Returns the “default value” for a type. Read more
    ","Default","paperclip_core::v2::models::DefaultResponseRaw"],["
    source§

    impl<'de, S> Deserialize<'de> for Response<S>
    where\n S: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip_core::v2::models::DefaultResponseRaw"],["
    source§

    impl<S> Serialize for Response<S>
    where\n S: Serialize,

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip_core::v2::models::DefaultResponseRaw"]] +"paperclip_core":[["
    source§

    impl<S: Clone> Clone for Response<S>

    source§

    fn clone(&self) -> Response<S>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","paperclip_core::v2::models::DefaultResponseRaw"],["
    source§

    impl<S: Debug> Debug for Response<S>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","paperclip_core::v2::models::DefaultResponseRaw"],["
    source§

    impl<S: Default> Default for Response<S>

    source§

    fn default() -> Response<S>

    Returns the “default value” for a type. Read more
    ","Default","paperclip_core::v2::models::DefaultResponseRaw"],["
    source§

    impl<'de, S> Deserialize<'de> for Response<S>
    where\n S: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","paperclip_core::v2::models::DefaultResponseRaw"],["
    source§

    impl<S> Serialize for Response<S>
    where\n S: Serialize,

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","paperclip_core::v2::models::DefaultResponseRaw"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file