Functions not found for actix-multipart::Multipart
Author: TobiasDeBruijnCreated Feb 26, 2022Updated Nov 9, 2022
Hi there,
When using Paperclip 0.6.1, with the feature actix-multipart enabled and actix-multipart v0.3.0, I'm getting the following errors:
error[E0599]: no function or associated item named `update_parameter` found for struct `Multipart` in the current scopeerror[E0599]: no function or associated item named `update_security` found for struct `Multipart` in the current scopeerror[E0599]: no function or associated item named `update_security_definitions` found for struct `Multipart` in the current scopeerror[E0599]: no function or associated item named `update_definitions` found for struct `Multipart` in the current scopeThese functions should be present I'd think, as the feature is enabled.
Environment
cargo -V:
cargo 1.59.0-beta.2 (2e4932801 2022-01-12)
rustup -V:
rustup 1.24.3 (ce5817a94 2021-05-31)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.59.0-beta.2 (98a701b42 2022-01-19)`
Actix-web: 3
Code
The error occur on the following function:
#[post("/content/upload")]
#[api_v2_operation(tags(v1))]
pub async fn video_upload(req: HttpRequest, data: web::Data<AppData>, mut payload: Multipart, session: Session) -> Result<Empty> { ... }
Source: paperclip-rs/paperclip