api-macro: fix Updatable path in generated derive attribute
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
6fc95b8628
commit
cde2863a68
@ -389,7 +389,7 @@ fn derive_updater(
|
|||||||
|
|
||||||
original_struct.attrs.push(util::make_derive_attribute(
|
original_struct.attrs.push(util::make_derive_attribute(
|
||||||
Span::call_site(),
|
Span::call_site(),
|
||||||
quote::quote! { Updatable },
|
quote::quote! { ::proxmox::api::schema::Updatable },
|
||||||
));
|
));
|
||||||
|
|
||||||
let updater_name = &stru.ident;
|
let updater_name = &stru.ident;
|
||||||
|
@ -3,7 +3,7 @@ use serde::{Deserialize, Serialize};
|
|||||||
use serde_json::Value;
|
use serde_json::Value;
|
||||||
|
|
||||||
use proxmox::api::api;
|
use proxmox::api::api;
|
||||||
use proxmox::api::schema::{Updatable, Updater};
|
use proxmox::api::schema::Updater;
|
||||||
|
|
||||||
#[api]
|
#[api]
|
||||||
/// An example of a simple struct type.
|
/// An example of a simple struct type.
|
||||||
|
Loading…
Reference in New Issue
Block a user