[pdm-devel] Howto access raw response data with pdm-client
Dominik Csapak
d.csapak at proxmox.com
Thu Oct 16 10:10:58 CEST 2025
On 10/15/25 6:06 PM, Dietmar Maurer wrote:
> We currently use proxmox-yew-comp::ApiLoadCallback for many widgets.
>
> This callback returns Result<ApiResponseData<T>, Error>, and
> we use it most times with Result<ApiResponseData<Value>, Error> to access
> raw response data.
>
> Is there a way to get that data using pdm-client?
>
after talking a bit off-list with dietmar, one solution to the problem
could be to not use the statically typed methods but instead provide a
method to generate the url and we use that + e.g. http_post/get/etc. to
make api calls (which can convert the parameter with Serialize and the
return type with Deserialize)
with that we can also use `Value` if needed and can extract the
auxiliary data from the api call too?
More information about the pdm-devel
mailing list