-
-
Notifications
You must be signed in to change notification settings - Fork 683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow custom derive for server_fns with custom encoding #2544
Labels
Comments
Seems reasonable. Any interest in making a PR? These parameters would just feed into the logic here leptos/server_fn_macro/src/lib.rs Lines 389 to 411 in 9353316
|
Yes, I will make one. Just need to figure out why the scenario differs so much for the output type. |
PR: #2545 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
I want to have my server functions use bitcode encoding. For this I can implement IntoReq, FromReq, etc, but I noticed that the ServerFnInputType will always be
#[derive(Clone, serde::Serialize, serde::Deserialize)]
whereas I don't have a use for serde in this case and I actually want#[derive(Clone, bitcode::Encode, bitcode::Decode)]
instead.Describe the solution you'd like
have the
server
macro support parametersinput_derive
andoutput_derive
The text was updated successfully, but these errors were encountered: